PageSourceSearch

https://mx-sport36.ru/bitrix/js/main/core/core.min.js?1778054346245644

js mx-sport36.ru collected 2026-09-24 10:11:08 UTC 245,644 bytes, 7 lines download raw bytes

1(function(){if(typeof window.BX==="function"){return}
2/**
3 * Babel external helpers
4 * (c) 2018 Babel
5 * @license MIT
6 */(function(e){var t=e.babelHelpers={};function r(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){t.typeof=r=function(e){return typeof e}}else{t.typeof=r=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return r(e)}t.typeof=r;var n;function i(e,t,r,i){if(!n){n=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103}var a=e&&e.defaultProps;var s=arguments.length-3;if(!t&&s!==0){t={children:void 0}}if(t&&a){for(var o in a){if(t[o]===void 0){t[o]=a[o]}}}else if(!t){t=a||{}}if(s===1){t.children=i}else if(s>1){var l=new Array(s);for(var u=0;u<s;u++){l[u]=arguments[u+3]}t.children=l}return{$$typeof:n,type:e,key:r===undefined?null:""+r,ref:null,props:t,_owner:null}}t.jsx=i;function a(e){var t;if(typeof Symbol==="function"){if(Symbol.asyncIterator){t=e[Symbol.asyncIterator];if(t!=null)return t.call(e)}if(Symbol.iterator){t=e[Symbol.iterator];if(t!=null)return t.call(e)}}throw new TypeError("Object is not async iterable")}t.asyncIterator=a;function s(e){this.wrapped=e}t.AwaitValue=s;function o(e){var r,n;function i(e,t){return new Promise((function(i,s){var o={key:e,arg:t,resolve:i,reject:s,next:null};if(n){n=n.next=o}else{r=n=o;a(e,t)}}))}function a(r,n){try{var i=e[r](n);var o=i.value;var l=o instanceof t.AwaitValue;Promise.resolve(l?o.wrapped:o).then((function(e){if(l){a("next",e);return}s(i.done?"return":"normal",e)}),(function(e){a("throw",e)}))}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":r.resolve({value:t,done:true});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:false});break}r=r.next;if(r){a(r.key,r.arg)}else{n=null}}this._invoke=i;if(typeof e.return!=="function"){this.return=undefined}}if(typeof Symbol==="function"&&Symbol.asyncIterator){o.prototype[Symbol.asyncIterator]=function(){return this}}o.prototype.next=function(e){return this._invoke("next",e)};o.prototype.throw=function(e){return this._invoke("throw",e)};o.prototype.return=function(e){return this._invoke("return",e)};t.AsyncGenerator=o;function l(e){return function(){return new t.AsyncGenerator(e.apply(this,arguments))}}t.wrapAsyncGenerator=l;function u(e){return new t.AwaitValue(e)}t.awaitAsyncGenerator=u;function c(e,t){var r={},n=false;function i(r,i){n=true;i=new Promise((function(t){t(e[r](i))}));return{done:false,value:t(i)}}if(typeof Symbol==="function"&&Symbol.iterator){r[Symbol.iterator]=function(){return this}}r.next=function(e){if(n){n=false;return e}return i("next",e)};if(typeof e.throw==="function"){r.throw=function(e){if(n){n=false;throw e}return i("throw",e)}}if(typeof e.return==="function"){r.return=function(e){return i("return",e)}}return r}t.asyncGeneratorDelegate=c;function f(e,t,r,n,i,a,s){try{var o=e[a](s);var l=o.value}catch(e){r(e);return}if(o.done){t(l)}else{Promise.resolve(l).then(n,i)}}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){f(a,n,i,s,o,"next",e)}function o(e){f(a,n,i,s,o,"throw",e)}s(undefined)}))}}t.asyncToGenerator=p;function d(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}t.classCallCheck=d;function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function v(e,t,r){if(t)h(e.prototype,t);if(r)h(e,r);return e}t.createClass=v;function y(e,t){for(var r in t){var n=t[r];n.configurable=n.enumerable=true;if("value"in n)n.writable=true;Object.defineProperty(e,r,n)}if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(var a=0;a<i.length;a++){var s=i[a];var n=t[s];n.configurable=n.enumerable=true;if("value"in n)n.writable=true;Object.defineProperty(e,s,n)}}return e}t.defineEnumerableProperties=y;function g(e,t){var r=Object.getOwnPropertyNames(t);for(var n=0;n<r.length;n++){var i=r[n];var a=Object.getOwnPropertyDescriptor(t,i);if(a&&a.configurable&&e[i]===undefined){Object.defineProperty(e,i,a)}}return e}t.defaults=g;function m(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}t.defineProperty=m;function b(){t.extends=b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};return b.apply(this,arguments)}t.extends=b;function w(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};var i=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))}i.forEach((function(r){t.defineProperty(e,r,n[r])}))}return e}t.objectSpread=w;function S(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)t.setPrototypeOf(e,r)}t.inherits=S;function x(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}t.inheritsLoose=x;
6function E(e){t.getPrototypeOf=E=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return E(e)}t.getPrototypeOf=E;function T(e,r){t.setPrototypeOf=T=Object.setPrototypeOf||function e(t,r){t.__proto__=r;return t};return T(e,r)}t.setPrototypeOf=T;function O(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function j(e,r,n){if(O()){t.construct=j=Reflect.construct}else{t.construct=j=function e(r,n,i){var a=[null];a.push.apply(a,n);var s=Function.bind.apply(r,a);var o=new s;if(i)t.setPrototypeOf(o,i.prototype);return o}}return j.apply(null,arguments)}t.construct=j;function B(e){return Function.toString.call(e).indexOf("[native code]")!==-1}t.isNativeFunction=B;function k(e){var r=typeof Map==="function"?new Map:undefined;t.wrapNativeSuper=k=function e(n){if(n===null||!t.isNativeFunction(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return t.construct(n,arguments,t.getPrototypeOf(this).constructor)}i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:false,writable:true,configurable:true}});return t.setPrototypeOf(i,n)};return k(e)}t.wrapNativeSuper=k;function P(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return t[Symbol.hasInstance](e)}else{return e instanceof t}}t.instanceof=P;function A(e){return e&&e.__esModule?e:{default:e}}t.interopRequireDefault=A;function X(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};if(n.get||n.set){Object.defineProperty(t,r,n)}else{t[r]=e[r]}}}}t.default=e;return t}}t.interopRequireWildcard=X;function N(e,t){if(e!==t){throw new TypeError("Cannot instantiate an arrow function")}}t.newArrowCheck=N;function C(e){if(e==null)throw new TypeError("Cannot destructure undefined")}t.objectDestructuringEmpty=C;function _(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var i,a;for(a=0;a<n.length;a++){i=n[a];if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}t.objectWithoutPropertiesLoose=_;function I(e,r){if(e==null)return{};var n=t.objectWithoutPropertiesLoose(e,r);var i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++){i=s[a];if(r.indexOf(i)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,i))continue;n[i]=e[i]}}return n}t.objectWithoutProperties=I;function L(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}t.assertThisInitialized=L;function M(e,r){if(r&&(typeof r==="object"||typeof r==="function")){return r}return t.assertThisInitialized(e)}t.possibleConstructorReturn=M;function F(e,r){while(!Object.prototype.hasOwnProperty.call(e,r)){e=t.getPrototypeOf(e);if(e===null)break}return e}t.superPropBase=F;function H(e,r,n){if(typeof Reflect!=="undefined"&&Reflect.get){t.get=H=Reflect.get}else{t.get=H=function e(r,n,i){var a=t.superPropBase(r,n);if(!a)return;var s=Object.getOwnPropertyDescriptor(a,n);if(s.get){return s.get.call(i)}return s.value}}return H(e,r,n||e)}t.get=H;function D(e,r,n,i){if(typeof Reflect!=="undefined"&&Reflect.set){D=Reflect.set}else{D=function e(r,n,i,a){var s=t.superPropBase(r,n);var o;if(s){o=Object.getOwnPropertyDescriptor(s,n);if(o.set){o.set.call(a,i);return true}else if(!o.writable){return false}}o=Object.getOwnPropertyDescriptor(a,n);if(o){if(!o.writable){return false}o.value=i;Object.defineProperty(a,n,o)}else{t.defineProperty(a,n,i)}return true}}return D(e,r,n,i)}function R(e,t,r,n,i){var a=D(e,t,r,n||e);if(!a&&i){throw new Error("failed to set property")}return r}t.set=R;function W(e,t){if(!t){t=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.taggedTemplateLiteral=W;function G(e,t){if(!t){t=e.slice(0)}e.raw=t;return e}t.taggedTemplateLiteralLoose=G;function z(e,r){if(e===t.temporalUndefined){throw new ReferenceError(r+" is not defined - temporal dead zone")}else{return e}}t.temporalRef=z;function U(e){throw new Error('"'+e+'" is read-only')}t.readOnlyError=U;function $(e){throw new Error('Class "'+e+'" cannot be referenced in computed property keys.')}t.classNameTDZError=$;t.temporalUndefined={};function V(e,r){return t.arrayWithHoles(e)||t.iterableToArrayLimit(e,r)||t.nonIterableRest()}t.slicedToArray=V;function Y(e,r){return t.arrayWithHoles(e)||t.iterableToArrayLimitLoose(e,r)||t.nonIterableRest()}t.slicedToArrayLoose=Y;function q(e){return t.arrayWithHoles(e)||t.iterableToArray(e)||t.nonIterableRest()}t.toArray=q;function J(e){return t.arrayWithoutHoles(e)||t.iterableToArray(e)||t.nonIterableSpread()}t.toConsumableArray=J;function Z(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}t.arrayWithoutHoles=Z;function K(e){if(Array.isArray(e))return e}t.arrayWithHoles=K;function Q(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}t.iterableToArray=Q;function ee(e,t){var r=[];var n=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),o;!(n=(o=s.next()).done);
6n=true){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=true;a=e}finally{try{if(!n&&s["return"]!=null)s["return"]()}finally{if(i)throw a}}return r}t.iterableToArrayLimit=ee;function te(e,t){var r=[];for(var n=e[Symbol.iterator](),i;!(i=n.next()).done;){r.push(i.value);if(t&&r.length===t)break}return r}t.iterableToArrayLimitLoose=te;function re(){throw new TypeError("Invalid attempt to spread non-iterable instance")}t.nonIterableSpread=re;function ne(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}t.nonIterableRest=ne;function ie(e){return function(){var t=e.apply(this,arguments);t.next();return t}}t.skipFirstGeneratorNext=ie;function ae(e){if(typeof e==="symbol"){return e}else{return String(e)}}t.toPropertyKey=ae;function se(e,t){throw new Error("Decorating class property failed. Please ensure that "+"proposal-class-properties is enabled and set to use loose mode. "+"To use proposal-class-properties in spec mode with decorators, wait for "+"the next major version of decorators in stage 2.")}t.initializerWarningHelper=se;function oe(e,t,r,n){if(!r)return;Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}t.initializerDefineProperty=oe;function le(e,t,r,n,i){var a={};
6Object["ke"+"ys"](n).forEach((function(e){a[e]=n[e]}));a.enumerable=!!a.enumerable;a.configurable=!!a.configurable;if("value"in a||a.initializer){a.writable=true}a=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),a);if(i&&a.initializer!==void 0){a.value=a.initializer?a.initializer.call(i):void 0;a.initializer=undefined}if(a.initializer===void 0){Object["define"+"Property"](e,t,a);a=null}return a}t.applyDecoratedDescriptor=le;var ue=0;function ce(e){return"__private_"+ue+++"_"+e}t.classPrivateFieldLooseKey=ce;function fe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t)){throw new TypeError("attempted to use private field on non-instance")}return e}t.classPrivateFieldLooseBase=fe;function pe(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e).value}t.classPrivateFieldGet=pe;function de(e,t,r){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}var n=t.get(e);if(!n.writable){throw new TypeError("attempted to set read only private field")}n.value=r;return r}t.classPrivateFieldSet=de})(typeof global==="undefined"?window:global);!function(e){"use strict";var t=Object.prototype;var r=t.hasOwnProperty;var n;var i=typeof Symbol==="function"?Symbol:{};var a=i.iterator||"@@iterator";var s=i.asyncIterator||"@@asyncIterator";var o=i.toStringTag||"@@toStringTag";var l=e.regeneratorRuntime={};function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y;var a=Object.create(i.prototype);var s=new P(n||[]);a._invoke=O(e,r,s);return a}l.wrap=u;function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var f="suspendedStart";var p="suspendedYield";var d="executing";var h="completed";var v={};function y(){}function g(){}function m(){}var b={};b[a]=function(){return this};var w=Object.getPrototypeOf;var S=w&&w(w(A([])));if(S&&S!==t&&r.call(S,a)){b=S}var x=m.prototype=y.prototype=Object.create(b);g.prototype=x.constructor=m;m.constructor=g;m[o]=g.displayName="GeneratorFunction";function E(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}l.isGeneratorFunction=function(e){var t=typeof e==="function"&&e.constructor;return t?t===g||(t.displayName||t.name)==="GeneratorFunction":false};l.mark=function(e){if(Object.setPrototypeOf){Object.setPrototypeOf(e,m)}else{e.__proto__=m;if(!(o in e)){e[o]="GeneratorFunction"}}e.prototype=Object.create(x);return e};l.awrap=function(e){return{__await:e}};function T(e){function t(n,i,a,s){var o=c(e[n],e,i);if(o.type==="throw"){s(o.arg)}else{var l=o.arg;var u=l.value;if(u&&typeof u==="object"&&r.call(u,"__await")){return Promise.resolve(u.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)}))}return Promise.resolve(u).then((function(e){l.value=e;a(l)}),s)}}var n;function i(e,r){function i(){return new Promise((function(n,i){t(e,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=i}E(T.prototype);T.prototype[s]=function(){return this};l.AsyncIterator=T;l.async=function(e,t,r,n){var i=new T(u(e,t,r,n));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))};function O(e,t,r){var n=f;return function i(a,s){if(n===d){throw new Error("Generator is already running")}if(n===h){if(a==="throw"){throw s}return X()}r.method=a;r.arg=s;while(true){var o=r.delegate;if(o){var l=j(o,r);if(l){if(l===v)continue;return l}}if(r.method==="next"){r.sent=r._sent=r.arg}else if(r.method==="throw"){if(n===f){n=h;throw r.arg}r.dispatchException(r.arg)}else if(r.method==="return"){r.abrupt("return",r.arg)}n=d;var u=c(e,t,r);if(u.type==="normal"){n=r.done?h:p;if(u.arg===v){continue}return{value:u.arg,done:r.done}}else if(u.type==="throw"){n=h;r.method="throw";r.arg=u.arg}}}}function j(e,t){var r=e.iterator[t.method];if(r===n){t.delegate=null;if(t.method==="throw"){if(e.iterator.return){t.method="return";t.arg=n;j(e,t);if(t.method==="throw"){return v}}t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,t.arg);if(i.type==="throw"){t.method="throw";t.arg=i.arg;t.delegate=null;return v}var a=i.arg;if(!a){t.method="throw";t.arg=new TypeError("iterator result is not an object");t.delegate=null;return v}if(a.done){t[e.resultName]=a.value;t.next=e.nextLoc;if(t.method!=="return"){t.method="next";t.arg=n}}else{return a}t.delegate=null;return v}E(x);x[o]="Generator";x[a]=function(){return this};x.toString=function(){return"[object Generator]"};function B(e){var t={tryLoc:e[0]};if(1 in e){t.catchLoc=e[1]}if(2 in e){t.finallyLoc=e[2];t.afterLoc=e[3]}this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal";delete t.arg;e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}];e.forEach(B,this);this.reset(true)}l.keys=function(e){var t=[];for(var r in e){t.push(r)}t.reverse();return function r(){while(t.length){var n=t.pop();if(n in e){r.value=n;r.done=false;return r}}r.done=true;return r}};function A(e){if(e){var t=e[a];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var i=-1,s=function t(){while(++i<e.length){if(r.call(e,i)){t.value=e[i];t.done=false;return t}}t.value=n;t.done=true;return t};return s.next=s}}return{next:X}}l.values=A;function X(){return{value:n,done:true}}P.prototype={constructor:P,reset:function(e){this.prev=0;this.next=0;this.sent=this._sent=n;this.done=false;this.delegate=null;this.method="next";this.arg=n;
6this.tryEntries.forEach(k);if(!e){for(var t in this){if(t.charAt(0)==="t"&&r.call(this,t)&&!isNaN(+t.slice(1))){this[t]=n}}}},stop:function(){this.done=true;var e=this.tryEntries[0];var t=e.completion;if(t.type==="throw"){throw t.arg}return this.rval},dispatchException:function(e){if(this.done){throw e}var t=this;function i(r,i){o.type="throw";o.arg=e;t.next=r;if(i){t.method="next";t.arg=n}return!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var s=this.tryEntries[a];var o=s.completion;if(s.tryLoc==="root"){return i("end")}if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc");var u=r.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc){return i(s.catchLoc,true)}else if(this.prev<s.finallyLoc){return i(s.finallyLoc)}}else if(l){if(this.prev<s.catchLoc){return i(s.catchLoc,true)}}else if(u){if(this.prev<s.finallyLoc){return i(s.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}if(a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc){a=null}var s=a?a.completion:{};s.type=e;s.arg=t;if(a){this.method="next";this.next=a.finallyLoc;return v}return this.complete(s)},complete:function(e,t){if(e.type==="throw"){throw e.arg}if(e.type==="break"||e.type==="continue"){this.next=e.arg}else if(e.type==="return"){this.rval=this.arg=e.arg;this.method="return";this.next="end"}else if(e.type==="normal"&&t){this.next=t}return v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e){this.complete(r.completion,r.afterLoc);k(r);return v}}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(n.type==="throw"){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){this.delegate={iterator:A(e),resultName:t,nextLoc:r};if(this.method==="next"){this.arg=n}return v}}}(function(){return this}()||Function("return this")());(function(e){"use strict";var t=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=function(e){return e&&e.Math===Math&&e};var i=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof t=="object"&&t)||n(typeof t=="object"&&t)||function(){return this}()||Function("return this")();var a=function(e){try{return!!e()}catch(e){return true}};var s=!a((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}));var o=!a((function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}));var l=Function.prototype.call;var u=o?l.bind(l):function(){return l.apply(l,arguments)};var c={}.propertyIsEnumerable;var f=Object.getOwnPropertyDescriptor;var p=f&&!c.call({1:2},1);var d=p?function e(t){var r=f(this,t);return!!r&&r.enumerable}:c;var h={f:d};var v=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}};var y=Function.prototype;var g=y.call;var m=o&&y.bind.bind(g,g);var b=o?m:function(e){return function(){return g.apply(e,arguments)}};var w=b({}.toString);var S=b("".slice);var x=function(e){return S(w(e),8,-1)};var E=Object;var T=b("".split);var O=a((function(){return!E("z").propertyIsEnumerable(0)}))?function(e){return x(e)==="String"?T(e,""):E(e)}:E;var j=function(e){return e===null||e===undefined};var B=TypeError;var k=function(e){if(j(e))throw new B("Can't call method on "+e);return e};var P=function(e){return O(k(e))};var A=typeof document=="object"&&document.all;var X=typeof A=="undefined"&&A!==undefined?function(e){return typeof e=="function"||e===A}:function(e){return typeof e=="function"};var N=function(e){return typeof e=="object"?e!==null:X(e)};var C=function(e){return X(e)?e:undefined};var _=function(e,t){return arguments.length<2?C(i[e]):i[e]&&i[e][t]};var I=b({}.isPrototypeOf);var L=i.navigator;var M=L&&L.userAgent;var F=M?String(M):"";var H=i.process;var D=i.Deno;var R=H&&H.versions||D&&D.version;var W=R&&R.v8;var G,z;if(W){G=W.split(".");z=G[0]>0&&G[0]<4?1:+(G[0]+G[1])}if(!z&&F){G=F.match(/Edge\/(\d+)/);if(!G||G[1]>=74){G=F.match(/Chrome\/(\d+)/);if(G)z=+G[1]}}var U=z;var $=i.String;var V=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!$(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U&&U<41}));var Y=V&&!Symbol.sham&&typeof Symbol.iterator=="symbol";var q=Object;var J=Y?function(e){return typeof e=="symbol"}:function(e){var t=_("Symbol");return X(t)&&I(t.prototype,q(e))};var Z=String;var K=function(e){try{return Z(e)}catch(e){return"Object"}};var Q=TypeError;var ee=function(e){if(X(e))return e;throw new Q(K(e)+" is not a function")};var te=function(e,t){var r=e[t];return j(r)?undefined:ee(r)};var re=TypeError;var ne=function(e,t){var r,n;if(t==="string"&&X(r=e.toString)&&!N(n=u(r,e)))return n;if(X(r=e.valueOf)&&!N(n=u(r,e)))return n;if(t!=="string"&&X(r=e.toString)&&!N(n=u(r,e)))return n;throw new re("Can't convert object to primitive value")};var ie=false;var ae=Object.defineProperty;var se=function(e,t){try{ae(i,e,{value:t,configurable:true,writable:true})}catch(r){i[e]=t}return t};var oe=r((function(e){var t="__core-js_shared__";var r=e.exports=i[t]||se(t,{});
vendor: 4,514 bytes, line 6
6(r.versions||(r.versions=[])).push({version:"3.41.0",mode:"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})}));var le=r((function(e){(e.exports=function(e,t){return oe[e]||(oe[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.19.2",mode:"global",copyright:"(c) 2021 Denis Pushkarev (zloirock.ru)"})}));var ue=Object;var ce=function(e){return ue(k(e))};var fe=b({}.hasOwnProperty);var pe=Object.hasOwn||function e(t,r){return fe(ce(t),r)};var de=0;var he=Math.random();var ve=b(1..toString);var ye=function(e){return"Symbol("+(e===undefined?"":e)+")_"+ve(++de+he,36)};var ge=i.Symbol;var me=le("wks");var be=Y?ge["for"]||ge:ge&&ge.withoutSetter||ye;var we=function(e){if(!pe(me,e)){me[e]=V&&pe(ge,e)?ge[e]:be("Symbol."+e)}return me[e]};var Se=TypeError;var xe=we("toPrimitive");var Ee=function(e,t){if(!N(e)||J(e))return e;var r=te(e,xe);var n;if(r){if(t===undefined)t="default";n=u(r,e,t);if(!N(n)||J(n))return n;throw new Se("Can't convert object to primitive value")}if(t===undefined)t="number";return ne(e,t)};var Te=function(e){var t=Ee(e,"string");return J(t)?t:t+""};var Oe=i.document;var je=N(Oe)&&N(Oe.createElement);var Be=function(e){return je?Oe.createElement(e):{}};var ke=!s&&!a((function(){return Object.defineProperty(Be("div"),"a",{get:function(){return 7}}).a!==7}));var Pe=Object.getOwnPropertyDescriptor;var Ae=s?Pe:function e(t,r){t=P(t);r=Te(r);if(ke)try{return Pe(t,r)}catch(e){}if(pe(t,r))return v(!u(h.f,t,r),t[r])};var Xe={f:Ae};var Ne=s&&a((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!==42}));var Ce=String;var _e=TypeError;var Ie=function(e){if(N(e))return e;throw new _e(Ce(e)+" is not an object")};var Le=TypeError;var Me=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var He="enumerable";var De="configurable";var Re="writable";var We=s?Ne?function e(t,r,n){Ie(t);r=Te(r);Ie(n);if(typeof t==="function"&&r==="prototype"&&"value"in n&&Re in n&&!n[Re]){var i=Fe(t,r);if(i&&i[Re]){t[r]=n.value;n={configurable:De in n?n[De]:i[De],enumerable:He in n?n[He]:i[He],writable:false}}}return Me(t,r,n)}:Me:function e(t,r,n){Ie(t);r=Te(r);Ie(n);if(ke)try{return Me(t,r,n)}catch(e){}if("get"in n||"set"in n)throw new Le("Accessors not supported");if("value"in n)t[r]=n.value;return t};var Ge={f:We};var ze=s?function(e,t,r){return Ge.f(e,t,v(1,r))}:function(e,t,r){e[t]=r;return e};var Ue=Function.prototype;var $e=s&&Object.getOwnPropertyDescriptor;var Ve=pe(Ue,"name");var Ye=Ve&&function e(){}.name==="something";var qe=Ve&&(!s||s&&$e(Ue,"name").configurable);var Je={EXISTS:Ve,PROPER:Ye,CONFIGURABLE:qe};var Ze=b(Function.toString);if(!X(oe.inspectSource)){oe.inspectSource=function(e){return Ze(e)}}var Ke=oe.inspectSource;var Qe=i.WeakMap;var et=X(Qe)&&/native code/.test(String(Qe));var tt=le("keys");var rt=function(e){return tt[e]||(tt[e]=ye(e))};var nt={};var it="Object already initialized";var at=i.TypeError;var st=i.WeakMap;var ot,lt,ut;var ct=function(e){return ut(e)?lt(e):ot(e,{})};var ft=function(e){return function(t){var r;if(!N(t)||(r=lt(t)).type!==e){throw new at("Incompatible receiver, "+e+" required")}return r}};if(et||oe.state){var pt=oe.state||(oe.state=new st);pt.get=pt.get;pt.has=pt.has;pt.set=pt.set;ot=function(e,t){if(pt.has(e))throw new at(it);t.facade=e;pt.set(e,t);return t};lt=function(e){return pt.get(e)||{}};ut=function(e){return pt.has(e)}}else{var dt=rt("state");nt[dt]=true;ot=function(e,t){if(pe(e,dt))throw new at(it);t.facade=e;ze(e,dt,t);return t};lt=function(e){return pe(e,dt)?e[dt]:{}};ut=function(e){return pe(e,dt)}}var ht={set:ot,get:lt,has:ut,enforce:ct,getterFor:ft};var vt=r((function(e){var t=Je.CONFIGURABLE;var r=ht.enforce;var n=ht.get;var i=String;var o=Object.defineProperty;var l=b("".slice);var u=b("".replace);var c=b([].join);var f=s&&!a((function(){return o((function(){}),"length",{value:8}).length!==8}));var p=String(String).split("String");var d=e.exports=function(e,n,a){if(l(i(n),0,7)==="Symbol("){n="["+u(i(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"}if(a&&a.getter)n="get "+n;if(a&&a.setter)n="set "+n;if(!pe(e,"name")||t&&e.name!==n){if(s)o(e,"name",{value:n,configurable:true});else e.name=n}if(f&&a&&pe(a,"arity")&&e.length!==a.arity){o(e,"length",{value:a.arity})}try{if(a&&pe(a,"constructor")&&a.constructor){if(s)o(e,"prototype",{writable:false})}else if(e.prototype)e.prototype=undefined}catch(e){}var d=r(e);
6if(!pe(d,"source")){d.source=c(p,typeof n=="string"?n:"")}return e};Function.prototype.toString=d((function e(){return X(this)&&n(this).source||Ke(this)}),"toString")}));var yt=function(e,t,r,n){if(!n)n={};var i=n.enumerable;var a=n.name!==undefined?n.name:t;if(X(r))vt(r,a,n);if(n.global){if(i)e[t]=r;else se(t,r)}else{try{if(!n.unsafe)delete e[t];else if(e[t])i=true}catch(e){}if(i)e[t]=r;else Ge.f(e,t,{value:r,enumerable:false,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e};var gt=Math.ceil;var mt=Math.floor;var bt=Math.trunc||function e(t){var r=+t;return(r>0?mt:gt)(r)};var wt=function(e){var t=+e;return t!==t||t===0?0:bt(t)};var St=Math.max;var xt=Math.min;var Et=function(e,t){var r=wt(e);return r<0?St(r+t,0):xt(r,t)};var Tt=Math.min;var Ot=function(e){var t=wt(e);return t>0?Tt(t,9007199254740991):0};var jt=function(e){return Ot(e.length)};var Bt=function(e){return function(t,r,n){var i=P(t);var a=jt(i);if(a===0)return!e&&-1;var s=Et(n,a);var o;if(e&&r!==r)while(a>s){o=i[s++];if(o!==o)return true}else for(;a>s;s++){if((e||s in i)&&i[s]===r)return e||s||0}return!e&&-1}};var kt={includes:Bt(true),indexOf:Bt(false)};var Pt=kt.indexOf;var At=b([].push);var Xt=function(e,t){var r=P(e);var n=0;var i=[];var a;for(a in r)!pe(nt,a)&&pe(r,a)&&At(i,a);while(t.length>n)if(pe(r,a=t[n++])){~Pt(i,a)||At(i,a)}return i};var Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Ct=Nt.concat("length","prototype");var _t=Object.getOwnPropertyNames||function e(t){return Xt(t,Ct)};var It={f:_t};var Lt=Object.getOwnPropertySymbols;var Mt={f:Lt};var Ft=b([].concat);var Ht=_("Reflect","ownKeys")||function e(t){var r=It.f(Ie(t));var n=Mt.f;return n?Ft(r,n(t)):r};var Dt=function(e,t,r){var n=Ht(t);var i=Ge.f;var a=Xe.f;for(var s=0;s<n.length;s++){var o=n[s];if(!pe(e,o)&&!(r&&pe(r,o))){i(e,o,a(t,o))}}};var Rt=/#|\.prototype\./;var Wt=function(e,t){var r=zt[Gt(e)];return r===$t?true:r===Ut?false:X(t)?a(t):!!t};var Gt=Wt.normalize=function(e){return String(e).replace(Rt,".").toLowerCase()};var zt=Wt.data={};var Ut=Wt.NATIVE="N";var $t=Wt.POLYFILL="P";var Vt=Wt;var Yt=Xe.f;var qt=function(e,t){var r=e.target;var n=e.global;var a=e.stat;var s,o,l,u,c,f;if(n){o=i}else if(a){o=i[r]||se(r,{})}else{o=i[r]&&i[r].prototype}if(o)for(l in t){c=t[l];if(e.dontCallGetSet){f=Yt(o,l);u=f&&f.value}else u=o[l];s=Vt(n?l:r+(a?".":"#")+l,e.forced);if(!s&&u!==undefined){if(typeof c==typeof u)continue;Dt(c,u)}if(e.sham||u&&u.sham){ze(c,"sham",true)}
6yt(o,l,c,e)}};var Jt=!a((function(){function e(){}e.prototype.constructor=null;return Object.getPrototypeOf(new e)!==e.prototype}));var Zt=rt("IE_PROTO");var Kt=Object;var Qt=Kt.prototype;var er=Jt?Kt.getPrototypeOf:function(e){var t=ce(e);if(pe(t,Zt))return t[Zt];var r=t.constructor;if(X(r)&&t instanceof r){return r.prototype}return t instanceof Kt?Qt:null};var tr=function(e,t,r){try{return b(ee(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}};var rr=function(e){return N(e)||e===null};var nr=String;var ir=TypeError;var ar=function(e){if(rr(e))return e;throw new ir("Can't set "+nr(e)+" as a prototype")};var sr=Object.setPrototypeOf||("__proto__"in{}?function(){var e=false;var t={};var r;try{r=tr(Object.prototype,"__proto__","set");r(t,[]);e=t instanceof Array}catch(e){}return function t(n,i){k(n);ar(i);if(!N(n))return n;if(e)r(n,i);else n.__proto__=i;return n}}():undefined);var or=Object.keys||function e(t){return Xt(t,Nt)};var lr=s&&!Ne?Object.defineProperties:function e(t,r){Ie(t);var n=P(r);var i=or(r);var a=i.length;var s=0;var o;while(a>s)Ge.f(t,o=i[s++],n[o]);return t};var ur={f:lr};var cr=_("document","documentElement");var fr=">";var pr="<";var dr="prototype";var hr="script";var vr=rt("IE_PROTO");var yr=function(){};var gr=function(e){return pr+hr+fr+e+pr+"/"+hr+fr};var mr=function(e){e.write(gr(""));e.close();var t=e.parentWindow.Object;e=null;return t};var br=function(){var e=Be("iframe");var t="java"+hr+":";var r;e.style.display="none";cr.appendChild(e);e.src=String(t);r=e.contentWindow.document;r.open();r.write(gr("document.F=Object"));r.close();return r.F};var wr;var Sr=function(){try{wr=new ActiveXObject("htmlfile")}catch(e){}Sr=typeof document!="undefined"?document.domain&&wr?mr(wr):br():mr(wr);var e=Nt.length;while(e--)delete Sr[dr][Nt[e]];return Sr()};nt[vr]=true;var xr=Object.create||function e(t,r){var n;if(t!==null){yr[dr]=Ie(t);n=new yr;yr[dr]=null;n[vr]=t}else n=Sr();return r===undefined?n:ur.f(n,r)};var Er=function(e,t){if(N(t)&&"cause"in t){ze(e,"cause",t.cause)}};var Tr=Error;var Or=b("".replace);var jr=function(e){return String(new Tr(e).stack)}("zxcasd");var Br=/\n\s*at [^:]*:[^\n]*/;var kr=Br.test(jr);var Pr=function(e,t){if(kr&&typeof e=="string"&&!Tr.prepareStackTrace){while(t--)e=Or(e,Br,"")}return e};var Ar=!a((function(){var e=new Error("a");if(!("stack"in e))return true;Object.defineProperty(e,"stack",v(1,7));return e.stack!==7}));var Xr=Error.captureStackTrace;var Nr=function(e,t,r,n){if(Ar){if(Xr)Xr(e,t);else ze(e,"stack",Pr(r,n))}};var Cr=function(e){if(x(e)==="Function")return b(e)};var _r=Cr(Cr.bind);var Ir=function(e,t){ee(e);return t===undefined?e:o?_r(e,t):function(){return e.apply(t,arguments)}};var Lr={};var Mr=we("iterator");var Fr=Array.prototype;var Hr=function(e){return e!==undefined&&(Lr.Array===e||Fr[Mr]===e)};var Dr=we("toStringTag");var Rr={};Rr[Dr]="z";var Wr=String(Rr)==="[object z]";var Gr=we("toStringTag");var zr=Object;var Ur=x(function(){return arguments}())==="Arguments";var $r=function(e,t){try{return e[t]}catch(e){}};var Vr=Wr?x:function(e){var t,r,n;return e===undefined?"Undefined":e===null?"Null":typeof(r=$r(t=zr(e),Gr))=="string"?r:Ur?x(t):(n=x(t))==="Object"&&X(t.callee)?"Arguments":n};var Yr=we("iterator");var qr=function(e){if(!j(e))return te(e,Yr)||te(e,"@@iterator")||Lr[Vr(e)]};var Jr=TypeError;var Zr=function(e,t){var r=arguments.length<2?qr(e):t;if(ee(r))return Ie(u(r,e));throw new Jr(K(e)+" is not iterable")};var Kr=function(e,t,r){var n,i;Ie(e);try{n=te(e,"return");if(!n){if(t==="throw")throw r;return r}n=u(n,e)}catch(e){i=true;n=e}if(t==="throw")throw r;if(i)throw n;Ie(n);return r};var Qr=TypeError;var en=function(e,t){this.stopped=e;this.result=t};var tn=en.prototype;var rn=function(e,t,r){var n=r&&r.that;var i=!!(r&&r.AS_ENTRIES);var a=!!(r&&r.IS_RECORD);var s=!!(r&&r.IS_ITERATOR);var o=!!(r&&r.INTERRUPTED);var l=Ir(t,n);var c,f,p,d,h,v,y;var g=function(e){if(c)Kr(c,"normal",e);return new en(true,e)};var m=function(e){if(i){Ie(e);return o?l(e[0],e[1],g):l(e[0],e[1])}return o?l(e,g):l(e)};if(a){c=e.iterator}else if(s){c=e}else{f=qr(e);if(!f)throw new Qr(K(e)+" is not iterable");if(Hr(f)){for(p=0,d=jt(e);d>p;p++){h=m(e[p]);if(h&&I(tn,h))return h}return new en(false)}c=Zr(e,f)}v=a?e.next:c.next;while(!(y=u(v,c)).done){try{h=m(y.value)}catch(e){Kr(c,"throw",e)}if(typeof h=="object"&&h&&I(tn,h))return h}return new en(false)};var nn=String;var an=function(e){if(Vr(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return nn(e)};var sn=function(e,t){return e===undefined?arguments.length<2?"":t:an(e)};var on=we("toStringTag");var ln=Error;var un=[].push;var cn=function e(t,r){var n=I(fn,this);var i;if(sr){i=sr(new ln,n?er(this):fn)}else{i=n?this:xr(fn);ze(i,on,"Error")}if(r!==undefined)ze(i,"message",sn(r));Nr(i,cn,i.stack,1);if(arguments.length>2)Er(i,arguments[2]);var a=[];rn(t,un,{that:a});ze(i,"errors",a);return i};
6if(sr)sr(cn,ln);else Dt(cn,ln,{name:true});var fn=cn.prototype=xr(ln.prototype,{constructor:v(1,cn),message:v(1,""),name:v(1,"AggregateError")});qt({global:true,constructor:true,arity:2},{AggregateError:cn});var pn=Ge.f;var dn=we("unscopables");var hn=Array.prototype;if(hn[dn]===undefined){pn(hn,dn,{configurable:true,value:xr(null)})}var vn=function(e){hn[dn][e]=true};qt({target:"Array",proto:true},{at:function e(t){var r=ce(this);var n=jt(r);var i=wt(t);var a=i>=0?i:n+i;return a<0||a>=n?undefined:r[a]}});vn("at");var yn=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined";var gn=function(e,t,r){if(r.get)vt(r.get,t,{getter:true});if(r.set)vt(r.set,t,{setter:true});return Ge.f(e,t,r)};var mn=function(e,t,r){for(var n in t)yt(e,n,t[n],r);return e};var bn=TypeError;var wn=function(e,t){if(I(t,e))return e;throw new bn("Incorrect invocation")};var Sn=RangeError;var xn=function(e){if(e===undefined)return 0;var t=wt(e);var r=Ot(t);if(t!==r)throw new Sn("Wrong length or index");return r};var En=Math.sign||function e(t){var r=+t;return r===0||r!==r?r:r<0?-1:1};var Tn=2220446049250313e-31;var On=1/Tn;var jn=function(e){return e+On-On};var Bn=Math.abs;var kn=2220446049250313e-31;var Pn=function(e,t,r,n){var i=+e;var a=Bn(i);var s=En(i);if(a<n)return s*jn(a/n/t)*n*t;var o=(1+t/kn)*a;var l=o-(o-a);if(l>r||l!==l)return s*Infinity;return s*l};var An=1.1920928955078125e-7;var Xn=34028234663852886e22;var Nn=11754943508222875e-54;var Cn=Math.fround||function e(t){return Pn(t,An,Xn,Nn)};var _n=Array;var In=Math.abs;var Ln=Math.pow;var Mn=Math.floor;var Fn=Math.log;var Hn=Math.LN2;var Dn=function(e,t,r){var n=_n(r);var i=r*8-t-1;var a=(1<<i)-1;var s=a>>1;var o=t===23?Ln(2,-24)-Ln(2,-77):0;var l=e<0||e===0&&1/e<0?1:0;var u=0;var c,f,p;e=In(e);if(e!==e||e===Infinity){f=e!==e?1:0;c=a}else{c=Mn(Fn(e)/Hn);p=Ln(2,-c);if(e*p<1){c--;p*=2}if(c+s>=1){e+=o/p}else{e+=o*Ln(2,1-s)}if(e*p>=2){c++;p/=2}if(c+s>=a){f=0;c=a}else if(c+s>=1){f=(e*p-1)*Ln(2,t);c+=s}else{f=e*Ln(2,s-1)*Ln(2,t);c=0}}while(t>=8){n[u++]=f&255;f/=256;t-=8}c=c<<t|f;i+=t;while(i>0){n[u++]=c&255;c/=256;i-=8}n[u-1]|=l*128;return n};var Rn=function(e,t){var r=e.length;var n=r*8-t-1;var i=(1<<n)-1;var a=i>>1;var s=n-7;var o=r-1;var l=e[o--];var u=l&127;var c;l>>=7;while(s>0){u=u*256+e[o--];s-=8}c=u&(1<<-s)-1;u>>=-s;s+=t;while(s>0){c=c*256+e[o--];s-=8}if(u===0){u=1-a}else if(u===i){return c?NaN:l?-Infinity:Infinity}else{c+=Ln(2,t);u-=a}return(l?-1:1)*c*Ln(2,u-t)};var Wn={pack:Dn,unpack:Rn};var Gn=function e(t){var r=ce(this);var n=jt(r);var i=arguments.length;var a=Et(i>1?arguments[1]:undefined,n);var s=i>2?arguments[2]:undefined;var o=s===undefined?n:Et(s,n);while(o>a)r[a++]=t;return r};var zn=b([].slice);var Un=function(e,t,r){var n,i;if(sr&&X(n=t.constructor)&&n!==r&&N(i=n.prototype)&&i!==r.prototype)sr(e,i);return e};var $n=Ge.f;var Vn=we("toStringTag");var Yn=function(e,t,r){if(e&&!r)e=e.prototype;if(e&&!pe(e,Vn)){$n(e,Vn,{configurable:true,value:t})}};var qn=Je.PROPER;var Jn=Je.CONFIGURABLE;var Zn="ArrayBuffer";var Kn="DataView";var Qn="prototype";var ei="Wrong length";var ti="Wrong index";var ri=ht.getterFor(Zn);var ni=ht.getterFor(Kn);var ii=ht.set;var ai=i[Zn];var si=ai;var oi=si&&si[Qn];var li=i[Kn];var ui=li&&li[Qn];var ci=Object.prototype;var fi=i.Array;var pi=i.RangeError;var di=b(Gn);var hi=b([].reverse);var vi=Wn.pack;var yi=Wn.unpack;var gi=function(e){return[e&255]};var mi=function(e){return[e&255,e>>8&255]};var bi=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]};var wi=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]};var Si=function(e){return vi(Cn(e),23,4)};var xi=function(e){return vi(e,52,8)};var Ei=function(e,t,r){gn(e[Qn],t,{configurable:true,get:function(){return r(this)[t]}})};var Ti=function(e,t,r,n){var i=ni(e);var a=xn(r);var s=!!n;if(a+t>i.byteLength)throw new pi(ti);var o=i.bytes;var l=a+i.byteOffset;var u=zn(o,l,l+t);return s?u:hi(u)};var Oi=function(e,t,r,n,i,a){var s=ni(e);var o=xn(r);var l=n(+i);var u=!!a;if(o+t>s.byteLength)throw new pi(ti);var c=s.bytes;var f=o+s.byteOffset;for(var p=0;p<t;p++)c[f+p]=l[u?p:t-p-1]};if(!yn){si=function e(t){wn(this,oi);var r=xn(t);
6ii(this,{type:Zn,bytes:di(fi(r),0),byteLength:r});if(!s){this.byteLength=r;this.detached=false}};oi=si[Qn];li=function e(t,r,n){wn(this,ui);wn(t,oi);var i=ri(t);var a=i.byteLength;var o=wt(r);if(o<0||o>a)throw new pi("Wrong offset");n=n===undefined?a-o:Ot(n);if(o+n>a)throw new pi(ei);ii(this,{type:Kn,buffer:t,byteLength:n,byteOffset:o,bytes:i.bytes});if(!s){this.buffer=t;this.byteLength=n;this.byteOffset=o}};ui=li[Qn];if(s){Ei(si,"byteLength",ri);Ei(li,"buffer",ni);Ei(li,"byteLength",ni);Ei(li,"byteOffset",ni)}mn(ui,{getInt8:function e(t){return Ti(this,1,t)[0]<<24>>24},getUint8:function e(t){return Ti(this,1,t)[0]},getInt16:function e(t){var r=Ti(this,2,t,arguments.length>1?arguments[1]:false);return(r[1]<<8|r[0])<<16>>16},getUint16:function e(t){var r=Ti(this,2,t,arguments.length>1?arguments[1]:false);return r[1]<<8|r[0]},getInt32:function e(t){return wi(Ti(this,4,t,arguments.length>1?arguments[1]:false))},getUint32:function e(t){return wi(Ti(this,4,t,arguments.length>1?arguments[1]:false))>>>0},getFloat32:function e(t){return yi(Ti(this,4,t,arguments.length>1?arguments[1]:false),23)},getFloat64:function e(t){return yi(Ti(this,8,t,arguments.length>1?arguments[1]:false),52)},setInt8:function e(t,r){Oi(this,1,t,gi,r)},setUint8:function e(t,r){Oi(this,1,t,gi,r)},setInt16:function e(t,r){Oi(this,2,t,mi,r,arguments.length>2?arguments[2]:false)},setUint16:function e(t,r){Oi(this,2,t,mi,r,arguments.length>2?arguments[2]:false)},setInt32:function e(t,r){Oi(this,4,t,bi,r,arguments.length>2?arguments[2]:false)},setUint32:function e(t,r){Oi(this,4,t,bi,r,arguments.length>2?arguments[2]:false)},setFloat32:function e(t,r){Oi(this,4,t,Si,r,arguments.length>2?arguments[2]:false)},setFloat64:function e(t,r){Oi(this,8,t,xi,r,arguments.length>2?arguments[2]:false)}})}else{var ji=qn&&ai.name!==Zn;if(!a((function(){ai(1)}))||!a((function(){new ai(-1)}))||a((function(){new ai;new ai(1.5);new ai(NaN);return ai.length!==1||ji&&!Jn}))){si=function e(t){wn(this,oi);return Un(new ai(xn(t)),this,si)};si[Qn]=oi;oi.constructor=si;Dt(si,ai)}else if(ji&&Jn){ze(ai,"name",Zn)}if(sr&&er(ui)!==ci){sr(ui,ci)}var Bi=new li(new si(2));var ki=b(ui.setInt8);Bi.setInt8(0,2147483648);Bi.setInt8(1,2147483649);if(Bi.getInt8(0)||!Bi.getInt8(1))mn(ui,{setInt8:function e(t,r){ki(this,t,r<<24>>24)},setUint8:function e(t,r){ki(this,t,r<<24>>24)}},{unsafe:true})}Yn(si,Zn);Yn(li,Kn);var Pi={ArrayBuffer:si,DataView:li};var Ai=Pi.ArrayBuffer;var Xi=Pi.DataView;var Ni=Xi.prototype;var Ci=Cr(Ai.prototype.slice);var _i=Cr(Ni.getUint8);var Ii=Cr(Ni.setUint8);var Li=a((function(){return!new Ai(2).slice(1,undefined).byteLength}));qt({target:"ArrayBuffer",proto:true,unsafe:true,forced:Li},{slice:function e(t,r){if(Ci&&r===undefined){return Ci(Ie(this),t)}var n=Ie(this).byteLength;var i=Et(t,n);var a=Et(r===undefined?n:r,n);var s=new Ai(Ot(a-i));var o=new Xi(this);var l=new Xi(s);var u=0;while(i<a){Ii(l,u++,_i(o,i++))}return s}});var Mi=function(e,t,r){if(s)Ge.f(e,t,v(0,r));else e[t]=r};qt({target:"Object",stat:true},{fromEntries:function e(t){var r={};rn(t,(function(e,t){Mi(r,e,t)}),{AS_ENTRIES:true});return r}});qt({target:"Object",stat:true},{hasOwn:pe});var Fi=TypeError;var Hi=function(e){var t,r;this.promise=new e((function(e,n){if(t!==undefined||r!==undefined)throw new Fi("Bad Promise constructor");t=e;r=n}));this.resolve=ee(t);this.reject=ee(r)};var Di=function(e){return new Hi(e)};var Ri={f:Di};var Wi=function(e){try{return{error:false,value:e()}}catch(e){return{error:true,value:e}}};var Gi=i.Promise;var zi=we("iterator");var Ui=false;var $i=function(e,t){try{if(!t&&!Ui)return false}catch(e){return false}var r=false;try{var n={};n[zi]=function(){return{next:function(){return{done:r=true}}}};e(n)}catch(e){}return r};var Vi=function(e){return F.slice(0,e.length)===e};var Yi=function(){if(Vi("Bun/"))return"BUN";if(Vi("Cloudflare-Workers"))return"CLOUDFLARE";if(Vi("Deno/"))return"DENO";if(Vi("Node.js/"))return"NODE";if(i.Bun&&typeof Bun.version=="string")return"BUN";if(i.Deno&&typeof Deno.version=="object")return"DENO";if(x(i.process)==="process")return"NODE";if(i.window&&i.document)return"BROWSER";return"REST"}();var qi=Gi&&Gi.prototype;var Ji=we("species");var Zi=false;var Ki=X(i.PromiseRejectionEvent);var Qi=Vt("Promise",(function(){var e=Ke(Gi);var t=e!==String(Gi);if(!t&&U===66)return true;if(!U||U<51||!/native code/.test(e)){var r=new Gi((function(e){e(1)}));var n=function(e){e((function(){}),(function(){}))};var i=r.constructor={};i[Ji]=n;Zi=r.then((function(){}))instanceof n;if(!Zi)return true}return!t&&(Yi==="BROWSER"||Yi==="DENO")&&!Ki}));var ea={CONSTRUCTOR:Qi,REJECTION_EVENT:Ki,SUBCLASSING:Zi};var ta=ea.CONSTRUCTOR;var ra=ta||!$i((function(e){Gi.all(e).then(undefined,(function(){}))}));qt({target:"Promise",stat:true,forced:ra},{allSettled:function e(t){var r=this;var n=Ri.f(r);var i=n.resolve;var a=n.reject;var s=Wi((function(){var e=ee(r.resolve);var n=[];var a=0;var s=1;rn(t,(function(t){var o=a++;var l=false;s++;u(e,r,t).then((function(e){if(l)return;l=true;n[o]={status:"fulfilled",value:e};--s||i(n)}),(function(e){if(l)return;l=true;n[o]={status:"rejected",reason:e};--s||i(n)}))}));--s||i(n)}));if(s.error)a(s.value);return n.promise}});var na="No one promise resolved";qt({target:"Promise",stat:true,forced:ra},{any:function e(t){var r=this;var n=_("AggregateError");var i=Ri.f(r);var a=i.resolve;var s=i.reject;var o=Wi((function(){var e=ee(r.resolve);var i=[];var o=0;var l=1;var c=false;rn(t,(function(t){var f=o++;var p=false;l++;u(e,r,t).then((function(e){if(p||c)return;c=true;a(e)}),(function(e){if(p||c)return;p=true;i[f]=e;--l||s(new n(i,na))}))}));--l||s(new n(i,na))}));if(o.error)s(o.value);return i.promise}});var ia=function(){};var aa=_("Reflect","construct");var sa=/^\s*(?:class|function)\b/;var oa=b(sa.exec);var la=!sa.test(ia);var ua=function e(t){if(!X(t))return false;try{aa(ia,[],t);return true}catch(e){return false}};var ca=function e(t){if(!X(t))return false;switch(Vr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return false}try{return la||!!oa(sa,Ke(t))}catch(e){return true}};ca.sham=true;var fa=!aa||a((function(){var e;return ua(ua.call)||!ua(Object)||!ua((function(){e=true}))||e}))?ca:ua;var pa=TypeError;var da=function(e){if(fa(e))return e;throw new pa(K(e)+" is not a constructor")};var ha=we("species");var va=function(e,t){var r=Ie(e).constructor;var n;return r===undefined||j(n=Ie(r)[ha])?t:da(n)};var ya=function(e,t){Ie(e);if(N(t)&&t.constructor===e)return t;var r=Ri.f(e);var n=r.resolve;n(t);return r.promise};var ga=Gi&&Gi.prototype;var ma=!!Gi&&a((function(){ga["finally"].call({then:function(){}},(function(){}))}));qt({target:"Promise",proto:true,real:true,forced:ma},{finally:function(e){var t=va(this,_("Promise"));var r=X(e);return this.then(r?function(r){return ya(t,e()).then((function(){return r}))}:e,r?function(r){return ya(t,e()).then((function(){throw r}))}:e)}});
6if(!ie&&X(Gi)){var ba=_("Promise").prototype["finally"];if(ga["finally"]!==ba){yt(ga,"finally",ba,{unsafe:true})}}var wa=we("iterator");var Sa=false;var xa,Ea,Ta;if([].keys){Ta=[].keys();if(!("next"in Ta))Sa=true;else{Ea=er(er(Ta));if(Ea!==Object.prototype)xa=Ea}}var Oa=!N(xa)||a((function(){var e={};return xa[wa].call(e)!==e}));if(Oa)xa={};if(!X(xa[wa])){yt(xa,wa,(function(){return this}))}var ja={IteratorPrototype:xa,BUGGY_SAFARI_ITERATORS:Sa};var Ba=ja.IteratorPrototype;var ka=function(){return this};var Pa=function(e,t,r,n){var i=t+" Iterator";e.prototype=xr(Ba,{next:v(+!n,r)});Yn(e,i,false,true);Lr[i]=ka;return e};var Aa=function(e,t){return{value:e,done:t}};var Xa=we("match");var Na=function(e){var t;return N(e)&&((t=e[Xa])!==undefined?!!t:x(e)==="RegExp")};var Ca=function(){var e=Ie(this);var t="";if(e.hasIndices)t+="d";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";if(e.dotAll)t+="s";if(e.unicode)t+="u";if(e.unicodeSets)t+="v";if(e.sticky)t+="y";return t};var _a=RegExp.prototype;var Ia=function(e){var t=e.flags;return t===undefined&&!("flags"in _a)&&!pe(e,"flags")&&I(_a,e)?u(Ca,e):t};var La=b("".charAt);var Ma=b("".charCodeAt);var Fa=b("".slice);var Ha=function(e){return function(t,r){var n=an(k(t));var i=wt(r);var a=n.length;var s,o;if(i<0||i>=a)return e?"":undefined;s=Ma(n,i);return s<55296||s>56319||i+1===a||(o=Ma(n,i+1))<56320||o>57343?e?La(n,i):s:e?Fa(n,i,i+2):(s-55296<<10)+(o-56320)+65536}};var Da={codeAt:Ha(false),charAt:Ha(true)};var Ra=Da.charAt;var Wa=function(e,t,r){return t+(r?Ra(e,t).length:1)};var Ga=i.RegExp;var za=a((function(){var e=Ga("a","y");e.lastIndex=2;return e.exec("abcd")!==null}));var Ua=za||a((function(){return!Ga("a","y").sticky}));var $a=za||a((function(){var e=Ga("^r","gy");e.lastIndex=2;return e.exec("str")!==null}));var Va={BROKEN_CARET:$a,MISSED_STICKY:Ua,UNSUPPORTED_Y:za};var Ya=i.RegExp;var qa=a((function(){var e=Ya(".","s");return!(e.dotAll&&e.test("\n")&&e.flags==="s")}));var Ja=i.RegExp;var Za=a((function(){var e=Ja("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}));var Ka=ht.get;var Qa=le("native-string-replace",String.prototype.replace);var es=RegExp.prototype.exec;var ts=es;var rs=b("".charAt);var ns=b("".indexOf);var is=b("".replace);var as=b("".slice);var ss=function(){var e=/a/;var t=/b*/g;u(es,e,"a");u(es,t,"a");return e.lastIndex!==0||t.lastIndex!==0}();var os=Va.BROKEN_CARET;var ls=/()??/.exec("")[1]!==undefined;var us=ss||ls||os||qa||Za;if(us){ts=function e(t){var r=this;var n=Ka(r);var i=an(t);var a=n.raw;var s,o,l,c,f,p,d;if(a){a.lastIndex=r.lastIndex;s=u(ts,a,i);r.lastIndex=a.lastIndex;return s}var h=n.groups;var v=os&&r.sticky;var y=u(Ca,r);var g=r.source;var m=0;var b=i;if(v){y=is(y,"y","");if(ns(y,"g")===-1){y+="g"}b=as(i,r.lastIndex);if(r.lastIndex>0&&(!r.multiline||r.multiline&&rs(i,r.lastIndex-1)!=="\n")){g="(?: "+g+")";b=" "+b;m++}o=new RegExp("^(?:"+g+")",y)}if(ls){o=new RegExp("^"+g+"$(?!\\s)",y)}if(ss)l=r.lastIndex;c=u(es,v?o:r,b);if(v){if(c){c.input=as(c.input,m);c[0]=as(c[0],m);c.index=r.lastIndex;r.lastIndex+=c[0].length}else r.lastIndex=0}else if(ss&&c){r.lastIndex=r.global?c.index+c[0].length:l}if(ls&&c&&c.length>1){u(Qa,c[0],o,(function(){for(f=1;f<arguments.length-2;f++){if(arguments[f]===undefined)c[f]=undefined}}))}if(c&&h){c.groups=p=xr(null);for(f=0;f<h.length;f++){d=h[f];p[d[0]]=c[d[1]]}}return c}}var cs=ts;var fs=TypeError;var ps=function(e,t){var r=e.exec;if(X(r)){var n=u(r,e,t);if(n!==null)Ie(n);return n}if(x(e)==="RegExp")return u(cs,e,t);throw new fs("RegExp#exec called on incompatible receiver")};var ds=we("matchAll");var hs="RegExp String";var vs=hs+" Iterator";var ys=ht.set;var gs=ht.getterFor(vs);var ms=RegExp.prototype;var bs=TypeError;var ws=Cr("".indexOf);var Ss=Cr("".matchAll);var xs=!!Ss&&!a((function(){Ss("a",/./)}));var Es=Pa((function e(t,r,n,i){ys(this,{type:vs,regexp:t,string:r,global:n,unicode:i,done:false})}),hs,(function e(){var t=gs(this);if(t.done)return Aa(undefined,true);var r=t.regexp;var n=t.string;var i=ps(r,n);if(i===null){t.done=true;return Aa(undefined,true)}if(t.global){if(an(i[0])==="")r.lastIndex=Wa(n,Ot(r.lastIndex),t.unicode);return Aa(i,false)}t.done=true;return Aa(i,false)}));var Ts=function(e){var t=Ie(this);var r=an(e);var n=va(t,RegExp);var i=an(Ia(t));var a,s,o;a=new n(n===RegExp?t.source:t,i);s=!!~ws(i,"g");o=!!~ws(i,"u");a.lastIndex=Ot(t.lastIndex);return new Es(a,r,s,o)};qt({target:"String",proto:true,forced:xs},{matchAll:function e(t){var r=k(this);var n,i,a,s;if(!j(t)){if(Na(t)){n=an(k(Ia(t)));if(!~ws(n,"g"))throw new bs("`.matchAll` does not allow non-global regexes")}if(xs)return Ss(r,t);a=te(t,ds);
6if(a===undefined&&ie&&x(t)==="RegExp")a=Ts;if(a)return u(a,t,r)}else if(xs)return Ss(r,t);i=an(r);s=new RegExp(t,"g");return ie?u(Ts,s,i):s[ds](i)}});ie||ds in ms||yt(ms,ds,Ts);var Os=Math.floor;var js=b("".charAt);var Bs=b("".replace);var ks=b("".slice);var Ps=/\$([$&'`]|\d{1,2}|<[^>]*>)/g;var As=/\$([$&'`]|\d{1,2})/g;var Xs=function(e,t,r,n,i,a){var s=r+e.length;var o=n.length;var l=As;if(i!==undefined){i=ce(i);l=Ps}return Bs(a,l,(function(a,l){var u;switch(js(l,0)){case"$":return"$";case"&":return e;case"`":return ks(t,0,r);case"'":return ks(t,s);case"<":u=i[ks(l,1,-1)];break;default:var c=+l;if(c===0)return a;if(c>o){var f=Os(c/10);if(f===0)return a;if(f<=o)return n[f-1]===undefined?js(l,1):n[f-1]+js(l,1);return a}u=n[c-1]}return u===undefined?"":u}))};var Ns=we("replace");var Cs=TypeError;var _s=b("".indexOf);var Is=b("".replace);var Ls=b("".slice);var Ms=Math.max;qt({target:"String",proto:true},{replaceAll:function e(t,r){var n=k(this);var i,a,s,o,l,c,f,p,d,h;var v=0;var y="";if(!j(t)){i=Na(t);if(i){a=an(k(Ia(t)));if(!~_s(a,"g"))throw new Cs("`.replaceAll` does not allow non-global regexes")}s=te(t,Ns);if(s)return u(s,t,n,r);if(ie&&i)return Is(an(n),t,r)}o=an(n);l=an(t);c=X(r);if(!c)r=an(r);f=l.length;p=Ms(1,f);d=_s(o,l);while(d!==-1){h=c?an(r(l,d,o)):Xs(l,o,d,[],undefined,r);y+=Ls(o,v,d)+h;v=d+f;d=d+p>o.length?-1:_s(o,l,d+p)}if(v<o.length){y+=Ls(o,v)}return y}});var Fs=ht.enforce;var Hs=ht.get;var Ds=i.Int8Array;var Rs=Ds&&Ds.prototype;var Ws=i.Uint8ClampedArray;var Gs=Ws&&Ws.prototype;var zs=Ds&&er(Ds);var Us=Rs&&er(Rs);var $s=Object.prototype;var Vs=i.TypeError;var Ys=we("toStringTag");var qs=ye("TYPED_ARRAY_TAG");var Js="TypedArrayConstructor";var Zs=yn&&!!sr&&Vr(i.opera)!=="Opera";var Ks=false;var Qs,eo,to;var ro={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};var no={BigInt64Array:8,BigUint64Array:8};var io=function e(t){if(!N(t))return false;var r=Vr(t);return r==="DataView"||pe(ro,r)||pe(no,r)};var ao=function(e){var t=er(e);if(!N(t))return;var r=Hs(t);return r&&pe(r,Js)?r[Js]:ao(t)};var so=function(e){if(!N(e))return false;var t=Vr(e);return pe(ro,t)||pe(no,t)};var oo=function(e){if(so(e))return e;throw new Vs("Target is not a typed array")};var lo=function(e){if(X(e)&&(!sr||I(zs,e)))return e;throw new Vs(K(e)+" is not a typed array constructor")};var uo=function(e,t,r,n){if(!s)return;if(r)for(var a in ro){var o=i[a];if(o&&pe(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}if(!Us[e]||r){yt(Us,e,r?t:Zs&&Rs[e]||t,n)}};var co=function(e,t,r){var n,a;if(!s)return;if(sr){if(r)for(n in ro){a=i[n];if(a&&pe(a,e))try{delete a[e]}catch(e){}}if(!zs[e]||r){try{return yt(zs,e,r?t:Zs&&zs[e]||t)}catch(e){}}else return}for(n in ro){a=i[n];if(a&&(!a[e]||r)){yt(a,e,t)}}};for(Qs in ro){eo=i[Qs];to=eo&&eo.prototype;if(to)Fs(to)[Js]=eo;else Zs=false}for(Qs in no){eo=i[Qs];to=eo&&eo.prototype;if(to)Fs(to)[Js]=eo}if(!Zs||!X(zs)||zs===Function.prototype){zs=function e(){throw new Vs("Incorrect invocation")};if(Zs)for(Qs in ro){if(i[Qs])sr(i[Qs],zs)}}if(!Zs||!Us||Us===$s){Us=zs.prototype;if(Zs)for(Qs in ro){if(i[Qs])sr(i[Qs].prototype,Us)}}if(Zs&&er(Gs)!==Us){sr(Gs,Us)}if(s&&!pe(Us,Ys)){Ks=true;gn(Us,Ys,{configurable:true,get:function(){return N(this)?this[qs]:undefined}});for(Qs in ro)if(i[Qs]){ze(i[Qs],qs,Qs)}}var fo={NATIVE_ARRAY_BUFFER_VIEWS:Zs,TYPED_ARRAY_TAG:Ks&&qs,aTypedArray:oo,aTypedArrayConstructor:lo,exportTypedArrayMethod:uo,exportTypedArrayStaticMethod:co,getTypedArrayConstructor:ao,isView:io,isTypedArray:so,TypedArray:zs,TypedArrayPrototype:Us};var po=fo.NATIVE_ARRAY_BUFFER_VIEWS;var ho=i.ArrayBuffer;var vo=i.Int8Array;var yo=!po||!a((function(){vo(1)}))||!a((function(){new vo(-1)}))||!$i((function(e){new vo;new vo(null);new vo(1.5);new vo(e)}),true)||a((function(){return new vo(new ho(2),1,undefined).length!==1}));var go=Math.floor;var mo=Number.isInteger||function e(t){return!N(t)&&isFinite(t)&&go(t)===t};var bo=RangeError;var wo=function(e){var t=wt(e);if(t<0)throw new bo("The argument can't be less than 0");return t};var So=RangeError;var xo=function(e,t){var r=wo(e);if(r%t)throw new So("Wrong offset");return r};var Eo=Math.round;var To=function(e){var t=Eo(e);return t<0?0:t>255?255:t&255};var Oo=function(e){var t=Vr(e);return t==="BigInt64Array"||t==="BigUint64Array"};var jo=TypeError;var Bo=function(e){var t=Ee(e,"number");if(typeof t=="number")throw new jo("Can't convert number to bigint");return BigInt(t)};var ko=fo.aTypedArrayConstructor;var Po=function e(t){var r=da(this);var n=ce(t);var i=arguments.length;var a=i>1?arguments[1]:undefined;var s=a!==undefined;var o=qr(n);var l,c,f,p,d,h,v,y;if(o&&!Hr(o)){v=Zr(n,o);y=v.next;n=[];while(!(h=u(y,v)).done){n.push(h.value)}}if(s&&i>2){a=Ir(a,arguments[2])}c=jt(n);f=new(ko(r))(c);p=Oo(f);for(l=0;c>l;l++){d=s?a(n[l],l):n[l];f[l]=p?Bo(d):+d}return f};var Ao=Array.isArray||function e(t){return x(t)==="Array"};var Xo=we("species");var No=Array;var Co=function(e){var t;if(Ao(e)){t=e.constructor;if(fa(t)&&(t===No||Ao(t.prototype)))t=undefined;else if(N(t)){t=t[Xo];if(t===null)t=undefined}}return t===undefined?No:t};var _o=function(e,t){return new(Co(e))(t===0?0:t)};var Io=b([].push);var Lo=function(e){var t=e===1;var r=e===2;var n=e===3;var i=e===4;var a=e===6;var s=e===7;var o=e===5||a;return function(l,u,c,f){var p=ce(l);var d=O(p);var h=jt(d);var v=Ir(u,c);var y=0;var g=f||_o;var m=t?g(l,h):r||s?g(l,0):undefined;var b,w;for(;h>y;y++)if(o||y in d){b=d[y];w=v(b,y,p);if(e){if(t)m[y]=w;else if(w)switch(e){case 3:return true;case 5:return b;case 6:return y;case 2:Io(m,b)}else switch(e){case 4:return false;case 7:Io(m,b)}}}return a?-1:n||i?i:m}};var Mo={forEach:Lo(0),map:Lo(1),filter:Lo(2),some:Lo(3),every:Lo(4),find:Lo(5),findIndex:Lo(6),filterReject:Lo(7)};var Fo=we("species");var Ho=function(e){var t=_(e);if(s&&t&&!t[Fo]){gn(t,Fo,{configurable:true,get:function(){return this}})}};var Do=function(e,t,r){var n=0;var i=arguments.length>2?r:jt(t);var a=new e(i);while(i>n)a[n]=t[n++];return a};var Ro=r((function(e){var t=It.f;
6var r=Mo.forEach;var n=ht.get;var a=ht.set;var o=ht.enforce;var l=Ge.f;var c=Xe.f;var f=i.RangeError;var p=Pi.ArrayBuffer;var d=p.prototype;var h=Pi.DataView;var y=fo.NATIVE_ARRAY_BUFFER_VIEWS;var g=fo.TYPED_ARRAY_TAG;var m=fo.TypedArray;var b=fo.TypedArrayPrototype;var w=fo.isTypedArray;var S="BYTES_PER_ELEMENT";var x="Wrong length";var E=function(e,t){gn(e,t,{configurable:true,get:function(){return n(this)[t]}})};var T=function(e){var t;return I(d,e)||(t=Vr(e))==="ArrayBuffer"||t==="SharedArrayBuffer"};var O=function(e,t){return w(e)&&!J(t)&&t in e&&mo(+t)&&t>=0};var j=function e(t,r){r=Te(r);return O(t,r)?v(2,t[r]):c(t,r)};var B=function e(t,r,n){r=Te(r);if(O(t,r)&&N(n)&&pe(n,"value")&&!pe(n,"get")&&!pe(n,"set")&&!n.configurable&&(!pe(n,"writable")||n.writable)&&(!pe(n,"enumerable")||n.enumerable)){t[r]=n.value;return t}return l(t,r,n)};if(s){if(!y){Xe.f=j;Ge.f=B;E(b,"buffer");E(b,"byteOffset");E(b,"byteLength");E(b,"length")}qt({target:"Object",stat:true,forced:!y},{getOwnPropertyDescriptor:j,defineProperty:B});e.exports=function(e,s,c){var d=e.match(/\d+/)[0]/8;var v=e+(c?"Clamped":"")+"Array";var E="get"+e;var O="set"+e;var j=i[v];var B=j;var k=B&&B.prototype;var P={};var A=function(e,t){var r=n(e);return r.view[E](t*d+r.byteOffset,true)};var X=function(e,t,r){var i=n(e);i.view[O](t*d+i.byteOffset,c?To(r):r,true)};var C=function(e,t){l(e,t,{get:function(){return A(this,t)},set:function(e){return X(this,t,e)},enumerable:true})};if(!y){B=s((function(e,t,r,n){wn(e,k);var i=0;var s=0;var o,l,c;if(!N(t)){c=xn(t);l=c*d;o=new p(l)}else if(T(t)){o=t;s=xo(r,d);var v=t.byteLength;if(n===undefined){if(v%d)throw new f(x);l=v-s;if(l<0)throw new f(x)}else{l=Ot(n)*d;if(l+s>v)throw new f(x)}c=l/d}else if(w(t)){return Do(B,t)}else{return u(Po,B,t)}a(e,{buffer:o,byteOffset:s,byteLength:l,length:c,view:new h(o)});while(i<c)C(e,i++)}));if(sr)sr(B,m);k=B.prototype=xr(b)}else if(yo){B=s((function(e,t,r,n){wn(e,k);return Un(function(){if(!N(t))return new j(xn(t));if(T(t))return n!==undefined?new j(t,xo(r,d),n):r!==undefined?new j(t,xo(r,d)):new j(t);if(w(t))return Do(B,t);return u(Po,B,t)}(),e,B)}));if(sr)sr(B,m);r(t(j),(function(e){if(!(e in B)){ze(B,e,j[e])}}));B.prototype=k}if(k.constructor!==B){ze(k,"constructor",B)}o(k).TypedArrayConstructor=B;if(g){ze(k,g,v)}var _=B!==j;P[v]=B;qt({global:true,constructor:true,forced:_,sham:!y},P);if(!(S in B)){ze(B,S,d)}if(!(S in k)){ze(k,S,d)}Ho(v)}}else e.exports=function(){}}));Ro("Float32",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Float64",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Int8",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Int16",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Int32",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Uint8",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Uint8",(function(e){return function t(r,n,i){return e(this,r,n,i)}}),true);Ro("Uint16",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));Ro("Uint32",(function(e){return function t(r,n,i){return e(this,r,n,i)}}));var Wo=fo.aTypedArray;var Go=fo.exportTypedArrayMethod;Go("at",(function e(t){var r=Wo(this);var n=jt(r);var i=wt(t);var a=i>=0?i:n+i;return a<0||a>=n?undefined:r[a]}));var zo=fo.exportTypedArrayStaticMethod;zo("from",Po,yo);var Uo=fo.aTypedArrayConstructor;var $o=fo.exportTypedArrayStaticMethod;$o("of",(function e(){var t=0;var r=arguments.length;var n=new(Uo(this))(r);while(r>t)n[t]=arguments[t++];return n}),yo);var Vo=Math.floor;var Yo=function(e,t){var r=e.length;if(r<8){var n=1;var i,a;while(n<r){a=n;i=e[n];while(a&&t(e[a-1],i)>0){e[a]=e[--a]}if(a!==n++)e[a]=i}}else{var s=Vo(r/2);var o=Yo(zn(e,0,s),t);var l=Yo(zn(e,s),t);var u=o.length;var c=l.length;var f=0;var p=0;while(f<u||p<c){e[f+p]=f<u&&p<c?t(o[f],l[p])<=0?o[f++]:l[p++]:f<u?o[f++]:l[p++]}}return e};var qo=Yo;var Jo=F.match(/firefox\/(\d+)/i);var Zo=!!Jo&&+Jo[1];var Ko=/MSIE|Trident/.test(F);var Qo=F.match(/AppleWebKit\/(\d+)\./);var el=!!Qo&&+Qo[1];var tl=fo.aTypedArray;var rl=fo.exportTypedArrayMethod;var nl=i.Uint16Array;var il=nl&&Cr(nl.prototype.sort);var al=!!il&&!(a((function(){il(new nl(2),null)}))&&a((function(){il(new nl(2),{})})));var sl=!!il&&!a((function(){if(U)return U<74;if(Zo)return Zo<67;if(Ko)return true;if(el)return el<602;var e=new nl(516);var t=Array(516);var r,n;for(r=0;r<516;r++){n=r%4;e[r]=515-r;t[r]=r-2*n+3}il(e,(function(e,t){return(e/4|0)-(t/4|0)}));for(r=0;r<516;r++){if(e[r]!==t[r])return true}}));var ol=function(e){return function(t,r){if(e!==undefined)return+e(t,r)||0;if(r!==r)return-1;if(t!==t)return 1;if(t===0&&r===0)return 1/t>0&&1/r<0?1:-1;return t>r}};rl("sort",(function e(t){if(t!==undefined)ee(t);if(sl)return il(this,t);return qo(tl(this),ol(t))}),!sl||al);var ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};var ul=Be("span").classList;var cl=ul&&ul.constructor&&ul.constructor.prototype;var fl=cl===Object.prototype?undefined:cl;
6var pl=Je.PROPER;var dl=Je.CONFIGURABLE;var hl=ja.IteratorPrototype;var vl=ja.BUGGY_SAFARI_ITERATORS;var yl=we("iterator");var gl="keys";var ml="values";var bl="entries";var wl=function(){return this};var Sl=function(e,t,r,n,i,a,s){Pa(r,t,n);var o=function(e){if(e===i&&d)return d;if(!vl&&e&&e in f)return f[e];switch(e){case gl:return function t(){return new r(this,e)};case ml:return function t(){return new r(this,e)};case bl:return function t(){return new r(this,e)}}return function(){return new r(this)}};var l=t+" Iterator";var c=false;var f=e.prototype;var p=f[yl]||f["@@iterator"]||i&&f[i];var d=!vl&&p||o(i);var h=t==="Array"?f.entries||p:p;var v,y,g;if(h){v=er(h.call(new e));if(v!==Object.prototype&&v.next){if(er(v)!==hl){if(sr){sr(v,hl)}else if(!X(v[yl])){yt(v,yl,wl)}}Yn(v,l,true,true)}}if(pl&&i===ml&&p&&p.name!==ml){if(dl){ze(f,"name",ml)}else{c=true;d=function e(){return u(p,this)}}}if(i){y={values:o(ml),keys:a?d:o(gl),entries:o(bl)};if(s)for(g in y){if(vl||c||!(g in f)){yt(f,g,y[g])}}else qt({target:t,proto:true,forced:vl||c},y)}if(f[yl]!==d){yt(f,yl,d,{name:i})}Lr[t]=d;return y};var xl=Ge.f;var El="Array Iterator";var Tl=ht.set;var Ol=ht.getterFor(El);var jl=Sl(Array,"Array",(function(e,t){Tl(this,{type:El,target:P(e),index:0,kind:t})}),(function(){var e=Ol(this);var t=e.target;var r=e.index++;if(!t||r>=t.length){e.target=null;return Aa(undefined,true)}switch(e.kind){case"keys":return Aa(r,false);case"values":return Aa(t[r],false)}return Aa([r,t[r]],false)}),"values");var Bl=Lr.Arguments=Lr.Array;vn("keys");vn("values");vn("entries");if(!ie&&s&&Bl.name!=="values")try{xl(Bl,"name",{value:"values"})}catch(e){}var kl=we("iterator");var Pl=jl.values;var Al=function(e,t){if(e){if(e[kl]!==Pl)try{ze(e,kl,Pl)}catch(t){e[kl]=Pl}Yn(e,t,true);if(ll[t])for(var r in jl){if(e[r]!==jl[r])try{ze(e,r,jl[r])}catch(t){e[r]=jl[r]}}}};for(var Xl in ll){Al(i[Xl]&&i[Xl].prototype,Xl)}Al(fl,"DOMTokenList");var Nl=Function.prototype;var Cl=Nl.apply;var _l=Nl.call;var Il=typeof Reflect=="object"&&Reflect.apply||(o?_l.bind(Cl):function(){return _l.apply(Cl,arguments)});var Ll=TypeError;var Ml=function(e,t){if(e<t)throw new Ll("Not enough arguments");return e};var Fl=/(?:ipad|iphone|ipod).*applewebkit/i.test(F);var Hl=Yi==="NODE";var Dl=i.setImmediate;var Rl=i.clearImmediate;var Wl=i.process;var Gl=i.Dispatch;var zl=i.Function;var Ul=i.MessageChannel;var $l=i.String;var Vl=0;var Yl={};var ql="onreadystatechange";var Jl,Zl,Kl,Ql;a((function(){Jl=i.location}));var eu=function(e){if(pe(Yl,e)){var t=Yl[e];delete Yl[e];t()}};var tu=function(e){return function(){eu(e)}};var ru=function(e){eu(e.data)};var nu=function(e){i.postMessage($l(e),Jl.protocol+"//"+Jl.host)};if(!Dl||!Rl){Dl=function e(t){Ml(arguments.length,1);var r=X(t)?t:zl(t);var n=zn(arguments,1);Yl[++Vl]=function(){Il(r,undefined,n)};Zl(Vl);return Vl};Rl=function e(t){delete Yl[t]};if(Hl){Zl=function(e){Wl.nextTick(tu(e))}}else if(Gl&&Gl.now){Zl=function(e){Gl.now(tu(e))}}else if(Ul&&!Fl){Kl=new Ul;Ql=Kl.port2;Kl.port1.onmessage=ru;Zl=Ir(Ql.postMessage,Ql)}else if(i.addEventListener&&X(i.postMessage)&&!i.importScripts&&Jl&&Jl.protocol!=="file:"&&!a(nu)){Zl=nu;i.addEventListener("message",ru,false)}else if(ql in Be("script")){Zl=function(e){cr.appendChild(Be("script"))[ql]=function(){cr.removeChild(this);eu(e)}}}else{Zl=function(e){setTimeout(tu(e),0)}}}var iu={set:Dl,clear:Rl};var au=iu.clear;qt({global:true,bind:true,enumerable:true,forced:i.clearImmediate!==au},{clearImmediate:au});var su=i.Function;var ou=/MSIE .\./.test(F)||Yi==="BUN"&&function(){var e=i.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();var lu=function(e,t){var r=t?2:1;return ou?function(n,i){var a=Ml(arguments.length,1)>r;var s=X(n)?n:su(n);var o=a?zn(arguments,r):[];var l=a?function(){Il(s,this,o)}:s;return t?e(l,i):e(l)}:e};var uu=iu.set;var cu=i.setImmediate?lu(uu,false):uu;qt({global:true,bind:true,enumerable:true,forced:i.setImmediate!==cu},{setImmediate:cu});var fu=Object.getOwnPropertyDescriptor;var pu=function(e){if(!s)return i[e];var t=fu(i,e);return t&&t.value};var du=function(){this.head=null;this.tail=null};du.prototype={add:function(e){var t={item:e,next:null};var r=this.tail;if(r)r.next=t;else this.head=t;this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;if(t===null)this.tail=null;return e.item}}};var hu=du;var vu=/ipad|iphone|ipod/i.test(F)&&typeof Pebble!="undefined";var yu=/web0s(?!.*chrome)/i.test(F);var gu=iu.set;var mu=i.MutationObserver||i.WebKitMutationObserver;var bu=i.document;var wu=i.process;var Su=i.Promise;var xu=pu("queueMicrotask");var Eu,Tu,Ou,ju,Bu;if(!xu){var ku=new hu;var Pu=function(){var e,t;if(Hl&&(e=wu.domain))e.exit();while(t=ku.get())try{t()}catch(e){if(ku.head)Eu();throw e}if(e)e.enter()};if(!Fl&&!Hl&&!yu&&mu&&bu){Tu=true;Ou=bu.createTextNode("");new mu(Pu).observe(Ou,{characterData:true});Eu=function(){Ou.data=Tu=!Tu}}else if(!vu&&Su&&Su.resolve){ju=Su.resolve(undefined);ju.constructor=Su;Bu=Ir(ju.then,ju);Eu=function(){Bu(Pu)}}else if(Hl){Eu=function(){wu.nextTick(Pu)}}else{gu=Ir(gu,i);Eu=function(){gu(Pu)}}xu=function(e){if(!ku.head)Eu();ku.add(e)}}var Au=xu;var Xu=a((function(){return s&&Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length!==1}));qt({global:true,enumerable:true,dontCallGetSet:true,forced:Xu},{queueMicrotask:function e(t){Ml(arguments.length,1);Au(ee(t))}})})(this.window=this.window||{});if(window._main_polyfill_core){console.warn("main.polyfill.core is loaded more than once on this page")}window._main_polyfill_core=true;(function(e){"use strict";var t=window.BX;window.BX=function(e){if(window.BX.type.isNotEmptyString(e)){return document.getElementById(e)}if(window.BX.type.isDomNode(e)){return e}if(window.BX.type.isFunction(e)){return window.BX.ready(e)}return null};if(t){Object.keys(t).forEach((e=>{window.BX[e]=t[e]}))}e=window.BX;function r(e){return Object.prototype.toString.call(e)}const n=Function.prototype.toString.call(Object);let i=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"isString",value:function e(t){return typeof t==="string"}},{key:"isStringFilled",value:function t(r){return e.isString(r)&&r!==""}},{key:"isFunction",value:function e(t){return typeof t==="function"}},{key:"isObject",value:function e(t){return!!t&&(typeof t==="object"||typeof t==="function")}},{key:"isObjectLike",value:function e(t){return!!t&&typeof t==="object"}},{key:"isPlainObject",value:function t(i){if(!e.isObjectLike(i)||r(i)!=="[object Object]"){return false}const a=Object.getPrototypeOf(i);if(a===null){return true}const s=a.hasOwnProperty("constructor")&&a.constructor;return typeof s==="function"&&Function.prototype.toString.call(s)===n}},{key:"isBoolean",value:function e(t){return t===true||t===false}},{key:"isNumber",value:function e(t){return!Number.isNaN(t)&&typeof t==="number"}},{key:"isInteger",value:function t(r){return e.isNumber(r)&&r%1===0}},{key:"isFloat",value:function t(r){return e.isNumber(r)&&!e.isInteger(r)}},{key:"isNil",value:function e(t){return t===null||t===undefined}},{key:"isArray",value:function t(r){return!e.isNil(r)&&Array.isArray(r)}},{key:"isArrayFilled",value:function t(r){return e.isArray(r)&&r.length>0}},{key:"isArrayLike",value:function t(r){return!e.isNil(r)&&!e.isFunction(r)&&r.length>-1&&r.length<=Number.MAX_SAFE_INTEGER}},{key:"isDate",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object Date]"}},{key:"isDomNode",value:function t(r){return e.isObjectLike(r)&&!e.isPlainObject(r)&&"nodeType"in r}},{key:"isElementNode",value:function t(r){return e.isDomNode(r)&&r.nodeType===Node.ELEMENT_NODE}},{key:"isEventTargetLike",value:function t(r){return e.isObject(r)&&e.isFunction(r.addEventListener)&&e.isFunction(r.removeEventListener)&&e.isFunction(r.dispatchEvent)}},{key:"isTextNode",value:function t(r){return e.isDomNode(r)&&r.nodeType===Node.TEXT_NODE}},{key:"isMap",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object Map]"}},{key:"isSet",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object Set]"}},{key:"isWeakMap",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object WeakMap]"}},{key:"isWeakSet",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object WeakSet]"}},{key:"isPrototype",value:function e(t){return(typeof(t&&t.constructor)==="function"&&t.constructor.prototype||Ob
6ject.prototype)===t}},{key:"isRegExp",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object RegExp]"}},{key:"isNull",value:function e(t){return t===null}},{key:"isUndefined",value:function e(t){return typeof t==="undefined"}},{key:"isArrayBuffer",value:function t(n){return e.isObjectLike(n)&&r(n)==="[object ArrayBuffer]"}},{key:"isTypedArray",value:function t(n){const i=/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)]$/;return e.isObjectLike(n)&&i.test(r(n))}},{key:"isBlob",value:function t(r){return e.isObjectLike(r)&&e.isNumber(r.size)&&e.isString(r.type)&&e.isFunction(r.slice)}},{key:"isFile",value:function t(r){return e.isBlob(r)&&e.isString(r.name)&&(e.isNumber(r.lastModified)||e.isObjectLike(r.lastModifiedDate))}},{key:"isFormData",value:function e(t){return t instanceof FormData}},{key:"isJsonValue",value:function t(r){return e.isPlainObject(r)||e.isString(r)||e.isNumber(r)||e.isBoolean(r)||e.isNull(r)||e.isArray(r)}}]);return e}();let a=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getClass",value:function e(t){if(i.isString(t)&&!!t){let e=null;let r=window;const n=t.split(".");for(let t=0;t<n.length;t+=1){const i=n[t];if(!r[i]){return null}r=r[i];e=r}return e}if(i.isFunction(t)){return t}return null}},{key:"namespace",value:function e(t){let r=t.split(".");let n=window.BX;if(r[0]==="BX"){r=r.slice(1)}for(let e=0;e<r.length;e+=1){if(i.isUndefined(n[r[e]])){n[r[e]]={}}n=n[r[e]]}return n}}]);return e}();const s=/[&<>'"]/g;const o=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g;const l={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"};const u={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"'};let c=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"encode",value:function e(t){if(i.isString(t)){return t.replace(s,(e=>l[e]))}return t}},{key:"decode",value:function e(t){if(i.isString(t)){return t.replace(o,(e=>u[e]))}return t}},{key:"getRandom",value:function e(t=8){return[...Array(t)].map((()=>(~~(Math.random()*36)).toString(36))).join("")}},{key:"toNumber",value:function e(t){const r=Number.parseFloat(t);if(i.isNumber(r)){return r}return 0}},{key:"toInteger",value:function t(r){return e.toNumber(Number.parseInt(r,10))}},{key:"toBoolean",value:function e(t,r=[]){const n=i.isString(t)?t.toLowerCase():t;return["true","y","1",1,true,...r].includes(n)}},{key:"toCamelCase",value:function e(t){if(!i.isStringFilled(t)){return t}const r=/[-_\s]+(.)?/g;if(!r.test(t)){return t.match(/^[A-Z]+$/)?t.toLowerCase():t[0].toLowerCase()+t.slice(1)}t=t.toLowerCase();t=t.replace(r,(function(e,t){return t?t.toUpperCase():""}));return t[0].toLowerCase()+t.substr(1)}},{key:"toPascalCase",value:function e(t){if(!i.isStringFilled(t)){return t}return this.capitalize(this.toCamelCase(t))}},{key:"toKebabCase",value:function e(t){if(!i.isStringFilled(t)){return t}const r=t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);if(!r){return t}return r.map((e=>e.toLowerCase())).join("-")}},{key:"capitalize",value:function e(t){if(!i.isStringFilled(t)){return t}return t[0].toUpperCase()+t.substr(1)}}]);return e}();const f={mousewheel:["DOMMouseScroll"],bxchange:["change","cut","paste","drop","keyup"],animationend:["animationend","oAnimationEnd","webkitAnimationEnd","MSAnimationEnd"],transitionend:["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],fullscreenchange:["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],fullscreenerror:["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"]};let p=function(){function e(){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"registry",new WeakMap)}babelHelpers.createClass(e,[{key:"set",value:function e(t,r,n){if(!i.isEventTargetLike(t)){return}const a=this.get(t);if(!i.isSet(a[r])){a[r]=new Set}a[r].add(n);this.registry.set(t,a)}},{key:"get",value:function e(t){return this.registry.get(t)||{}}},{key:"has",value:function e(t,r,n){if(r&&n){return this.registry.has(t)&&this.registry.get(t)[r].has(n)}return this.registry.has(t)}},{key:"delete",value:function e(t,r,n){if(!i.isEventTargetLike(t)){return}if(i.isString(r)&&i.isFunction(n)){const e=this.registry.get(t);if(i.isPlainObject(e)&&i.isSet(e[r])){e[r].delete(n)}return}if(i.isString(r)){const e=this.registry.get(t);if(i.isPlainObject(e)&&i.isSet(e[r])){e[r]=new Set}return}this.registry.delete(t)}}]);return e}();var d=new p;function h(e){let t=false;try{const r=Object.defineProperty({},e,{get(){t=true;return undefined}});window.addEventListener("test",null,r)}catch(e){}return t}function v(e){if(!i.isPlainObject(e)){return e}return Object.keys(e).reduce(((t,r)=>{if(h(r)){t[r]=e[r]}return t}),{})}function y(e,t,r,n){if(!i.isEventTargetLike(e)){return}const a=v(n);if(t in f){f[t].forEach((n=>{e.addEventListener(n,r,a);d.set(e,t,r)}));return}e.addEventListener(t,r,a);d.set(e,t,r)}function g(e,t,r,n){if(!i.isEventTargetLike(e)){return}const a=v(n);if(t in f){f[t].forEach((t=>{e.removeEventListener(t,r,a);d.delete(e,t,r)}));return}e.removeEventListener(t,r,a);d.delete(e,t,r)}function m(e,t){const r=d.get(e);Object.keys(r).forEach((n=>
6{r[n].forEach((r=>{if(!i.isString(t)||t===n){g(e,n,r)}}))}))}function b(e,t,r,n){const i=function i(...a){g(e,t,i,n);r(...a)};y(e,t,i,n)}let w=true;function S(){w=true}function x(){w=false}function E(){return w}function T(...e){if(E()&&i.isObject(window.console)){if(i.isFunction(window.console.log)){window.console.log("BX.debug: ",e.length>0?e:e[0]);if(e[0]instanceof Error&&e[0].stack){window.console.log("BX.debug error stack trace",e[0].stack)}}if(i.isFunction(window.console.trace)){console.trace()}}}var O=Object.freeze({get debugState(){return w},enableDebug:S,disableDebug:x,isDebugEnabled:E,default:T});const j=new Map;const B="main.bitrix.main.controller.loadext.getextensions";function k(e){return new Promise(((t,r)=>{const n={e:((e===null||e===void 0?void 0:e.extension)||[]).join(",")};BX.ajax.runAction(B,{data:e,getParameters:n}).then((e=>{t(e===null||e===void 0?void 0:e.data)})).catch((e=>{r(e)}))}))}function P(e,t){if(t.isInternal){e.push(t.JS)}return e}function A(e,t){if(!t.isInternal){e.push(t.JS)}return e}function X(e,t){if(i.isString(t)&&t!==""){e.push(t)}return e}function N(e){if(i.isStringFilled(e)){const t=e.match(/<script type="extension\/settings" \b[^>]*>([\s\S]*?)<\/script>/g);if(i.isArrayFilled(t)){return t.map((e=>{const[,t]=e.match(/data-extension="(.[a-z0-9_.-]+)"/);return{extension:t,script:e}}))}}return[]}function C(e){const t=i.isArray(e)?e:[e];if(!t.length){return Promise.resolve()}return new Promise(((e,r)=>{BX.load(t,e,document,r)}))}function _(e){const t=window.BX.processHTML(e);const r=[];const n=[];t.SCRIPT.reduce(((e,t)=>P(e,t)),[]).forEach((e=>{if(e.startsWith("BX.Runtime.registerExtension")){n.push(e)}else{r.push(e)}}));return{inlinePreScripts:r,inlineAfterScripts:n,externalScripts:t.SCRIPT.reduce(((e,t)=>A(e,t)),[]),externalStyles:t.STYLE.reduce(((e,t)=>X(e,t)),[]),settingsScripts:N(t.HTML)}}function I(){return new Promise((e=>{fe.bindOnce(window,"online",(()=>e()))}))}const L=[1e3,3e3,5e3];async function M(e,t){for(let r=0;r<=L.length;r++){try{return await t()}catch{if(navigator.onLine===false){console.warn(`Wait online for load ${e.join(", ")}`);await I();r--;continue}if(r===L.length){throw new Error(`${e.join(", ")} loading failed...`)}const t=L[r];const n=r+1;console.warn(`Retry load #${n}: ${e.join(", ")}`);await new Promise((e=>{setTimeout(e,t)}))}}throw new Error("Unexpected end of retry loop")}async function F(e){var t;const r=[...e.keys()];const n=(t=await M(r,(()=>k({extension:r}))))!==null&&t!==void 0?t:[];n.forEach((t=>{var n;const i=(n=t.html)!==null&&n!==void 0?n:"";const a=_(i);a.settingsScripts.forEach((({script:e})=>{document.body.insertAdjacentHTML("beforeend",e)}));a.inlinePreScripts.forEach((e=>{window.BX.evalGlobal(e)}));const s=e.get(t.extension);void Promise.all([M(r,(()=>C(a.externalScripts))),M(r,(()=>C(a.externalStyles)))]).then((()=>{var e,r;a.inlineAfterScripts.forEach((e=>{window.BX.evalGlobal(e)}));const n=(e=t===null||t===void 0?void 0:(r=t.config)===null||r===void 0?void 0:r.namespace)!==null&&e!==void 0?e:"window";s.resolve(n)})).catch((e=>{s.reject(e)}))}))}const H=new Map;let D=null;async function R(...e){if(i.isNumber(D)){clearTimeout(D)}const t=e.flat();const r=t.filter((e=>!j.has(e)));r.forEach((e=>{let t=null;let r=null;const n={promise:new Promise(((e,n)=>{t=e;r=n})),resolve:t,reject:r};j.set(e,n.promise);H.set(e,n)}));D=setTimeout((()=>{if(H.size>0){void F(new Map(H.entries()));H.clear()}}));const n=await Promise.all(t.map((e=>j.get(e))));return n.reduce(((e,t)=>({...e,...a.getClass(t)})),{})}const W=["[object Object]","[object Array]","[object RegExp]","[object Arguments]","[object Date]","[object Error]","[object Map]","[object Set]","[object ArrayBuffer]","[object DataView]","[object Float32Array]","[object Float64Array]","[object Int8Array]","[object Int16Array]","[object Int32Array]","[object Uint8Array]","[object Uint16Array]","[object Uint32Array]","[object Uint8ClampedArray]"];function G(e){const t=i.isObjectLike(e)&&W.includes(r(e));return t||i.isDomNode(e)}function z(e,t){if(t.has(e)){return t.get(e)}if(G(e)){if(i.isArray(e)){const r=Array.from(e);t.set(e,r);e.forEach(((e,n)=>
6{r[n]=z(e,t)}));return t.get(e)}if(i.isDomNode(e)){return e.cloneNode(true)}if(i.isMap(e)){const r=new Map;t.set(e,r);e.forEach(((e,n)=>{r.set(z(n,t),z(e,t))}));return r}if(i.isSet(e)){const r=new Set;t.set(e,r);e.forEach((e=>{r.add(z(e,t))}));return r}if(i.isDate(e)){return new Date(e)}if(i.isRegExp(e)){const t=/\w*$/;const r=t.exec(e);let n=new RegExp(e.source);if(r&&i.isArray(r)){n=new RegExp(e.source,r[0])}n.lastIndex=e.lastIndex;return n}const r=Object.getPrototypeOf(e);const n=Object.assign(Object.create(r),e);t.set(e,n);Object.keys(e).forEach((r=>{n[r]=z(e[r],t)}));return n}return e}function U(e){return z(e,new WeakMap)}function $(e,t){return Object.entries(t).reduce(((e,[t,r])=>{if(!i.isDomNode(e[t])&&i.isObjectLike(e[t])&&i.isObjectLike(r)){e[t]=$(e[t],r);return e}e[t]=r;return e}),e)}function V(e,t=[]){return(r,n)=>{const a=e[0];const s=t[0]||"asc";if(i.isUndefined(a)){return 0}let o=r[a];let l=n[a];if(i.isString(o)&&i.isString(l)){o=o.toLowerCase();l=l.toLowerCase()}if(o<l){return s==="asc"?-1:1}if(o>l){return s==="asc"?1:-1}return V(e.slice(1),t.slice(1))(r,n)}}function Y(e){if(!j.has(e.name)){var t;const r=(t=e===null||e===void 0?void 0:e.namespace)!==null&&t!==void 0?t:"window";j.set(e.name,Promise.resolve(r))}}let q=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"debounce",value:function e(t,r=0,n=null){let a;return function e(...s){if(i.isNumber(a)){clearTimeout(a)}a=setTimeout((()=>{t.apply(n||this,s)}),r)}}},{key:"throttle",value:function e(t,r=0,n=null){let i=0;let a;return function e(...s){a=true;if(!i){const e=function e(){if(a){t.apply(n||this,s);a=false;i=setTimeout(e,r)}else{i=null}};e()}}}},{key:"html",value:function e(t,r,n={}){if(i.isNil(r)&&i.isDomNode(t)){return t.innerHTML}const a=BX.processHTML(r);const s=a.STYLE.reduce(X,[]);const o=a.SCRIPT.reduce(A,[]);const l=a.SCRIPT.reduce(P,[]);if(i.isDomNode(t)){if(n.htmlFirst||!o.length&&!s.length){if(n.useAdjacentHTML){t.insertAdjacentHTML("beforeend",a.HTML)}else{t.innerHTML=a.HTML}}}return Promise.all([C(o),C(s)]).then((()=>
6{if(i.isDomNode(t)&&(o.length>0||s.length>0)){if(n.useAdjacentHTML){t.insertAdjacentHTML("beforeend",a.HTML)}else{t.innerHTML=a.HTML}}l.forEach((e=>BX.evalGlobal(e)));if(i.isFunction(n.callback)){n.callback()}}))}},{key:"merge",value:function e(...t){if(i.isArray(t[0])){t.unshift([])}else if(i.isObject(t[0])){t.unshift({})}return t.reduce(((e,t)=>$(e,t)),t[0])}},{key:"orderBy",value:function e(t,r=[],n=[]){const i=V(r,n);return Object.values(t).sort(i)}},{key:"destroy",value:function e(t,r="Object is destroyed"){if(i.isObject(t)){const e=()=>{throw new Error(r)};const n=Object.keys(t);const a=(()=>{const e=Object.getPrototypeOf(t);if(i.isObject(e)){return Object.getOwnPropertyNames(e)}return[]})();const s=[...new Set([...n,...a])];s.filter((e=>{const r=Object.getOwnPropertyDescriptor(t,e);return!/__(.+)__/.test(e)&&(!i.isObject(r)||r.configurable===true)})).forEach((r=>{Object.defineProperty(t,r,{get:e,set:e,configurable:false})}));Object.setPrototypeOf(t,null)}}}]);return e}();babelHelpers.defineProperty(q,"debug",T);babelHelpers.defineProperty(q,"loadExtension",R);babelHelpers.defineProperty(q,"registerExtension",Y);babelHelpers.defineProperty(q,"clone",U);const J=Symbol.for("BX.BaseError.isError");let Z=function(){function e(t,r,n){babelHelpers.classCallCheck(this,e);this[J]=true;this.message="";this.code=null;this.customData=null;this.setMessage(t);this.setCode(r);this.setCustomData(n)}babelHelpers.createClass(e,[{key:"getMessage",value:function e(){return this.message}},{key:"setMessage",value:function e(t){if(i.isString(t)){this.message=t}return this}},{key:"getCode",value:function e(){return this.code}},{key:"setCode",value:function e(t){if(i.isStringFilled(t)||t===null){this.code=t}return this}},{key:"getCustomData",value:function e(){return this.customData}},{key:"setCustomData",value:function e(t){if(!i.isUndefined(t)){this.customData=t}return this}},{key:"toString",value:function e(){const t=this.getCode();const r=this.getMessage();if(!i.isStringFilled(t)&&!i.isStringFilled(r)){return""}else if(!i.isStringFilled(t)){return`Error: ${r}`}else if(!i.isStringFilled(r)){return t}else{return`${t}: ${r}`}}}],[{key:"isError",value:function e(t){return i.isObject(t)&&t[J]===true}}]);return e}();let K=function(){function e(t={data:{}}){babelHelpers.classCallCheck(this,e);this.type="";this.data=null;this.target=null;this.compatData=null;this.defaultPrevented=false;this.immediatePropagationStopped=false;this.errors=[];this.setData(t.data);this.setCompatData(t.compatData)}babelHelpers.createClass(e,[{key:"getType",value:function e(){return this.type}},{key:"setType",value:function e(t){if(i.isStringFilled(t)){this.type=t}return this}},{key:"getData",value:function e(){return this.data}},{key:"setData",value:function e(t){if(!i.isUndefined(t)){this.data=t}return this}},{key:"getCompatData",value:function e(){return this.compatData}},{key:"setCompatData",value:function e(t){if(i.isArrayLike(t)){this.compatData=t}return this}},{key:"setTarget",value:function e(t){this.target=t;return this}},{key:"getTarget",value:function e(){return this.target}},{key:"getErrors",value:function e(){return this.errors}},{key:"setError",value:function e(t){if(Z.isError(t)){this.errors.push(t)}}},{key:"preventDefault",value:function e(){this.defaultPrevented=true}},{key:"isDefaultPrevented",value:function e(){return this.defaultPrevented}},{key:"stopImmediatePropagation",value:function e(){this.immediatePropagationStopped=true}},{key:"isImmediatePropagationStopped",value:function e(){return this.immediatePropagationStopped}}],[{key:"create",value:function e(t){return new this(t)}}]);return e}();let Q=function(){function e(t={}){babelHelpers.classCallCheck(this,e);this.defaultMaxListeners=i.isNumber(t.defaultMaxListeners)?t.defaultMaxListeners:10;this.eventStore=new WeakMap}babelHelpers.createClass(e,[{key:"add",value:function e(t,r={}){const n=this.getRecordScheme();if(i.isNumber(r.maxListeners)){n.maxListeners=r.maxListeners}this.eventStore.set(t,n);return n}},{key:"get",value:function e(t){return this.eventStore.get(t)}},{key:"getOrAdd",value:function e(t,r={}){return this.get(t)||this.add(t,r)}},{key:"delete",value:function e(t){this.eventStore.delete(t)}},{key:"getRecordScheme",value:function e(){return{eventsMap:new Map,onceMap:new Map,maxListeners:this.getDefaultMaxListeners(),eventsMaxListeners:new Map}}},{key:"getDefaultMaxListeners",value:function e(){return this.defaultMaxListeners}}]);return e}();let ee=function(){function e(){babelHelpers.classCallCheck(this,e);this.warnings=new Map;this.printDelayed=q.debounce(this.print.bind(this),500)}babelHelpers.createClass(e,[{key:"add",value:function e(t,r,n){let a=this.warnings.get(t);if(!a){a=Object.create(null);this.warnings.set(t,a)}if(!a[r]){a[r]={}}a[r].size=n.size;if(!i.isArray(a[r].errors)){a[r].errors=[]}a[r].errors.push(new Error)}}
6,{key:"print",value:function e(){this.warnings.forEach((e=>{for(let t in e){console.groupCollapsed("Possible BX.Event.EventEmitter memory leak detected. "+e[t].size+' "'+t+'" listeners added. '+"Use emitter.setMaxListeners() to increase limit.");console.dir(e[t].errors);console.groupEnd()}}));this.clear()}},{key:"clear",value:function e(){this.warnings.clear()}},{key:"printDelayed",value:function e(){}}]);return e}();const te=new Q({defaultMaxListeners:10});const re=new ee;const ne=new Map;const ie={GLOBAL_TARGET:"GLOBAL_TARGET"};te.add(ie,{maxListeners:25});const ae=Symbol.for("BX.Event.EventEmitter.isEmitter");const se=Symbol("namespaceProperty");const oe=Symbol("targetProperty");let le=function(){function e(...t){babelHelpers.classCallCheck(this,e);this[oe]=null;this[se]=null;this[ae]=true;let r=this;if(Object.getPrototypeOf(this)===e.prototype&&t.length>0){if(!i.isObject(t[0])){throw new TypeError('The "target" argument must be an object.')}r=t[0];this.setEventNamespace(t[1])}this[oe]=r}babelHelpers.createClass(e,[{key:"setEventNamespace",value:function e(t){if(i.isStringFilled(t)){this[se]=t}}},{key:"getEventNamespace",value:function e(){return this[se]}},{key:"subscribe",value:function t(r,n){e.subscribe(this,r,n);return this}},{key:"subscribeFromOptions",value:function t(r,n,a){if(i.isArrayFilled(r)){r.forEach((e=>{this.subscribeFromOptions(e)}));return}if(!i.isPlainObject(r)){return}n=i.isPlainObject(n)?e.normalizeAliases(n):{};Object.keys(r).forEach((t=>{const i=e.normalizeListener(r[t]);t=e.normalizeEventName(t);if(n[t]){const{eventName:r}=n[t];e.subscribe(this,r,i,{compatMode:a!==false})}else{e.subscribe(this,t,i,{compatMode:a===true})}}))}},{key:"subscribeOnce",value:function t(r,n){e.subscribeOnce(this,r,n);return this}},{key:"unsubscribe",value:function t(r,n){e.unsubscribe(this,r,n);return this}},{key:"unsubscribeAll",value:function t(r){e.unsubscribeAll(this,r)}},{key:"emit",value:function t(r,n){if(this.getEventNamespace()===null){console.warn("The instance of BX.Event.EventEmitter is supposed to have an event namespace. "+"Use emitter.setEventNamespace() to make events more unique.")}e.emit(this,r,n);return this}},{key:"emitAsync",value:function t(r,n){if(this.getEventNamespace()===null){console.warn("The instance of BX.Event.EventEmitter is supposed to have an event namespace. "+"Use emitter.setEventNamespace() to make events more unique.")}return e.emitAsync(this,r,n)}},{key:"setMaxListeners",value:function t(...r){e.setMaxListeners(this,...r);return this}},{key:"getMaxListeners",value:function t(r){return e.getMaxListeners(this,r)}},{key:"incrementMaxListeners",value:function t(...r){return e.incrementMaxListeners(this,...r)}},{key:"decrementMaxListeners",value:function t(...r){return e.decrementMaxListeners(this,...r)}},{key:"getListeners",value:function t(r){return e.getListeners(this,r)}},{key:"getFullEventName",value:function t(r){if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}return e.makeFullEventName(this.getEventNamespace(),r)}}],[{key:"makeObservable",value:function t(r,n){if(!i.isObject(r)){throw new TypeError('The "target" argument must be an object.')}if(!i.isStringFilled(n)){throw new TypeError('The "namespace" must be an non-empty string.')}if(e.isEventEmitter(r)){throw new TypeError('The "target" is an event emitter already.')}const a=Object.getPrototypeOf(r);const s=new e;s.setEventNamespace(n);Object.setPrototypeOf(s,a);Object.setPrototypeOf(r,s);Object.getOwnPropertyNames(e.prototype).forEach((t=>{if(["constructor"].includes(t)){return}s[t]=function(...n){return e.prototype[t].apply(r,n)}}))}},{key:"subscribe",value:function e(t,r,n,a){if(i.isString(t)){a=n;n=r;r=t;t=this.GLOBAL_TARGET}if(!i.isObject(t)){throw new TypeError('The "target" argument must be an object.')}r=this.normalizeEventName(r);if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}n=this.normalizeListener(n);a=i.isPlainObject(a)?a:{};const s=this.resolveEventName(r,t,a.useGlobalNaming===true);const{eventsMap:o,onceMap:l}=te.getOrAdd(t);const u=l.get(s);let c=o.get(s);if(c&&c.has(n)||u&&u.has(n)){console.error(`You cannot subscribe the same "${s}" event listener twice.`)}else if(c){c.set(n,{listener:n,options:a,sort:this.getNextSequenceValue()})}else{c=new Map([[n,{listener:n,options:a,sort:this.getNextSequenceValue()}]]);o.set(s,c)}const f=this.getMaxListeners(t,r);if(c.size>f){re.add(t,s,c);re.printDelayed()}}},{key:"subscribeOnce",value:function e(t,r,n){if(i.isString(t)){n=r;r=t;t=this.GLOBAL_TARGET}if(!i.isObject(t)){throw new TypeError('The "target" argument must be an object.')}r=this.normalizeEventName(r);if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}n=this.normalizeListener(n);const a=this.resolveEventName(r,t);const{eventsMap:s,onceMap:o}=te.getOrAdd(t);const l=s.get(a);let u=o.get(a);if(l&&l.has(n)||u&&u.has(n)){console.error(`You cannot subscribe the same "${a}" event listener twice.`)}else{const e=(...i)=>{this.unsubscribe(t,r,e);u.delete(n);n(...i)};if(u){u.set(n,e)}else{u=new Map([[n,e]]);o.set(a,u)}this.subscribe(t,r,e)}}},{key:"unsubscribe",value:function e(t,r,n,a){if(i.isString(t)){n=r;r=t;t=this.GLOBAL_TARGET}r=this.normalizeEventName(r);if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}n=this.normalizeListener(n);a=i.isPlainObject(a)?a:{};const s=this.resolveEventName(r,t,a.useGlobalNaming===true);const o=te.get(t);const l=o&&o.eventsMap.get(s);const u=o&&o.onceMap.get(s);if(l){l.delete(n)}if(u){const e=u.get(n);if(e){u.delete(n);l.delete(e)}}}},{key:"unsubscribeAll",value:function e(t,r,n){if(i.isString(t)){r=t;t=this.GLOBAL_TARGET}if(i.isStringFilled(r)){const e=te.get(t);if(e){n=i.isPlainObject(n)?n:{};const a=this.resolveEventName(r,t,n.useGlobalNaming===true);e.eventsMap.delete(a);e.onceMap.delete(a)}}else if(i.isNil(r)){if(t===this.GLOBAL_TARGET){console.error("You cannot unsubscribe all global listeners.")}else{te.delete(t)}}}},{key:"emit",value:function e(t,r,n,a){if(i.isString(t)){a=n;n=r;r=t;t=this.GLOBAL_TARGET}if(!i.isObject(t)){throw new TypeError('The "target" argument must be an object.')}r=this.normalizeEventName(r);if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}a=i.isPlainObject(a)?a:{};const s=this.resolveEventName(r,t,a.useGlobalNaming===true);const o=te.get(this.GLOBAL_TARGET);const l=o&&o.eventsMap.get(s)||new Map;let u=new Set;if(t!==this.GLOBAL_TARGET){const e=te.get(t);u=e&&e.eventsMap.get(s)||new Map}const c=[...l.values(),...u.values()];c.sort(((e,t)=>e.sort-t.sort));const f=this.prepareEvent(t,s,n);const p=[];for(const{listener:e,options:r}of c){if(f.isImmediatePropagationStopped()){break}if(l.has(e)||u.has(e)){let n;if(r.compatMode){let r=[];const s=f.getCompatData();if(s===null){r=[f]}else{r=a.cloneData===true?q.clone(s):s}const o=i.isUndefined(a.thisArg)?t:a.thisArg;n=e.apply(o,r)}else{n=i.isUndefined(a.thisArg)?e(f):e.call(a.thisArg,f)}p.push(n)}}return p}},{key:"emitAsync",value:function e(t,r,n){if(i.isString(t)){n=r;r=t;t=this.GLOBAL_TARGET}
6return Promise.all(this.emit(t,r,n))}},{key:"prepareEvent",value:function e(t,r,n){let i=n;if(!(n instanceof K)){i=new K;i.setData(n)}i.setTarget(this.isEventEmitter(t)?t[oe]:t);i.setType(r);return i}},{key:"getNextSequenceValue",value:function e(){return this.sequenceValue++}},{key:"setMaxListeners",value:function e(...t){let r=this.GLOBAL_TARGET;let n=null;let a;if(t.length===1){a=t[0]}else if(t.length===2){if(i.isString(t[0])){[n,a]=t}else{[r,a]=t}}else if(t.length>=3){[r,n,a]=t}if(!i.isObject(r)){throw new TypeError('The "target" argument must be an object.')}if(n!==null&&!i.isStringFilled(n)){throw new TypeError('The "eventName" argument must be a string.')}if(!i.isNumber(a)||a<0){throw new TypeError(`The value of "count" is out of range. It must be a non-negative number. Received ${a}.`)}const s=te.getOrAdd(r);if(i.isStringFilled(n)){const e=this.resolveEventName(n,r);s.eventsMaxListeners.set(e,a)}else{s.maxListeners=a}}},{key:"getMaxListeners",value:function e(t,r){if(i.isString(t)){r=t;t=this.GLOBAL_TARGET}else if(i.isNil(t)){t=this.GLOBAL_TARGET}if(!i.isObject(t)){throw new TypeError('The "target" argument must be an object.')}const n=te.get(t);if(n){let e=n.maxListeners;if(i.isStringFilled(r)){const i=this.resolveEventName(r,t);e=n.eventsMaxListeners.get(i)||e}return e}return this.DEFAULT_MAX_LISTENERS}},{key:"addMaxListeners",value:function t(...r){const[n,a,s]=this.destructMaxListenersArgs(...r);const o=Math.max(this.getMaxListeners(n,a)+s,0);if(i.isStringFilled(a)){e.setMaxListeners(n,a,o)}else{e.setMaxListeners(n,o)}return o}},{key:"incrementMaxListeners",value:function e(...t){const[r,n,i]=this.destructMaxListenersArgs(...t);return this.addMaxListeners(r,n,Math.abs(i))}},{key:"decrementMaxListeners",value:function e(...t){const[r,n,i]=this.destructMaxListenersArgs(...t);return this.addMaxListeners(r,n,-Math.abs(i))}},{key:"destructMaxListenersArgs",value:function e(...t){let r=null;let n=1;let a=this.GLOBAL_TARGET;if(t.length===1){if(i.isNumber(t[0])){n=t[0]}else if(i.isString(t[0])){r=t[0]}else{a=t[0]}}else if(t.length===2){if(i.isString(t[0])){[r,n]=t}else if(i.isString(t[1])){[a,r]=t}else{[a,n]=t}}else if(t.length>=3){[a,r,n]=t}if(!i.isObject(a)){throw new TypeError('The "target" argument must be an object.')}if(r!==null&&!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}if(!i.isNumber(n)){throw new TypeError('The value of "increment" must be a number.')}return[a,r,n]}},{key:"getListeners",value:function e(t,r){if(i.isString(t)){r=t;t=this.GLOBAL_TARGET}if(!i.isObject(t)){throw new TypeError('The "target" argument must be an object.')}r=this.normalizeEventName(r);if(!i.isStringFilled(r)){throw new TypeError('The "eventName" argument must be a string.')}const n=te.get(t);if(!n){return new Map}const a=this.resolveEventName(r,t);return n.eventsMap.get(a)||new Map}},{key:"registerAliases",value:function t(r){r=this.normalizeAliases(r);Object.keys(r).forEach((e=>{ne.set(e,{eventName:r[e].eventName,namespace:r[e].namespace})}));e.mergeEventAliases(r)}},{key:"normalizeAliases",value:function e(t){if(!i.isPlainObject(t)){throw new TypeError('The "aliases" argument must be an object.')}const r=Object.create(null);for(let e in t){if(!i.isStringFilled(e)){throw new TypeError("The alias must be an non-empty string.")}const n=t[e];if(!n||!i.isStringFilled(n.eventName)||!i.isStringFilled(n.namespace)){throw new TypeError('The alias options must set the "eventName" and the "namespace".')}e=this.normalizeEventName(e);r[e]={eventName:n.eventName,namespace:n.namespace}}return r}},{key:"mergeEventAliases",value:function e(t){const r=te.get(this.GLOBAL_TARGET);if(!r){return}Object.keys(t).forEach((e=>{const n=t[e];e=this.normalizeEventName(e);const i=this.makeFullEventName(n.namespace,n.eventName);const a=r.eventsMap.get(e);if(a){const t=r.eventsMap.get(i)||new Map;r.eventsMap.set(i,new Map([...t,...a]));r.eventsMap.delete(e)}const s=r.onceMap.get(e);if(s){const t=r.onceMap.get(i)||new Map;r.onceMap.set(i,new Map([...t,...s]));r.onceMap.delete(e)}const o=r.eventsMaxListeners.get(e);if(o){const t=r.eventsMaxListeners.get(i)||0;r.eventsMaxListeners.set(i,Math.max(t,o));r.eventsMaxListeners.delete(e)}}))}},{key:"isEventEmitter",value:function e(t){return i.isObject(t)&&t[ae]===true}},{key:"normalizeEventName",value:function e(t){if(!i.isStringFilled(t)){return""}return t.toLowerCase()}},{key:"normalizeListener",value:function e(t){if(i.isString(t)){t=a.getClass(t)}if(!i.isFunction(t)){throw new TypeError(`The "listener" argument must be of type Function. Received type ${typeof t}.`)}return t}},{key:"resolveEventName",value:function e(t,r,n=false){t=this.normalizeEventName(t);if(!i.isStringFilled(t)){return""}if(this.isEventEmitter(r)&&n!==true){if(r.getEventNamespace()!==null&&t.includes(".")){console.warn(`Possible the wrong event name "${t}".`)}t=r.getFullEventName(t)}else if(ne.has(t)){const{namespace:e,eventName:r}=ne.get(t);t=this.makeFullEventName(e,r)}return t}},{key:"makeFullEventName",value:function e(t,r){const n=i.isStringFilled(t)?`${t}:${r}`:r;return i.isStringFilled(n)?n.toLowerCase():""}}]);return e}();babelHelpers.defineProperty(le,"GLOBAL_TARGET",ie);babelHelpers.defineProperty(le,"DEFAULT_MAX_LISTENERS",te.getDefaultMaxListeners());babelHelpers.defineProperty(le,"sequenceValue",1);let ue=[];e.isReady=false;function ce(t){if(!i.isFunction(t)){return}if(e.isReady){t()}else{ue.push(t)}}b(document,"DOMContentLoaded",(()=>{e.isReady=true;ue.forEach((e=>{e()}));ue=[]}));let fe=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(fe,"bind",y);babelHelpers.defineProperty(fe,"bindOnce",b);babelHelpers.defineProperty(fe,"unbind",g);babelHelpers.defineProperty(fe,"unbindAll",m);babelHelpers.defineProperty(fe,"ready",ce);babelHelpers.defineProperty(fe,"EventEmitter",le);babelHelpers.defineProperty(fe,"BaseEvent",K);function pe(e){if(i.isPlainObject(e)||i.isArray(e)){return JSON.stringify(e)}return c.encode(c.decode(e))}function de(e){if(i.isString(e)){const t=c.decode(e);let r;try{r=JSON.parse(t)}catch(e){r=t}if(r===t){if(/^[\d.]+[.]?\d+$/.test(r)){return Number(r)}}if(r==="true"||r==="false"){return Boolean(r)}return r}return e}function he(){const{documentElement:e,body:t}=document;const r=Math.max(window.pageYOffset||0,e?e.scrollTop:0,t?t.scrollTop:0);const n=Math.max(window.pageXOffset||0,e?e.scrollLeft:0,t?t.scrollLeft:0);return{scrollTop:r,scrollLeft:n}}let ve=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"replace",value:function e(t,r){if(i.isDomNode(t)&&i.isDomNode(r)){if(i.isDomNode(t.parentNode)){t.parentNode.replaceChild(r,t)}}}},{key:"remove",value:function e(t){if(i.isDomNode(t)&&i.isDomNode(t.parentNode)){t.parentNode.removeChild(t)}}},{key:"clean",value:function t(r){if(i.isDomNode(r)){while(r.childNodes.length>0){r.removeChild(r.firstChild)}return}if(i.isString(r)){e.clean(document.getElementById(r))}}},{key:"insertBefore",value:function e(t,r){if(i.isDomNode(t)&&i.isDomNode(r)){if(i.isDomNode(r.parentNode)){r.parentNode.insertBefore(t,r)}}}},{key:"insertAfter",value:function e(t,r){if(i.isDomNode(t)&&i.isDomNode(r)){if(i.isDomNode(r.parentNode)){const e=r.parentNode;if(i.isDomNode(r.nextSibling)){e.insertBefore(t,r.nextSibling);return}e.appendChild(t)}}}},{key:"append",value:function e(t,r){if(i.isDomNode(t)&&i.isDomNode(r)){r.appendChild(t)}}},{key:"prepend",value:function t(r,n){if(i.isDomNode(r)&&i.isDomNode(n)){if(i.isDomNode(n.firstChild)){n.insertBefore(r,n.firstChild);return}e.append(r,n)}}},{key:"hasClass",value:function t(r,n){if(i.isElementNode(r)){if(i.isString(n)){const t=n.trim();if(t.length>0){if(t.includes(" ")){return t.split(" ").every((t=>e.hasClass(r,t)))}if("classList"in r){return r.classList.contains(t)}if(i.isObject(r.className)&&i.isString(r.className.baseVal)){return r.getAttribute("class").split(" ").some((e=>e===t))}}}if(i.isArray(n)&&n.length>0){return n.every((t=>e.hasClass(r,t)))}}return false}},{key:"addClass",value:function t(r,n){if(i.isElementNode(r)){if(i.isString(n)){const t=n.trim();if(t.length>0){if(t.includes(" ")){e.addClass(r,t.split(" "));return}if("classList"in r){r.classList.add(t);return}if(i.isObject(r.className)&&i.isString(r.className.baseVal)){if(r.className.baseVal===""){r.className.baseVal=t;return}const e=r.className.baseVal.split(" ");if(!e.includes(t)){e.push(t);r.className.baseVal=e.join(" ").trim();return}}return}}
6if(i.isArray(n)){n.forEach((t=>e.addClass(r,t)))}}}},{key:"removeClass",value:function t(r,n){if(i.isElementNode(r)){if(i.isString(n)){const t=n.trim();if(t.length>0){if(t.includes(" ")){e.removeClass(r,t.split(" "));return}if("classList"in r){r.classList.remove(t);return}if(i.isObject(r.className)&&i.isString(r.className.baseVal)){const e=r.className.baseVal.split(" ").filter((e=>e!==t));r.className.baseVal=e.join(" ");return}}}if(i.isArray(n)){n.forEach((t=>e.removeClass(r,t)))}}}},{key:"toggleClass",value:function e(t,r,n){if(!i.isElementNode(t)||!i.isStringFilled(r)&&!i.isArrayFilled(r)){return}[r].flat().flatMap((e=>{var t;return e===null||e===void 0?void 0:(t=e.trim)===null||t===void 0?void 0:t.call(e).split(" ")})).forEach((e=>{if(i.isStringFilled(e)){t.classList.toggle(e,i.isBoolean(n)?n:undefined)}}))}},{key:"style",value:function t(r,n,a){if(i.isElementNode(r)){if(i.isNull(n)){r.removeAttribute("style");return r}if(i.isPlainObject(n)){Object.entries(n).forEach((t=>{const[n,i]=t;e.style(r,n,i)}));return r}if(i.isString(n)){if(i.isUndefined(a)&&r.nodeType!==Node.DOCUMENT_NODE){const e=getComputedStyle(r);if(n in e){return e[n]}return e.getPropertyValue(n)}if(i.isNull(a)||a===""||a==="null"){if(String(n).startsWith("--")){r.style.removeProperty(n);return r}r.style[n]="";return r}if(i.isString(a)||i.isNumber(a)){if(String(n).startsWith("--")){r.style.setProperty(n,a);return r}r.style[n]=a;return r}}}return null}},{key:"adjust",value:function t(r,n={}){if(!r.nodeType){return null}let a=r;if(r.nodeType===Node.DOCUMENT_NODE){a=r.body}if(i.isPlainObject(n)){if(i.isPlainObject(n.attrs)){Object.keys(n.attrs).forEach((e=>{if(e==="class"||e.toLowerCase()==="classname"){a.className=n.attrs[e];return}if(n.attrs[e]==""){a.removeAttribute(e);return}a.setAttribute(e,n.attrs[e])}))}if(i.isPlainObject(n.style)){e.style(a,n.style)}if(i.isPlainObject(n.props)){Object.keys(n.props).forEach((e=>{a[e]=n.props[e]}))}if(i.isPlainObject(n.events)){Object.keys(n.events).forEach((e=>{fe.bind(a,e,n.events[e])}))}if(i.isPlainObject(n.dataset)){Object.keys(n.dataset).forEach((e=>{a.dataset[e]=n.dataset[e]}))}if(i.isString(n.children)){n.children=[n.children]}if(i.isArray(n.children)&&n.children.length>0){n.children.forEach((t=>{if(i.isDomNode(t)){e.append(t,a)}if(i.isString(t)){a.insertAdjacentHTML("beforeend",t)}}));return a}if("text"in n&&!i.isNil(n.text)){a.textContent=n.text;return a}if("html"in n&&!i.isNil(n.html)){a.innerHTML=n.html}}return a}},{key:"create",value:function t(r,n={},a=document){let s=r;let o=n;if(i.isObjectLike(r)){o=r;s=r.tag}return e.adjust(a.createElement(s),o)}},{key:"show",value:function e(t){if(i.isDomNode(t)){t.hidden=false}}},{key:"hide",value:function e(t){if(i.isDomNode(t)){t.hidden=true}}},{key:"isShown",value:function e(t){return i.isDomNode(t)&&!t.hidden&&t.style.getPropertyValue("display")!=="none"}},{key:"isShownRecursive",value:function t(r){if(!i.isDomNode(r)){return false}if(r===document.body){return e.isShown(r)}return e.isShown(r)&&e.isShownRecursive(r.parentElement)}},{key:"toggle",value:function t(r){if(i.isDomNode(r)){if(e.isShown(r)){e.hide(r)}else{e.show(r)}}}},{key:"getPosition",value:function e(t){if(i.isDomNode(t)){const e=t.getBoundingClientRect();const{scrollLeft:r,scrollTop:n}=he();return new DOMRect(e.left+r,e.top+n,e.width,e.height)}return new DOMRect}},{key:"getRelativePosition",value:function t(r,n){if(i.isDomNode(r)&&i.isDomNode(n)){const t=e.getPosition(r);const i=e.getPosition(n);return new DOMRect(t.left-i.left,t.top-i.top,t.width,t.height)}return new DOMRect}},{key:"attr",value:function t(r,n,a){if(i.isElementNode(r)){if(i.isString(n)){if(!i.isNil(a)){if(i.isObjectLike(a)){r.setAttribute(n,pe(a))}else{r.setAttribute(n,a)}}else if(i.isNull(a)){r.removeAttribute(n)}else{return de(r.getAttribute(n))}}if(i.isPlainObject(n)){Object.entries(n).forEach((([t,n])=>{e.attr(r,t,n)}))}}return null}}]);return e}();const ye=navigator.userAgent.toLowerCase();let ge=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"isOpera",value:function e(){return ye.includes("opera")}},{key:"isIE",value:function t(){return"attachEvent"in document&&!e.isOpera()}},{key:"isIE6",value:function e(){return ye.includes("msie 6")}},{key:"isIE7",value:function e(){return ye.includes("msie 7")}},{key:"isIE8",value:function e(){return ye.includes("msie 8")}},{key:"isIE9",value:function e(){return"documentMode"in document&&document.documentMode>=9}}
6,{key:"isIE10",value:function e(){return"documentMode"in document&&document.documentMode>=10}},{key:"isSafari",value:function e(){return ye.includes("safari")&&!ye.includes("chrome")}},{key:"isFirefox",value:function e(){return ye.includes("firefox")}},{key:"isChrome",value:function e(){return ye.includes("chrome")}},{key:"detectIEVersion",value:function t(){if(e.isOpera()||e.isSafari()||e.isFirefox()||e.isChrome()){return-1}let r=-1;if(!!window.MSStream&&!window.ActiveXObject&&"ActiveXObject"in window){r=11}else if(e.isIE10()){r=10}else if(e.isIE9()){r=9}else if(e.isIE()){r=8}if(r===-1||r===8){if(navigator.appName==="Microsoft Internet Explorer"){const e=new RegExp("MSIE ([0-9]+[.0-9]*)");const t=navigator.userAgent.match(e);if(i.isArrayLike(t)&&t.length>0){r=parseFloat(t[1])}}if(navigator.appName==="Netscape"){r=11;const e=new RegExp("Trident/.*rv:([0-9]+[.0-9]*)");if(e.exec(navigator.userAgent)!=null){const t=navigator.userAgent.match(e);if(i.isArrayLike(t)&&t.length>0){r=parseFloat(t[1])}}}}return r}},{key:"isIE11",value:function t(){return e.detectIEVersion()>=11}},{key:"isMac",value:function e(){return ye.includes("macintosh")}},{key:"isWin",value:function e(){return ye.includes("windows")}},{key:"isLinux",value:function t(){return ye.includes("linux")&&!e.isAndroid()}},{key:"isAndroid",value:function e(){return ye.includes("android")}},{key:"isIPad",value:function e(){return ye.includes("ipad;")||this.isMac()&&this.isTouchDevice()}},{key:"isIPhone",value:function e(){return ye.includes("iphone;")}},{key:"isIOS",value:function t(){return e.isIPad()||e.isIPhone()}},{key:"isMobile",value:function t(){return e.isIPhone()||e.isIPad()||e.isAndroid()||ye.includes("mobile")||ye.includes("touch")}},{key:"isRetina",value:function e(){return window.devicePixelRatio&&window.devicePixelRatio>=2}},{key:"isTouchDevice",value:function e(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isDoctype",value:function e(t){const r=t||document;if(r.compatMode){return r.compatMode==="CSS1Compat"}return r.documentElement&&r.documentElement.clientHeight}},{key:"isLocalStorageSupported",value:function e(){try{localStorage.setItem("test","test");localStorage.removeItem("test");return true}catch(e){return false}}},{key:"addGlobalClass",value:function t(r){let n="bx-core";r=i.isElementNode(r)?r:document.documentElement;if(ve.hasClass(r,n)){return}if(e.isIOS()){n+=" bx-ios"}else if(e.isWin()){n+=" bx-win"}else if(e.isMac()){n+=" bx-mac"}else if(e.isLinux()){n+=" bx-linux"}else if(e.isAndroid()){n+=" bx-android"}n+=e.isMobile()?" bx-touch":" bx-no-touch";n+=e.isRetina()?" bx-retina":" bx-no-retina";if(e.isSafari()){n+=" bx-safari"}else if(/AppleWebKit/.test(navigator.userAgent)){n+=" bx-chrome"}else if(/Opera/.test(navigator.userAgent)){n+=" bx-opera"}else if(e.isFirefox()){n+=" bx-firefox"}ve.addClass(r,n)}},{key:"detectAndroidVersion",value:function e(){const t=new RegExp("Android ([0-9]+[.0-9]*)");if(t.exec(navigator.userAgent)!=null){const e=navigator.userAgent.match(t);if(i.isArrayLike(e)&&e.length>0){return parseFloat(e[1])}}return 0}},{key:"isPropertySupported",value:function e(t,r){if(t===""){return false}function n(e){return e.replace(/([A-Z])/g,((...e)=>`-${e[1].toLowerCase()}`))}function i(e){const t=/(\\-([a-z]))/g;if(t.test(e)){return e.replace(t,((...e)=>e[2].toUpperCase()))}return e}const a=t.includes("-")?i(t):t;const s=!!r;const o=a.charAt(0).toUpperCase()+a.slice(1);const l=["Webkit","Moz","O","ms"].join(`${o} `);const u=`${a} ${l} ${o}`.split(" ");const c=document.body||document.documentElement;for(let e=0;e<u.length;e+=1){const t=u[e];if(c&&"style"in c&&t in c.style){const e=t.substr(0,t.length-a.length).toLowerCase();const r=t===a?"":`-${e}-`;return s?r+n(a):t}}return false}},{key:"addGlobalFeatures",value:function t(r){if(!i.isArray(r)){return}const n=[];for(let t=0;t<r.length;t+=1){const i=!!e.isPropertySupported(r[t]);n.push(`bx-${i?"":"no-"}${r[t].toLowerCase()}`)}ve.addClass(document.documentElement,n.join(" "))}}]);return e}();let me=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getList",value:function e(){return document.cookie.split(";").map((e=>e.split("="))).map((e=>e.map((e=>e.trim())))).reduce(((e,t)=>{const[r,n]=t;e[decodeURIComponent(r)]=decodeURIComponent(n);return e}),{})}},{key:"get",value:function t(r){const n=e.getList();if(r in n){return n[r]}return undefined}},{key:"set",value:function e(t,r,n={}){const a={expires:"",...n};if(i.isNumber(a.expires)){const e=+new Date;const t=a.expires;const r=864e5;a.expires=new Date(e+t*r)}if(i.isDate(a.expires)){a.expires=a.expires.toUTCString()}const s=decodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decode
6URIComponent).replace(/[()]/g,escape);const o=encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);const l=Object.keys(a).reduce(((e,t)=>{const r=a[t];if(!r){return e}if(r===true){return`${e}; ${t}`}return`${e}; ${t}=${r.split(";")[0]}`}),"");document.cookie=`${s}=${o}${l}`}},{key:"remove",value:function t(r,n={}){e.set(r,"",{...n,expires:-1})}}]);return e}();function be(e,t=new FormData,r=null){if(i.isUndefined(e)){return t}if(i.isNull(e)){t.append(r,"")}else if(i.isArray(e)){if(!e.length){const e=`${r}[]`;t.append(e,"")}else{e.forEach(((e,n)=>{const i=`${r}[${n}]`;be(e,t,i)}))}}else if(i.isDate(e)){t.append(r,e.toISOString())}else if(i.isObject(e)&&!i.isFile(e)&&!i.isBlob(e)){Object.keys(e).forEach((n=>{const a=e[n];let s=n;if(i.isArray(a)){while(s.length>2&&s.lastIndexOf("[]")===s.length-2){s=s.substring(0,s.length-2)}}const o=r?`${r}[${s}]`:s;be(a,t,o)}))}else{t.append(r,e)}return t}let we=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"convertObjectToFormData",value:function e(t){return be(t)}}]);return e}();let Se=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(Se,"Cookie",me);babelHelpers.defineProperty(Se,"Data",we);function xe(e){if(i.isString(e)){if(i.isNil(xe[e])){le.emit("onBXMessageNotFound",new K({compatData:[e]}));if(i.isNil(xe[e])){q.debug(`message undefined: ${e}`);xe[e]=""}}}if(i.isPlainObject(e)){Object.keys(e).forEach((t=>{xe[t]=e[t]}))}return xe[e]}if(!i.isNil(window.BX)&&i.isFunction(window.BX.message)){Object.keys(window.BX.message).forEach((e=>{xe({[e]:window.BX.message[e]})}))}let Ee=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getMessage",value:function e(t,r=null){let n=xe(t);if(i.isString(n)&&i.isPlainObject(r)){const e=e=>String(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");Object.keys(r).forEach((t=>{const a=new RegExp(e(t),"gi");n=n.replace(a,(()=>i.isNil(r[t])?"":String(r[t])))}))}return n}},{key:"hasMessage",value:function e(t){return i.isString(t)&&!i.isNil(xe[t])}},{key:"setMessage",value:function e(t,r){if(i.isString(t)&&i.isString(r)){xe({[t]:r})}if(i.isObject(t)){xe(t)}}},{key:"getMessagePlural",value:function e(t,r,n=null){let a="";if(i.isNumber(r)){if(this.hasMessage(`${t}_PLURAL_${this.getPluralForm(r)}`)){a=this.getMessage(`${t}_PLURAL_${this.getPluralForm(r)}`,n)}else{a=this.getMessage(`${t}_PLURAL_1`,n)}}else{a=this.getMessage(t,n)}return a}},{key:"getPluralForm",value:function e(t,r){let n;if(!i.isStringFilled(r)){r=xe("LANGUAGE_ID")}if(t<0){t=-1*t}switch(r){case"ar":n=t!==1?1:0;break;case"br":case"fr":case"tr":n=t>1?1:0;break;case"de":case"en":case"hi":case"it":case"la":n=t!==1?1:0;break;case"ru":case"ua":if(t%10===1&&t%100!==11){n=0}else if(t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)){n=1}else{n=2}break;case"pl":if(t===1){n=0}else if(t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)){n=1}else{n=2}break;case"id":case"ja":case"ms":case"sc":case"tc":case"th":case"vn":n=0;break;default:n=1;break}return n}}]);return e}();const Te=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Oe(e){return Te.includes(e)}const je={tag:/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>|{{uid[0-9]+}}/g,comment:/<!--(?!<!)[^\[>].*?-->/g,tagName:/<\/?([^\s]+?)[/\s>]/,attributes:/\s([\w\-_:.]+)\s?\n?=\s?\n?"([^"]+)?"|\s([\w\-_:.]+)\s?\n?=\s?\n?'([^']+)?'|\s([\w\-_:.]+)/gs,placeholder:/{{uid[0-9]+}}/g};function Be(e){const t={type:"tag",name:"",svg:false,attrs:{},children:[],voidElement:false};if(e.startsWith("\x3c!--")){const t=e.indexOf("--\x3e");const r="\x3c!--".length;return{type:"comment",content:t!==-1?e.slice(r,t):""}}const r=e.match(je.tagName);if(i.isArrayFilled(r)){const[,n]=r;t.name=n;t.svg=n==="svg";t.voidElement=Oe(n)||e.trim().endsWith("/>")}const n=new RegExp(je.attributes);for(;;){const r=n.exec(e);if(!i.isNil(r)){const[,e,n]=r;if(!i.isNil(e)){t.attrs[e]=i.isStringFilled(n)?n:""}else{const[,,,e,n]=r;if(!i.isNil(e)){t.attrs[e]=i.isStringFilled(n)?n:""}else{const[,,,,,e]=r;t.attrs[e]=""}}}else{break}}return t}function ke(e){const t=e.replace(/[\n\r\t]$/,"");const r=t.match(je.placeholder);return t.split(je.placeholder).reduce(((e,t,n)=>{if(i.isStringFilled(t)){e.push(...t.split(/\n/).reduce(((e,t)=>{const r=t.replace(/[\t\r]/g,"");if(i.isStringFilled(r)){e.push({type:"text",content:r})}return e}),[]))}if(r&&r[n]){e.push({type:"placeholder",uid:parseInt(r[n].replace(/{{uid|}}/,""))})}return e}),[])}function Pe(e,t){const r=[];if(e.indexOf("<")!==0&&!e.startsWith("{{")){const t=e.indexOf("<");r.push(...ke(t===-1?e:e.slice(0,t)))}const n=[];let i=-1;e=e.replace(je.comment,(e=>{i+=1;n.push(e.replace(/^<!--|-->$/g,""));return`\x3c!--{{cUid${i}}}--\x3e`}));const a=[];let s=-1;let o;e.replace(je.tag,((i,l)=>{const u=l+i.length;const c=e.charAt(u);let f;if(i.startsWith("\x3c!--")){const e=Be(i,t);e.content=n[i.replace(/<!--{{cUid|}}-->/g,"")];if(s<0){r.push(e);return r}f=a[s];f.children.push(e);return r}if(i.startsWith("{{")){const[e]=ke(i);if(s<0){r.push(e);return r}f=a[s];f.children.push(e);return r}if(!i.startsWith("</")){s++;o=Be(i,t);if(!o.voidElement&&c&&c!=="<"){o.children.push(...ke(e.slice(u,e.indexOf("<",u))))}if(s===0){r.push(o)}f=a[s-1];if(f){if(!o.svg){o.svg=f.svg}f.children.push(o)}a[s]=o}if(i.startsWith("</")||o.voidElement){if(s>-1&&(o.voidElement||o.name===i.slice(2,-1))){s--;o=s===-1?r:a[s]}if(c&&c!=="<"){f=s===-1?r:a[s].children;const t=e.indexOf("<",u);const n=e.slice(u,t===-1?undefined:t);if(t>-1&&s+f.length>=0||n!==" "){f.push(...ke(n))}}}}));return r}const Ae=(e,t)=>
6{if(i.isDomNode(e)&&i.isDomNode(t)){if(t.nodeName!=="TEMPLATE"){ve.append(e,t)}else{t.content.append(e)}}};function Xe(e){const{node:t,parentElement:r,substitutions:n,refs:a=[]}=e;if(t.type==="tag"){const e=(()=>{if(t.svg){return document.createElementNS("http://www.w3.org/2000/svg",t.name)}return document.createElement(t.name)})();if(Object.hasOwn(t.attrs,"ref")){a.push([t.attrs.ref,e]);delete t.attrs.ref}Object.entries(t.attrs).forEach((([t,r])=>{if(t.startsWith("on")&&new RegExp(je.placeholder).test(r)){const a=n[parseInt(r.replace(/{{uid|}}/,""))-1];if(i.isFunction(a)){const r=t.endsWith("once")?"bindOnce":"bind";fe[r](e,t.replace(/^on|once$/g,""),a)}else{e.setAttribute(t,a)}}else{if(new RegExp(je.placeholder).test(r)){const i=r.split(/{{|}}/).reduce(((e,t)=>{if(t.startsWith("uid")){const r=n[parseInt(t.replace("uid",""))-1];return`${e}${r}`}return`${e}${t}`}),"");e.setAttribute(t,i)}else{e.setAttribute(t,c.decode(r))}}}));t.children.forEach((t=>{const r=Xe({node:t,parentElement:e,substitutions:n,refs:a});if(i.isArray(r)){r.forEach((t=>{Ae(t,e)}))}else{Ae(r,e)}}));return e}if(t.type==="comment"){return document.createComment(t.content)}if(t.type==="text"){if(r){if(r.nodeName!=="TEMPLATE"){r.insertAdjacentHTML("beforeend",t.content)}else{r.content.append(t.content)}return}return document.createTextNode(t.content)}if(t.type==="placeholder"){return n[t.uid-1]}}function Ne(e,...t){const r=e.reduce(((e,r,n)=>{if(n>0){const a=t[n-1];if(i.isString(a)||i.isNumber(a)){return`${e}${a}${r}`}return`${e}{{uid${n}}}${r}`}return e}),e[0]).replace(/^[\r\n\t\s]+/gm,"").replace(/>[\n]+/g,">").replace(/[}][\n]+/g,"}");const n=Pe(r);if(n.length===1){const e=[];const r=Xe({node:n[0],substitutions:t,refs:e});if(i.isArrayFilled(e)){return Object.fromEntries([["root",r],...e])}return r}if(n.length>1){const e=[];const r=n.map((r=>Xe({node:r,substitutions:t,refs:e})));if(i.isArrayFilled(e)){return Object.fromEntries([["root",r],...e])}return r}return false}function Ce(e,...t){return t.reduce(((t,r,n)=>{const a=n+1;if(!i.isPlainObject(r)&&!i.isArray(r)){return t+r+e[a]}return`${t}__s${n}${e[a]}`}),e[0]).replace(/[\r\t]/gm,"").split(";\n").map((e=>e.replace(/\n/,""))).reduce(((e,r)=>{if(r!==""){const n=r.match(/^[\w-. ]+:/);const i=r.split(/^[\w-. ]+:/);const a=n[0].replace(":","").trim();const s=i[1].trim();const o=/^__s\d+/;if(o.test(s)){e[a]=t[s.replace("__s","")];return e}e[a]=s}return e}),{})}let _e=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"safe",value:function e(t,...r){return r.reduce(((e,r,n)=>e+c.encode(r)+t[n+1]),t[0])}},{key:"unsafe",value:function e(t,...r){return r.reduce(((e,r,n)=>e+c.decode(r)+t[n+1]),t[0])}},{key:"style",value:function e(t){if(!i.isDomNode(t)){throw new Error("element is not HTMLElement")}return function e(...r){ve.style(t,Ce(...r))}}},{key:"message",value:function e(t,...r){return r.reduce(((e,r,n)=>e+Ee.getMessage(r)+t[n+1]),t[0])}},{key:"attrs",value:function e(t){if(!i.isDomNode(t)){throw new Error("element is not HTMLElement")}return function e(...r){ve.attr(t,Ce(...r))}}}]);return e}();babelHelpers.defineProperty(_e,"render",Ne);babelHelpers.defineProperty(_e,"attr",_e.attrs);function Ie(e){switch(e){case"index":return(e,t,r)=>{const n=/\[(\w*)\]$/.exec(e);const a=e.replace(/\[\w*\]$/,"");if(i.isNil(n)){r[a]=t;return}if(i.isUndefined(r[a])){r[a]={}}r[a][n[1]]=t};case"bracket":return(e,t,r)=>{const n=/(\[\])$/.exec(e);const a=e.replace(/\[\]$/,"");if(i.isNil(n)){r[a]=t;return}if(i.isUndefined(r[a])){r[a]=i.isNil(t)?[]:[t];return}r[a]=[].concat(r[a],t)};default:return(e,t,r)=>{const n=e.replace(/\[\]$/,"");r[n]=t}}}function Le(e){if(/^\w+\[([\w]+)\]$/.test(e)){return"index"}if(/^\w+\[\]$/.test(e)){return"bracket"}return"default"}function Me(e){return!String(e).startsWith("__proto__")}function Fe(e){if(!i.isString(e)){return{}}const t=e.trim().replace(/^[?#&]/,"");if(!t){return{}}return{...t.split("&").reduce(((e,t)=>{const[r,n]=t.replace(/\+/g," ").split("=");if(Me(r)){const t=Le(r);const i=Ie(t);i(r,n,e)}return e}),Object.create(null))}}const He=/^((\w+):)?(\/\/((\w+)?(:(\w+))?@)?([^\/\?:]+)(:(\d+))?)?(\/?([^\/\?#][^\?#]*)?)?(\?([^#]+))?(#((?:[\w-?/:@.~!$&'()*+,;=]|%\w{2})*))?/;function De(e){const t=Object.entries(e);return t.reduce(((e,[t,r])=>
6{if(i.isNil(r)){e[t]=""}else if(i.isPlainObject(r)){e[t]=De(r)}else{e[t]=r}return e}),{})}function Re(e){const t=e.match(He);if(i.isArray(t)){const r=Fe(t[14]);const n=De(r);return{useShort:/^\/\//.test(e),href:t[0]||"",schema:t[2]||"",host:t[8]||"",port:t[10]||"",path:t[11]||"",query:t[14]||"",sourceQueryParams:r,queryParams:n,hash:t[16]||"",username:t[5]||"",password:t[7]||"",origin:t[8]||""}}return{}}function We(e,t){if(i.isNil(t)){return e}return`${e}=${t}`}function Ge(e={}){const t=Object.keys(e).reduce(((t,r)=>{if(i.isArray(e[r])){if(i.isArrayFilled(e[r])){e[r].forEach((e=>{t.push(We(`${r}[]`,e))}))}else{t.push(We(`${r}[]`,null))}}if(i.isPlainObject(e[r])){Object.keys(e[r]).forEach((n=>{t.push(We(`${r}[${n}]`,e[r][n]))}))}if(!i.isObject(e[r])&&!i.isArray(e[r])){t.push(We(r,e[r]))}return t}),[]).join("&");if(t.length>0){return`?${t}`}return t}function ze(e){if(i.isArray(e)){return e.map((e=>String(e)))}if(i.isPlainObject(e)){return{...e}}return String(e)}const Ue=new WeakMap;let $e=function(){babelHelpers.createClass(e,null,[{key:"addParam",value:function t(r,n={}){return new e(r).setQueryParams(n).toString()}},{key:"removeParam",value:function t(r,n){const a=i.isArray(n)?n:[n];return new e(r).removeQueryParam(...a).toString()}}]);function e(t=""){babelHelpers.classCallCheck(this,e);Ue.set(this,Re(t))}babelHelpers.createClass(e,[{key:"getSchema",value:function e(){return Ue.get(this).schema}},{key:"setSchema",value:function e(t){Ue.get(this).schema=String(t);return this}},{key:"getHost",value:function e(){return Ue.get(this).host}},{key:"setHost",value:function e(t){Ue.get(this).host=String(t);return this}},{key:"getPort",value:function e(){return Ue.get(this).port}},{key:"setPort",value:function e(t){Ue.get(this).port=String(t);return this}},{key:"getPath",value:function e(){return Ue.get(this).path}},{key:"setPath",value:function e(t){if(!/^\//.test(t)){Ue.get(this).path=`/${String(t)}`;return this}Ue.get(this).path=String(t);return this}},{key:"getQuery",value:function e(){return Ge(Ue.get(this).queryParams)}},{key:"getQueryParam",value:function e(t){const r=this.getQueryParams();if(Object.hasOwn(r,t)){return r[t]}return null}},{key:"setQueryParam",value:function e(t,r=""){Ue.get(this).queryParams[t]=ze(r);Ue.get(this).sourceQueryParams[t]=ze(r);return this}},{key:"getQueryParams",value:function e(){return{...Ue.get(this).queryParams}}},{key:"setQueryParams",value:function e(t={}){if(i.isPlainObject(t)){const{queryParams:e,sourceQueryParams:r}=Ue.get(this);Object.entries(t).forEach((([t,n])=>{const i=ze(n);e[t]=i;r[t]=i}))}return this}},{key:"removeQueryParam",value:function e(...t){const{queryParams:r,sourceQueryParams:n}=Ue.get(this);t.forEach((e=>{delete r[e];delete n[e]}));return this}},{key:"getFragment",value:function e(){return Ue.get(this).hash}},{key:"setFragment",value:function e(t){Ue.get(this).hash=String(t);return this}},{key:"serialize",value:function e(){const t={...Ue.get(this)};delete t.sourceQueryParams;t.href=this.toString();return t}},{key:"toString",value:function e(){const t={...Ue.get(this)};let r=t.schema?`${t.schema}://`:"";if(t.useShort){r="//"}const n=(()=>{if(i.isString(t.port)&&!["","80"].includes(t.port)){return`:${t.port}`}return""})();const a=this.getHost();const s=this.getPath();const o=Ge(t.sourceQueryParams);const l=t.hash?`#${t.hash}`:"";return`${a?r:""}${a}${a?n:""}${s}${o}${l}`}}]);return e}();let Ve=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"isEmail",value:function t(r){if(!i.isStringFilled(r)){return false}if(r.length>e.MAX_EMAIL_LENGTH){return false}const n=r.indexOf("@");if(n<=0||n===r.length-1||r.includes("@",n+1)){return false}const a=r.slice(0,n);const s=r.slice(n+1);if(!e.LOCAL_ALLOWED_CHARS.test(a)){return false}if(a.startsWith(".")||a.endsWith(".")||a.startsWith("-")||a.endsWith("-")||a.includes("..")||a.length>e.MAX_LOCAL_LENGTH){return false}if(!e.DOMAIN_LABEL_CHARS.test(s)){return false}if(s.startsWith(".")||s.endsWith(".")||s.includes("..")){return false}const o=s.split(".");if(o.length<2){return false}const l=o[o.length-1];if(l.length<2||l.length>24){return false}for(const e of o){if(e.startsWith("-")||e.endsWith("-")){return false}const t=/^[\dA-Za-z\u0401\u0410-\u044f\u0451]/.test(e);const r=/[\dA-Za-z\u0401\u0410-\u044f\u0451]$/.test(e);
6if(!t||!r){return false}}return true}}]);return e}();babelHelpers.defineProperty(Ve,"MAX_EMAIL_LENGTH",254);babelHelpers.defineProperty(Ve,"MAX_LOCAL_LENGTH",64);babelHelpers.defineProperty(Ve,"LOCAL_ALLOWED_CHARS",/^[\w%+.\u0401\u0410-\u044f\u0451-]+$/);babelHelpers.defineProperty(Ve,"DOMAIN_LABEL_CHARS",/^[\w.\u0401\u0410-\u044f\u0451-]+$/);let Ye=function(){function e(){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"storage",new Map)}babelHelpers.createClass(e,[{key:"get",value:function e(t,r){if(!this.storage.has(t)){if(i.isFunction(r)){return r()}if(!i.isUndefined(r)){return r}}return this.storage.get(t)}},{key:"set",value:function e(t,r){this.storage.set(t,r)}},{key:"delete",value:function e(t){this.storage.delete(t)}},{key:"has",value:function e(t){return this.storage.has(t)}},{key:"remember",value:function e(t,r){if(!this.storage.has(t)){if(i.isFunction(r)){this.storage.set(t,r())}else if(!i.isUndefined(r)){this.storage.set(t,r)}}return this.storage.get(t)}},{key:"size",value:function e(){return this.storage.size}},{key:"keys",value:function e(){return[...this.storage.keys()]}},{key:"values",value:function e(){return[...this.storage.values()]}}]);return e}();let qe=function(e){babelHelpers.inherits(t,e);function t(...e){var r;babelHelpers.classCallCheck(this,t);r=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,...e));babelHelpers.defineProperty(babelHelpers.assertThisInitialized(r),"storage",new Map);return r}return t}(Ye);let Je=function(){function e(){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"stackKey","BX.Cache.Storage.LsStorage.stack");babelHelpers.defineProperty(this,"stack",null)}babelHelpers.createClass(e,[{key:"getStack",value:function e(){if(i.isPlainObject(this.stack)){return this.stack}const t=localStorage.getItem(this.stackKey);if(i.isString(t)&&t!==""){const e=JSON.parse(t);if(i.isPlainObject(e)){this.stack=e;return this.stack}}this.stack={};return this.stack}},{key:"saveStack",value:function e(){if(i.isPlainObject(this.stack)){const e=JSON.stringify(this.stack);localStorage.setItem(this.stackKey,e)}}},{key:"get",value:function e(t){const r=this.getStack();return r[t]}},{key:"set",value:function e(t,r){const n=this.getStack();n[t]=r;this.saveStack()}},{key:"delete",value:function e(t){const r=this.getStack();if(t in r){delete r[t]}}},{key:"has",value:function e(t){const r=this.getStack();return t in r}},{key:"keys",value:function e(){const t=this.getStack();return Object.keys(t)}},{key:"values",value:function e(){const t=this.getStack();return Object.values(t)}},{key:"size",get:function(){const e=this.getStack();return Object.keys(e).length}}]);return e}();let Ze=function(e){babelHelpers.inherits(t,e);function t(...e){var r;babelHelpers.classCallCheck(this,t);r=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,...e));babelHelpers.defineProperty(babelHelpers.assertThisInitialized(r),"storage",new Je);return r}return t}(Ye);let Ke=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(Ke,"BaseCache",Ye);babelHelpers.defineProperty(Ke,"MemoryCache",qe);babelHelpers.defineProperty(Ke,"LocalStorageCache",Ze);function Qe(e){if(i.isStringFilled(e)){return e.split(".").reduce(((e,t)=>{t.split(/\[['"]?(.+?)['"]?\]/g).forEach((t=>{if(i.isStringFilled(t)){e.push(t)}}));return e}),[])}return[]}let et=function(){function e(t={}){babelHelpers.classCallCheck(this,e);if(i.isPlainObject(t)){Object.assign(this,t)}}babelHelpers.createClass(e,[{key:"get",value:function e(t,r=null){const n=Qe(t);return n.reduce(((e,t)=>{if(!i.isNil(e)&&e!==r){if(!i.isUndefined(e[t])){return e[t]}return r}return e}),this)}}]);return e}();function tt(e){if(i.isObject(e)){Object.values(e).forEach((e=>{tt(e)}));return Object.freeze(e)}return e}const rt=new Map;let nt=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getSettings",value:function e(t){if(i.isStringFilled(t)){if(rt.has(t)){return rt.get(t)}const e=document.querySelector(`script[data-extension="${t}"]`);if(i.isDomNode(e)){const r=(()=>{try{return new et(JSON.parse(e.innerHTML))}catch(e){return new et}})();const n=tt(r);rt.set(t,n);return n}}return tt(new et)}}]);return e}();let it;function at(e,t){st(e,t);t.add(e)}function st(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function ot(e,t,r){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return r}var lt=new WeakSet;it=Symbol.iterator;let ut=function(){function e(t=null){babelHelpers.classCallCheck(this,e);at(this,lt);babelHelpers.defineProperty(this,"comparator",null);babelHelpers.defineProperty(this,"items",[]);this.comparator=i.isFunction(t)?t:null}babelHelpers.createClass(e,[{key:"add",value:function e(t){let r=-1;if(this.comparator){r=ot(this,lt,ct).call(this,t);this.items.splice(r,0,t)}else{this.items.push(t)}return r}},{key:"has",value:function e(t){return this.items.includes(t)}},{key:"getIndex",value:function e(t){return this.items.indexOf(t)}},{key:"getByIndex",value:function e(t){if(i.isNumber(t)&&t>=0){const e=this.items[t];return i.isUndefined(e)?null:e}return null}},{key:"getFirst",value:function e(){const t=this.items[0];return i.isUndefined(t)?null:t}},{key:"getLast",value:function e(){const t=this.items[this.count()-1];return i.isUndefined(t)?null:t}},{key:"count",value:function e(){return this.items.length}},{key:"delete",value:function e(t){const r=this.getIndex(t);if(r!==-1){this.items.splice(r,1);return true}return false}},{key:"clear",value:function e(){this.items=[]}},{key:it,value:function(){return this.items[Symbol.iterator]()}}
6,{key:"forEach",value:function e(t,r){return this.items.forEach(t,r)}},{key:"getAll",value:function e(){return this.items}},{key:"getComparator",value:function e(){return this.comparator}},{key:"sort",value:function e(){const t=this.getComparator();if(t===null){return}const r=this.items.length;const n=new Array(r);for(let e=0;e<r;e++){n[e]=e}n.sort(((e,r)=>t(this.items[e],this.items[r])||e-r));for(let e=0;e<r;e++){n[e]=this.items[n[e]]}for(let e=0;e<r;e++){this.items[e]=n[e]}}}]);return e}();function ct(e){let t=0;let r=this.items.length;while(t<r){const n=Math.floor((t+r)/2);if(this.comparator(this.items[n],e)>=0){r=n}else{t=n+1}}return t}let ft=function(e){babelHelpers.inherits(t,e);function t(e,r={}){var n;babelHelpers.classCallCheck(this,t);n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this));babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"sort",0);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"alwaysOnTop",false);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"zIndex",0);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"element",null);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"overlay",null);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"overlayGap",-5);babelHelpers.defineProperty(babelHelpers.assertThisInitialized(n),"stack",null);n.setEventNamespace("BX.Main.ZIndexManager.Component");if(!i.isElementNode(e)){throw new Error("ZIndexManager.Component: The argument 'element' must be a DOM element.")}n.element=e;const a=i.isPlainObject(r)?r:{};n.setAlwaysOnTop(a.alwaysOnTop);n.setOverlay(a.overlay);n.setOverlayGap(a.overlayGap);n.subscribeFromOptions(a.events);return n}babelHelpers.createClass(t,[{key:"getSort",value:function e(){return this.sort}},{key:"setSort",value:function e(t){if(i.isNumber(t)){this.sort=t}}},{key:"setStack",value:function e(t){this.stack=t}},{key:"getStack",value:function e(){return this.stack}},{key:"getZIndex",value:function e(){return this.zIndex}},{key:"setZIndex",value:function e(t){const r=this.getZIndex()!==t;this.getElement().style.setProperty("z-index",t,"important");this.zIndex=t;if(this.getOverlay()!==null){this.getOverlay().style.setProperty("z-index",t+this.getOverlayGap(),"important")}if(r){this.emit("onZIndexChange",{component:this})}}},{key:"getAlwaysOnTop",value:function e(){return this.alwaysOnTop}},{key:"setAlwaysOnTop",value:function e(t){if(i.isNumber(t)||i.isBoolean(t)){this.alwaysOnTop=t}}},{key:"getElement",value:function e(){return this.element}},{key:"setOverlay",value:function e(t,r){if(i.isElementNode(t)||t===null){this.overlay=t;this.setOverlayGap(r);if(this.getStack()){this.getStack().sort()}}}},{key:"getOverlay",value:function e(){return this.overlay}},{key:"setOverlayGap",value:function e(t){if(i.isNumber(t)){this.overlayGap=t}}},{key:"getOverlayGap",value:function e(){return this.overlayGap}}]);return t}(le);let pt=function(){function e(t){babelHelpers.classCallCheck(this,e);babelHelpers.defineProperty(this,"container",null);babelHelpers.defineProperty(this,"components",null);babelHelpers.defineProperty(this,"elements",new WeakMap);babelHelpers.defineProperty(this,"baseIndex",1e3);babelHelpers.defineProperty(this,"baseStep",50);babelHelpers.defineProperty(this,"sortCount",0);if(!i.isDomNode(t)){throw new Error("ZIndexManager.Stack: The 'container' argument must be a DOM element.")}this.container=t;const r=(e,t)=>{let r=(e.getAlwaysOnTop()||0)-(t.getAlwaysOnTop()||0);if(!r){r=e.getSort()-t.getSort()}return r};this.components=new ut(r)}babelHelpers.createClass(e,[{key:"getBaseIndex",value:function e(){return this.baseIndex}},{key:"setBaseIndex",value:function e(t){if(i.isNumber(t)&&t>=0){this.baseIndex=t;this.sort()}}},{key:"setBaseStep",value:function e(t){if(i.isNumber(t)&&t>0){this.baseStep=t;this.sort()}}},{key:"getBaseStep",value:function e(){return this.baseStep}},{key:"register",value:function e(t,r={}){if(this.getComponent(t)){console.warn("ZIndexManager: You cannot register the element twice.",t);return this.getComponent(t)}const n=new ft(t,r);n.setStack(this);n.setSort(++this.sortCount);this.elements.set(t,n);this.components.add(n);this.sort();return n}},{key:"unregister",value:function e(t){const r=this.elements.get(t);this.components.delete(r);this.elements.delete(t);this.sort()}},{key:"getComponent",value:function e(t){return this.elements.get(t)||null}},{key:"getComponents",value:function e(){return this.components.getAll()}},{key:"getMaxZIndex",value:function e(){const t=this.components.getLast();return t?t.getZIndex():this.baseIndex}},{key:"sort",value:function e(){this.components.sort();let t=this.baseIndex;
6this.components.forEach((e=>{e.setZIndex(t);t+=this.baseStep}))}},{key:"bringToFront",value:function e(t){const r=this.getComponent(t);if(!r){console.error("ZIndexManager: element was not found in the stack.",t);return null}r.setSort(++this.sortCount);this.sort();return r}}]);return e}();function dt(e,t,r){ht(e,t);return r}function ht(e,t){if(e!==t){throw new TypeError("Private static access of wrong provenance")}}let vt=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"register",value:function t(r,n={}){const i=dt(this,e,yt).call(this,r);if(!i){return null}const a=this.getOrAddStack(i);return a.register(r,n)}},{key:"unregister",value:function t(r){const n=dt(this,e,yt).call(this,r);const i=this.getStack(n);if(i){i.unregister(r)}}},{key:"addStack",value:function e(t){const r=new pt(t);this.stacks.set(t,r);return r}},{key:"getStack",value:function e(t){return this.stacks.get(t)||null}},{key:"getOrAddStack",value:function e(t){return this.getStack(t)||this.addStack(t)}},{key:"getComponent",value:function t(r){const n=dt(this,e,yt).call(this,r,true);if(!n){return null}const i=this.getStack(n);return i?i.getComponent(r):null}},{key:"bringToFront",value:function t(r){const n=dt(this,e,yt).call(this,r);const i=this.getStack(n);if(i){return i.bringToFront(r)}return null}}]);return e}();function yt(e,t=false){if(!i.isElementNode(e)){if(!t){console.error("ZIndexManager: The argument 'element' must be a DOM element.",e)}return null}else if(!i.isElementNode(e.parentNode)){if(!t){console.error("ZIndexManager: The 'element' doesn't have a parent node.",e)}return null}return e.parentNode}babelHelpers.defineProperty(vt,"stacks",new WeakMap);function gt(e,t){bt(e,t);t.add(e)}function mt(e,t,r){bt(e,t);t.set(e,r)}function bt(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function wt(e,t,r){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return r}const St=typeof WeakRef!=="undefined";var xt=new WeakMap;var Et=new WeakMap;var Tt=new WeakSet;let Ot=function(){function e(){babelHelpers.classCallCheck(this,e);gt(this,Tt);mt(this,xt,{writable:true,value:new Map});mt(this,Et,{writable:true,value:null});if(St){babelHelpers.classPrivateFieldSet(this,Et,new FinalizationRegistry(wt(this,Tt,jt).bind(this)))}}babelHelpers.createClass(e,[{key:"clear",value:function e(){if(!St){babelHelpers.classPrivateFieldGet(this,xt).clear();return}babelHelpers.classPrivateFieldGet(this,xt).forEach(((e,t)=>{const r=e===null||e===void 0?void 0:e.deref();if(!i.isUndefined(r)){babelHelpers.classPrivateFieldGet(this,Et).unregister(r)}}));babelHelpers.classPrivateFieldGet(this,xt).clear()}},{key:"delete",value:function e(t){if(!St){return babelHelpers.classPrivateFieldGet(this,xt).delete(t)}const r=this.get(t);if(!i.isUndefined(r)){babelHelpers.classPrivateFieldGet(this,Et).unregister(r)}return babelHelpers.classPrivateFieldGet(this,xt).delete(t)}},{key:"get",value:function e(t){var r;if(!St){return babelHelpers.classPrivateFieldGet(this,xt).get(t)}return(r=babelHelpers.classPrivateFieldGet(this,xt).get(t))===null||r===void 0?void 0:r.deref()}},{key:"has",value:function e(t){var r;if(!St){return babelHelpers.classPrivateFieldGet(this,xt).has(t)}return!i.isUndefined((r=babelHelpers.classPrivateFieldGet(this,xt).get(t))===null||r===void 0?void 0:r.deref())}},{key:"set",value:function e(t,r){if(!St){babelHelpers.classPrivateFieldGet(this,xt).set(t,r);return this}babelHelpers.classPrivateFieldGet(this,xt).set(t,new WeakRef(r));babelHelpers.classPrivateFieldGet(this,Et).register(r,t,r);return this}}]);return e}();function jt(e){const t=babelHelpers.classPrivateFieldGet(this,xt).get(e);if(t&&!t.deref()){babelHelpers.classPrivateFieldGet(this,xt).delete(e)}}var Bt={OrderedArray:ut,SettingsCollection:et,WeakRefMap:Ot};function kt(e,t,r){Pt(e,t);t.set(e,r)}function Pt(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function At(e,t,r){Xt(e,t);return r}function Xt(e,t){if(e!==t){throw new TypeError("Private static access of wrong provenance")}}var Nt=new WeakMap;let Ct=function(){function e(t){babelHelpers.classCallCheck(this,e);kt(this,Nt,{writable:true,value:null});const r=i.isPlainObject(t)?t:{};const n=i.isFunction(r.callback)?r.callback:null;const a=i.isFunction(r.callback_start)?r.callback_start:null;const s=i.isFunction(r.callback_complete)?r.callback_complete:null;const o={transition:"linear",duration:i.isNumber(r.time)&&r.time>0?r.time*1e3:1e3,begin:e=>{if(a!==null){a(i.isUndefined(e._param)?e:e._param)}},step:e=>{if(n!==null){n(i.isUndefined(e._param)?e:e._param)}},complete:e=>{if(s!==null){s(i.isUndefined(e._param)?e:e._param)}}};if(i.isPlainObject(r.start)){o.start=r.start;o.finish=r.finish}else{o.start={_param:r.start};o.finish={_param:r.finish}}if(r.type==="accelerated"){o.transition="quint"}
6else if(r.type==="decelerated"){r.transition="ease-out-quint"}babelHelpers.classPrivateFieldSet(this,Nt,new er(o))}babelHelpers.createClass(e,[{key:"start",value:function e(){babelHelpers.classPrivateFieldGet(this,Nt).animate();return this}},{key:"stop",value:function e(t=false){babelHelpers.classPrivateFieldGet(this,Nt).stop(t)}},{key:"pause",value:function e(){}}],[{key:"hide",value:function t(r,n,i){return At(this,e,_t).call(this,"hide",r,n,i)}},{key:"show",value:function t(r,n,i){return At(this,e,_t).call(this,"show",r,n,i)}}]);return e}();function _t(e,t,r,n){let a={};let s=null;const o=i.isStringFilled(t)?document.getElementById(t):t;if(i.isPlainObject(r)&&i.isNil(n)){a=r;s=a.type}else if(i.isPlainObject(n)){a=n;s=r}if(!i.isStringFilled(s)){ve.style(o,"display",e==="show"?"block":"none");return undefined}const l=s==="scroll"?At(this,Ct,It).call(this,o,a,e):At(this,Ct,Lt).call(this,o,a,e);l.callback_complete=()=>{if(a.show!==false&&a.hide!==false){ve.style(o,"display",e==="show"?"block":"none")}if(a.callback_complete){a.callback_complete()}};return new Ct(l).start()}function It(e,t){const r=t.direction==="horizontal"?"width":"height";let n=parseInt(ve.style(e,r),10);if(Number.isNaN(n)){n=ve.getPosition(e)[r]}const i=n;const a=t.min_height?parseInt(t.min_height,10):0;return{start:i,finish:a,time:t.time||1,type:"linear",callback_start:()=>{if(ve.style(e,"position")==="static"){ve.style(e,"position","relative")}ve.style(e,"overflow","hidden");ve.style(e,r,`${i}px`);ve.style(e,"display","block")},callback:t=>{ve.style(e,r,`${t}px`)}}}function Lt(e,t,r){return{time:t.time||1,type:r==="show"?"linear":"decelerated",start:r==="show"?0:100,finish:r==="show"?100:0,callback_start:()=>{ve.style(e,"display","block")},callback:t=>{ve.style(e,"opacity",t/100)}}}let Mt=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"linear",value:function e(t){return t}},{key:"quad",value:function e(t){return t**2}},{key:"cubic",value:function e(t){return t**3}},{key:"quart",value:function e(t){return t**4}},{key:"quint",value:function e(t){return t**5}},{key:"circ",value:function e(t){return 1-Math.sin(Math.acos(t))}},{key:"back",value:function e(t){return t**2*((1.5+1)*t-1.5)}},{key:"elasti",value:function e(t){return 2**(10*(t-1))*Math.cos(20*Math.PI*1.5/3*t)}},{key:"bounce",value:function e(t){for(let e=0,r=1;;e+=r,r/=2){if(t>=(7-4*e)/11){return-(((11-6*e-11*t)/4)**2)+r**2}}}}]);return e}();function Ft(e,t){Dt(e,t);t.add(e)}function Ht(e,t,r){Dt(e,t);t.set(e,r)}function Dt(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function Rt(e,t,r){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return r}var Wt=new WeakMap;var Gt=new WeakMap;var zt=new WeakMap;var Ut=new WeakMap;var $t=new WeakMap;var Vt=new WeakMap;var Yt=new WeakMap;var qt=new WeakMap;var Jt=new WeakMap;var Zt=new WeakMap;var Kt=new WeakMap;var Qt=new WeakSet;let er=function(){function e(t){babelHelpers.classCallCheck(this,e);Ft(this,Qt);Ht(this,Wt,{writable:true,value:1e3});Ht(this,Gt,{writable:true,value:Mt.linear});Ht(this,zt,{writable:true,value:null});Ht(this,Ut,{writable:true,value:null});Ht(this,$t,{writable:true,value:null});Ht(this,Vt,{writable:true,value:{}});Ht(this,Yt,{writable:true,value:{}});Ht(this,qt,{writable:true,value:{}});Ht(this,Jt,{writable:true,value:null});Ht(this,Zt,{writable:true,value:null});Ht(this,Kt,{writable:true,value:null});this.setOptions(t)}babelHelpers.createClass(e,[{key:"setOptions",value:function e(t){const r=i.isPlainObject(t)?t:{};babelHelpers.classPrivateFieldSet(this,Wt,i.isNumber(r.duration)&&r.duration>0?r.duration:babelHelpers.classPrivateFieldGet(this,Wt));babelHelpers.classPrivateFieldSet(this,zt,i.isFunction(r.begin)||r.begin===null?r.begin:babelHelpers.classPrivateFieldGet(this,zt));babelHelpers.classPrivateFieldSet(this,Ut,i.isFunction(r.step)||r.step===null?r.step:babelHelpers.classPrivateFieldGet(this,Ut));babelHelpers.classPrivateFieldSet(this,$t,i.isFunction(r.complete)||r.complete===null?r.complete:babelHelpers.classPrivateFieldGet(this,$t));babelHelpers.classPrivateFieldSet(this,Jt,i.isFunction(r.progress)||r.progress===null?r.progress:babelHelpers.classPrivateFieldGet(this,Jt));babelHelpers.classPrivateFieldSet(this,Vt,i.isPlainObject(r.start)?{...r.start}:babelHelpers.classPrivateFieldGet(this,Vt));babelHelpers.classPrivateFieldSet(this,Yt,i.isPlainObject(r.finish)?{...r.finish}:babelHelpers.classPrivateFieldGet(this,Yt))}},{key:"setTransition",value:function e(t){if(i.isFunction(t)){babelHelpers.classPrivateFieldSet(this,Gt,t)}else if(i.isStringFilled(t)){let e=t;let r=null;if(t.startsWith("ease-out-")){e=e.replace("ease-out-","");r=this.constructor.makeEaseOut}else if(t.startsWith("ease-in-out-")){e=e.replace("ease-in-out-","");r=this.constructor.makeEaseInOut}if(i.isFunction(Mt[e])){babelHelpers.classPrivateFieldSet(this,Gt,r===null?Mt[e]:r(Mt[e]))}}}},{key:"animateProgress",value:function e(){Rt(this,Qt,tr).call(this)}},{key:"animate",value:function e(){babelHelpers.classPrivateFieldSet(this,Jt,(e=>{babelHelpers.classPrivateFieldSet(this,qt,{});for(const t of Object.keys(babelHelpers.classPrivateFieldGet(this,Vt))){babelHelpers.classPrivateFieldGet(this,qt)[t]=Math.round(babelHelpers.classPrivateFieldGet(this,Vt)[t]+(babelHelpers.classPrivateFieldGet(this,Yt)[t]-babelHelpers.classPrivateFieldGet(this,Vt)[t])*e)}if(babelHelpers.classPrivateFieldGet(this,Ut)!==null){babelHelpers.classPrivateFieldGet(this,Ut).call(this,babelHelpers.classPrivateFieldGet(this,qt))}}));Rt(this,Qt,tr).call(this)}},{key:"stop",value:function e(t=false){if(babelHelpers.classPrivateFieldGet(this,Zt)!==null){cancelAnimationFrame(babelHelpers.classPrivateFieldGet(this,Zt));babelHelpers.classPrivateFieldSet(this,Zt,null);if(t&&babelHelpers.classPrivateFieldGet(this,$t)!==null){babelHelpers.classPrivateFieldGet(this,$t).call(this,babelHelpers.classPrivateFieldGet(this,qt))}}}},{key:"options",get:function(){if(babelHelpers.classPrivateFieldGet(this,Kt)===null){babelHelpers.classPrivateFieldSet(this,Kt,new Proxy(this,{get(e,t,r){switch(t){case"transition":return babelHelpers.classPrivateFieldGet(this,Gt);case"start":return babelHelpers.classPrivateFieldGet(this,Vt);case"finish":return babelHelpers.classPrivateFieldGet(this,Yt);case"duration":return babelHelpers.classPrivateFieldGet(this,Wt);default:return null}},set(e,t,r,n){e.setOptions({[t]:r});return true}}))}return babelHelpers.classPrivateFieldGet(this,Kt)}}],[{key:"makeEaseInOut",value:function e(t){return e=>{if(e<.5){return t(2*e)/2}return(2-t(2*(1-e)))/2}}},{key:"makeEaseOut",value:function e(t){return e=>1-t(1-e)}},{key:"transitions",get:function(){return Mt}}]);return e}();function tr(){for(const e of Object.keys(babelHelpers.classPrivateFieldGet(this,Vt))){if
6(i.isUndefined(babelHelpers.classPrivateFieldGet(this,Yt)[e])){delete babelHelpers.classPrivateFieldGet(this,Vt)[e]}}let e=null;const t=r=>{if(e===null){e=r}let n=(r-e)/babelHelpers.classPrivateFieldGet(this,Wt);if(n>1){n=1}const i=babelHelpers.classPrivateFieldGet(this,Gt).call(this,n);babelHelpers.classPrivateFieldGet(this,Jt).call(this,i);if(n===1){this.stop(true)}else{babelHelpers.classPrivateFieldSet(this,Zt,requestAnimationFrame(t))}};if(babelHelpers.classPrivateFieldGet(this,zt)!==null){babelHelpers.classPrivateFieldGet(this,zt).call(this,babelHelpers.classPrivateFieldGet(this,qt))}babelHelpers.classPrivateFieldSet(this,Zt,requestAnimationFrame(t))}function rr(e,t){ir(e,t);t.add(e)}function nr(e,t,r){ir(e,t);t.set(e,r)}function ir(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function ar(e,t,r){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return r}var sr=new WeakMap;var or=new WeakSet;var lr=new WeakSet;var ur=new WeakSet;var cr=new WeakSet;var fr=new WeakSet;var pr=new WeakSet;var dr=new WeakSet;var hr=new WeakSet;let vr=function(){function e(t={}){babelHelpers.classCallCheck(this,e);rr(this,hr);rr(this,dr);rr(this,pr);rr(this,fr);rr(this,cr);rr(this,ur);rr(this,lr);rr(this,or);nr(this,sr,{writable:true,value:null});const r=i.isPlainObject(t)?t:{};ar(this,or,yr).call(this,r.prefix);fe.bind(window,"storage",ar(this,lr,gr).bind(this));setInterval(ar(this,ur,mr).bind(this),5e3)}babelHelpers.createClass(e,[{key:"set",value:function e(t,r,n=60){if(!i.isStringFilled(t)||i.isNil(r)){return false}try{window.localStorage.setItem(this.getPrefix()+t,`${Math.round(Date.now()/1e3)+n}:${ar(this,cr,br).call(this,r)}`)}catch{console.error("LocalStorage error",t,n);return false}return true}},{key:"get",value:function e(t){const r=window.localStorage.getItem(this.getPrefix()+t);if(r){const e=ar(this,dr,xr).call(this,r);if(e===null){return null}const[n,i]=e;if(Date.now()<=n){return ar(this,fr,wr).call(this,i)}this.remove(t)}return null}},{key:"remove",value:function e(t){window.localStorage.removeItem(this.getPrefix()+t)}},{key:"getPrefix",value:function e(){if(babelHelpers.classPrivateFieldGet(this,sr)===null){const e=Ee.hasMessage("USER_ID")?Ee.getMessage("USER_ID"):"";const t=Ee.hasMessage("SITE_ID")?Ee.getMessage("SITE_ID"):"admin";babelHelpers.classPrivateFieldSet(this,sr,`${this.getBasePrefix()}${e}-${t}-`)}return babelHelpers.classPrivateFieldGet(this,sr)}},{key:"getBasePrefix",value:function e(){return"bx"}}]);return e}();function yr(e){if(i.isString(e)){babelHelpers.classPrivateFieldSet(this,sr,`${this.getBasePrefix()}-${e}`)}}function gr(e){if(!i.isStringFilled(e.key)||!e.key.startsWith(this.getPrefix())){return}const t=e.key.slice(this.getPrefix().length);const r=ar(this,pr,Sr).call(this,e.newValue);const n=ar(this,pr,Sr).call(this,e.oldValue);const a={key:t,value:r,oldValue:n};if(t==="BXGCE"){if(r){le.emit(a.value.e,new K({data:a.value.p,compatData:a.value.p}))}}else{if(e.newValue){le.emit("onLocalStorageSet",new K({data:[a],compatData:[a]}))}if(e.oldValue&&!e.newValue){le.emit("onLocalStorageRemove",new K({data:[a],compatData:[a]}))}le.emit("onLocalStorageChange",new K({data:[a],compatData:[a]}))}}function mr(){const e=Date.now();for(let t=0;t<window.localStorage.length;t++){const r=window.localStorage.key(t);if(r.startsWith(this.getBasePrefix())){const t=window.localStorage.getItem(r);const n=ar(this,dr,xr).call(this,t);if(n===null){continue}const[i]=n;if(e>=i){window.localStorage.removeItem(r)}}}}function br(e){if(i.isJsonValue(e)){return JSON.stringify(e)}return e.toString()}function wr(e){let t=null;if(i.isStringFilled(e)){try{t=JSON.parse(e)}catch{t=e}}return t}function Sr(e){const t=ar(this,dr,xr).call(this,e);if(t===null){return null}return ar(this,fr,wr).call(this,t[1])}function xr(e){if(!ar(this,hr,Er).call(this,e)){return null}const[t]=e.split(":",1);const r=e.slice(t.length+1);return[parseInt(t,10)*1e3,r]}function Er(e){return i.isStringFilled(e)&&/^\d{10}:/.test(e)}const Tr=new vr;function Or(e,t,r){jr(e,t);return r}function jr(e,t){if(e!==t){throw new TypeError("Private static access of wrong provenance")}}let Br=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"getRootWindow",value:function e(){return this.getTopWindowOfCurrentHost(window)}},{key:"isCrossOriginObject",value:function e(t){try{void t.location.host}catch{return true}return false}},{key:"getTopWindowOfCurrentHost",value:function e(t){if(!this.isCrossOriginObject(t.parent)&&t.parent!==t&&t.parent.location.host===t.location.host){return this.getTopWindowOfCurrentHost(t.parent)}return t}},{key:"getParentWindowOfCurrentHost",value:function e(t){if(this.isCrossOriginObject(t.parent)){return t}return t.parent}},{key:"redirect",value:function t(r,n={}){if(!i.isStringFilled(r)){throw new Error('Redirect: "url" must be a non-empty string.')}const a=this.getRootWindow();let s=null;try{s=new URL(r,a.location.origin)}catch{throw new Error(`Redirect: invalid URL: ${r}`)}const o=i.isPlainObject(n)?n:{};if(!Or(this,e,kr).call(this,s,o.allowedOrigins)){console.error(`Redirect: blocked potentially unsafe URL: ${s}`);return}const l=s.toString();if(o.newTab===true){const e=a.open(l,"_blank","noopener,noreferrer");if(e){e.opener=null}return}if(o.replaceHistory===true){a.location.replace(l)}else{a.location.assign(l)}}},{key:"reload",value:function e(){const t=this.getRootWindow();t.location.reload()}}]);return e}();function kr(e,t=[]){if(!(e instanceof URL)){return false}const r=["http:","https:"];if(!r.includes(e.protocol)){return false}const n=this.getRootWindow();if(e.origin===n.location.origin){return true}if(i.isArray(t)&&t.length>0){return t.includes(e.origin)}return false}function Pr(e){if(i.isString(e)){return document.getElementById(e)}return e}function Ar(e){if(i.isElementNode(e)){return e.ownerDocument.parentWindow||e.ownerDocument.defaultView||window}if(i.isDomNode(e)){return e.parentWindow||e.defaultView||window}return window}
6const{getClass:Xr,namespace:Nr}=a;const Cr=xe;const _r=er;const Ir=Ct;const Lr=Br;const{replace:Mr,remove:Fr,clean:Hr,insertBefore:Dr,insertAfter:Rr,append:Wr,prepend:Gr,style:zr,adjust:Ur,create:$r,isShown:Vr}=ve;const Yr=function e(){ve.addClass(...q.merge([],Array.from(arguments),[Pr(arguments[0])]))};const qr=function e(){ve.removeClass(...q.merge(Array.from(arguments),[Pr(arguments[0])]))};const Jr=function e(){return ve.hasClass(...q.merge(Array.from(arguments),[Pr(arguments[0])]))};const Zr=function e(){ve.toggleClass(...q.merge(Array.from(arguments),[Pr(arguments[0])]))};const Kr=(e,t=false)=>{const r=Pr(e);if(i.isDomNode(r)){ve.clean(r);if(t){ve.remove(r);return r}}return r};const Qr=Se.Cookie.get;const en=(e,t,r={})=>{const n={...r};if(i.isNumber(n.expires)){n.expires/=3600*24}Se.Cookie.set(e,t,n)};const{bind:tn,unbind:rn,unbindAll:nn,bindOnce:an,ready:sn}=fe;const{debugState:on,isDebugEnabled:ln,default:un}=O;const cn=e=>{if(e){S()}else{x()}};const{clone:fn,loadExtension:pn,debounce:dn,throttle:hn,html:vn}=q;const yn={...Object.getOwnPropertyNames(i).filter((e=>!["name","length","prototype","caller","arguments"].includes(e))).reduce(((e,t)=>{e[t]=i[t];return e}),{}),isNotEmptyString:e=>i.isString(e)&&e!=="",isNotEmptyObject:e=>i.isObjectLike(e)&&Object.keys(e).length>0,isMapKey:i.isObject,stringToInt:e=>{const t=parseInt(e);return!Number.isNaN(t)?t:0}};const gn={IsOpera:ge.isOpera,IsIE:ge.isIE,IsIE6:ge.isIE6,IsIE7:ge.isIE7,IsIE8:ge.isIE8,IsIE9:ge.isIE9,IsIE10:ge.isIE10,IsIE11:ge.isIE11,IsSafari:ge.isSafari,IsFirefox:ge.isFirefox,IsChrome:ge.isChrome,DetectIeVersion:ge.detectIEVersion,IsMac:ge.isMac,IsAndroid:ge.isAndroid,isIPad:ge.isIPad,isIPhone:ge.isIPhone,IsIOS:ge.isIOS,IsMobile:ge.isMobile,isRetina:ge.isRetina,IsDoctype:ge.isDoctype,SupportLocalStorage:ge.isLocalStorageSupported,addGlobalClass:ge.addGlobalClass,DetectAndroidVersion:ge.detectAndroidVersion,isPropertySupported:ge.isPropertySupported,addGlobalFeatures:ge.addGlobalFeatures};const mn=window.BX?window.BX.ajax:()=>{};function bn(e=document){return{scrollWidth:e.documentElement.scrollWidth,scrollHeight:e.documentElement.scrollHeight}}function wn(e=document){const t=Ar(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sn(e=document){const t=Ar(e);return{innerWidth:t.innerWidth,innerHeight:t.innerHeight}}function xn(e=document){return{...Sn(e),...wn(e),...bn(e)}}function En(e){return Ar(e)}function Tn(e,t=false){if(!e){return(new DOMRect).toJSON()}if(e.ownerDocument===document&&!t){const t=e.getBoundingClientRect();const r=document.documentElement;const{body:n}=document;return{top:Math.round(t.top+(r.scrollTop||n.scrollTop)),left:Math.round(t.left+(r.scrollLeft||n.scrollLeft)),width:Math.round(t.right-t.left),height:Math.round(t.bottom-t.top),right:Math.round(t.right+(r.scrollLeft||n.scrollLeft)),bottom:Math.round(t.bottom+(r.scrollTop||n.scrollTop))}}let r=0;let n=0;const i=e.offsetWidth;const a=e.offsetHeight;let s=true;for(;e!=null;e=e.offsetParent){if(!s&&t&&BX.is_relative(e)){break}r+=e.offsetLeft;n+=e.offsetTop;if(s){s=false;continue}r+=c.toNumber(ve.style(e,"border-left-width"));n+=c.toNumber(ve.style(e,"border-top-width"))}return new DOMRect(r,n,i,a).toJSON()}function On(e,t,r){if(i.isString(e)){r=t;t=e;e=le.GLOBAL_TARGET}if(e===window){e=le.GLOBAL_TARGET}if(!i.isObject(e)){console.error('The "eventObject" argument must be an object. Received type '+typeof e+".");return}if(!i.isStringFilled(t)){console.error('The "eventName" argument must be a string.');return}if(!i.isFunction(r)){console.error('The "eventHandler" argument must be a function. Received type '+typeof r+".");return}t=t.toLowerCase();le.subscribe(e,t,r,{compatMode:true,useGlobalNaming:true})}function jn(e,t,r,n){if(i.isString(e)){n=r;r=t;t=e;e=le.GLOBAL_TARGET}if(!i.isObject(e)||e===window){e=le.GLOBAL_TARGET}if(!r){r=[]}t=t.toLowerCase();const a=new K;a.setData(r);a.setCompatData(r);le.emit(e,t,a,{cloneData:n===true,useGlobalNaming:true})}function Bn(e,t,r){if(i.isString(e)){r=t;t=e;e=le.GLOBAL_TARGET}if(!i.isFunction(r)){console.error('The "eventHandler" argument must be a function. Received type '+typeof r+".");return}if(e===window){e=le.GLOBAL_TARGET}t=t.toLowerCase();le.unsubscribe(e,t,r,{useGlobalNaming:true})}function kn(e,t){if(i.isString(e)){t=e;e=le.GLOBAL_TARGET}if(e===window){e=le.GLOBAL_TARGET}t=t.toLowerCase();le.unsubscribeAll(e,t,{useGlobalNaming:true})}function Pn(e,t,r){Tr.set("BXGCE",{e:e,p:t},1);if(!r){jn(e,t)}}if(typeof global==="object"&&global.window&&global.window.BX){Object.assign(global.window.BX,e)}e.Type=i;e.Reflection=a;e.Text=c;e.Dom=ve;e.Browser=ge;e.Event=fe;e.Http=Se;e.Runtime=q;e.Loc=Ee;e.Tag=_e;e.Uri=$e;e.Validation=Ve;e.Cache=Ke;e.BaseError=Z;e.Extension=nt;e.ZIndexManager=vt;e.Collections=Bt;e.Easing=er;e.LocalStorage=vr;e.localStorage=Tr;e.Page=Br;e.getClass=Xr;e.namespace=Nr;e.message=Cr;e.easing=_r;e.fx=Ir;e.PageObject=Lr;e.replace=Mr;e.remove=Fr;e.clean=Hr;e.insertBefore=Dr;e.insertAfter=Rr;e.append=Wr;e.prepend=Gr;e.style=zr;e.adjust=Ur;e.create=$r;e.isShown=Vr;e.addClass=Yr;e.removeClass=qr;e.hasClass=Jr;e.toggleClass=Zr;e.cleanNode=Kr;e.getCookie=Qr;e.setCookie=en;e.bind=tn;e.unbind=rn;e.unbindAll=nn;e.bindOnce=an;e.ready=sn;e.debugEnableFlag=on;e.debugStatus=ln;e.debug=un;e.debugEnable=cn;e.clone=fn;e.loadExt=pn;e.debounce=dn;e.throttle=hn;e.html=vn;e.type=yn;e.browser=gn;e.ajax=mn;e.GetWindowScrollSize=bn;e.GetWindowScrollPos=wn;e.GetWindowInnerSize=Sn;e.GetWindowSize=xn;e.GetContext=En;e.pos=Tn;e.addCustomEvent=On;e.onCustomEvent=jn;e.removeCustomEvent=Bn;e.removeAllCustomEvents=kn;e.onGlobalCustomEvent=Pn})(this.BX=this.BX||{});(function(BX){var proxyList=new WeakMap;var deferList=new WeakMap;var deniedEvents=[];var customEvents=new WeakMap;var customEventsCnt=0;var garbageCollectors=[];var cssList=[];var cssInit=false;var jsList=[];var jsInit=false;var eventTypes={click:"MouseEvent",dblclick:"MouseEvent",mousedown:"MouseEvent",mousemove:"MouseEvent",mouseout:"MouseEvent",mouseover:"MouseEvent",mouseup:"MouseEvent",focus:"MouseEvent",blur:"MouseEvent"};var lastWait=[];var CHECK_FORM_ELEMENTS={tagName:/^INPUT|SELECT|TEXTAREA|BUTTON$/i};BX.MSLEFT=1;BX.MSMIDDLE=2;BX.MSRIGHT=4;BX.AM_PM_UPPER=1;BX.AM_PM_LOWER=2;BX.AM_PM_NONE=false;BX.ext=function(e){for(var t in e){if(e.hasOwnProperty(t)){this[t]=e[t]}}};var r={script:/<script([^>]*)>/gi,script_end:/<\/script>/gi,script_src:/src=["\']([^"\']+)["\']/i,script_type:/type=["\']([^"\']+)["\']/i,space:/\s+/,ltrim:/^[\s\r\n]+/g,rtrim:/[\s\r\n]+$/g,style:/<link[^>
6]*?(rel="stylesheet"|type="text\/css")[^>]*>/i,style_href:/href=["\']([^"\']+)["\']/i};BX.processHTML=function(e,t){var n,i,a,s,o,l=[],u=[];var c=[];var f=r.script.lastIndex=r.script_end.lastIndex=0;while((n=r.script.exec(e))!==null){r.script_end.lastIndex=r.script.lastIndex;var p=r.script_end.exec(e);if(p===null){break}var d=false;if((o=n[1].match(r.script_type))!==null){if(o[1]=="text/html"||o[1]=="text/template"||o[1]=="extension/settings"){d=true}}if(d){c.push([f,r.script_end.lastIndex-f])}else{c.push([f,n.index-f]);var h=t||n[1].indexOf("bxrunfirst")!="-1";if((a=n[1].match(r.script_src))!==null){l.push({bRunFirst:h,isInternal:false,JS:a[1]})}else{var v=n.index+n[0].length;var y=e.substr(v,p.index-v);l.push({bRunFirst:h,isInternal:true,JS:y})}}f=p.index+9;r.script.lastIndex=f}c.push([f,f===0?e.length:e.length-f]);var g="";for(var m=0,b=c.length;m<b;m++){if(BX.type.isString(e)&&BX.type.isFunction(e.substr)){g+=e.substr(c[m][0],c[m][1])}}while((i=g.match(r.style))!==null){if((s=i[0].match(r.style_href))!==null&&i[0].indexOf('media="')<0){u.push(s[1])}g=g.replace(i[0],"")}return{HTML:g,SCRIPT:l,STYLE:u}};BX.extend=function(e,t){var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e;e.superclass=t.prototype;e.prototype.superclass=t.prototype;if(t.prototype.constructor==Object.prototype.constructor){t.prototype.constructor=t}};BX.is_subclass_of=function(e,t){if(e instanceof t)return true;if(t.superclass)return BX.is_subclass_of(e,t.superclass);return false};BX.clearNodeCache=function(){return false};BX.bitrix_sessid=function(){return BX.message("bitrix_sessid")};BX.createFragment=function(e){var t=document.createDocumentFragment();if(!BX.type.isArray(e)){return t}for(var r=0;r<e.length;r++){t.appendChild(e[r])}return t};BX.setOpacity=function(e,t){var r=parseFloat(t);if(!isNaN(r)&&BX.type.isDomNode(e)){r=r<1?r:r/100;BX.style(e,"opacity",r)}};BX.hoverEvents=function(e){if(e)return BX.adjust(e,{events:BX.hoverEvents()});else return{mouseover:BX.hoverEventsHover,mouseout:BX.hoverEventsHout}};BX.hoverEventsHover=function(){BX.addClass(this,"bx-hover");this.BXHOVER=true};BX.hoverEventsHout=function(){BX.removeClass(this,"bx-hover");this.BXHOVER=false};BX.focusEvents=function(e){if(e)return BX.adjust(e,{events:BX.focusEvents()});else return{mouseover:BX.focusEventsFocus,mouseout:BX.focusEventsBlur}};BX.focusEventsFocus=function(){BX.addClass(this,"bx-focus");this.BXFOCUS=true};BX.focusEventsBlur=function(){BX.removeClass(this,"bx-focus");this.BXFOCUS=false};BX.setUnselectable=function(e){BX.style(e,{userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none"});e.setAttribute("unSelectable","on")};BX.setSelectable=function(e){BX.style(e,{userSelect:null,MozUserSelect:null,WebkitUserSelect:null,KhtmlUserSelect:null});e.removeAttribute("unSelectable")};BX.styleIEPropertyName=function(e){if(e=="float")e=BX.browser.IsIE()?"styleFloat":"cssFloat";else{var t=BX.browser.isPropertySupported(e);if(t){e=t}else{var r=/(\-([a-z]){1})/g;if(r.test(e)){e=e.replace(r,(function(){return arguments[2].toUpperCase()}))}}}return e};BX.focus=function(e){try{e.focus();return true}catch(e){return false}};BX.firstChild=function(e){return BX.type.isDomNode(e)?e.firstElementChild:null};BX.lastChild=function(e){return BX.type.isDomNode(e)?e.lastElementChild:null};BX.previousSibling=function(e){return BX.type.isDomNode(e)?e.previousElementSibling:null};BX.nextSibling=function(e){return BX.type.isDomNode(e)?e.nextElementSibling:null};BX.findChildrenByClassName=function(e,t,r){if(!e||!e.childNodes)return null;var n=[];if(typeof e.getElementsByClassName=="undefined"){r=r!==false;n=BX.findChildren(e,{className:t},r)}else{var a=e.getElementsByClassName(t);for(i=0,l=a.length;i<l;i++){n[i]=a[i]}}return n};BX.findChildByClassName=function(e,t,r){if(!e||!e.childNodes)return null;var n=null;if(typeof e.getElementsByClassName=="undefined"){r=r!==false;n=BX.findChild(e,{className:t},r)}else{var i=e.getElementsByClassName(t);if(i&&typeof i[0]!="undefined"){n=i[0]}else{n=null}}return n};BX.findChildren=function(e,t,r){return BX.findChild(e,t,r,true)};BX.findChild=function(e,t,r,n){if(!e||!e.childNodes)return null;r=!!r;n=!!n;var i=e.childNodes.length,a=[];for(var s=0;s<i;s++){var o=e.childNodes[s];if(_checkNode(o,t)){if(n)a.push(o);else return o}if(r==true){var l=BX.findChild(o,t,r,n);if(l){if(n)a=BX.util.array_merge(a,l);else return l}}}if(n||a.length>0)return a;else return null};BX.findParent=function(e,t,r){if(!e)return null;var n=e;while(n.parentNode){var i=n.parentNode;if(_checkNode(i,t))return i;n=i;
6if(!!r&&(BX.type.isFunction(r)||typeof r=="object")){if(BX.type.isElementNode(r)){if(n==r)break}else{if(_checkNode(n,r))break}}}return null};BX.findNextSibling=function(e,t){if(!e)return null;var r=e;while(r.nextSibling){var n=r.nextSibling;if(_checkNode(n,t))return n;r=n}return null};BX.findPreviousSibling=function(e,t){if(!e)return null;var r=e;while(r.previousSibling){var n=r.previousSibling;if(_checkNode(n,t))return n;r=n}return null};BX.checkNode=function(e,t){return _checkNode(e,t)};BX.findFormElements=function(e){if(BX.type.isString(e))e=document.forms[e]||BX(e);var t=[];if(BX.type.isElementNode(e)){if(e.tagName.toUpperCase()=="FORM"){t=e.elements}else{t=BX.findChildren(e,CHECK_FORM_ELEMENTS,true)}}return t};BX.isParentForNode=function(e,t){if(BX.type.isDomNode(e)&&BX.type.isDomNode(t)){return e.contains(t)}return false};BX.getCaretPosition=function(e){var t=0;if(e.selectionStart||e.selectionStart==0){t=e.selectionStart}else if(document.selection){e.focus();var r=document.selection.createRange();r.moveStart("character",-e.value.length);t=r.text.length}return t};BX.setCaretPosition=function(e,t){if(!BX.isNodeInDom(e)||BX.isNodeHidden(e)||e.disabled){return}if(e.setSelectionRange){e.focus();e.setSelectionRange(t,t)}else if(e.createTextRange){var r=e.createTextRange();r.collapse(true);r.moveEnd("character",t);r.moveStart("character",t);r.select()}};BX.merge=function(){var e=Array.prototype.slice.call(arguments);if(e.length<2)return{};var t=e.shift();for(var r=0;r<e.length;r++){for(var n in e[r]){if(typeof e[r]=="undefined"||e[r]==null)continue;if(e[r].hasOwnProperty(n)){if(typeof e[r][n]=="undefined"||e[r][n]==null)continue;if(typeof e[r][n]=="object"&&!BX.type.isDomNode(e[r][n])&&typeof e[r][n]["isUIWidget"]=="undefined"){var i="length"in e[r][n];if(typeof t[n]!="object")t[n]=i?[]:{};if(i)BX.util.array_merge(t[n],e[r][n]);else BX.merge(t[n],e[r][n])}else t[n]=e[r][n]}}}return t};BX.mergeEx=function(){var e=Array.prototype.slice.call(arguments);if(e.length<2){return{}}var t=e.shift();for(var r=0;r<e.length;r++){for(var n in e[r]){if(typeof e[r]=="undefined"||e[r]==null||!e[r].hasOwnProperty(n)){continue}if(BX.type.isPlainObject(e[r][n])&&BX.type.isPlainObject(t[n])){BX.mergeEx(t[n],e[r][n])}else{t[n]=BX.type.isPlainObject(e[r][n])?BX.clone(e[r][n]):e[r][n]}}}return t};BX.getEventButton=function(e){e=e||window.event;var t=0;if(typeof e.which!="undefined"){switch(e.which){case 1:t=t|BX.MSLEFT;break;case 2:t=t|BX.MSMIDDLE;break;case 3:t=t|BX.MSRIGHT;break}}else if(typeof e.button!="undefined"){t=event.button}return t||BX.MSLEFT};var captured_events=null,_bind=null;BX.CaptureEvents=function(e,t){if(_bind)return;_bind=BX.bind;captured_events=[];BX.bind=function(r,n,i){if(r===e&&n===t)captured_events.push(i);_bind.apply(this,arguments)}};BX.CaptureEventsGet=function(){if(_bind){BX.bind=_bind;var e=captured_events;_bind=null;captured_events=null;return e}return null};BX.fireEvent=function(e,t){var r=false,n=null;if(BX.type.isDomNode(e)){r=true;if(document.createEventObject){if(eventTypes[t]!="MouseEvent"){n=document.createEventObject();n.type=t;r=e.fireEvent("on"+t,n)}if(e[t]){e[t]()}}else{n=null;switch(eventTypes[t]){case"MouseEvent":n=document.createEvent("MouseEvent");try{n.initMouseEvent(t,true,true,top,1,0,0,0,0,0,0,0,0,0,null)}catch(e){n.initMouseEvent(t,true,true,window,1,0,0,0,0,0,0,0,0,0,null)}break;default:n=document.createEvent("Event");n.initEvent(t,true,true)}r=e.dispatchEvent(n)}}return r};BX.getWheelData=function(e){e=e||window.event;e.wheelData=e.detail?e.detail*-1:e.wheelDelta/40;return e.wheelData};BX.proxy_context=null;BX.delegate=function(e,t){if(!e||!t)return e;return function(){var r=BX.proxy_context;BX.proxy_context=this;var n=e.apply(t,arguments);BX.proxy_context=r;return n}};BX.delegateLater=function(e,t,r){return function(){if(t[e]){var n=BX.proxy_context;BX.proxy_context=this;var i=t[e].apply(r||t,arguments);BX.proxy_context=n;return i}return null}};BX.proxy=function(e,t){return getObjectDelegate(e,t,proxyList)};BX.defer=function(e,t){if(!!t)return BX.defer_proxy(e,t);else return function(){var t=arguments;setTimeout((function(){e.apply(this,t)}),10)}};BX.defer_proxy=function(e,t){return getObjectDelegate(e,t,deferList,BX.defer)};function getObjectDelegate(e,t,r,n){if(!BX.type.isFunction(e)||!BX.type.isMapKey(t)){return e}var i=r.get(t);if(!i){i=new WeakMap;r.set(t,i)}var a=i.get(e);if(!a){a=n?n(BX.delegate(e,t)):BX.delegate(e,t);i.set(e,a)}return a}
6BX.once=function(e,t,r){var n=function(){BX.unbind(e,t,n);r.apply(this,arguments)};return n};BX.bindDelegate=function(e,t,r,n){var i=BX.delegateEvent(r,n);BX.bind(e,t,i);return i};BX.delegateEvent=function(e,t){return function(r){r=r||window.event;var n=r.target||r.srcElement;while(n!=this){if(_checkNode(n,e)){return t.call(n,r)}if(n&&n.parentNode)n=n.parentNode;else break}return null}};BX.False=function(){return false};BX.DoNothing=function(){};BX.denyEvent=function(e,t){deniedEvents.push([e,t,e["on"+t]]);e["on"+t]=BX.DoNothing};BX.allowEvent=function(e,t){for(var r=0,n=deniedEvents.length;r<n;r++){if(deniedEvents[r][0]==e&&deniedEvents[r][1]==t){e["on"+t]=deniedEvents[r][2];BX.util.deleteFromArray(deniedEvents,r);return}}};BX.fixEventPageXY=function(e){BX.fixEventPageX(e);BX.fixEventPageY(e);return e};BX.fixEventPageX=function(e){if(e.pageX==null&&e.clientX!=null){e.pageX=e.clientX+(document.documentElement&&document.documentElement.scrollLeft||document.body&&document.body.scrollLeft||0)-(document.documentElement.clientLeft||0)}return e};BX.fixEventPageY=function(e){if(e.pageY==null&&e.clientY!=null){e.pageY=e.clientY+(document.documentElement&&document.documentElement.scrollTop||document.body&&document.body.scrollTop||0)-(document.documentElement.clientTop||0)}return e};BX.PreventDefault=function(e){if(!e)e=window.event;if(e.stopPropagation){e.preventDefault();e.stopPropagation()}else{e.cancelBubble=true;e.returnValue=false}return false};BX.eventReturnFalse=function(e){e=e||window.event;if(e&&e.preventDefault)e.preventDefault();else e.returnValue=false;return false};BX.eventCancelBubble=function(e){e=e||window.event;if(e&&e.stopPropagation)e.stopPropagation();else e.cancelBubble=true};BX.bindDebouncedChange=function(e,t,r,n,i){i=i||window;n=n||300;var a="bx-dc-previous-value";BX.data(e,a,e.value);var s=function(t,r){var n=BX.data(e,a);if(typeof n=="undefined"||n!=r){if(typeof i!="object")t(r);else t.apply(i,[r])}};var o=BX.debounce((function(){var r=e.value;s(t,r);BX.data(e,a,r)}),n);BX.bind(e,"keyup",o);BX.bind(e,"change",o);BX.bind(e,"input",o);if(BX.type.isFunction(r)){var l=function(){s(r,e.value)};BX.bind(e,"keyup",l);BX.bind(e,"change",l);BX.bind(e,"input",l)}};BX.parseJSON=function(data,context){var result=null;if(BX.type.isNotEmptyString(data)){try{if(data.indexOf("\n")>=0)eval("result = "+data);else result=new Function("return "+data)()}catch(e){BX.onCustomEvent(context,"onParseJSONFailure",[data,context])}}else if(BX.type.isPlainObject(data)){return data}return result};BX.submit=function(e,t,r,n){t=t||"save";if(!e["BXFormSubmit_"+t]){e["BXFormSubmit_"+t]=e.appendChild(BX.create("INPUT",{props:{type:"submit",name:t,value:r||"Y"},style:{display:"none"}}))}if(e.sessid)e.sessid.value=BX.bitrix_sessid();setTimeout(BX.delegate((function(){BX.fireEvent(this,"click");if(n)n()}),e["BXFormSubmit_"+t]),10)};BX.show=function(e,t){if(e.BXDISPLAY||!_checkDisplay(e,t)){e.style.display=e.BXDISPLAY}};BX.hide=function(e,t){if(!e.BXDISPLAY)_checkDisplay(e,t);e.style.display="none"};BX.toggle=function(e,t){if(!t&&BX.type.isElementNode(e)){var r=true;if(e.BXDISPLAY)r=!_checkDisplay(e);else r=e.style.display=="none";if(r)BX.show(e);else BX.hide(e)}else if(BX.type.isArray(t)){for(var n=0,i=t.length;n<i;n++){if(e==t[n]){e=t[n==i-1?0:n+1];break}}if(n==i)e=t[0]}return e};function _checkDisplay(e,t){if(typeof t!="undefined")e.BXDISPLAY=t;var r=e.style.display||BX.style(e,"display");if(r!="none"){e.BXDISPLAY=e.BXDISPLAY||r;return true}else{e.BXDISPLAY=e.BXDISPLAY||"block";return false}}BX.util={array_values:function(e){if(!BX.type.isArray(e))return BX.util._array_values_ob(e);var t=[];for(var r=0,n=e.length;r<n;r++)if(e[r]!==null&&typeof e[r]!="undefined")t.push(e[r]);return t},_array_values_ob:function(e){var t=[];for(var r in e)if(e[r]!==null&&typeof e[r]!="undefined")t.push(e[r]);return t},array_keys:function(e){if(!BX.type.isArray(e))return BX.util._array_keys_ob(e);var t=[];for(var r=0,n=e.length;r<n;r++)if(e[r]!==null&&typeof e[r]!="undefined")t.push(r);return t},_array_keys_ob:function(e){var t=[];for(var r in e)if(e[r]!==null&&typeof e[r]!="undefined")t.push(r);return t},object_keys:function(e){var t=[];for(var r in e){if(e.hasOwnProperty(r)){t.push(r)}}return t},array_merge:function(e,t){if(!BX.type.isArray(e))e=[];if(!BX.type.isArray(t))t=[];var r=e.length,n=0;if(typeof t.length==="number"){for(var i=t.length;n<i;n++){e[r++]=t[n]}}else{while(t[n]!==undefined){e[r++]=t[n++]}}e.length=r;return e},array_flip:function(e){var t={};for(var r in e){t[e[r]]=r}return t}
6,array_diff:function(e,t,r){r=BX.type.isFunction(r)?r:null;var n,i,a,s,o={},l=[];for(n=0,i=t.length;n<i;n++){a=t[n];s=r?r(a):a;o[s]=true}for(n=0,i=e.length;n<i;n++){a=e[n];s=r?r(a):a;if(typeof o[s]==="undefined"){l.push(a)}}return l},array_unique:function(e){var t=0,r,n=e.length;if(n<2)return e;for(;t<n-1;t++){for(r=t+1;r<n;r++){if(e[t]==e[r]){e.splice(r--,1);n--}}}return e},in_array:function(e,t){for(var r=0;r<t.length;r++){if(t[r]==e)return true}return false},array_search:function(e,t){for(var r=0;r<t.length;r++){if(t[r]==e)return r}return-1},object_search_key:function(e,t){if(typeof t[e]!="undefined")return t[e];for(var r in t){if(typeof t[r]=="object"){var n=BX.util.object_search_key(e,t[r]);if(n!==false)return n}}return false},trim:function(e){if(BX.type.isString(e)){return e.trim()}return e},urlencode:function(e){return encodeURIComponent(e)},deleteFromArray:function(e,t){return e.slice(0,t).concat(e.slice(t+1))},insertIntoArray:function(e,t,r){return e.slice(0,t).concat([r]).concat(e.slice(t))},htmlspecialchars:function(e){return BX.Text.encode(e)},htmlspecialcharsback:function(e){return BX.Text.decode(e)},preg_quote:function(e,t){if(!e.replace)return e;return e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+(t||"")+"-]","g"),"\\$&")},jsencode:function(e){if(!e||!e.replace)return e;var t=[{c:"\\\\",r:"\\\\"},{c:"\\t",r:"\\t"},{c:"\\n",r:"\\n"},{c:"\\r",r:"\\r"},{c:'"',r:'\\"'},{c:"'",r:"\\'"},{c:"<",r:"\\x3C"},{c:">",r:"\\x3E"},{c:"\\u2028",r:"\\u2028"},{c:"\\u2029",r:"\\u2029"}];for(var r=0;r<t.length;r++)e=e.replace(new RegExp(t[r].c,"g"),t[r].r);return e},getCssName:function(e){if(!BX.type.isNotEmptyString(e)){return""}return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))},getJsName:function(e){var t=/\-([a-z]){1}/g;if(t.test(e)){return e.replace(t,(function(e,t){return t.toUpperCase()}))}return e},nl2br:function(e){if(!e||!e.replace)return e;return e.replace(/([^>])\n/g,"$1<br/>")},str_pad:function(e,t,r,n){r=r||" ";n=n||"right";e=e.toString();if(n==="left"){return BX.util.str_pad_left(e,t,r)}return BX.util.str_pad_right(e,t,r)},str_pad_left:function(e,t,r){return e.toString().padStart(t,r)},str_pad_right:function(e,t,r){return e.toString().padEnd(t,r)},strip_tags:function(e){return e.split(/<[^>]+>/g).join("")},strip_php_tags:function(e){return e.replace(/<\?(.|[\r\n])*?\?>/g,"")},popup:function(e,t,r){var n,i;if(BX.browser.IsOpera()){n=document.body.offsetWidth;i=document.body.offsetHeight}else{n=screen.width;i=screen.height}return window.open(e,"","status=no,scrollbars=yes,resizable=yes,width="+t+",height="+r+",top="+Math.floor((i-r)/2-14)+",left="+Math.floor((n-t)/2-5))},shuffle:function(e){var t,r;var n=e.length;while(0!==n){r=Math.floor(Math.random()*n);n-=1;t=e[n];e[n]=e[r];e[r]=t}return e},objectSort:function(e,t,r){r=r=="asc"?"asc":"desc";var n=[],i;for(i in e){if(e.hasOwnProperty(i)&&e[i][t]){n.push([i,e[i][t]])}}if(r=="asc"){n.sort((function(e,t){var r,n;if(BX.type.isDate(e[1])){r=e[1].getTime()}else if(!isNaN(e[1])){r=parseInt(e[1])}else{r=e[1].toString().toLowerCase()}if(BX.type.isDate(t[1])){n=t[1].getTime()}else if(!isNaN(t[1])){n=parseInt(t[1])}else{n=t[1].toString().toLowerCase()}if(r>n)return 1;else if(r<n)return-1;else return 0}))}else{n.sort((function(e,t){var r,n;if(BX.type.isDate(e[1])){r=e[1].getTime()}else if(!isNaN(e[1])){r=parseInt(e[1])}else{r=e[1].toString().toLowerCase()}if(BX.type.isDate(t[1])){n=t[1].getTime()}else if(!isNaN(t[1])){n=parseInt(t[1])}else{n=t[1].toString().toLowerCase()}if(r<n)return 1;else if(r>n)return-1;else return 0}))}var a=Array();for(i=0;i<n.length;i++){a.push(e[n[i][0]])}return a},objectMerge:function(){return BX.mergeEx.apply(window,arguments)},objectClone:function(e){return BX.clone(e,true)},hex2rgb:function(e){var t=e.replace(/[# ]/g,"").replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3").match(/.{2}/g);for(var r=0;r<3;r++){t[r]=parseInt(t[r],16)}return{r:t[0],g:t[1],b:t[2]}},remove_url_param:function(e,t){return BX.Uri.removeParam(e,t)},add_url_param:function(e,t){var r=Object.entries(t).reduce((function(e,t){e[t[0]]=BX.type.isArray(t[1])?t[1].join():t[1];return e}),{});return BX.Uri.addParam(e,r)},buildQueryString:function(e){var t="";for(var r in e){var n=e[r];
6if(BX.type.isArray(n)){n.forEach((function(e,n){t+=encodeURIComponent(r+"["+n+"]")+"="+encodeURIComponent(e)+"&"}))}else{t+=encodeURIComponent(r)+"="+encodeURIComponent(n)+"&"}}if(t.length>0){t=t.substr(0,t.length-1)}return t},even:function(e){return parseInt(e)%2==0},hashCode:function(e){if(!BX.type.isNotEmptyString(e)){return 0}var t=0;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n;t=t&t}return t},getRandomString:function(e){return BX.Text.getRandom(e)},number_format:function(e,t,r,n){var i,a,s,o,l,u="";t=Math.abs(t);if(isNaN(t)||t<0){t=2}r=r||",";if(typeof n==="undefined")n=".";e=(+e||0).toFixed(t);if(e<0){u="-";e=-e}i=parseInt(e,10)+"";a=i.length>3?i.length%3:0;l=a?i.substr(0,a)+n:"";s=i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+n);o=t?r+Math.abs(e-i).toFixed(t).replace(/-/,"0").slice(2):"";return u+l+s+o},getExtension:function(e){e=e||"";var t=e.split("?")[0].split(".");return t[t.length-1].toLowerCase()},addObjectToForm:function(e,t,r){if(!BX.type.isString(r)){r=""}for(var n in e){if(!e.hasOwnProperty(n)){continue}var i=e[n];var a=r!==""?r+"["+n+"]":n;if(BX.type.isArray(i)){var s={};for(var o=0;o<i.length;o++){s[o]=i[o]}BX.util.addObjectToForm(s,t,a)}else if(BX.type.isPlainObject(i)){BX.util.addObjectToForm(i,t,a)}else{i=BX.type.isFunction(i.toString)?i.toString():"";if(i!==""){t.appendChild(BX.create("INPUT",{attrs:{type:"hidden",name:a,value:i}}))}}}},observe:function(e,t){console.error("BX.util.observe: function is no longer supported by browser.");return false},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}};BX.validation={checkIfEmail:function(e){var t="[=a-z0-9_+~'!$&*^`|#%/?{}-]";return new RegExp("^\\s*"+t+"+(\\."+t+"+)*@([a-z0-9-]+\\.)+[a-z0-9-]{2,20}\\s*$","i").test(e)},checkIfPhone:function(e){var t=new RegExp(typeof BX.PhoneNumber==="undefined"?BX.PhoneNumber.getValidNumberPattern():"^\\s*\\+?s*[0-9(-)\\s]+\\s*$","i");return t.test(e)}};BX.prop={get:function(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r},getObject:function(e,t,r){return e&&BX.type.isPlainObject(e[t])?e[t]:r},getElementNode:function(e,t,r){return e&&BX.type.isElementNode(e[t])?e[t]:r},getArray:function(e,t,r){return e&&BX.type.isArray(e[t])?e[t]:r},getFunction:function(e,t,r){return e&&BX.type.isFunction(e[t])?e[t]:r},getNumber:function(e,t,r){if(!(e&&e.hasOwnProperty(t))){return r}var n=e[t];if(BX.type.isNumber(n)){return n}n=parseFloat(n);return!isNaN(n)?n:r},getInteger:function(e,t,r){if(!(e&&e.hasOwnProperty(t))){return r}var n=e[t];if(BX.type.isNumber(n)){return n}n=parseInt(n);return!isNaN(n)?n:r},getBoolean:function(e,t,r){if(!(e&&e.hasOwnProperty(t))){return r}var n=e[t];return BX.type.isBoolean(n)?n:BX.type.isString(n)?n.toLowerCase()==="true":!!n},getString:function(e,t,r){if(!(e&&e.hasOwnProperty(t))){return r}var n=e[t];return BX.type.isString(n)?n:n?n.toString():""},extractDate:function(e){if(!BX.type.isDate(e)){e=new Date}e.setHours(0);e.setMinutes(0);e.setSeconds(0);e.setMilliseconds(0);return e}};BX.isNodeInDom=function(e,t){return e===(t||document)?true:e.parentNode?BX.isNodeInDom(e.parentNode):false};BX.isNodeHidden=function(e){if(e===document)return false;else if(BX.style(e,"display")=="none")return true;else return e.parentNode?BX.isNodeHidden(e.parentNode):true};BX.evalPack=function(e){while(e.length>0){var t=e.shift();if(t.TYPE=="SCRIPT_EXT"||t.TYPE=="SCRIPT_SRC"){BX.loadScript(t.DATA,(function(){BX.evalPack(e)}));return}else if(t.TYPE=="SCRIPT"){BX.evalGlobal(t.DATA)}}};BX.evalGlobal=function(e){if(e){var t=document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");r.type="text/javascript";if(!BX.browser.IsIE()){r.appendChild(document.createTextNode(e))}else{r.text=e}t.insertBefore(r,t.firstChild);t.removeChild(r)}};BX.garbage=function(e,t){garbageCollectors.push({callback:e,context:t})};BX.GetDocElement=function(e){e=e||document;return BX.browser.IsDoctype(e)?e.documentElement:e.body};BX.scrollTop=function(e,t){if(typeof t!="undefined"){if(e==window){throw new Error("scrollTop() for window is not implemented")}else e.scrollTop=parseInt(t)}else{if(e==window)return BX.GetWindowScrollPos().scrollTop;return e.scrollTop}};BX.scrollLeft=function(e,t){if(typeof t!="undefined"){if(e==window){throw new Error("scrollLeft() for window is not implemented")}else e.scrollLeft=parseInt(t)}else{if(e==window)return BX.GetWindowScrollPos().scrollLeft;return e.scrollLeft}};BX.hide_object=function(e){e=BX(e);e.style.position="absolute";e.style.top="-1000px";e.style.left="-1000px";e.style.height="10px";e.style.width="10px"};BX.is_relative=function(e){var t=BX.style(e,"position");return t=="relative"||t=="absolute"};BX.is_float=function(e){var t=BX.style(e,"float");return t=="right"||t=="left"};BX.is_fixed=function(e){var t=BX.style(e,"position");return t=="fixed"};BX.width=function(e,t){if(typeof t!="undefined")BX.style(e,"width",parseInt(t)+"px");else{if(e==window)return window.innerWidth;return BX.pos(e).width}};BX.height=function(e,t){if(typeof t!="undefined")BX.style(e,"height",parseInt(t)+"px");else{if(e==window)return window.innerHeight;return BX.pos(e).height}};BX.align=function(e,t,r,n){if(n)n=n.toLowerCase();else n="";var i=document;if(BX.type.isElementNode(e)){i=e.ownerDocument;e=BX.pos(e)}var a=e["left"],s=e["bottom"];var o=BX.GetWindowScrollPos(i);var l=BX.GetWindowInnerSize(i);if(l.innerWidth+o.scrollLeft-(e["left"]+t)<0){if(e["right"]-t>=0)a=e["right"]-t;else a=o.scrollLeft}
6if(l.innerHeight+o.scrollTop-(e["bottom"]+r)<0||~n.indexOf("top")){if(e["top"]-r>=0||~n.indexOf("top"))s=e["top"]-r;else s=o.scrollTop}return{left:a,top:s}};BX.scrollToNode=function(e){var t=BX(e);if(t.scrollIntoView)t.scrollIntoView(true);else{var r=BX.pos(t);window.scrollTo(r.left,r.top)}};BX.showWait=function(e,t){e=BX(e)||document.body||document.documentElement;t=t||BX.message("JS_CORE_LOADING");var r=e.id||Math.random();var n=e.bxmsg=document.body.appendChild(BX.create("DIV",{props:{id:"wait_"+r},style:{background:'url("/bitrix/js/main/core/images/wait.gif") no-repeat scroll 10px center #fcf7d1',border:"1px solid #E1B52D",color:"black",fontFamily:"Verdana,Arial,sans-serif",fontSize:"11px",padding:"10px 30px 10px 37px",position:"absolute",textAlign:"center"},text:t}));BX.ZIndexManager.register(n);BX.ZIndexManager.bringToFront(n);setTimeout(BX.delegate(_adjustWait,e),10);lastWait[lastWait.length]=n;return n};BX.closeWait=function(e,t){if(e&&!t)t=e.bxmsg;if(e&&!t&&BX.hasClass(e,"bx-core-waitwindow"))t=e;if(e&&!t)t=BX("wait_"+e.id);if(!t)t=lastWait.pop();if(t&&t.parentNode){for(var r=0,n=lastWait.length;r<n;r++){if(t==lastWait[r]){lastWait=BX.util.deleteFromArray(lastWait,r);break}}BX.ZIndexManager.unregister(t);t.parentNode.removeChild(t);if(e)e.bxmsg=null;BX.cleanNode(t,true)}};BX.setJSList=function(e){if(BX.type.isArray(e)){e=e.map((function(e){return normalizeUrl(e)}));jsList=jsList.concat(e)}};BX.getJSList=function(){initJsList();return jsList};BX.setCSSList=function(e){if(BX.type.isArray(e)){e=e.map((function(e){return normalizeUrl(e)}));cssList=cssList.concat(e)}};BX.getCSSList=function(){initCssList();return cssList};BX.getJSPath=function(e){return e.replace(/^(http[s]*:)*\/\/[^\/]+/i,"")};BX.getCSSPath=function(e){return e.replace(/^(http[s]*:)*\/\/[^\/]+/i,"")};BX.getCDNPath=function(e){return e};BX.loadScript=function(e,t,r){if(BX.type.isString(e)){e=[e]}return BX.load(e,t,r)};BX.loadCSS=function(e,t,r){if(BX.type.isString(e)){e=[e]}if(BX.type.isArray(e)){e=e.map((function(e){return{url:e,ext:"css"}}));BX.load(e,null,t)}};const LOADING=3;const LOADED=4;const assets={};const loadingAssetCallbacks={};BX.load=function(e,t,r,n){if(!BX.isReady){var i=arguments;BX.ready((function(){BX.load.apply(this,i)}));return null}r=r||document;t=BX.Type.isFunction(t)?t:()=>{};return loadAsync(e,t,r,n)};function loadAsync(e,t,r,n){if(!BX.type.isArray(e)){t();return}function i(){const e=s.shift();if(e){load(e,i,r,n)}else if(a()){t()}}function a(){for(const e in o){if(o[e].state!==LOADED){return false}}return true}const s=[];const o={};e.forEach((e=>{const t=getAsset(e);if(t&&t.state!==LOADED){s.push(t);o[t.name]=t}}));if(s.length>0){const e=6;const t=Math.min(s.length,e);const a=s.splice(0,t);a.forEach((e=>{load(e,i,r,n)}))}else{t()}}function load(e,t,r,n){t=t||BX.DoNothing;if(e.state===LOADED){t();return}if(e.state===LOADING){if(!BX.Type.isArray(loadingAssetCallbacks[e.name])){loadingAssetCallbacks[e.name]=[]}loadingAssetCallbacks[e.name].push(t);return}e.state=LOADING;const i=()=>{delete assets[e.name];delete loadingAssetCallbacks[e.name];n()};loadAsset(e,(function(){e.state=LOADED;t();if(BX.Type.isArrayFilled(loadingAssetCallbacks[e.name])){for(const t of loadingAssetCallbacks[e.name]){t()}}delete loadingAssetCallbacks[e.name]}),r,BX.Type.isFunction(n)?i:null)}function loadAsset(e,t,r,n){t=t||BX.DoNothing;function i(r){window.clearTimeout(e.errorTimeout);window.clearTimeout(e.cssTimeout);o.onload=o.onreadystatechange=o.onerror=null;if(BX.Type.isFunction(n)){n()}else{t()}}function a(n){if(l==="css"){cssList.push(normalizeMinUrl(normalizeUrl(e.url)))}else{jsList.push(normalizeMinUrl(normalizeUrl(e.url)))}n=n||window.event;if(n.type==="load"||/loaded|complete/.test(o.readyState)&&(!r.documentMode||r.documentMode<9)){window.clearTimeout(e.errorTimeout);window.clearTimeout(e.cssTimeout);o.onload=o.onreadystatechange=o.onerror=null;t()}}function s(){if(e.state!==LOADED&&e.cssRetries<=20){for(var t=0,n=r.styleSheets.length;t<n;t++){if(r.styleSheets[t].href===o.href){a({type:"load"});return}}e.cssRetries++;e.cssTimeout=window.setTimeout(s,250)}}let o=null;const l=BX.type.isNotEmptyString(e.ext)?e.ext:BX.util.getExtension(e.url);if(l==="css"){o=r.createElement("link");o.type="text/"+(e.type||"css");o.rel="stylesheet";o.href=e.url;e.cssRetries=0;e.cssTimeout=window.setTimeout(s,500)}else{o=r.createElement("script");o.type="text/"+(e.type||"javascript");o.src=e.url}o.onload=o.onreadystatechange=a;o.onerror=i;o.async=false;o.defer=false;e.errorTimeout=window.setTimeout((function(){i({type:"timeout"})}),7e3);let u=null;const c=r.head||r.getElementsByTagName("head")[0];if(l==="css"&&(u=getTemplateLink(c))!==null){u.parentNode.insertBefore(o,u)}else{c.insertBefore(o,c.lastChild)}}function getAsset(e){var t={};if(typeof e==="object"){t=e;t.name=t.name?t.name:BX.util.hashCode(e.url)}else{t={name:BX.util.hashCode(e),url:e}}var r=BX.type.isNotEmptyString(t.ext)?t.ext:BX.util.getExtension(t.url);if(r==="css"&&isCssLoaded(t.url)||isScriptLoaded(t.url)){t.state=LOADED}var n=assets[t.name];if(n&&n.url===t.url){return n}assets[t.name]=t;return t}function normalizeUrl(e){if(!BX.type.isNotEmptyString(e)){return""}e=BX.getJSPath(e);e=e.replace(/\?[0-9]*$/,"");return e}function normalizeMinUrl(e){if(!BX.type.isNotEmptyString(e)){return""}var t=e.indexOf(".min");return t>=0?e.substr(0,t)+e.substr(t+4):e}function isCssLoaded(e){initCssList();e=normalizeUrl(e);var t=normalizeMinUrl(e);return e!==t&&BX.util.in_array(t,cssList)||BX.util.in_array(e,cssList)}function initCssList(){if(!cssInit){var e=document.getElementsByTagName("link");if(!!e&&e.length>0){for(var t=0;t<e.length;t++){var r=e[t].getAttribute("href");if(BX.type.isNotEmptyString(r)){r=normalizeMinUrl(normalizeUrl(r));cssList.push(r)}}}cssInit=true}}function getTemplateLink(e){var t=function(t){var r=e.getElementsByTagName(t);for(var n=0,i=r.length;n<i;n++){var a=r[n].getAttribute("data-template-style");if(BX.type.isNotEmptyString(a)&&a=="true"){return r[n]}}return null};var r=t("link");if(r===null){r=t("style")}return r}function isScriptLoaded(e){initJsList();e=normalizeUrl(e);var t=normalizeMinUrl(e);return e!==t&&BX.util.in_array(t,jsList)||BX.util.in_array(e,jsList)}function initJsList(){if(!jsInit){var e=document.getElementsByTagName("script");
6if(!!e&&e.length>0){for(var t=0;t<e.length;t++){var r=e[t].getAttribute("src");if(BX.type.isNotEmptyString(r)){r=normalizeMinUrl(normalizeUrl(r));jsList.push(r)}}}jsInit=true}}function reloadInternal(e,t){if(e===true){t=true;e=null}var r=function(){if(BX.PageObject&&BX.PageObject.getRootWindow){return BX.PageObject.getRootWindow()}return window.top}();var n=e||r.location.href;var i=n.indexOf("#"),a="";if(i!=-1){a=n.substr(i);n=n.substr(0,i)}if(t&&n.indexOf("clear_cache=Y")<0)n+=(n.indexOf("?")==-1?"?":"&")+"clear_cache=Y";if(a){if(t&&(a.substr(0,5)=="view/"||a.substr(0,6)=="#view/")&&a.indexOf("clear_cache%3DY")<0)a+=(a.indexOf("%3F")==-1?"%3F":"%26")+"clear_cache%3DY";n=n.replace(/(\?|\&)_r=[\d]*/,"");n+=(n.indexOf("?")==-1?"?":"&")+"_r="+Math.round(Math.random()*1e4)+a}r.location.href=n}BX.reload=function(e,t){reloadInternal(e,t)};BX.clearCache=function(){BX.showWait();BX.reload(true)};BX.template=function(e,t,r){BX.ready((function(){_processTpl(BX(e),t,r)}))};BX.isAmPmMode=function(e){if(e===true){return BX.message.AMPM_MODE}return BX.message.AMPM_MODE!==false};BX.formatDate=function(e,t){e=e||new Date;var r=e.getHours()||e.getMinutes()||e.getSeconds(),n=!!t?t:r?BX.message("FORMAT_DATETIME"):BX.message("FORMAT_DATE");return n.replace(/YYYY/gi,e.getFullYear()).replace(/MMMM/gi,BX.util.str_pad_left((e.getMonth()+1).toString(),2,"0")).replace(/MM/gi,BX.util.str_pad_left((e.getMonth()+1).toString(),2,"0")).replace(/DD/gi,BX.util.str_pad_left(e.getDate().toString(),2,"0")).replace(/HH/gi,BX.util.str_pad_left(e.getHours().toString(),2,"0")).replace(/MI/gi,BX.util.str_pad_left(e.getMinutes().toString(),2,"0")).replace(/SS/gi,BX.util.str_pad_left(e.getSeconds().toString(),2,"0"))};BX.formatName=function(e,t,r){e=e||{};t=t||"";var n={TITLE:e["TITLE"]||"",NAME:e["NAME"]||"",LAST_NAME:e["LAST_NAME"]||"",SECOND_NAME:e["SECOND_NAME"]||"",LOGIN:e["LOGIN"]||"",NAME_SHORT:e["NAME"]?e["NAME"].substr(0,1)+".":"",LAST_NAME_SHORT:e["LAST_NAME"]?e["LAST_NAME"].substr(0,1)+".":"",SECOND_NAME_SHORT:e["SECOND_NAME"]?e["SECOND_NAME"].substr(0,1)+".":"",EMAIL:e["EMAIL"]||"",ID:e["ID"]||"",NOBR:"","/NOBR":""},i=t;for(var a in n){if(n.hasOwnProperty(a)){i=i.replace("#"+a+"#",n[a])}}i=i.replace(/([\s]+)/gi," ").trim();if(i==""){i=r=="Y"?n["LOGIN"]:"";i=i==""?"Noname":i}return i};BX.getNumMonth=function(e){var t=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];var r=["january","february","march","april","may","june","july","august","september","october","november","december"];var n=e.toUpperCase();for(i=1;i<=12;i++){if(n==BX.message("MON_"+i).toUpperCase()||n==BX.message("MONTH_"+i).toUpperCase()||n==t[i-1].toUpperCase()||n==r[i-1].toUpperCase()){return i}}return e};BX.parseDate=function(e,t,r,n){if(BX.type.isNotEmptyString(e)){if(!r)r=BX.message("FORMAT_DATE");if(!n)n=BX.message("FORMAT_DATETIME");var i="";for(l=1;l<=12;l++){i=i+"|"+BX.message("MON_"+l)}var a=new RegExp("([0-9]+|[a-z]+"+i+")","ig");var s=e.match(a),o=r.match(/(DD|MI|MMMM|MM|M|YYYY)/gi),l,u,c=[],f=[],p={};if(!s)return null;if(s.length>o.length){o=n.match(/(DD|MI|MMMM|MM|M|YYYY|HH|H|SS|TT|T|GG|G)/gi)}for(l=0,u=s.length;l<u;l++){if(BX.util.trim(s[l])!=""){c[c.length]=s[l]}}for(l=0,u=o.length;l<u;l++){if(BX.util.trim(o[l])!=""){f[f.length]=o[l]}}var d=BX.util.array_search("MMMM",f);if(d>0){c[d]=BX.getNumMonth(c[d]);f[d]="MM"}else{d=BX.util.array_search("M",f);if(d>0){c[d]=BX.getNumMonth(c[d]);f[d]="MM"}}for(l=0,u=f.length;l<u;l++){var h=f[l].toUpperCase();p[h]=h=="T"||h=="TT"?c[l]:parseInt(c[l],10)}if(p["DD"]>0&&p["MM"]>0&&p["YYYY"]>0){var v=new Date;if(t){v.setUTCDate(1);v.setUTCFullYear(p["YYYY"]);v.setUTCMonth(p["MM"]-1);v.setUTCDate(p["DD"]);v.setUTCHours(0,0,0,0)}else{v.setDate(1);v.setFullYear(p["YYYY"]);v.setMonth(p["MM"]-1);v.setDate(p["DD"]);v.setHours(0,0,0,0)}if((!isNaN(p["HH"])||!isNaN(p["GG"])||!isNaN(p["H"])||!isNaN(p["G"]))&&!isNaN(p["MI"])){if(!isNaN(p["H"])||!isNaN(p["G"])){var y=(p["T"]||p["TT"]||"am").toUpperCase()=="PM";var g=parseInt(p["H"]||p["G"]||0,10);if(y){p["HH"]=g+(g==12?0:12)}else{p["HH"]=g<12?g:0}}else{p["HH"]=parseInt(p["HH"]||p["GG"]||0,10)}if(isNaN(p["SS"]))p["SS"]=0;if(t){v.setUTCHours(p["HH"],p["MI"],p["SS"])}else{v.setHours(p["HH"],p["MI"],p["SS"])}}return v}}return null};BX.selectUtils={addNewOption:function(e,t,r,n,i){e=BX(e);if(e){var a=e.length;if(i!==false){for(var s=0;s<a;s++){if(e[s].value==t){return}}}e.options[a]=new Option(r,t,false,false)}if(n===true){this.sortSelect(e)}},deleteOption:function(e,t){e=BX(e);if(e){for(var r=0;r<e.length;r++){if(e[r].value==t){e.remove(r);break}}}},deleteSelectedOptions:function(e){e=BX(e);if(e){var t=0;while(t<e.length){if(e[t].selected){e[t].selected=false;e.remove(t)}else{t++}}}},deleteAllOptions:function(e){e=BX(e);if(e){for(var t=e.length-1;t>=0;t--){e.remove(t)}}},optionCompare:function(e,t){var r=e.optText.toLowerCase();var n=t.optText.toLowerCase();if(r>n)return 1;if(r<n)return-1;return 0},sortSelect:function(e){e=BX(e);if(e){var t=[];var r=e.options.length;var n;for(n=0;n<r;n++){t[n]={optText:e[n].text,optValue:e[n].value}}t.sort(this.optionCompare);e.length=0;r=t.length;for(n=0;n<r;n++){e[n]=new Option(t[n].optText,t[n].optValue,false,false)}}},selectAllOptions:function(e){e=BX(e);if(e){var t=e.length;for(var r=0;r<t;r++){e[r].selected=true}}},selectOption:function(e,t){e=BX(e);if(e){var r=e.length;for(var n=0;n<r;n++){e[n].selected=e[n].value==t}}},addSelectedOptions:function(e,t,r,n){e=BX(e);if(!e)return;var i=e.length;for(var a=0;a<i;a++)if(e[a].selected)this.addNewOption(t,e[a].value,e[a].text,n,r)},moveOptionsUp:function(e){e=BX(e);if(!e)return;var t=e.length;for(var r=0;r<t;r++){if(e[r].selected&&r>0&&e[r-1].selected==false){var n=new Option(e[r].text,e[r].value);e[r]=new Option(e[r-1].text,e[r-1].value);e[r].selected=false;e[r-1]=n;e[r-1].selected=true}}},moveOptionsDown:function(e){e=BX(e);if(!e)return;var t=e.length;for(var r=t-1;r>=0;r--){if(e[r].selected&&r<t-1&&e[r+1].selected==false){var n=new Option(e[r].text,e[r].value);e[r]=new Option(e[r+1].text,e[r+1].value);e[r].selected=false;e[r+1]=n;e[r+1].selected=true}}}};BX.getEventTarget=function(e){if(e.target){return e.target}else if(e.srcElement){return e.srcElement}return null};BX.convert={toNumber:function(e){if(BX.type.isNumber(e)){return e}e=Number(e);return!isNaN(e)?e:0},nodeListToArray:function(e){try{return Array.prototype.slice.call(e,0)}catch(i){var t=[];for(var r=0,n=e.length;r<n;r++){t.push(e[r])}return t}}};BX.hint=function(e,t,r,n){if(null==r){r=t;t=""}if(null==e.BXHINT){e.BXHINT=new BX.CHint({parent:e,hint:r,title:t,id:n});e.BXHINT.Show()}};BX.hint_replace=function(e,t,r){if(null==r){r=t;t=""}if(!e||!e.parentNode||!r)return null;var n=new BX.CHint({hint:r,title:t});n.CreateParent();e.parentNode.insertBefore(n.PARENT,e);e.parentNode.removeChild(e);n.PARENT.style.marginLeft="5px";return e};BX.CHint=function(e){if(BX.CHint.cssLoaded===false){BX.load(["/bitrix/js/main/core/css/core_hint.css"]);BX.CHint.cssLoaded=true}this.PARENT=BX(e.parent);this.HINT=e.hint;this.HINT_TITLE=e.title;this.PARAMS={};for(var t in this.defaultSettings){if(null==e[t])this.PARAMS[t]=this.defaultSettings[t];else this.PARAMS[t]=e[t]}if(null!=e.id)this.ID=e.id;this.timer=null;this.bInited=false;this.msover=true;if(this.PARAMS.showOnce){this.__show();this.msover=false;this.timer=setTimeout(BX.proxy(this.__hide,this),this.PARAMS.hide_timeout)}else if(this.PARENT){BX.bind(this.PARENT,"mouseover",BX.proxy(this.Show,this));BX.bind(this.PARENT,"mouseout",BX.proxy(this.Hide,this))}};BX.CHint.cssLoaded=false;BX.CHint.openHints=new Set;BX.CHint.globalDisabled=false;BX.CHint.handleMenuOpen=function(){BX.CHint.globalDisabled=true;
6BX.CHint.openHints.forEach((function(e){e.__hide_immediately()}))};BX.CHint.handleMenuClose=function(){BX.CHint.globalDisabled=false};BX.addCustomEvent("onMenuOpen",BX.CHint.handleMenuOpen);BX.addCustomEvent("onMenuClose",BX.CHint.handleMenuClose);BX.CHint.prototype.defaultSettings={show_timeout:1e3,hide_timeout:500,dx:2,showOnce:false,preventHide:true,min_width:250};BX.CHint.prototype.CreateParent=function(e,t){if(this.PARENT){BX.unbind(this.PARENT,"mouseover",BX.proxy(this.Show,this));BX.unbind(this.PARENT,"mouseout",BX.proxy(this.Hide,this))}if(!t)t={};var r="icon";if(t.type&&(t.type=="link"||t.type=="icon"))r=t.type;if(e)r="element";if(r=="icon"){e=BX.create("IMG",{props:{src:t.iconSrc?t.iconSrc:"/bitrix/js/main/core/images/hint.gif"}})}else if(r=="link"){e=BX.create("A",{props:{href:"javascript:void(0)"},html:"[?]"})}this.PARENT=e;BX.bind(this.PARENT,"mouseover",BX.proxy(this.Show,this));BX.bind(this.PARENT,"mouseout",BX.proxy(this.Hide,this));return this.PARENT};BX.CHint.prototype.Show=function(){this.msover=true;if(null!=this.timer)clearTimeout(this.timer);this.timer=setTimeout(BX.proxy(this.__show,this),this.PARAMS.show_timeout)};BX.CHint.prototype.Hide=function(){this.msover=false;if(null!=this.timer)clearTimeout(this.timer);this.timer=setTimeout(BX.proxy(this.__hide,this),this.PARAMS.hide_timeout)};BX.CHint.prototype.__show=function(){if(!this.msover||this.disabled||BX.CHint.globalDisabled)return;if(!this.bInited)this.Init();if(this.prepareAdjustPos()){this.DIV.style.display="block";BX.ZIndexManager.bringToFront(this.DIV);this.adjustPos();BX.CHint.openHints.add(this);BX.bind(window,"scroll",BX.proxy(this.__onscroll,this));if(this.PARAMS.showOnce){this.timer=setTimeout(BX.proxy(this.__hide,this),this.PARAMS.hide_timeout)}}};BX.CHint.prototype.__onscroll=function(){if(!BX.admin||!BX.admin.panel||!BX.admin.panel.isFixed())return;if(this.scrollTimer)clearTimeout(this.scrollTimer);this.DIV.style.display="none";this.scrollTimer=setTimeout(BX.proxy(this.Reopen,this),this.PARAMS.show_timeout)};BX.CHint.prototype.Reopen=function(){if(null!=this.timer)clearTimeout(this.timer);this.timer=setTimeout(BX.proxy(this.__show,this),50)};BX.CHint.prototype.__hide=function(){if(this.msover)return;if(!this.bInited)return;BX.unbind(window,"scroll",BX.proxy(this.Reopen,this));BX.CHint.openHints.delete(this);if(this.PARAMS.showOnce){this.Destroy()}else{this.DIV.style.display="none"}};BX.CHint.prototype.__hide_immediately=function(){this.msover=false;this.__hide()};BX.CHint.prototype.Init=function(){this.DIV=document.body.appendChild(BX.create("DIV",{props:{className:"bx-panel-tooltip"},style:{display:"none",position:"absolute",visibility:"hidden"},children:[this.CONTENT=BX.create("DIV",{props:{className:"bx-panel-tooltip-content"},children:[BX.create("DIV",{props:{className:"bx-panel-tooltip-underlay"},children:[BX.create("DIV",{props:{className:"bx-panel-tooltip-underlay-bg"}})]})]})]}));BX.ZIndexManager.register(this.DIV);if(this.ID){this.CONTENT.insertBefore(BX.create("A",{attrs:{href:"javascript:void(0)"},props:{className:"bx-panel-tooltip-close"},events:{click:BX.delegate(this.Close,this)}}),this.CONTENT.firstChild)}if(this.HINT_TITLE){this.CONTENT.appendChild(BX.create("DIV",{props:{className:"bx-panel-tooltip-title"},text:this.HINT_TITLE}))}if(this.HINT){this.CONTENT_TEXT=this.CONTENT.appendChild(BX.create("DIV",{props:{className:"bx-panel-tooltip-text"}})).appendChild(BX.create("SPAN",{html:this.HINT}))}if(this.PARAMS.preventHide){BX.bind(this.DIV,"mouseout",BX.proxy(this.Hide,this));BX.bind(this.DIV,"mouseover",BX.proxy(this.Show,this))}this.bInited=true};BX.CHint.prototype.setContent=function(e){this.HINT=e;if(this.CONTENT_TEXT)this.CONTENT_TEXT.innerHTML=this.HINT;else this.CONTENT_TEXT=this.CONTENT.appendChild(BX.create("DIV",{props:{className:"bx-panel-tooltip-text"}})).appendChild(BX.create("SPAN",{html:this.HINT}))};BX.CHint.prototype.prepareAdjustPos=function(){this._wnd={scrollPos:BX.GetWindowScrollPos(),scrollSize:BX.GetWindowScrollSize()};return BX.style(this.PARENT,"display")!="none"};BX.CHint.prototype.getAdjustPos=function(){var e={},t=BX.pos(this.PARENT),r=0;e.top=t.bottom+this.PARAMS.dx;if(BX.admin&&BX.admin.panel.DIV){r=BX.admin.panel.DIV.offsetHeight+this.PARAMS.dx;if(BX.admin.panel.isFixed()){r+=this._wnd.scrollPos.scrollTop}}if(e.top<r)e.top=r;else{if(e.top+this.DIV.offsetHeight>this._wnd.scrollSize.scrollHeight)e.top=t.top-this.PARAMS.dx-this.DIV.offsetHeight}e.left=t.left;if(t.left<this.PARAMS.dx)t.left=this.PARAMS.dx;else{var n=this.DIV.offsetWidth;var i=this._wnd.scrollSize.scrollWidth-n-this.PARAMS.dx;if(e.left>i)e.left=i}return e};BX.CHint.prototype.adjustWidth=function(){if(this.bWidthAdjusted)return;var e=this.DIV.offsetWidth,t=this.DIV.offsetHeight;if(e>this.PARAMS.min_width)e=Math.round(Math.sqrt(1.618*e*t));if(e<this.PARAMS.min_width)e=this.PARAMS.min_width;this.DIV.style.width=e+"px";if(this._adjustWidthInt)clearInterval(this._adjustWidthInt);this._adjustWidthInt=setInterval(BX.delegate(this._adjustWidthInterval,this),5);this.bWidthAdjusted=true};BX.CHint.prototype._adjustWidthInterval=function(){if(!this.DIV||this.DIV.style.display=="none")clearInterval(this._adjustWidthInt);var e=20,t=1500,r=this.DIV.offsetWidth,n=this.CONTENT_TEXT.offsetWidth;if(r>0&&n>0&&r-n<e&&r<t){this.DIV.style.width=r+e+"px";return}clearInterval(this._adjustWidthInt)};BX.CHint.prototype.adjustPos=function(){this.adjustWidth();var e=this.getAdjustPos();this.DIV.style.top=e.top+"px";this.DIV.style.left=e.left+"px"};BX.CHint.prototype.Close=function(){if(this.ID&&BX.WindowManager)BX.WindowManager.saveWindowOptions(this.ID,{display:"off"});this.__hide_immediately();this.Destroy()};
6BX.CHint.prototype.Destroy=function(){if(this.PARENT){BX.unbind(this.PARENT,"mouseover",BX.proxy(this.Show,this));BX.unbind(this.PARENT,"mouseout",BX.proxy(this.Hide,this))}if(this.DIV){BX.unbind(this.DIV,"mouseover",BX.proxy(this.Show,this));BX.unbind(this.DIV,"mouseout",BX.proxy(this.Hide,this));BX.ZIndexManager.unregister(this.DIV);BX.cleanNode(this.DIV,true)}};BX.CHint.prototype.enable=function(){this.disabled=false};BX.CHint.prototype.disable=function(){this.__hide_immediately();this.disabled=true};function _adjustWait(){if(!this.bxmsg)return;var e=BX.pos(this),t=e.top;if(t<BX.GetDocElement().scrollTop)t=BX.GetDocElement().scrollTop+5;this.bxmsg.style.top=t+5+"px";if(this==BX.GetDocElement()){this.bxmsg.style.right="5px"}else{this.bxmsg.style.left=e.right-this.bxmsg.offsetWidth-5+"px"}}function _processTpl(e,t,r){if(e){if(r)e.parentNode.removeChild(e);var n={},i=BX.findChildren(e,{attribute:"data-role"},true);for(var a=0,s=i.length;a<s;a++){n[i[a].getAttribute("data-role")]=i[a]}t.apply(e,[n])}}function _checkNode(e,t){t=t||{};if(BX.type.isFunction(t))return t.call(window,e);if(!t.allowTextNodes&&!BX.type.isElementNode(e))return false;var r,n,i;for(r in t){if(t.hasOwnProperty(r)){switch(r){case"tag":case"tagName":if(BX.type.isString(t[r])){if(e.tagName.toUpperCase()!=t[r].toUpperCase())return false}else if(t[r]instanceof RegExp){if(!t[r].test(e.tagName))return false}break;case"class":case"className":if(BX.type.isString(t[r])){if(!BX.hasClass(e,t[r]))return false}else if(t[r]instanceof RegExp){if(!BX.type.isString(e.className)||!t[r].test(e.className))return false}break;case"attr":case"attrs":case"attribute":if(BX.type.isString(t[r])){if(!e.getAttribute(t[r]))return false}else if(BX.type.isArray(t[r])){for(n=0,i=t[r].length;n<i;n++){if(t[r]&&!e.getAttribute(t[r]))return false}}else{for(n in t[r]){if(t[r].hasOwnProperty(n)){var a=e.getAttribute(n);if(t[r][n]instanceof RegExp){if(!BX.type.isString(a)||!t[r][n].test(a)){return false}}else{if(a!=""+t[r][n]){return false}}}}}break;case"property":case"props":if(BX.type.isString(t[r])){if(!e[t[r]])return false}else if(BX.type.isArray(t[r])){for(n=0,i=t[r].length;n<i;n++){if(t[r]&&!e[t[r]])return false}}else{for(n in t[r]){if(BX.type.isString(t[r][n])){if(e[n]!=t[r][n])return false}else if(t[r][n]instanceof RegExp){if(!BX.type.isString(e[n])||!t[r][n].test(e[n]))return false}}}break;case"callback":return t[r](e)}}}return true}window.addEventListener("pagehide",(()=>{garbageCollectors.forEach((({callback:e,context:t=window})=>{try{e.apply(t)}catch(e){}}))}));BX(BX.DoNothing);window.BX=BX;BX.browser.addGlobalClass();BX.data=function(e,t,r){if(typeof e=="undefined")return undefined;if(typeof t=="undefined")return undefined;if(typeof r!="undefined"){dataStorage.set(e,t,r)}else{var n;if((n=dataStorage.get(e,t))!=undefined){return n}else{if("getAttribute"in e){n=e.getAttribute("data-"+t.toString());if(n===null){return undefined}return n}}return undefined}};BX.DataStorage=function(){this.keyOffset=1;this.data={};this.uniqueTag="BX-"+Math.random();this.resolve=function(e,t){if(typeof e[this.uniqueTag]=="undefined")if(t){try{Object.defineProperty(e,this.uniqueTag,{value:this.keyOffset++})}catch(t){e[this.uniqueTag]=this.keyOffset++}}else return undefined;return e[this.uniqueTag]};this.get=function(e,t){if(e!=document&&!BX.type.isElementNode(e)||typeof t=="undefined")return undefined;e=this.resolve(e,false);if(typeof e=="undefined"||typeof this.data[e]=="undefined")return undefined;return this.data[e][t]};this.set=function(e,t,r){if(e!=document&&!BX.type.isElementNode(e)||typeof r=="undefined")return;var n=this.resolve(e,true);if(typeof this.data[n]=="undefined")this.data[n]={};this.data[n][t]=r}};var dataStorage=new BX.DataStorage})(window.BX);(function(e){if(!e.BX){e.BX={}}var t=e.BX;t.Promise=function(e,t){this.state=null;this.value=null;this.reason=null;this.next=null;this.ctx=t||this;this.onFulfilled=[];this.onRejected=[]};t.Promise.prototype.fulfill=function(e){this.checkState();this.value=e;this.state=true;this.execute()};t.Promise.prototype.reject=function(e){this.checkState();this.reason=e;this.state=false;this.execute()};t.Promise.prototype.then=function(e,r){if(typeof e=="function"||e instanceof Function){this.onFulfilled.push(e)}if(typeof r=="function"||r instanceof Function){this.onRejected.push(r)}if(this.next===null){this.next=new t.Promise(null,this.ctx)}if(this.state!==null){this.execute()}return this.next};t.Promise.prototype.catch=function(e){if(typeof e=="function"||e instanceof Function){this.onRejected.push(e)}if(this.next===null){this.next=new t.Promise(null,this.ctx)}if(this.state!==null){this.execute()}return this.next};t.Promise.prototype.setAutoResolve=function(e,t){this.timer=setTimeout(function(){if(this.state===null){this[e?"fulfill":"reject"]()}}.bind(this),t||15)};
6t.Promise.prototype.cancelAutoResolve=function(){clearTimeout(this.timer)};t.Promise.prototype.resolve=function(e){var t=this;if(this===e){this.reject(new TypeError("Promise cannot fulfill or reject itself"))}else if(e&&e.toString()==="[object BX.Promise]"){e.then((function(e){t.fulfill(e)}),(function(e){t.reject(e)}))}else{this.fulfill(e)}};t.Promise.prototype.toString=function(){return"[object BX.Promise]"};t.Promise.prototype.execute=function(){if(this.state===null){return}var r=undefined;var n=undefined;var i=undefined;var a;if(this.state===true){if(this.onFulfilled.length){try{for(a=0;a<this.onFulfilled.length;a++){i=this.onFulfilled[a].apply(this.ctx,[this.value]);if(typeof i!="undefined"){r=i}}}catch(r){if("console"in e){console.dir(r)}if(typeof t.debug!=="undefined"){t.debug(r)}n=r}}else{r=this.value}}else if(this.state===false){if(this.onRejected.length){try{for(a=0;a<this.onRejected.length;a++){i=this.onRejected[a].apply(this.ctx,[this.reason]);if(typeof i!="undefined"){r=i}}}catch(r){if("console"in e){console.dir(r)}if(typeof t.debug!=="undefined"){t.debug(r)}n=r}}else{n=this.reason}}if(this.next!==null){if(typeof n!="undefined"){this.next.reject(n)}else if(typeof r!="undefined"){this.next.resolve(r)}}};t.Promise.prototype.checkState=function(){if(this.state!==null){throw new Error("You can not do fulfill() or reject() multiple times")}}})(window);(function(e){if(e.BX.ajax)return;var t=e.BX,r={},n={method:"GET",dataType:"html",timeout:0,async:true,processData:true,scriptsRunFirst:false,emulateOnload:true,skipAuthCheck:false,start:true,cache:true,preparePost:true,headers:false,lsTimeout:30,lsForce:false},i={},a=[],s={url_utf:/[^\034-\254]+/g,script_self:/\/bitrix\/js\/main\/core\/core(_ajax)*.js$/i,script_self_window:/\/bitrix\/js\/main\/core\/core_window.js$/i,script_self_admin:/\/bitrix\/js\/main\/core\/core_admin.js$/i,script_onload:/window.onload/g};t.ajax=function(e){var i,a;if(!e||!e.url||!t.type.isString(e.url)){return false}for(var l in r)if(typeof e[l]=="undefined")e[l]=r[l];r={};for(l in n)if(typeof e[l]=="undefined")e[l]=n[l];e.method=e.method.toUpperCase();if(!t.localStorage)e.lsId=null;if(t.browser.IsIE()){var u=s.url_utf.exec(e.url);if(u){do{e.url=e.url.replace(u,t.util.urlencode(u));u=s.url_utf.exec(e.url)}while(u)}}if(e.dataType=="json")e.emulateOnload=false;if(!e.cache&&e.method=="GET")e.url=t.ajax._uncache(e.url);if(e.method=="POST"){if(e.preparePost){e.data=t.ajax.prepareData(e.data)}else if(o(e.headers)==="application/json"){const r=t.Type.isPlainObject(e.data)||t.Type.isString(e.data)||t.Type.isNumber(e.data)||t.Type.isBoolean(e.data)||t.Type.isArray(e.data);if(r){e.data=JSON.stringify(e.data)}}}var c=true;if(e.lsId&&!e.lsForce){var f=t.localStorage.get("ajax-"+e.lsId);if(f!==null){c=false;var p=function(r){if(r.key=="ajax-"+e.lsId&&r.value!="BXAJAXWAIT"){var n=r.value,i=!!r.oldValue&&n==null;if(!i)t.ajax.__run(e,n);else if(e.onfailure)e.onfailure("timeout");t.removeCustomEvent("onLocalStorageChange",p)}};if(f=="BXAJAXWAIT"){t.addCustomEvent("onLocalStorageChange",p)}else{setTimeout((function(){p({key:"ajax-"+e.lsId,value:f})}),10)}}}if(c){e.xhr=t.ajax.xhr();if(!e.xhr)return;if(e.lsId){t.localStorage.set("ajax-"+e.lsId,"BXAJAXWAIT",e.lsTimeout)}if(t.Type.isFunction(e.onprogress)){t.bind(e.xhr,"progress",e.onprogress)}if(t.Type.isFunction(e.onprogressupload)&&e.xhr.upload){t.bind(e.xhr.upload,"progress",e.onprogressupload)}e.xhr.open(e.method,e.url,e.async);if(!e.skipBxHeader&&!t.ajax.isCrossDomain(e.url)){e.xhr.setRequestHeader("Bx-ajax","true")}if(e.method=="POST"&&e.preparePost){e.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(typeof e.headers=="object"){for(l=0;l<e.headers.length;l++)e.xhr.setRequestHeader(e.headers[l].name,e.headers[l].value)}var d=false;var h=e.xhr.onreadystatechange=function(r){if(d)return;if(r==="timeout"){if(e.onfailure){e.onfailure("timeout","",e)}t.onCustomEvent(e.xhr,"onAjaxFailure",["timeout","",e]);e.xhr.onreadystatechange=t.DoNothing;e.xhr.abort();if(e.async){e.xhr=null}}else{if(e.xhr.readyState==4||r=="run"){i=t.ajax.xhrSuccess(e.xhr)?"success":"error";d=true;e.xhr.onreadystatechange=t.DoNothing;
6if(i=="success"){var n=!!e.skipAuthCheck||t.ajax.isCrossDomain(e.url)?false:e.xhr.getResponseHeader("X-Bitrix-Ajax-Status");if(!!n&&n=="Authorize"){if(e.onfailure){e.onfailure("auth",e.xhr.status,e)}t.onCustomEvent(e.xhr,"onAjaxFailure",["auth",e.xhr.status,e])}else{var a=e.xhr.responseText;if(e.lsId){t.localStorage.set("ajax-"+e.lsId,a,e.lsTimeout)}t.ajax.__run(e,a)}}else{if(e.onfailure){e.onfailure("status",e.xhr.status,e)}t.onCustomEvent(e.xhr,"onAjaxFailure",["status",e.xhr.status,e])}if(e.async){e.xhr=null}}}};if(e.async&&e.timeout>0){setTimeout((function(){if(e.xhr&&!d){h("timeout")}}),e.timeout*1e3)}if(e.start){e.xhr.send(e.data);if(!e.async){h("run")}}return e.xhr}};t.ajax.xhr=function(){if(e.XMLHttpRequest){try{return new XMLHttpRequest}catch(e){}}else if(e.ActiveXObject){try{return new e.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new e.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new e.ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("This browser does not support XMLHttpRequest.")}return null};t.ajax.isCrossDomain=function(r,n){n=n||e.location;if(r.indexOf("//")===0){r=n.protocol+r}if(r.indexOf("http")!==0){return false}var i=e.document.createElement("a");i.href=r;return i.protocol!==n.protocol||i.hostname!==n.hostname||t.ajax.getHostPort(i.protocol,i.host)!==t.ajax.getHostPort(n.protocol,n.host)};t.ajax.getHostPort=function(e,t){var r=/:(\d+)$/.exec(t);if(r){return r[1]}else{if(e==="http:"){return"80"}else if(e==="https:"){return"443"}}return""};t.ajax.__prepareOnload=function(r,n){if(r.length>0){t.ajax["onload_"+n]=null;for(var i=0,a=r.length;i<a;i++){if(r[i].isInternal){r[i].JS=r[i].JS.replace(s.script_onload,"BX.ajax.onload_"+n)}}}t.CaptureEventsGet();t.CaptureEvents(e,"load")};t.ajax.__runOnload=function(r){if(null!=t.ajax["onload_"+r]){t.ajax["onload_"+r].apply(e);t.ajax["onload_"+r]=null}var n=t.CaptureEventsGet();if(n){for(var i=0;i<n.length;i++)n[i].apply(e)}};t.ajax.__run=function(e,r){if(!e.processData){if(e.onsuccess){e.onsuccess(r)}t.onCustomEvent(e.xhr,"onAjaxSuccess",[r,e])}else{r=t.ajax.processRequestData(r,e)}};t.ajax._onParseJSONFailure=function(e){this.jsonFailure=true;this.jsonResponse=e;this.jsonProactive=/^\[WAF\]/.test(e)};t.ajax.processRequestData=function(e,r){var n,i=[],a=[];switch(r.dataType.toUpperCase()){case"JSON":var s=r.xhr||{};t.addCustomEvent(s,"onParseJSONFailure",t.proxy(t.ajax._onParseJSONFailure,r));n=t.parseJSON(e,s);t.removeCustomEvent(s,"onParseJSONFailure",t.proxy(t.ajax._onParseJSONFailure,r));if(!!n&&t.type.isArray(n["bxjs"])){for(var o=0;o<n["bxjs"].length;o++){if(t.type.isNotEmptyString(n["bxjs"][o])){i.push({isInternal:false,JS:n["bxjs"][o],bRunFirst:r.scriptsRunFirst})}else{i.push(n["bxjs"][o])}}}if(!!n&&t.type.isArray(n["bxcss"])){a=n["bxcss"]}break;case"SCRIPT":i.push({isInternal:true,JS:e,bRunFirst:r.scriptsRunFirst});n=e;break;default:var l=t.processHTML(e,r.scriptsRunFirst);n=l.HTML;i=l.SCRIPT;a=l.STYLE;break}if(a.length>0){t.loadCSS(a)}let u=null;if(r.emulateOnload){u=parseInt(Math.random()*1e6);t.ajax.__prepareOnload(i,u)}const c=t.defer((function(){if(r.emulateOnload){t.ajax.__runOnload(u)}t.onCustomEvent(r.xhr,"onAjaxSuccessFinish",[r])}));try{if(!!r.jsonFailure){throw{type:"json_failure",data:r.jsonResponse,bProactive:r.jsonProactive}}r.scripts=i;t.ajax.processScripts(r.scripts,true);if(r.onsuccess){r.onsuccess(n)}t.onCustomEvent(r.xhr,"onAjaxSuccess",[n,r]);t.ajax.processScripts(r.scripts,false,c)}catch(e){if(r.onfailure)r.onfailure("processing",e);t.onCustomEvent(r.xhr,"onAjaxFailure",["processing",e,r])}};t.ajax.processScripts=function(e,r,n){var i=[],a="";n=n||t.DoNothing;for(var s=0,o=e.length;s<o;s++){if(typeof r!="undefined"&&r!=!!e[s].bRunFirst)continue;if(e[s].isInternal)a+=";"+e[s].JS;else i.push(e[s].JS)}i=t.util.array_unique(i);var l=a.length>0?function(){t.evalGlobal(a)}:t.DoNothing;if(i.length>0){t.load(i,(function(){l();n()}))}else{l();n()}};t.ajax.prepareData=function(e,r){var n="";if(t.type.isString(e))n=e;else if(null!=e){for(var i in e){if(e.hasOwnProperty(i)){if(n.length>0)n+="&";var a=t.util.urlencode(i);if(r)a=r+"["+a+"]";if(typeof e[i]=="object")n+=t.ajax.prepareData(e[i],a);else n+=a+"="+t.util.urlencode(e[i])}}}return n};t.ajax.xhrSuccess=function(e){return e.status>=200&&e.status<300||e.status===304||e.status===1223||e.status===0};t.ajax.Setup=function(e,t){t=!!t;for(var i in e){if(t)r[i]=e[i];else n[i]=e[i]}};t.ajax.replaceLocalStorageValue=function(e,r,n){if(!!t.localStorage)t.localStorage.set("ajax-"+e,r,n)};t.ajax._uncache=function(e){return e+((e.indexOf("?")!==-1?"&":"?")+"_="+(new Date).getTime())};t.ajax.get=function(e,r,n){if(t.type.isFunction(r)){n=r;r=""}r=t.ajax.prepareData(r);if(r){e+=(e.indexOf("?")!==-1?"&":"?")+r;r=""}return t.ajax({method:"GET",dataType:"html",url:e,data:"",onsuccess:n})};
6t.ajax.getCaptcha=function(e){return t.ajax.loadJSON("/bitrix/tools/ajax_captcha.php",e)};t.ajax.insertToNode=function(e,n){n=t(n);if(!!n){var i={cancel:false};t.onCustomEvent("onAjaxInsertToNode",[{url:e,node:n,eventArgs:i}]);if(i.cancel===true){return}var a=null;if(!r.denyShowWait){a=t.showWait(n);delete r.denyShowWait}return t.ajax.get(e,(function(e){n.innerHTML=e;t.closeWait(n,a)}))}};t.ajax.post=function(e,r,n){r=t.ajax.prepareData(r);return t.ajax({method:"POST",dataType:"html",url:e,data:r,onsuccess:n})};t.ajax.promise=function(e){var r=new t.Promise;e.onsuccess=function(e){r.fulfill(e)};e.onfailure=function(e,t,n){r.reject({reason:e,data:t,ajaxConfig:n,xhr:n.xhr})};var n=t.ajax(e);if(n){if(typeof e.onrequeststart==="function"){e.onrequeststart(n)}}else{r.reject({reason:"init",data:false})}return r};t.ajax.loadScriptAjax=function(e,r,n){if(t.type.isArray(e)){for(var a=0,o=e.length;a<o;a++){t.ajax.loadScriptAjax(e[a],r,n)}}else{var l=e.replace(/\.js\?.*/,".js");if(s.script_self.test(l))return;if(s.script_self_window.test(l)&&t.CWindow)return;if(s.script_self_admin.test(l)&&t.admin)return;if(typeof i[l]=="undefined"){if(!!n){i[l]="";return t.loadScript(e)}else{return t.ajax({url:e,method:"GET",dataType:"script",processData:true,emulateOnload:false,scriptsRunFirst:true,async:false,start:true,onsuccess:function(e){i[l]=e;if(r)r(e)}})}}else if(r){r(i[l])}}};t.ajax.loadJSON=function(e,r,n,i){if(t.type.isFunction(r)){i=n;n=r;r=""}r=t.ajax.prepareData(r);if(r){e+=(e.indexOf("?")!==-1?"&":"?")+r;r=""}return t.ajax({method:"GET",dataType:"json",url:e,onsuccess:n,onfailure:i})};var o=function(e){if(!t.Type.isArray(e)){return null}var r=e.filter((function(e){return e.name==="Content-Type"})).pop();return r?r.value:null};const l=function(e){if(!t.Type.isPlainObject(e)){console.error("BX.ajax: {analytics} must be an object.");return false}const r=["event","tool","category"];for(const n of r){if(!t.Type.isStringFilled(e[n])){console.error(`BX.ajax: The "${n}" property in the "analytics" object must be a non-empty string.`);return false}}const n=["p1","p2","p3","p4","p5"];for(const r of n){const n=e[r];if(!t.Type.isStringFilled(n)){continue}if(n.split("_").length>2){console.error(`BX.ajax: The "${r}" property (${n}) in the "analytics" object must be a string containing a single underscore.`);return false}}return true};const u=function(e){const r={};if(t.Type.isStringFilled(e.analyticsLabel)||t.Type.isPlainObject(e.analyticsLabel)){r.analyticsLabel=e.analyticsLabel}if(t.Type.isPlainObject(e.analytics)){if(e.analyticsLabel){delete r.analyticsLabel;console.error("BX.ajax: Only {analytics} or {analyticsLabel} should be used. If both are present, {analyticsLabel} will be ignored.")}if(l(e.analytics)){r.st=e.analytics}else{console.error("BX.ajax: {analytics} is invalid and is skipped.")}}return r};const c=function(e){let t=e.getParameters||{};t={...t,...u(e)};if(typeof e.mode!=="undefined"){t.mode=e.mode}if(e.navigation){if(e.navigation.page){t.nav="page-"+e.navigation.page}if(e.navigation.size){if(t.nav){t.nav+="-"}else{t.nav=""}t.nav+="size-"+e.navigation.size}}return t};var f=function(e){e=t.type.isPlainObject(e)?e:{};e.headers=e.headers||[];e.headers.push({name:"X-Bitrix-Csrf-Token",value:t.bitrix_sessid()});if(t.message.SITE_ID){e.headers.push({name:"X-Bitrix-Site-Id",value:t.message.SITE_ID})}if(typeof e.json!=="undefined"){if(!t.type.isPlainObject(e.json)){throw new Error("Wrong `config.json`, plain object expected.")}e.headers.push({name:"Content-Type",value:"application/json"});e.data=e.json;e.preparePost=false}else if(e.data instanceof FormData){e.preparePost=false;if(typeof e.signedParameters!=="undefined"){e.data.append("signedParameters",e.signedParameters)}}else if(t.type.isPlainObject(e.data)||t.Type.isNil(e.data)){e.data=t.type.isPlainObject(e.data)?e.data:{};if(typeof e.signedParameters!=="undefined"){e.data.signedParameters=e.signedParameters}}if(!e.method){e.method="POST"}return e};var p=function(e,r){r=r||false;var n=t.clone(e);var i=null;var a=e.onrequeststart;e.onrequeststart=function(e){i=e;if(t.type.isFunction(a)){a(e)}};var s=n.onrequeststart;n.onrequeststart=function(e){i=e;if(t.type.isFunction(s)){s(e)}};var o=t.ajax.promise(e);return o.then((function(e){if(!r&&t.type.isPlainObject(e)&&t.type.isArray(e.errors)){var i=false;
6e.errors.forEach((function(e){if(e.code==="invalid_csrf"&&e.customData.csrf){t.message({bitrix_sessid:e.customData.csrf});n.headers=n.headers||[];n.headers=n.headers.filter((function(e){return e&&e.name!=="X-Bitrix-Csrf-Token"}));n.headers.push({name:"X-Bitrix-Csrf-Token",value:t.bitrix_sessid()});i=true}}));if(i){return p(n,true)}}if(!t.type.isPlainObject(e)||e.status!=="success"){var a=new t.Promise;a.reject(e);return a}return e})).catch((function(e){var r=new t.Promise;var n;if(t.type.isPlainObject(e)&&e.xhr&&e.xhr.responseText){try{n=JSON.parse(e.xhr.responseText);e=n}catch(e){}}if(t.type.isPlainObject(e)&&e.status&&e.hasOwnProperty("data")){r.reject(e)}else{r.reject({status:"error",data:{ajaxRejectData:e},errors:[{code:"NETWORK_ERROR",message:"Network error"}]})}return r})).then((function(e){var r=new t.Promise;var n=i.getAllResponseHeaders().trim().split(/[\r\n]+/);var a={};n.forEach((function(e){var t=e.split(": ");var r=t.shift().toLowerCase();a[r]=t.join(": ")}));if(!a["x-process-assets"]){r.fulfill(e);return r}var s=t.prop.getObject(t.prop.getObject(e,"data",{}),"assets",{});var o=[];if(t.Type.isArrayFilled(s.string)){s.string.reduce((function(e,t){if(String(t).length>0&&!e.includes(t)){e.push(t)}return e}),[]).forEach((function(e){if(String(e).startsWith('<script type="extension/settings"')){t.html(document.head,e,{useAdjacentHTML:true})}else{o.push(e)}}))}var l=new Promise((function(e,r){var n=t.prop.getArray(s,"css",[]);t.load(n,(function(){t.loadScript(t.prop.getArray(s,"js",[]),e)}))}));l.then((function(){var n=o.join("\n");t.html(document.head,n,{useAdjacentHTML:true}).then((function(){r.fulfill(e)}))}));return r}))};t.ajax.runAction=function(e,r){r=f(r);var n=c(r);n.action=e;var i="/bitrix/services/main/ajax.php?"+t.ajax.prepareData(n);return p({method:r.method,dataType:"json",url:i,data:r.data,timeout:r.timeout,preparePost:r.preparePost,headers:r.headers,onrequeststart:r.onrequeststart,onprogress:r.onprogress,onprogressupload:r.onprogressupload})};t.ajax.runComponentAction=function(e,r,n){n=f(n);n.mode=n.mode||"ajax";var i=c(n);i.c=e;i.action=r;var a="/bitrix/services/main/ajax.php?"+t.ajax.prepareData(i);return p({method:n.method,dataType:"json",url:a,data:n.data,timeout:n.timeout,preparePost:n.preparePost,headers:n.headers,onrequeststart:n.onrequeststart?n.onrequeststart:null,onprogress:n.onprogress,onprogressupload:n.onprogressupload})};t.ajax.load=function(e,r){if(!t.type.isArray(e))e=[e];var n=0;if(!t.type.isFunction(r))r=t.DoNothing;var i=function(e){if(t.type.isFunction(this.callback))this.callback(e);if(++n>=s)r()};for(var a=0,s=e.length;a<s;a++){switch(e[a].type.toUpperCase()){case"SCRIPT":t.loadScript([e[a].url],t.proxy(i,e[a]));break;case"CSS":t.loadCSS([e[a].url]);if(++n>=s)r();break;case"JSON":t.ajax.loadJSON(e[a].url,t.proxy(i,e[a]));break;default:t.ajax.get(e[a].url,"",t.proxy(i,e[a]));break}}};t.ajax.submit=function(e,r){if(!e.target){if(null==e.BXFormTarget){var n="formTarget_"+Math.random();e.BXFormTarget=document.body.appendChild(t.create("IFRAME",{props:{name:n,id:n,src:"javascript:void(0)"},style:{display:"none"}}))}e.target=e.BXFormTarget.name}e.BXFormCallback=r;t.bind(e.BXFormTarget,"load",t.proxy(t.ajax._submit_callback,e));t.submit(e);return false};t.ajax.submitComponentForm=function(r,n,i){if(!r.target){if(null==r.BXFormTarget){var a="formTarget_"+Math.random();r.BXFormTarget=document.body.appendChild(t.create("IFRAME",{props:{name:a,id:a,src:"javascript:void(0)"},style:{display:"none"}}))}r.target=r.BXFormTarget.name}if(!!i)var s=t.showWait(n);r.BXFormCallback=function(r){if(!!i)t.closeWait(s);var a=function(){if(!!e.bxcompajaxframeonload){setTimeout((function(){e.bxcompajaxframeonload();e.bxcompajaxframeonload=null}),10)}};t(n).innerHTML=r;t.onCustomEvent("onAjaxSuccess",[null,null,a])};t.bind(r.BXFormTarget,"load",t.proxy(t.ajax._submit_callback,r));return true};t.ajax._submit_callback=function(){try{if(this.BXFormTarget.contentWindow.location.href.indexOf("http")!=0)return}catch(e){return}if(this.BXFormCallback)this.BXFormCallback.apply(this,[this.BXFormTarget.contentWindow.document.body.innerHTML]);t.unbindAll(this.BXFormTarget)};t.ajax.prepareForm=function(e,t){t=!!t?t:{};var r,n,i,a=[],s=e.elements.length,o=0,l=0;if(!!e){for(r=0;r<s;r++){i=e.elements[r];if(i.disabled)continue;if(!i.type)continue;switch(i.type.toLowerCase()){case"text":case"textarea":case"password":case"number":case"hidden":case"select-one":a.push({name:i.name,value:i.value});l+=i.name.length+i.value.length;break;case"file":if(!!i.files){for(n=0;n<i.files.length;n++){o++;a.push({name:i.name,value:i.files[n],file:true});l+=i.files[n].size}}break;case"radio":case"checkbox":if(i.checked){a.push({name:i.name,value:i.value});l+=i.name.length+i.value.length}break;case"select-multiple":for(var u=0;u<i.options.length;u++){if(i.options[u].selected){a.push({name:i.name,value:i.options[u].value});l+=i.name.length+i.options[u].length}}break;default:break}}r=0;l=0;var c=t,f,p,d,h;while(r<a.length){var v=a[r].name.indexOf("[");if(h){c[a[r].name]={};c[a[r].name][h.replace(/\[|\]/gi,"")]=a[r].value;c=t;h=null;r++}else if(v==-1){c[a[r].name]=a[r].value;c=t;r++}else{f=a[r].name.substring(0,v);p=a[r].name.substring(v+1);d=p.indexOf("]");
6if(d==-1){if(!c[f])c[f]=[];c=t;r++}else if(d==0){if(!c[f])c[f]=[];c=c[f];a[r].name=""+c.length;if(p.substring(d+1).indexOf("[")===0)h=p.substring(0,d)+p.substring(d+1)}else{if(!c[f])c[f]={};c=c[f];a[r].name=p.substring(0,d)+p.substring(d+1)}}}}return{data:t,filesCount:o,roughSize:l}};t.ajax.submitAjax=function(r,n){n=n!==null&&typeof n=="object"?n:{};n.url=n["url"]||r.getAttribute("action");var i=n["data"]||{};n.data=t.ajax.prepareForm(r).data;for(var a in i){if(i.hasOwnProperty(a)){n.data[a]=i[a]}}if(!e["FormData"]){t.ajax(n)}else{var s=function(e){var t=Object.prototype.toString.call(e);return t=="[object File]"||t=="[object Blob]"},o=function(e,t,r){if(!!r&&typeof r=="object"&&!s(r)){for(var n in r){if(r.hasOwnProperty(n)){o(e,t==""?n:t+"["+n+"]",r[n])}}}else e.append(t,!!r?r:"")},l=function(e){var r={};if(null!=e){if(typeof e=="object"){for(var n in e){if(e.hasOwnProperty(n)){var i=t.util.urlencode(n);if(typeof e[n]=="object"&&e[n]["file"]!==true)r[i]=l(e[n]);else if(e[n]["file"]===true)r[i]=e[n]["value"];else r[i]=t.util.urlencode(e[n])}}}else r=t.util.urlencode(e)}return r},u=new e.FormData;if(n.method!=="POST"){n.data=t.ajax.prepareData(n.data);if(n.data){n.url+=(n.url.indexOf("?")!==-1?"&":"?")+n.data;n.data=""}}else{if(n.preparePost===true)n.data=l(n.data);o(u,"",n.data);n.data=u}n.preparePost=false;n.start=false;var c=t.ajax(n);if(!!n["onprogress"])c.upload.addEventListener("progress",(function(e){var t=null;if(e.lengthComputable&&(e.total||e["totalSize"])){t=e.loaded*100/(e.total||e["totalSize"])}n["onprogress"](e,t)}));c.send(u)}};t.ajax.UpdatePageData=function(e){if(e.TITLE)t.ajax.UpdatePageTitle(e.TITLE);if(e.WINDOW_TITLE||e.TITLE)t.ajax.UpdateWindowTitle(e.WINDOW_TITLE||e.TITLE);if(e.NAV_CHAIN)t.ajax.UpdatePageNavChain(e.NAV_CHAIN);if(e.CSS&&e.CSS.length>0)t.loadCSS(e.CSS);if(e.SCRIPTS&&e.SCRIPTS.length>0){var r=function(n,i,a){if(!!i&&t.type.isArray(i.scripts)){for(var s=0,o=e.SCRIPTS.length;s<o;s++){i.scripts.push({isInternal:false,JS:e.SCRIPTS[s]})}}else{t.loadScript(e.SCRIPTS,a)}t.removeCustomEvent("onAjaxSuccess",r)};t.addCustomEvent("onAjaxSuccess",r)}else{var n=function(e,r,i){if(t.type.isFunction(i)){i()}t.removeCustomEvent("onAjaxSuccess",n)};t.addCustomEvent("onAjaxSuccess",n)}};t.ajax.UpdatePageTitle=function(e){var r=t("pagetitle");if(r){t.remove(r.firstChild);if(!r.firstChild)r.appendChild(document.createTextNode(e));else r.insertBefore(document.createTextNode(e),r.firstChild)}};t.ajax.UpdateWindowTitle=function(e){document.title=e};t.ajax.UpdatePageNavChain=function(e){var r=t("navigation");if(r){r.innerHTML=e}};t.userOptions={options:null,bSend:false,delay:5e3,path:"/bitrix/admin/user_options.php?"};t.userOptions.setAjaxPath=function(e){console.warn("BX.userOptions.setAjaxPath is deprecated. There is no way to change ajax path.")};t.userOptions.save=function(e,r,n,i,a){if(t.userOptions.options===null){t.userOptions.options={}}a=Boolean(a);t.userOptions.options[`${e}.${r}.${n}`]=[e,r,n,i,a];const s=t.userOptions.__get();if(s){document.cookie=`${t.message("COOKIE_PREFIX")}_LAST_SETTINGS=${encodeURIComponent(s)}&sessid=${t.bitrix_sessid()}; expires=Thu, 31 Dec ${(new Date).getFullYear()+1} 23:59:59 GMT; path=/;`}if(!t.userOptions.bSend){t.userOptions.bSend=true;setTimeout((()=>{t.userOptions.send(null)}),t.userOptions.delay)}};t.userOptions.send=function(e){const r=t.userOptions.__get_values({backwardCompatibility:true});t.userOptions.options=null;t.userOptions.bSend=false;if(r){document.cookie=`${t.message("COOKIE_PREFIX")}_LAST_SETTINGS=; path=/;`;t.ajax.runAction("main.userOption.saveOptions",{json:{newValues:r}}).then((r=>{if(t.type.isFunction(e)){e(r)}}))}};t.userOptions.del=function(e,r,n,i){t.ajax.runAction("main.userOption.deleteOption",{json:{category:e,name:r,common:n}}).then((e=>{if(t.type.isFunction(i)){i(e)}}))};t.userOptions.__get_values=function({backwardCompatibility:e}){if(!t.userOptions||!t.Type.isPlainObject(t.userOptions.options)){return null}const r=0;const n=1;const i=2;const a=3;const s=4;const o={p:[]};let l=-1;let u="";Object.entries(t.userOptions.options).forEach((([t,c])=>{const f=c[r];const p=c[n];const d=`${f}.${p}`;if(u!==d){l++;o.p.push({c:f,n:p,v:{}});if(c[s]===true){o.p[l].d="Y"}u=d}if(c[i]===null){o.p[l].v=c[a]}else{let t=c[a];if(e&&Array.isArray(c[a])){t=c[a].join(",")}o.p[l].v[c[i]]=t}}));return o.p.length>0?o.p:null};t.userOptions.__get=function(){if(!t.userOptions.options)return"";var e="",r=-1,n="",i,a;for(a in t.userOptions.options){if(t.userOptions.options.hasOwnProperty(a)){i=t.userOptions.options[a];if(n!=i[0]+"."+i[1]){r++;e+="&p["+r+"][c]="+t.util.urlencode(i[0]);e+="&p["+r+"][n]="+t.util.urlencode(i[1]);if(i[4]==true)e+="&p["+r+"][d]=Y";n=i[0]+"."+i[1]}var s=i[2];var o=i[3];if(s===null){e+="&p["+r+"][v]="+t.util.urlencode(o)}else{e+="&p["+r+"][v]["+t.util.urlencode(s)+"]="+t.util.urlencode(o)}}}return e.substr(1)};t.ajax.history={expected_hash:"",obParams:null,obFrame:null,obImage:null,obTimer:null,bInited:false,bHashCollision:false,bPushState:!!(history.pushState&&t.type.isFunction(history.pushState)),startState:null,init:function(r){if(t.ajax.history.bInited)return;this.obParams=r;var n=this.obParams.getState();if(t.ajax.history.bPushState){t.ajax.history.expected_hash=e.location.pathname;if(e.location.search)t.ajax.history.expected_hash+=e.location.search;t.ajax.history.put(n,t.ajax.history.expected_hash,"",true);
6setTimeout((function(){t.bind(e,"popstate",t.ajax.history.__hashListener)}),500)}else{t.ajax.history.expected_hash=e.location.hash;if(!t.ajax.history.expected_hash||t.ajax.history.expected_hash=="#")t.ajax.history.expected_hash="__bx_no_hash__";d.put(t.ajax.history.expected_hash,n);t.ajax.history.obTimer=setTimeout(t.ajax.history.__hashListener,500);if(t.browser.IsIE()){t.ajax.history.obFrame=document.createElement("IFRAME");t.hide_object(t.ajax.history.obFrame);document.body.appendChild(t.ajax.history.obFrame);t.ajax.history.obFrame.contentWindow.document.open();t.ajax.history.obFrame.contentWindow.document.write(t.ajax.history.expected_hash);t.ajax.history.obFrame.contentWindow.document.close()}else if(t.browser.IsOpera()){t.ajax.history.obImage=document.createElement("IMG");t.hide_object(t.ajax.history.obImage);document.body.appendChild(t.ajax.history.obImage);t.ajax.history.obImage.setAttribute("src","javascript:location.href = 'javascript:BX.ajax.history.__hashListener();';")}}t.ajax.history.bInited=true},__hashListener:function(r){r=r||e.event||{state:false};if(t.ajax.history.bPushState){t.ajax.history.obParams.setState(r.state||t.ajax.history.startState)}else{if(t.ajax.history.obTimer){e.clearTimeout(t.ajax.history.obTimer);t.ajax.history.obTimer=null}var n;if(null!=t.ajax.history.obFrame)n=t.ajax.history.obFrame.contentWindow.document.body.innerText;else n=e.location.hash;if(!n||n=="#")n="__bx_no_hash__";if(n.indexOf("#")==0)n=n.substring(1);if(n!=t.ajax.history.expected_hash){var i=d.get(n);if(i){t.ajax.history.obParams.setState(i);t.ajax.history.expected_hash=n;if(null!=t.ajax.history.obFrame){var a=n=="__bx_no_hash__"?"":n;if(e.location.hash!=a&&e.location.hash!="#"+a)e.location.hash=a}}}t.ajax.history.obTimer=setTimeout(t.ajax.history.__hashListener,500)}},put:function(r,n,i,a){if(this.bPushState){if(!a){history.pushState(r,"",n)}else{t.ajax.history.startState=r}}else{if(typeof i!="undefined")n=i;else n="view"+n;d.put(n,r);t.ajax.history.expected_hash=n;e.location.hash=t.util.urlencode(n);if(null!=t.ajax.history.obFrame){t.ajax.history.obFrame.contentWindow.document.open();t.ajax.history.obFrame.contentWindow.document.write(n);t.ajax.history.obFrame.contentWindow.document.close()}}},checkRedirectStart:function(r,n){var i=e.location.hash;if(i.substring(0,1)=="#")i=i.substring(1);var a=i.substring(0,5);if(a=="view/"||a=="view%"){t.ajax.history.bHashCollision=true;document.write("<"+'div id="__ajax_hash_collision_'+n+'" style="display: none;">')}},checkRedirectFinish:function(r,n){document.write("</div>");var i=e.location.hash;if(i.substring(0,1)=="#")i=i.substring(1);t.ready((function(){var e=i.substring(0,5);if(e=="view/"||e=="view%"){var a=t("__ajax_hash_collision_"+n);var s=a.firstChild;t.cleanNode(s);a.style.display="block";if(e!="view%")i=t.util.urlencode(i);i+=(i.indexOf("%3F")==-1?"%3F":"%26")+r+"="+n;var o="/bitrix/tools/ajax_redirector.php?hash="+i;t.ajax.insertToNode(o,s)}}))}};t.ajax.component=function(e){this.node=e};
6t.ajax.component.prototype.getState=function(){var r={node:this.node,title:e.document.title,data:t(this.node).innerHTML};var n=t("navigation");if(null!=n)r.nav_chain=n.innerHTML;t.onCustomEvent(t(r.node),"onComponentAjaxHistoryGetState",[r]);return r};t.ajax.component.prototype.setState=function(e){t(e.node).innerHTML=e.data;t.ajax.UpdatePageTitle(e.title);if(e.nav_chain){t.ajax.UpdatePageNavChain(e.nav_chain)}t.onCustomEvent(t(e.node),"onComponentAjaxHistorySetState",[e])};var d={arHistory:{},put:function(e,t){this.arHistory[e]=t},get:function(e){return this.arHistory[e]}};t.ajax.FormData=function(){this.elements=[];this.files=[];this.features={};this.isSupported();this.log("BX FormData init")};t.ajax.FormData.isSupported=function(){var e=new t.ajax.FormData;var r=e.features.supported;e=null;return r};t.ajax.FormData.prototype.log=function(e){if(false){try{if(t.browser.IsIE())e=JSON.stringify(e);console.log(e)}catch(e){}}};t.ajax.FormData.prototype.isSupported=function(){var t={};t.fileReader=e.FileReader&&e.FileReader.prototype.readAsBinaryString;t.readFormData=t.sendFormData=!!e.FormData;t.supported=!!(t.readFormData&&t.sendFormData);this.features=t;this.log("features:");this.log(t);return t.supported};t.ajax.FormData.prototype.append=function(e,t){if(typeof t==="object"){this.files.push({name:e,value:t})}else{this.elements.push({name:e,value:t})}};t.ajax.FormData.prototype.send=function(e,r,n,i){this.log("FD send");this.xhr=t.ajax({method:"POST",dataType:"html",url:e,onsuccess:r,onfailure:i,start:false,preparePost:false});if(n){this.xhr.upload.addEventListener("progress",(function(e){if(e.lengthComputable)n(e.loaded/(e.total||e.totalSize))}),false)}if(this.features.readFormData&&this.features.sendFormData){var a=new FormData;this.log("use browser formdata");for(var s in this.elements){if(this.elements.hasOwnProperty(s))a.append(this.elements[s].name,this.elements[s].value)}for(s in this.files){if(this.files.hasOwnProperty(s))a.append(this.files[s].name,this.files[s].value)}this.xhr.send(a)}return this.xhr};t.addCustomEvent("onAjaxFailure",t.debug)})(window);(function(e,t){"use strict";var r={observer:null,images:{},imageStatus:{hidden:-2,error:-1,undefined:0,inited:1,loaded:2},imageTypes:{image:1,background:2},initObserver:function e(){this.observer=new IntersectionObserver(this.onIntersection.bind(this),{rootMargin:"20% 0% 20% 0%",threshold:.1})},onIntersection:function e(t){t.forEach(function(e){if(e.isIntersecting){this.showImage(e.target)}}.bind(this))},registerImage:function e(r,n,i){if(this.observer===null){this.initObserver()}i=i||{};if(!t.Type.isStringFilled(r)){return}if(t.Type.isObject(this.images[r])){return}var a=document.getElementById(r);if(!t.Type.isDomNode(a)){return}this.observer.observe(a);this.images[r]={id:r,node:null,src:null,dataSrcName:i.dataSrcName||"src",type:null,func:t.Type.isFunction(n)?n:null,status:this.imageStatus.undefined}},registerImages:function e(r,n,i){if(t.Type.isArray(r)){for(var a=0,s=r.length;a<s;a++){this.registerImage(r[a],n,i)}}},showImage:function e(r){var n=r.id;if(!t.Type.isStringFilled(n)){return}var i=this.images[n];if(!t.Type.isPlainObject(i)){return}if(i.status==this.imageStatus.undefined){this.initImage(i)}if(i.status!==this.imageStatus.inited){return}if(!i.node||!i.node.parentNode){i.node=null;i.status=this.imageStatus.error;return}if(i.type==this.imageTypes.image){i.node.src=i.src}else{i.node.style.backgroundImage="url('"+i.src+"')"}i.node.dataset[i.dataSrcName]="";i.status=this.imageStatus.loaded},showImages:function e(r){r=r!==false;for(var n in this.images){if(!this.images.hasOwnProperty(n)){continue}var i=this.images[n];if(i.status==this.imageStatus.undefined){this.initImage(i)}if(i.status!==this.imageStatus.inited){continue}if(!i.node||!i.node.parentNode){i.node=null;i.status=this.imageStatus.error;continue}var a=true;if(r&&t.Type.isFunction(i.func)){a=i.func(i)}if(a===true&&this.isElementVisibleOnScreen(i.node)){if(i.type==this.imageTypes.image){i.node.src=i.src}else{i.node.style.backgroundImage="url('"+i.src+"')"}i.node.dataset[i.dataSrcName]="";i.status=this.imageStatus.loaded}}},initImage:function e(r){r.status=this.imageStatus.error;var n=document.getElementById(r.id);if(!t.Type.isDomNode(n)){return}var i=n.dataset[r.dataSrcName];if(t.Type.isStringFilled(i)){r.node=n;r.src=i;r.status=this.imageStatus.inited;r.type=r.node.tagName.toLowerCase()=="img"?this.imageTypes.image:this.imageTypes.background}},isElementVisibleOnScreen:function e(t){var r=this.getElementCoords(t);var n=window.pageYOffset||document.documentElement.scrollTop;var i=n+document.documentElement.clientHeight;
6r.bottom=r.top+t.offsetHeight;return r.top>n&&r.top<i||r.bottom<i&&r.bottom>n},isElementVisibleOn2Screens:function e(t){var r=document.documentElement.clientHeight;var n=window.pageYOffset||document.documentElement.scrollTop;var i=n+r;var a=this.getElementCoords(t);a.bottom=a.top+t.offsetHeight;n-=r;i+=r;return a.top>n&&a.top<i||a.bottom<i&&a.bottom>n},getElementCoords:function e(t){var r=t.getBoundingClientRect();return{originTop:r.top,originLeft:r.left,top:r.top+window.pageYOffset,left:r.left+window.pageXOffset}},onScroll:function e(){},clearImages:function e(){this.images=[]}};e.LazyLoad=r})(this.BX=this.BX||{},BX);(function(e){"use strict";var t=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);if(!!t&&babelHelpers.typeof(t)==="object"){this.params=new Map(Object.entries(t))}else{this.params=new Map}}babelHelpers.createClass(e,[{key:"getParam",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(this.params.has(t)){return this.params.get(t)}return r}},{key:"setParam",value:function e(t,r){this.params.set(t,r)}},{key:"clear",value:function e(){this.params.clear()}}],[{key:"create",value:function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return new e(r)}}]);return e}();e.ParamBag=t})(this.BX=this.BX||{});(function(){BX.FixFontSize=function(e){var t,r,n;this.node=null;this.prevWindowSize=0;this.prevWrapperSize=0;this.mainWrapper=null;this.textWrapper=null;this.objList=e.objList;this.minFontSizeList=[];this.minFontSize=0;if(e.onresize){this.prevWindowSize=window.innerWidth||document.documentElement.clientWidth;BX.bind(window,"resize",BX.throttle(this.onResize,350,this))}if(e.onAdaptiveResize){t=this.objList[0].scaleBy||this.objList[0].node;r=getComputedStyle(t);this.prevWrapperSize=parseInt(r["width"])-parseInt(r["paddingLeft"])-parseInt(r["paddingRight"]);BX.bind(window,"resize",BX.throttle(this.onAdaptiveResize,350,this))}this.createTestNodes();this.decrease()};BX.FixFontSize.prototype={createTestNodes:function(){this.textWrapper=BX.create("div",{style:{display:"inline-block",whiteSpace:"nowrap"}});this.mainWrapper=BX.create("div",{style:{height:0,overflow:"hidden"},children:[this.textWrapper]})},insertTestNodes:function(){document.body.appendChild(this.mainWrapper)},removeTestNodes:function(){document.body.removeChild(this.mainWrapper)},decrease:function(){var e,t,r,n;this.insertTestNodes();for(var i=this.objList.length-1;i>=0;i--){r=this.objList[i].scaleBy||this.objList[i].node;n=getComputedStyle(r);e=parseInt(n["width"])-parseInt(n["paddingLeft"])-parseInt(n["paddingRight"]);t=parseInt(getComputedStyle(this.objList[i].node)["font-size"]);this.textWrapperSetStyle(this.objList[i].node);if(this.textWrapperInsertText(this.objList[i].node)){while(this.textWrapper.offsetWidth>e&&t>0){this.textWrapper.style.fontSize=--t+"px"}if(this.objList[i].smallestValue){this.minFontSize=this.minFontSize?Math.min(this.minFontSize,t):t;this.minFontSizeList.push(this.objList[i].node)}else{this.objList[i].node.style.fontSize=t+"px"}}}if(this.minFontSizeList.length>0)this.setMinFont();this.removeTestNodes()},increase:function(){this.insertTestNodes();var e,t,r,n;this.insertTestNodes();for(var i=this.objList.length-1;i>=0;i--){r=this.objList[i].scaleBy||this.objList[i].node;n=getComputedStyle(r);e=parseInt(n["width"])-parseInt(n["paddingLeft"])-parseInt(n["paddingRight"]);t=parseInt(getComputedStyle(this.objList[i].node)["font-size"]);this.textWrapperSetStyle(this.objList[i].node);if(this.textWrapperInsertText(this.objList[i].node)){while(this.textWrapper.offsetWidth<e&&t<this.objList[i].maxFontSize){this.textWrapper.style.fontSize=++t+"px"}t--;if(this.objList[i].smallestValue){this.minFontSize=this.minFontSize?Math.min(this.minFontSize,t):t;this.minFontSizeList.push(this.objList[i].node)}else{this.objList[i].node.style.fontSize=t+"px"}}}if(this.minFontSizeList.length>0)this.setMinFont();this.removeTestNodes()},setMinFont:function(){for(var e=this.minFontSizeList.length-1;e>=0;e--){this.minFontSizeList[e].style.fontSize=this.minFontSize+"px"}this.minFontSize=0},onResize:function(){var e=window.innerWidth||document.documentElement.clientWidth;if(this.prevWindowSize>e)this.decrease();else if(this.prevWindowSize<e)this.increase();this.prevWindowSize=e},onAdaptiveResize:function(){var e=this.objList[0].scaleBy||this.objList[0].node,t=getComputedStyle(e),r=parseInt(t["width"])-parseInt(t["paddingLeft"])-parseInt(t["paddingRight"]);if(this.prevWrapperSize>r)this.decrease();else if(this.prevWrapperSize<r)this.increase();this.prevWrapperSize=r},textWrapperInsertText:function(e){if(e.textContent){this.textWrapper.textContent=e.textContent;return true}else if(e.innerText){this.textWrapper.innerText=e.innerText;return true}else{return false}},textWrapperSetStyle:function(e){this.textWrapper.style.fontFamily=getComputedStyle(e)["font-family"];this.textWrapper.style.fontSize=getComputedStyle(e)["font-size"];this.textWrapper.style.fontStyle=getComputedStyle(e)["font-style"];this.textWrapper.style.fontWeight=getComputedStyle(e)["font-weight"];this.textWrapper.style.lineHeight=getComputedStyle(e)["line-height"]}};BX.FixFontSize.init=function(e){return new BX.FixFontSize(e)}})()})();
7//# sourceMappingURL=core.map.js

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.