!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=86)}({17:function(t,e,n){var r,i,o;i=[e,n(89)],void 0===(o="function"==typeof(r=function(n,r){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,(n=[{key:"getFirstMatch",value:function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""}},{key:"getSecondMatch",value:function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""}},{key:"matchAndReturnConst",value:function(t,e,n){if(t.test(e))return n}},{key:"getWindowsVersionName",value:function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}},{key:"getAndroidVersionName",value:function(t){var e=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":void 0}},{key:"getVersionPrecision",value:function(t){return t.split(".").length}},{key:"compareVersions",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.getVersionPrecision(e),o=t.getVersionPrecision(n),s=Math.max(i,o),a=0,c=t.map([e,n],function(e){var n=s-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),function(t){return new Array(20-t.length).join("0")+t}).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}}},{key:"map",value:function(t,e){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n<t.length;n+=1)r.push(e(t[n]));return r}},{key:"getBrowserAlias",value:function(t){return r.BROWSER_ALIASES_MAP[t]}}])&&i(e,n),t;var e,n}();n.default=o,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},86:function(t,e,n){var r,i,o;i=[e,n(87)],void 0===(o="function"==typeof(r=function(n,r){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=(o=r)&&o.__esModule?o:{default:o};var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,(n=[{key:"getParser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof t)throw new Error("UserAgent should be a string");return new r.default(t,e)}},{key:"parse",value:function(t){return new r.default(t).getResult()}}])&&i(e,n),t;var e,n}();n.default=s,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},87:function(t,e,n){var r,i,o;i=[e,n(88),n(90),n(91),n(92),n(17)],void 0===(o="function"==typeof(r=function(n,r,i,o,s,a){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=c(r),i=c(i),o=c(o),s=c(s),a=c(a);var h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==n&&this.parse()}return e=t,(n=[{key:"getUA",value:function(){return this._ua}},{key:"test",value:function(t){return t.test(this._ua)}},{key:"parseBrowser",value:function(){var t=this;this.parsedResult.browser={};var e=r.default.find(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}},{key:"getBrowser",value:function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}},{key:"getBrowserName",value:function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}},{key:"getBrowserVersion",value:function(){return this.getBrowser().version}},{key:"getOS",value:function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}},{key:"parseOS",value:function(){var t=this;this.parsedResult.os={};var e=i.default.find(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}},{key:"getOSName",value:function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""}},{key:"getOSVersion",value:function(){return this.getOS().version}},{key:"getPlatform",value:function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}},{key:"getPlatformType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getPlatform(),n=e.type;return t?String(n).toLowerCase()||"":n||""}},{key:"parsePlatform",value:function(){var t=this;this.parsedResult.platform={};var e=o.default.find(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}},{key:"getEngine",value:function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}},{key:"getEngineName",value:function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}},{key:"parseEngine",value:function(){var t=this;this.parsedResult.engine={};var e=s.default.find(function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}},{key:"parse",value:function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}},{key:"getResult",value:function(){return Object.assign({},this.parsedResult)}},{key:"satisfies",value:function(t){var e=this,n={},r=0,i={},o=0;if(Object.keys(t).forEach(function(e){var s=t[e];"string"==typeof s?(i[e]=s,o+=1):"object"===u(s)&&(n[e]=s,r+=1)}),r>0){var s=Object.keys(n),a=s.find(function(t){return e.isOS(t)});if(a){var c=this.satisfies(n[a]);if(void 0!==c)return c}var l=s.find(function(t){return e.isPlatform(t)});if(l){var h=this.satisfies(n[l]);if(void 0!==h)return h}}if(o>0){var f=Object.keys(i).find(function(t){return e.isBrowser(t,!0)});if(void 0!==f)return this.compareVersion(i[f])}}},{key:"isBrowser",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBrowserName(),r=[n.toLowerCase()],i=a.default.getBrowserAlias(n);return e&&void 0!==i&&r.push(i.toLowerCase()),-1!==r.indexOf(t.toLowerCase())}},{key:"compareVersion",value:function(t){var e=[0],n=t,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(a.default.compareVersions(i,n,r))>-1}},{key:"isOS",value:function(t){return this.getOSName(!0)===String(t).toLowerCase()}},{key:"isPlatform",value:function(t){return this.getPlatformType(!0)===String(t).toLowerCase()}},{key:"isEngine",value:function(t){return this.getEngineName(!0)===String(t).toLowerCase()}},{key:"is",value:function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)}},{key:"some",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.some(function(e){return t.is(e)})}}])&&l(e.prototype,n),t;var e,n}();n.default=h,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},88:function(t,e,n){var r,i,o;i=[e,n(17)],void 0===(o="function"==typeof(r=function(n,r){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=(i=r)&&i.__esModule?i:{default:i};var o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=r.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:opera)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=r.default.getFirstMatch(/(?:opr|opios)[\s\/](\S+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:SamsungBrowser)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=r.default.getFirstMatch(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=r.default.getFirstMatch(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=r.default.getFirstMatch(/(?:swing)[\s\/](\d+(?:\.\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:coast)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=r.default.getFirstMatch(/(?:yabrowser)[\s\/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:ucbrowser)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:Maxthon|mxios)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:epiphany)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:puffin)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:sleipnir)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/(?:k-meleon)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=r.default.getFirstMatch(/(?:micromessenger)[\s\/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=r.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=r.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=r.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=r.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=r.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=r.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=r.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=r.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=r.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=r.default.getFirstMatch(o,t)||r.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=r.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=r.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=r.default.getFirstMatch(/(?:qupzilla)[\s\/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=r.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s\/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=r.default.getFirstMatch(/(?:chromium)[\s\/](\d+(\.?_?\d+)+)/i,t)||r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=r.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=r.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:r.default.getFirstMatch(e,t),version:r.default.getSecondMatch(e,t)}}}];n.default=s,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},89:function(t,e,n){var r,i;void 0===(i="function"==typeof(r=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex"}})?r.apply(e,[e]):r)||(t.exports=i)},90:function(t,e,n){var r,i,o;i=[e,n(17)],void 0===(o="function"==typeof(r=function(n,r){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=(i=r)&&i.__esModule?i:{default:i};var o=[{test:[/windows phone/i],describe:function(t){return{name:"Windows Phone",version:r.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t)}}},{test:[/windows/i],describe:function(t){var e=r.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t);return{name:"Windows",version:e,versionName:r.default.getWindowsVersionName(e)}}},{test:[/macintosh/i],describe:function(t){return{name:"macOS",version:r.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,".")}}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){return{name:"iOS",version:r.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".")}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=r.default.getFirstMatch(/android[\s\/-](\d+(\.\d+)*)/i,t),n=r.default.getAndroidVersionName(e),i={name:"Android",version:e};return n&&(i.versionName=n),i}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=r.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:"WebOS"};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){return{name:"BlackBerry",version:r.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||r.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||r.default.getFirstMatch(/\bbb(\d+)/i,t)}}},{test:[/bada/i],describe:function(t){return{name:"Bada",version:r.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t)}}},{test:[/tizen/i],describe:function(t){return{name:"Tizen",version:r.default.getFirstMatch(/tizen[\/\s](\d+(\.\d+)*)/i,t)}}},{test:[/linux/i],describe:function(){return{name:"Linux"}}},{test:[/CrOS/],describe:function(){return{name:"Chrome OS"}}},{test:[/PlayStation 4/],describe:function(t){return{name:"PlayStation 4",version:r.default.getFirstMatch(/PlayStation 4[\/\s](\d+(\.\d+)*)/i,t)}}}];n.default=o,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},91:function(t,e,n){var r,i,o;i=[e,n(17)],void 0===(o="function"==typeof(r=function(n,r){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=(i=r)&&i.__esModule?i:{default:i};var o="tablet",s="mobile",a="desktop",c="tv",u=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=r.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:s,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o,vendor:"Amazon"}}},{test:[/tablet/i],describe:function(){return{type:o}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=r.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:s,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:s,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:s}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:s,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:s}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:a,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:a}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:a}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:c}}}];n.default=u,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)},92:function(t,e,n){var r,i,o;i=[e,n(17)],void 0===(o="function"==typeof(r=function(n,r){"use strict";var i;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r=(i=r)&&i.__esModule?i:{default:i};var o=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){return/\sedg\//i.test(t)?{name:"Blink"}:{name:"EdgeHTML",version:r.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t)}}},{test:[/trident/i],describe:function(t){var e={name:"Trident"},n=r.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:"Presto"},n=r.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:"Gecko"},n=r.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:"Blink"}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:"WebKit"},n=r.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];n.default=o,t.exports=e.default})?r.apply(e,i):r)||(t.exports=o)}})},,function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"openMapsPopup",function(){return Ie}),n.d(r,"logout",function(){return Ne}),n.d(r,"onLoggedIn",function(){return xe}),n.d(r,"openRegionSelector",function(){return Be}),n.d(r,"connectTariffById",function(){return Re}),n.d(r,"openMobileMenu",function(){return Fe}),n.d(r,"connectServiceById",function(){return je}),n.d(r,"connectServiceByMarketingId",function(){return Ke});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t){return"function"==typeof t}var a=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function u(t){setTimeout(function(){throw t},0)}var l={closed:!0,next:function(t){},error:function(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},h=Array.isArray||function(t){return t&&"number"==typeof t.length};function f(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}f.prototype=Object.create(Error.prototype);var p=f,d=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n,r=this._parentOrParents,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var a=0;a<r.length;++a){r[a].remove(this)}if(s(i))try{i.call(this)}catch(t){e=t instanceof p?v(t.errors):[t]}if(h(o)){a=-1;for(var c=o.length;++a<c;){var u=o[a];if(null!==(n=u)&&"object"==typeof n)try{u.unsubscribe()}catch(t){e=e||[],t instanceof p?e=e.concat(v(t.errors)):e.push(t)}}}if(e)throw new p(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function v(t){return t.reduce(function(t,e){return t.concat(e instanceof p?e.errors:e)},[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),b=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=l;break;case 1:if(!n){o.destination=l;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,n,r,i)}return o}return o(e,t),e.prototype[m]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(d),y=function(t){function e(e,n,r,i){var o,a=t.call(this)||this;a._parentSubscriber=e;var c=a;return s(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==l&&(s((c=Object.create(n)).unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=o,a._error=r,a._complete=i,a}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):u(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;u(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return c.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(u(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(b);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}function k(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:_}var w=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof b)return t;if(t[m])return t[m]()}return t||e||n?new b(t,e,n):new b(l)}(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof b?r:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=S(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[g]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:k(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=c.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function T(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}T.prototype=Object.create(Error.prototype);var C=T,A=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(d),M=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(b),E=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[m]=function(){return new M(this)},e.prototype.lift=function(t){var e=new L(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new C;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new C;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new C;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new A(this,t))},e.prototype.asObservable=function(){var t=new w;return t.source=this,t},e.create=function(t,e){return new L(t,e)},e}(w),L=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return o(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):d.EMPTY},e}(E),O=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(E),P=function(){function t(){this.productActionsState=new I,this.regionsState=new N,this.uniteAllMtsState=new x,this.checkConnectState=new B,this.backCallState=new R}return t.prototype.connectTariffById=function(t){this.productActionsState.connectTariffById$.next(t)},t.prototype.connectServiceById=function(t){this.productActionsState.connectServiceById$.next(t)},t.prototype.connectServiceByMarketingId=function(t){this.productActionsState.connectServiceByMarketingId$.next(t)},t}(),I=function(){this.searchOfficesPopupOpened$=new E,this.connectTariff$=new E,this.connectTariffById$=new E,this.connectServiceById$=new E,this.connectServiceByMarketingId$=new E,this.processingProduct$=new E,this.showSmartBanner$=new E,this.showCustomPopup$=new E},N=function(){this.firstLevelRegions$=new O(null),this.urlResolver={resolveForChangeRegion:function(){}}},x=function(){this.selectedTariffTitle$=new E},B=function(){this.state$=new E},R=function(){this.state$=new O(void 0),this.disable$=new O(!1)},F=function(){function t(t){for(var e in void 0===t&&(t={}),t)t.hasOwnProperty(e)&&(this[e]=t[e])}return t.prototype.get=function(t){return this[t]},t.prototype.getNumber=function(t){return this.get(t)},t.prototype.getBool=function(t){return this.get(t)},t.prototype.getString=function(t){return this.get(t)},t}(),j=function(){function t(t,e){void 0===e&&(e={}),this.action=t,this.data=new F(e)}return t.doNothing=function(){return new t(0)},t}();var K=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new z(t,this.predicate,this.thisArg))},t}(),z=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(b);function V(t,e){return function(t,e,n){return void 0===n&&(n=!1),t.creationDate<e.creationDate?n?1:-1:t.creationDate>e.creationDate?n?-1:1:0}(t,e,!0)}var U,G,H,W,D,Y,q,Z=function(){function t(){this.region={},this.services=[],this.availableServices=[],this.requests=[]}return Object.defineProperty(t.prototype,"isLoggedIn",{get:function(){return!!this.login},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAuthorized",{get:function(){return this.isLoggedIn&&!!this.isMts},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"login",{get:function(){return this.msisdn},enumerable:!0,configurable:!0}),t.prototype.hasConnectingRequest=function(t,e){var n=this.requests.filter(function(e){return e.type===t}).sort(V)[0];return!!n&&n.globalCode===e},t}(),J=function(){function t(){this._intent=new O(j.doNothing()),this._user=new Z,this.userServices$=new O(null),this.externalUser=new O(null)}return Object.defineProperty(t.prototype,"user",{get:function(){return this._user},enumerable:!0,configurable:!0}),t.prototype.onActivity=function(t){return this._intent.pipe(function(t,e){return function(n){return n.lift(new K(t,e))}}(t))},t.prototype.onLoggedIn=function(){return this.onActivity(function(t){return 2===t.action})},t.prototype.onLoggedOut=function(){return this.onActivity(function(t){return 3===t.action})},t.prototype.startActivity=function(t){this._intent.next(t)},t.prototype.setUserDetails=function(t){t&&(t.isMts&&(this._user.isMts=t.isMts),t.msisdn&&(this._user.msisdn=t.msisdn),t.type&&(this._user.ownerType=t.type),t.region&&(this._user.region=t.region),t.tariff&&(this._user.tariff=t.tariff),t.services&&(this._user.services=t.services),t.requests&&(this._user.requests=t.requests),t.uaToken&&(this._user.uaToken=t.uaToken))},t.prototype.setUserServices=function(t){var e=this._user;e&&(e.services=t.map(function(t){return{globalCode:t.Id}}),this.userServices$.next(e.services))},t.prototype.logout=function(){this._user=new Z,this.externalUser.next({}),this.startActivity(new j(3)),$.ajax({url:"/auth/logout"})},t}(),Q=function(){function t(){}return t.prototype.isMobile=function(){return"undefined"==typeof PromoApp||"phone"===PromoApp.Screen.getWidth().screen},t.prototype.isTablet=function(){return"tablet"===PromoApp.Screen.getWidth().screen},t.prototype.isMobileOrTablet=function(){return"phone"===PromoApp.Screen.getWidth().screen||"tablet"===PromoApp.Screen.getWidth().screen},t.prototype.getScreenWidth=function(){return PromoApp.Screen.getWidth()},t.prototype.toPluralStr=function(t,e,n){var r,i;switch(r=t,(i=Math.abs(r))%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2){case 0:return(n?t+" ":"")+e[0];case 1:return(n?t+" ":"")+e[1];default:return(n?t+" ":"")+e[2]}},t.prototype.getPopupCenter=function(t,e){var n=$(window);return[Math.max(0,(n.height()-t)/2),Math.max(0,(n.width()-e)/2)]},t.prototype.fixCardsHeightAsync=function(t){var e=this;t>0?setTimeout(function(){return e.fixCardsHeight()},t):this.fixCardsHeight()},t.prototype.fixMatchHeight=function(){$(".js-match-height").matchHeight()},t.prototype.fixCardsHeight=function(){$(".js-card-height").removeClass("is-reculced"),tariffCard.breakBlock(),tariffCard.cardHeight()},t.prototype.showCardsBodyBottom=function(){var t=this;this.fixCardsHeight(),setTimeout(function(){$(".tariff-card__body-bottom").show(),t.fixCardsHeight(),t.isMobileOrTablet()||PromoApp.Sticky.reinitVisible()},100)},t.prototype.buildUrl=function(t,e,n,r,i){if(void 0===i&&(i=!1),t){var o=t.match(/^(https?|ftp):\/\/[^\s\/$.?#].[^\s]*$/g);return o&&o.length?t:e+t}return n+(i?"/archive":"")+"/"+r},t.prototype.goTo=function(t,e,n,r){void 0===e&&(e=500),void 0===n&&(n=0),void 0===r&&(r=null),$("html, body").animate({scrollTop:$(t).offset().top+n},e,"linear",r)},t.prototype.getAnimationState=function(t){return t?"1":"0"},t.prototype.showWholePageLoader=function(){$("body").addClass("loading")},t.prototype.hideWholePageLoader=function(){$("body").removeClass("loading")},t.prototype.getPeriodIcon=function(t){return["hourly","minutely","every_second"].some(function(e){return e==t})?"/Styles/Promo/i/b-icon/gray/b-icon_time.svg":"/Styles/Promo/i/b-icon/gray/b-icon_calendar.svg"},t}();!function(){function t(){}t.prototype.isEmpty=function(t){return null==t||0===Object.keys(t).length}}();!function(t){t.mtsPageview="mtsPageview",t.mtsCross="mtsCross",t.mtsMenu="mtsMenu",t.mtsMain="mtsMain",t.mtsTariffs="mtsTariffs",t.mtsUslugi="mtsUslugi",t.mtsAction="mtsAction",t.mtsCheckconnect="mtsCheckconnect",t.mtsPerehod="mtsPerehod",t.mtsPersonal="mtsPersonal",t.mtsPrilozheniya="mtsPrilozheniya"}(U||(U={})),function(t){t.main="main",t.errorpage="errorpage",t.infopage="infopage",t.productcatalog="productcatalog",t.productcard="productcard",t.formpage="formpage",t.catalogaction="catalogaction",t.navigationpage="navigationpage",t.landingpage="landingpage"}(G||(G={})),function(t){t.non_interactions="non_interactions",t.interactions="interactions",t.conversions="conversions",t.callbacks="callbacks"}(H||(H={})),function(t){t.opredelenie_regiona="opredelenie_regiona",t.menu="menu",t.skachat_prilozhenie="skachat_prilozhenie",t.vybor_regiona="vybor_regiona",t.lichnyi_kabinet="lichnyi_kabinet",t.hit_prodaj="hit_prodaj",t.katalog_tarifov="katalog_tarifov",t.dlya_abonentov_mts="dlya_abonentov_mts",t.abonentam_drugih_operatorov="abonentam_drugih_operatorov",t.novym_abonentam="novym_abonentam",t.knopka_zakryt="knopka_zakryt",t.klik_po_stranice="klik_po_stranice"}(W||(W={})),function(t){t.kross_elementy="kross_elementy",t.menu="menu",t.banner_block="banner_block",t.popolnit_block="popolnit_block",t.navigation_block1="navigation_block1",t.app_block="app_block",t.navigation_block2="navigation_block2",t.navigation_block3="navigation_block3",t.news_block="news_block",t.katalog_tarifov="katalog_tarifov",t.kartochka_tarifa="kartochka_tarifa",t.katalog_uslug="katalog_uslug",t.katalog_action="katalog_action",t.zayavka_na_uslugi="zayavka_na_uslugi",t.pereiti_v_mts="pereiti_v_mts",t.mts_dlya_zhizni="mts_dlya_zhizni",t.prilozheniya="prilozheniya",t.kartochka_uslug="kartochka_uslug",t.lk_block="lk_block",t.drugie_lk_block="drugie_lk_block",t.vidzhety_block="vidzhety_block",t.srvisy_block="srvisy_block",t.poleznye_ssylki_block="poleznye_ssylki_block"}(D||(D={})),function(t){t.button_click="button_click",t.element_click="element_click",t.confirmed="confirmed",t.app_click="app_click",t.social_click="social_click",t.menu_click="menu_click",t.banner_click="banner_click",t.banner_show="banner_show",t.card_click="card_click",t.block_click="block_click",t.card_open="card_open",t.form_add="form_add",t.filter_apply="filter_apply",t.rejected="rejected",t.element_open="element_open",t.link_click="link_click",t.form_confirmed="form_confirmed",t.form_rejected="form_rejected",t.video_interactions="video_interactions"}(Y||(Y={})),function(t){t.header="header",t.footer="footer",t.popup="popup",t.up="up",t.down="down"}(q||(q={}));var X,tt=function(){this.once=!0,this.event=U.mtsPageview,this.actionType=H.non_interactions};!function(t){t[t.mAIKONEKT=1]="mAIKONEKT",t[t.mAKOS=2]="mAKOS",t[t.mAntares=3]="mAntares",t[t.mAPEKS=4]="mAPEKS",t[t.mARC=5]="mARC",t[t.mASTARTA=6]="mASTARTA",t[t.mASTRGSM=7]="mASTRGSM",t[t.mBAIKAL=8]="mBAIKAL",t[t.mBEELINE=9]="mBEELINE",t[t.mBIT=10]="mBIT",t[t.mBSTELEKOM=11]="mBSTELEKOM",t[t.mCenter2M=12]="mCenter2M",t[t.mCENTR=13]="mCENTR",t[t.mDanieCall=14]="mDanieCall",t[t.mDELTA=15]="mDELTA",t[t.mEKATERINBURG=16]="mEKATERINBURG",t[t.mEKSPRES=17]="mEKSPRES",t[t.mELEMTEINVEST=18]="mELEMTEINVEST",t[t.mENISEITELEKOM=19]="mENISEITELEKOM",t[t.mGALSTELE=20]="mGALSTELE",t[t.mGASPROM=21]="mGASPROM",t[t.mGLOBAL=22]="mGLOBAL",t[t.mGLONASS=23]="mGLONASS",t[t.mInternod=24]="mInternod",t[t.mINTERTELEKOM=25]="mINTERTELEKOM",t[t.mJAROSLAV=26]="mJAROSLAV",t[t.mJUTA=27]="mJUTA",t[t.mKANTRI=28]="mKANTRI",t[t.mKOMSTAR=29]="mKOMSTAR",t[t.mKrimtel=30]="mKrimtel",t[t.mKTEL=31]="mKTEL",t[t.mKTKTEL=32]="mKTKTEL",t[t.mKTTK=33]="mKTTK",t[t.mKURGA=34]="mKURGA",t[t.mLYCAMOBILE=35]="mLYCAMOBILE",t[t.mMATRIKS=36]="mMATRIKS",t[t.mMEGAFON=37]="mMEGAFON",t[t.mMGS=38]="mMGS",t[t.mMGTS=39]="mMGTS",t[t.mMIATEL=40]="mMIATEL",t[t.mMITTEL=41]="mMITTEL",t[t.mMOSKOV=42]="mMOSKOV",t[t.mMSNTELECOM=43]="mMSNTELECOM",t[t.mMTS=44]="mMTS",t[t.mMTT=45]="mMTT",t[t.mMTTINVEST=46]="mMTTINVEST",t[t.mNBN=47]="mNBN",t[t.mNCC=48]="mNCC",t[t.mNETBAI=49]="mNETBAI",t[t.mNIS=50]="mNIS",t[t.mPENZAGSM=51]="mPENZAGSM",t[t.mPOLIFON=52]="mPOLIFON",t[t.mQuantech=53]="mQuantech",t[t.mROSTELEKOM=54]="mROSTELEKOM",t[t.mRTK=55]="mRTK",t[t.mSARATOV=56]="mSARATOV",t[t.mSBERTEL=57]="mSBERTEL",t[t.mSEVERTEL=58]="mSEVERTEL",t[t.mSEVTEL=59]="mSEVTEL",t[t.mSEVTELEKOM=60]="mSEVTELEKOM",t[t.mSIGMATEL=61]="mSIGMATEL",t[t.mSIMTEL=62]="mSIMTEL",t[t.mSKAI=63]="mSKAI",t[t.mSKAILINK=64]="mSKAILINK",t[t.mSKAINETVORKS=65]="mSKAINETVORKS",t[t.mSKNT=66]="mSKNT",t[t.mSMARTS=67]="mSMARTS",t[t.mSmartsAstra=68]="mSmartsAstra",t[t.mSMARTSI=69]="mSMARTSI",t[t.mSMARTSK=70]="mSMARTSK",t[t.mSMARTSSaransk=71]="mSMARTSSaransk",t[t.mSMARTSSaratov=72]="mSMARTSSaratov",t[t.mSMARTSU=73]="mSMARTSU",t[t.mSMARTSUlyanovsk=74]="mSMARTSUlyanovsk",t[t.mSMARTSV=75]="mSMARTSV",t[t.mSMARTSY=76]="mSMARTSY",t[t.mSONET=77]="mSONET",t[t.mSOTELCIT=78]="mSOTELCIT",t[t.mSPITERBURG=79]="mSPITERBURG",t[t.mSPRINT=80]="mSPRINT",t[t.mSSBA=81]="mSSBA",t[t.mSSBI=82]="mSSBI",t[t.mSunSim=83]="mSunSim",t[t.mSUPASKAR=84]="mSUPASKAR",t[t.mSVTEL=85]="mSVTEL",t[t.mTATTELEKOM=86]="mTATTELEKOM",t[t.mTELE2=87]="mTELE2",t[t.mTINKOFF=88]="mTINKOFF",t[t.mTIUM=89]="mTIUM",t[t.mTrivonet=90]="mTrivonet",t[t.mTULSK=91]="mTULSK",t[t.mTVETEL=92]="mTVETEL",t[t.mURAL=93]="mURAL",t[t.mVAINAX=94]="mVAINAX",t[t.mVIKOM=95]="mVIKOM",t[t.mVKL=96]="mVKL",t[t.mVOENTEL=97]="mVOENTEL",t[t.mVOLGO=98]="mVOLGO",t[t.mZIFRAODIN=99]="mZIFRAODIN"}(X||(X={}));var et,nt,rt,it,ot=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(t,e){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.element_click,this.eventLabel=t,this.buttonLocation=e},at=function(){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.element_click,this.eventLabel="popolnit",this.buttonLocation=q.header},ct=function(t){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.element_click,this.eventContent=W.lichnyi_kabinet,this.buttonLocation=q.popup,this.eventLabel=t},ut=function(t){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.element_click,this.buttonLocation=q.popup,this.eventLabel=t},lt=function(){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.element_click,this.eventLabel="korzina",this.buttonLocation=q.header},ht=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventLabel="logotip",e}return ot(e,t),e}(lt),ft=function(t,e){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.menu_click,this.buttonLocation=q.footer,this.eventContent=W.menu,this.eventContext=e,this.eventLabel=t},pt=function(t){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.social_click,this.buttonLocation=q.footer,this.eventLabel=t},dt=function(t){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventAction=Y.app_click,this.buttonLocation=q.footer,this.eventContent=W.skachat_prilozhenie,this.eventLabel=t},vt=function(){this.actionType=H.interactions,this.event=U.mtsCross,this.eventCategory=D.kross_elementy,this.eventContent=W.opredelenie_regiona,this.eventLabel="da",this.eventAction=Y.button_click},mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventLabel="izmenit_region",e}return ot(e,t),e}(vt),bt=function(t,e){this.actionType=H.interactions,this.event=U.mtsMenu,this.eventCategory=D.menu,this.eventAction=Y.menu_click,this.eventLabel=t,this.eventContent=e+"lvl"},yt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.banner_block,this.eventAction=Y.banner_click,this.eventContent=null,this.eventLabel=null},_t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.actionType=H.non_interactions,e.eventAction=Y.banner_show,e.eventContent=null,e.eventLabel=null,e}return yt(e,t),e}(gt),kt=function(t,e,n){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.popolnit_block,this.eventAction=Y.button_click,this.eventLabel="popolnit",this.eventContent=t,this.eventValue=e,this.eventContext=n},wt=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.lk_block,this.eventAction=Y.button_click,this.eventLabel=t},St=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.popolnit_block,this.eventAction=Y.element_click,this.eventLabel=t},Tt=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.drugie_lk_block,this.eventAction=Y.element_click,this.eventLabel=t},Ct=function(t,e){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.vidzhety_block,this.eventAction=Y.element_click,this.eventContent=t,this.eventLabel=e},At=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.srvisy_block,this.eventAction=Y.element_click,this.eventLabel=t},Mt=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.poleznye_ssylki_block,this.eventAction=Y.element_click,this.eventLabel=t},Et=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.news_block,this.eventAction=Y.element_click,this.eventLabel=t},Lt=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.navigation_block1,this.eventAction=Y.card_click,this.eventLabel=t},Ot=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.app_block,this.eventAction=Y.app_click,this.eventLabel=t},Pt=function(t,e){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.navigation_block2,this.eventAction=Y.banner_click,this.eventLabel=t,this.eventContent=e},It=function(t){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.navigation_block3,this.eventAction=Y.banner_click,this.eventLabel=t},Nt=function(t,e){this.event=U.mtsMain,this.actionType=H.interactions,this.eventCategory=D.news_block,this.eventAction=Y.banner_click,this.eventLabel=t,this.eventContent=e},xt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bt=function(t,e,n,r,i){this.eventContent=W.katalog_tarifov,this.actionType=H.interactions,this.event=U.mtsTariffs,this.eventCategory=D.katalog_tarifov,this.eventAction=Y.button_click,this.eventLabel=n,this.productId=t,this.productName=e,this.filterName=r,i&&(this.eventCategory=i)},Rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.card_open,e}return xt(e,t),e}(Bt),Ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventContent=W.hit_prodaj,e}return xt(e,t),e}(Bt),jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventContent=W.hit_prodaj,e}return xt(e,t),e}(Rt),Kt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.block_click,e.buttonLocation=q.popup,e.eventContent="vybor_bloka",e}return xt(e,t),e}(Bt),zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.button_click,e.eventContent=W.dlya_abonentov_mts,e}return xt(e,t),e}(Kt),Vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.button_click,e.eventContent=W.abonentam_drugih_operatorov,e}return xt(e,t),e}(Kt),Ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.button_click,e.eventContent=W.novym_abonentam,e}return xt(e,t),e}(Kt),Gt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.element_click,e.eventContent=W.knopka_zakryt,e.eventLabel="zakryt_pop_up",e}return xt(e,t),e}(Kt),Ht=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.element_click,e.eventContent=W.knopka_zakryt,e.eventLabel="klik_po_stranice",e}return xt(e,t),e}(Gt),Wt=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.eventContent=null,i.actionType=H.callbacks,i.eventAction=Y.confirmed,i.eventLabel="uspeshnoe_podkluchenie",i.eventCategory=r||D.katalog_tarifov,i}return xt(e,t),e}(Bt),$t=function(t){function e(e,n,r,i){var o=t.call(this,e,n,i)||this;return o.eventContent=null,o.eventCategory=D.kartochka_tarifa,o.buttonLocation=r,o}return xt(e,t),e}(Bt),Dt=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.eventAction=Y.element_open,i.eventLabel="prosmotr_voprosa",i.eventContent=r,i}return xt(e,t),e}($t),Yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.link_click,e}return xt(e,t),e}(Bt),qt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zt=function(t,e,n,r,i,o){this.actionType=H.interactions,this.event=U.mtsUslugi,this.eventCategory=D.katalog_uslug,this.eventAction=Y.button_click,this.eventLabel=n,this.productId=t,this.productName=e,this.filterName=r,this.buttonLocation=i,this.eventContext=o},Jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.card_open,e}return qt(e,t),e}(Zt),Qt=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.eventAction=Y.element_click,i.eventLabel="zakryt_pop_up",i.eventContent=W.knopka_zakryt,i.buttonLocation=q.popup,i.eventCategory=r,i}return qt(e,t),e}(Zt),Xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventContent=W.knopka_zakryt,e}return qt(e,t),e}(Qt),te=function(t){function e(e,n,r,i){var o=t.call(this,e,n,i)||this;return o.buttonLocation=q.popup,o.eventCategory=r,o}return qt(e,t),e}(Zt),ee=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventCategory=D.kartochka_uslug,e}return qt(e,t),e}(Zt),ne=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.element_click,e}return qt(e,t),e}(ee),re=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.app_click,e}return qt(e,t),e}(Zt),ie=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.eventAction=Y.element_open,o.eventContent=r,o.eventLabel=i,o}return qt(e,t),e}(Zt),oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.link_click,e.eventLabel="perehod_po_ssylke",e}return qt(e,t),e}(ie),se=function(t,e,n,r){this.actionType=H.interactions,this.event=U.mtsAction,this.eventCategory=D.katalog_action,this.eventAction=Y.card_open,this.eventLabel=t,this.productId=e,this.productName=n,this.filterName=r},ae=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(){this.eventLabel="proverit",this.actionType=H.interactions,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.button_click},ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventLabel="oformit_zayavku",e}return ae(e,t),e}(ce),le=function(t){function e(e){var n=t.call(this)||this;return n.eventLabel=e,n}return ae(e,t),e}(ce),he=function(){this.actionType=H.callbacks,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.form_confirmed,this.eventLabel="podkluchenie_vozmozhno"},fe=function(){this.actionType=H.callbacks,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.form_rejected,this.eventLabel="otkaz_po_adresu"},pe=function(t){this.eventLabel="vybrat",this.actionType=H.interactions,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.card_click,this.eventContent=t},de=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.element_click,e.eventLabel="router",e}return ae(e,t),e}(pe),ve=function(t){this.actionType=H.conversions,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.form_confirmed,this.eventLabel="uspeshnaya_zayavka",this.eventContent=t},me=function(){this.once=!0,this.eventLabel="imya",this.actionType=H.interactions,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.form_add},be=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventLabel="telefon",e}return ae(e,t),e}(me),ye=function(){this.eventLabel="play",this.actionType=H.interactions,this.event=U.mtsCheckconnect,this.eventCategory=D.zayavka_na_uslugi,this.eventAction=Y.video_interactions},ge=function(t){function e(e){var n=t.call(this)||this;return n.eventLabel="percentages",n.eventContent=e,n}return ae(e,t),e}(ye),_e=function(t,e,n){this.actionType=H.interactions,this.event=U.mtsPerehod,this.eventCategory=D.pereiti_v_mts,this.eventAction=Y.button_click,this.eventLabel=t,this.eventContent=e,this.eventContext=n},ke=function(t){this.eventLabel="uspeshnaya_zayavka",this.actionType=H.conversions,this.event=U.mtsPerehod,this.eventCategory=D.pereiti_v_mts,this.eventAction=Y.confirmed,this.eventContent=t},we=function(t,e){this.actionType=H.conversions,this.event=U.mtsPerehod,this.eventCategory=D.pereiti_v_mts,this.eventAction=Y.rejected,this.eventLabel=t,this.eventContent=e},Se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(t,e){this.actionType=H.interactions,this.event=U.mtsPersonal,this.eventCategory=D.mts_dlya_zhizni,this.eventAction=Y.filter_apply,this.eventLabel=t,this.eventContext=e},Ce=function(t,e,n){this.actionType=H.interactions,this.event=U.mtsPersonal,this.eventCategory=D.mts_dlya_zhizni,this.eventAction=Y.card_open,this.eventLabel=t,this.productName=e,this.eventContent=n},Ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventAction=Y.button_click,e}return Se(e,t),e}(Ce),Me=function(t){this.actionType=H.interactions,this.event=U.mtsPrilozheniya,this.eventCategory=D.prilozheniya,this.eventAction=Y.card_open,this.pageType=G.productcatalog,this.eventLabel=t},Ee=function(t,e){this.actionType=H.interactions,this.event=U.mtsPrilozheniya,this.eventCategory=D.prilozheniya,this.eventAction=Y.button_click,this.pageType=G.productcard,this.eventLabel=t,this.eventContent=e},Le=function(){function t(){}return t.prototype.map=function(t,e){switch(t){case"regionClick":return new ut(this.translit(e.eventLabel));case"lkClick":return new ct(this.translit(e.eventLabel));case"payMenuClick":return new at;case"sectionClick":return new st(this.translit(e.eventLabel),e.buttonLocation);case"basketClick":return new lt;case"logoClick":return new ht;case"menuFooterClick":return new ft(this.translit(e.eventLabel),e.eventContext);case"appFooterClick":return new dt(this.translit(e.eventLabel));case"socialFooterClick":return new pt(this.translit(e.eventLabel));case"menuClick":return new bt(this.translit(e.eventLabel),e.eventContent);case"bannerClick":return new gt;case"bannerShow":return new _t;case"payWidgetClick":return new kt(this.translit(e.eventContent),e.eventValue,this.translit(e.eventContext));case"payWidgetTabClick":return new St(this.translit(e.eventLabel));case"authWidgetClick":return new wt(this.translit(e.eventLabel));case"othersLKItemClick":return new Tt(this.translit(e.eventLabel));case"widgetDescriptorClick":return new Ct(this.translit(e.eventContent),this.translit(e.eventLabel));case"widgetDescriptorURLClick":return new Ct(this.translit(e.eventContent),e.eventLabel);case"serviceItemClick":return new At(this.translit(e.eventLabel));case"usefullLinkClick":return new Mt(this.translit(e.eventLabel));case"newsBlockHeaderClick":return new Et(this.translit(e.eventLabel));case"mainServiceClick":return new Lt(this.translit(e.eventLabel));case"confirmRegionOk":return new vt;case"confirmRegionChange":return new mt;case"mainAppClick":return new Ot(this.translit(e.eventLabel));case"mainPopularServiceClick":return new Pt(this.translit(e.eventLabel),this.translit(e.eventContent));case"mainBannerClick":return new It(this.translit(e.eventLabel));case"newsWidgetClick":return new Nt(this.translit(e.eventLabel),e.eventContent);case"cardApplicationClick":return new Me(this.translit(e.eventLabel));case"applicationClickEvent":return new Ee(this.translit(e.eventLabel),this.translit(e.eventContent));case"categoryIntertainmentClick":return new Te(this.translit(e.eventLabel),e.eventContext);case"cardIntertainmentClick":return new Ce(e.eventLabel,this.translit(e.productName));case"btnIntertainmentClick":return new Ae(this.translit(e.eventLabel),this.translit(e.productName),e.eventContent);case"mnpClick":return new _e(e.eventLabel,e.eventContent,e.eventContext);case"mnpSuccess":return new ke(e.eventContent);case"mnpReject":return new we(e.eventLabel,e.eventContent);case"ptvClick":return new ce;case"ptvSuccess":return new he;case"ptvReject":return new fe;case"checkconnectTariffClick":return new pe(this.translit(e.eventContent));case"checkconnectRouterClick":return new de(this.translit(e.eventContent));case"checkconnectSuccess":return new ve(this.translit(e.eventContent));case"checkconnectFormAddName":return new me;case"checkconnectFormAddPhone":return new be;case"checkconnectVideoPlay":return new ye;case"checkconnectVideoProgress":return new ge(e.eventContent);case"checkconnectSubmit":return new ue;case"checkconnectClick":return new le(this.translit(e.eventLabel));case"dpcActionClick":return new se(this.translit(e.eventLabel),e.productId,this.translit(e.productName),this.translit(e.filterName));case"connectTariff":return new Bt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),this.translit(e.filterName));case"connecHitTariff":return new Ft(e.productId,this.translit(e.productName),this.translit(e.eventLabel));case"tariffHitImageClick":return new jt(e.productId,this.translit(e.productName),"kartinka");case"tariffHitTitleClick":return new jt(e.productId,this.translit(e.productName),"zagolovok");case"tariffImageClick":return new Rt(e.productId,this.translit(e.productName),"kartinka");case"tariffTitleClick":return new Rt(e.productId,this.translit(e.productName),"zagolovok");case"unitePopupBlockClick":return new Kt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.eventCategory);case"unitePopupBlock1BtnClick":return new zt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.eventCategory);case"connectTariffSuccess":return new Wt(e.productId,this.translit(e.productName),e.eventCategory);case"unitePopupBlock2BtnClick":return new Vt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.eventCategory);case"unitePopupBlock3BtnClick":return new Ut(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.eventCategory);case"unitePopupCloseBtn":return new Gt(e.productId,this.translit(e.productName),null,null,e.eventCategory);case"unitePopupCloseModal":return new Ht(e.productId,this.translit(e.productName),null,null,e.eventCategory);case"pageTariffConnect":return new $t(e.productId,this.translit(e.productName),e.buttonLocation,this.translit(e.eventLabel));case"pageTariffParameterClick":return new Dt(e.productId,this.translit(e.productName),this.translit(e.eventContent));case"pageTariffLinkClick":return new Yt(e.productId,this.translit(e.productName),e.eventLabel);case"serviceBtnClick":return new Zt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),this.translit(e.filterName));case"serviceCardClick":return new Jt(e.productId,this.translit(e.productName),this.translit(e.eventLabel),this.translit(e.filterName));case"servicePopupBtnClick":return new te(e.productId,this.translit(e.productName),e.eventCategory,this.translit(e.eventLabel));case"servicePopupCloseBtn":return new Qt(e.productId,this.translit(e.productName),e.eventCategory);case"servicePopupCloseModal":return new Xt(e.productId,this.translit(e.productName),e.eventCategory);case"servicePageBtnClick":return new ee(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.buttonLocation,this.translit(e.eventContext));case"servicePageElemClick":return new ne(e.productId,this.translit(e.productName),this.translit(e.eventLabel),null,e.buttonLocation,this.translit(e.eventContext));case"servicePageAppClick":return new re(e.productId,this.translit(e.productName),this.translit(e.eventLabel));case"servicePageParamClick":return new ie(e.productId,this.translit(e.productName),this.translit(e.eventContent),"prosmotr_voprosa");case"servicePageParamAllClick":return new ie(e.productId,this.translit(e.productName),"razvernut_vse","razvernut_vse");case"servicePageLinkClick":return new oe(e.productId,this.translit(e.productName),e.eventContent)}},t.prototype.translit=function(t){if(t){for(var e="abcdefghijklmnopqrstuvwxyz_1234567890".split(""),n={"а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"e","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sch","ъ":"","ы":"y","ь":"","э":"e","ю":"u","я":"ya","-":"_"," ":"_"},r=[],i=function(){var i=t[o].toLowerCase();r.push(n[i]||(null==n[i]&&e.some(function(t){return t==i})&&i?i:""))},o=0;o<t.length;++o)i();return r.join("")}},t}(),Oe=function(){function t(t,e){this.completedEvents=[],this.userContext=t,this.dataLayer=e,this.helper=new Q,this.mapper=new Le}return t.prototype.getPageSettings=function(){return window.globalSettings.gtm},t.prototype.initialize=function(){var t=this;document.addEventListener("DOMContentLoaded",function(){t.userContext.externalUser.subscribe(function(e){e&&!e.isFetching&&(t.user=e,t.pageLoaded(t.getPageSettings()))})})},t.prototype.pageLoaded=function(t){this.push(t,new tt)},t.prototype.pushEvent=function(t,e){var n=this.mapper.map(t,e);if(!n)throw new Error(t+" event not found");this.push(this.getPageSettings(),n)},t.prototype.push=function(t,e){var n=this;e.once&&this.completedEvents.some(function(t){return t==e.constructor.name})||(this.dataLayer.push({event:e.event.toString(),userId:this.authEvent(function(){return n.getUserId()}),guId:this.authEvent(function(){return n.getUserGuid()}),grId:null,userAuth:this.getUserAuth(),abonent:this.authEvent(function(){return n.getAbonent()}),businessType:this.getBusinessType(t),eventContent:this.toString(e.eventContent),eventContext:e.eventContext||null,eventCategory:this.toString(e.eventCategory),eventLabel:this.toString(e.eventLabel),eventAction:this.toString(e.eventAction),eventValue:this.toString(e.eventValue),buttonLocation:e.buttonLocation||null,filterName:this.toString(e.filterName),pageType:null!=e&&null!=e.pageType?e.pageType.toString():t.pageType.toString(),actionGroup:this.toString(e.actionType),productName:this.toString(e.productName),productId:this.toString(e.productId),formId:null,maccountType:this.authEvent(function(){return n.getMaccountType()}),numberType:this.authEvent(function(){return it.real.toString()}),accountType:null,touchPoint:this.getTouchPoint(t),screenName:window.location.pathname,ecommerce:null}),this.completedEvents.push(e.constructor.name))},t.prototype.authEvent=function(t){return this.isAuth()?t():null},t.prototype.getMaccountType=function(){return this.user.isMain?rt.master.toString():rt.slave.toString()},t.prototype.getBusinessType=function(t){return t.isb2c?nt.b2c:nt.b2b},t.prototype.isAuth=function(){return null!=this.user&&!!this.user.phone},t.prototype.toString=function(t){return t?t.toString():null},t.prototype.getUserId=function(){return this.user.isMTS?"r"+this.user.forisId+"a"+this.user.terminalId:this.user.guid},t.prototype.getUserAuth=function(){return this.isAuth()?"1":"0"},t.prototype.getUserGuid=function(){return this.user.guid},t.prototype.getAbonent=function(){return null},t.prototype.getTouchPoint=function(t){return t.webview?et.webview.toString():(this.helper.isMobile()?et.mobile:et.web).toString()},t}();function Pe(t){window.userContextInstance.startActivity(t)}function Ie(){window.sharedContextInstance.openSearchOfficesMapPopup()}function Ne(){window.userContextInstance.logout()}function xe(t){window.userContextInstance.onLoggedIn().subscribe(function(){t()})}function Be(){Pe(new j(4))}function Re(t){window.sharedContextInstance.connectTariffById(t)}function Fe(t){Pe(new j(1===t?8:7))}function je(t){window.sharedContextInstance.connectServiceById(t)}function Ke(t){window.sharedContextInstance.connectServiceByMarketingId(t)}!function(t){t.web="web",t.mobile="mobile",t.webview="webview"}(et||(et={})),function(t){t.b2c="b2c",t.b2b="b2b"}(nt||(nt={})),function(t){t.master="master",t.slave="slave"}(rt||(rt={})),function(t){t.real="real",t.virt="virt"}(it||(it={}));var ze=n(0);window.sharedContextInstance=new P,window.userContextInstance=new J,window.analyticsContext=new Oe(window.userContextInstance,window.dataLayer),window.analyticsContext.initialize(),"undefined"!=typeof QA&&QA.MTS&&QA.MTS.MAIN&&(QA.MTS.MAIN.UserActions=r),window.browserInfo=ze.getParser(window.navigator.userAgent)}]);;
