(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{75056:function(tt,ti){"use strict";var ta,ts,tc;Object.defineProperty(ti,"__esModule",{value:!0}),ti.EnvPrefix=ti.ConsoleText=ti.ConsoleColor=void 0,function(tt){tt.Reset="\x1b[0m",tt.Cyan="\x1b[36m",tt.Red="\x1b[31m",tt.Green="\x1b[32m"}(ta=ti.ConsoleColor||(ti.ConsoleColor={})),function(tt){tt.ErrorTitle="Проблемы в переменных окружения:"}(ts=ti.ConsoleText||(ti.ConsoleText={})),function(tt){tt.App="APP_"}(tc=ti.EnvPrefix||(ti.EnvPrefix={}))},53946:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.envBoolean=ti.envNumber=ti.envString=ti.envEnum=void 0;var ts=ta(75056);function tc(tt,ti,ta){return function(){if("string"==typeof tt&&Object.values(ti).includes(tt))return tt;if("string"==typeof ta&&Object.values(ti).includes(ta))return ta;throw Error("".concat(ts.ConsoleColor.Green,"ожидалось").concat(ts.ConsoleColor.Reset," - одно из значений ").concat(Object.values(ti)," | ").concat(ts.ConsoleColor.Red,"получили").concat(ts.ConsoleColor.Reset," - ").concat(tt))}}function tu(tt,ti){return function(){if("string"==typeof tt&&""!==tt)return tt;if("string"==typeof ti&&""!==ti)return ti;throw Error("".concat(ts.ConsoleColor.Green,"ожидалось").concat(ts.ConsoleColor.Reset," - тип String | ").concat(ts.ConsoleColor.Red,"получили").concat(ts.ConsoleColor.Reset," - ").concat(typeof tt))}}function td(tt,ti){return function(){if(("string"==typeof tt||"number"==typeof tt)&&!Number.isNaN(Number(tt)))return Number(tt);if("number"==typeof ti&&!Number.isNaN(ti))return ti;throw Error("".concat(ts.ConsoleColor.Green,"ожидалось").concat(ts.ConsoleColor.Reset," - тип Number | ").concat(ts.ConsoleColor.Red,"получили").concat(ts.ConsoleColor.Reset," - ").concat(typeof tt))}}function tp(tt,ti){return function(){if("true"===tt)return!0;if("false"===tt)return!1;if("boolean"==typeof tt)return tt;if("boolean"==typeof ti)return ti;throw Error("".concat(ts.ConsoleColor.Green,"ожидалось").concat(ts.ConsoleColor.Reset," - тип Boolean | ").concat(ts.ConsoleColor.Red,"получили").concat(ts.ConsoleColor.Reset," - ").concat(typeof tt))}}ti.envEnum=tc,ti.envString=tu,ti.envNumber=td,ti.envBoolean=tp},27690:function(tt,ti,ta){"use strict";var ts=ta(27024);Object.defineProperty(ti,"__esModule",{value:!0}),ti.createEmptyOrInvalidEnvsErrorLog=void 0;var tc=ta(75056);function tu(tt){return["\n",tc.ConsoleText.ErrorTitle,Object.entries(tt).map(td).join("\n"),"\n"].join("\n")}function td(tt){var ti=ts(tt,2),ta=ti[0],tu=ti[1];return"".concat(tc.ConsoleColor.Cyan).concat(ta,": ").concat(tu).concat(tc.ConsoleColor.Reset)}ti.createEmptyOrInvalidEnvsErrorLog=tu},1745:function(tt,ti,ta){"use strict";var ts=ta(70718);Object.defineProperty(ti,"__esModule",{value:!0}),ti.validateAndCreate=void 0;var tc=ta(75056),tu=ta(27690);function td(tt){var ti={},ta={};for(var td in tt)try{if(!td.startsWith(tc.EnvPrefix.App))throw Error("отсутствует префикс ".concat(tc.EnvPrefix.App));var tp=tt[td]();ta[td]=tp}catch(tt){tt instanceof Error&&(ti[td]=tt.message)}if(Object.keys(ti).length){var tv=tu.createEmptyOrInvalidEnvsErrorLog(ti);if("undefined"==typeof window)console.error(tv),ts.exit(1);else throw console.error(tv),Error(tv)}return ta}ti.validateAndCreate=td},8638:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(1745),ti),tc(ta(27690),ti),tc(ta(53946),ti),tc(ta(75056),ti),tc(ta(10029),ti)},10029:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0})},895:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.FontMimeTypesList=ti.defaultPwa=ti.defaultSocial=ti.defaultReferrerPolicy=ti.defaultColorScheme=ti.defaultThemeColor=ti.defaultViewport=ti.defaultFaviconUrl=void 0,ti.defaultFaviconUrl="/static/common/favicon.png",ti.defaultViewport="width=device-width, initial-scale=1",ti.defaultThemeColor="#ffdd2d",ti.defaultColorScheme="light only",ti.defaultReferrerPolicy="strict-origin",ti.defaultSocial={siteName:"Т-Банк",siteTwitter:"https://х.com/tbank_ru",type:"website",locale:"ru_RU",cardTwitter:"summary_large_image",appIdVk:"VK-RTRG-218928-gWfNz"},ti.defaultPwa={manifest:"/manifest.json",serviceWorker:"/sw.js",icons:[{href:"https://tbank.ru/apple-touch-icon-57x57.png",rel:"apple-touch-icon",sizes:"57x57"},{href:"https://tbank.ru/apple-touch-icon-60x60.png",rel:"apple-touch-icon",sizes:"60x60"},{href:"https://tbank.ru/apple-touch-icon-72x72.png",rel:"apple-touch-icon",sizes:"72x72"},{href:"https://tbank.ru/apple-touch-icon-76x76.png",rel:"apple-touch-icon",sizes:"76x76"},{href:"https://tbank.ru/apple-touch-icon-114x114.png",rel:"apple-touch-icon",sizes:"114x114"},{href:"https://tbank.ru/apple-touch-icon-120x120.png",rel:"apple-touch-icon",sizes:"120x120"},{href:"https://tbank.ru/apple-touch-icon-144x144.png",rel:"apple-touch-icon",sizes:"144x144"},{href:"https://tbank.ru/apple-touch-icon-152x152.png",rel:"apple-touch-icon",sizes:"152x152"},{href:"https://tbank.ru/apple-touch-icon-180x180.png",rel:"apple-touch-icon",sizes:"180x180"},{href:"https://tbank.ru/android-chrome-192x192.png",rel:"android-touch-icon",sizes:"192x192",type:"image/png"},{href:"https://tbank.ru/favicon-16x16.png",rel:"icon",sizes:"16x16"},{href:"https://tbank.ru/favicon-16x16.png",rel:"icon",sizes:"16x16"},{href:"https://tbank.ru/favicon-32x32.png",rel:"icon",sizes:"32x32"},{href:"https://tbank.ru/favicon-96x96.png",rel:"icon",sizes:"96x96"},{rel:"icon",type:"image/png",href:"https://tbank.ru/android-chrome-192x192.png",sizes:"192x192"},{rel:"icon",href:"https://static.tinkoff.ru/dist/portal-new/images/favicon.ico",type:"image/x-icon"},{rel:"mask-icon",href:"https://tbank.ru/safari-pinned-tab.svg",color:"#333333"}]},function(tt){tt.eot="application/vnd.ms-fontobject",tt.otf="font/otf",tt.ttf="font/ttf",tt.woff="font/woff",tt.woff2="font/woff2"}(ta=ti.FontMimeTypesList||(ti.FontMimeTypesList={}))},78458:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(895),ti),tc(ta(36090),ti),tc(ta(21933),ti)},21933:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0})},36090:function(tt,ti,ta){"use strict";var ts=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.HeadProject=void 0;var tc=ts(ta(51387)),tu=ta(895),td=ta(9971),tp=function(tt){var ti=tt.title,ta=tt.cdnUrl,ts=tt.description,tp=tt.relativeFaviconPath,tv=tt.pwa,tb=tt.fonts,tg=tt.canonical,t_=tt.keywords,tE=tt.social,tS=tt.colorScheme,tA=tt.themeColor,tT=tt.viewport,tM=tt.wrapper,tk=tt.referrerPolicy,tR=tt.preload,tC=tt.formatDetection,tI=tt.verification,tP=null!=tv?tv:tu.defaultPwa,tO=null!=tS?tS:tu.defaultColorScheme,tN=null!=tA?tA:tu.defaultThemeColor,tB=Object.assign(Object.assign({},tE),tu.defaultSocial),tL="".concat(td.getCdnUrlWithoutSlashAtTheEnd(ta)).concat(null!=tp?tp:tu.defaultFaviconUrl),tD=function(tt,ti){return tc.default.createElement("link",Object.assign({key:ti},tt))},tj=function(tt){var ti=tt.manifest,ta=tt.serviceWorker,ts=tt.icons;return tc.default.createElement(tc.default.Fragment,null,tc.default.createElement("link",{rel:"manifest",href:ti}),ts.map(tD),tc.default.createElement("script",{dangerouslySetInnerHTML:{__html:td.createRegisterServiceWorkerScript(ta)}}))},tU=function(tt){return tc.default.createElement(tc.default.Fragment,null,tt.map(function(tt,ti){return tc.default.createElement("link",{key:ti,href:tt,rel:"preconnect"})}),tt.map(function(tt,ti){return tc.default.createElement("link",{key:ti,href:tt,rel:"stylesheet"})}))},tF=function(tt){return tc.default.createElement(tc.default.Fragment,null,tc.default.createElement("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:td.createVkPixelSnippet(tt)}}),tc.default.createElement("noscript",null,tc.default.createElement("img",{src:"https://vk.com/rtrg?p=".concat(tB.appIdVk),style:{position:"fixed",left:"-999px"},alt:""})))},tG=function(tt){return tc.default.createElement("link",{rel:"preload",href:tt.href,type:tt.type,as:"font"})},tH=function(tt){return tc.default.createElement("link",{rel:"preload",href:tt,as:"image"})},tz=function(tt){var ti,ta;return tc.default.createElement(tc.default.Fragment,null,null===(ti=null==tt?void 0:tt.fonts)||void 0===ti?void 0:ti.map(tG),null===(ta=null==tt?void 0:tt.images)||void 0===ta?void 0:ta.map(tH))};return tc.default.createElement(tM,null,tc.default.createElement("meta",{charSet:"utf-8"}),tc.default.createElement("meta",{name:"referrer",content:null!=tk?tk:tu.defaultReferrerPolicy}),tc.default.createElement("meta",{name:"viewport",content:null!=tT?tT:tu.defaultViewport}),tc.default.createElement("title",null,ti),tc.default.createElement("meta",{name:"description",content:ts}),(null==t_?void 0:t_.length)&&tc.default.createElement("meta",{name:"keywords",content:t_.join(", ")}),tc.default.createElement("link",{rel:"icon",href:tL}),tg&&tc.default.createElement("link",{rel:"canonical",href:tg}),tC&&tc.default.createElement("meta",{name:"format-detection",content:tC}),"object"==typeof tR&&tz(tR),tc.default.createElement("meta",{name:"color-scheme",content:tO}),tc.default.createElement("meta",{name:"theme-color",content:tN}),"object"==typeof tP&&tj(tP),Array.isArray(tb)&&tU(tb),tc.default.createElement("meta",{property:"og:title",content:tB.title}),tc.default.createElement("meta",{property:"og:description",content:tB.description}),tc.default.createElement("meta",{property:"og:image",content:tB.image}),tc.default.createElement("meta",{property:"og:image:alt",content:tB.imageAlt}),tc.default.createElement("meta",{property:"og:url",content:tB.url}),tc.default.createElement("meta",{property:"og:site_name",content:tB.siteName}),tc.default.createElement("meta",{property:"og:type",content:tB.type}),tc.default.createElement("meta",{property:"og:locale",content:tB.locale}),tc.default.createElement("meta",{property:"vk:image",content:tB.imageVk}),tc.default.createElement("meta",{name:"twitter:title",content:tB.title}),tc.default.createElement("meta",{name:"twitter:description",content:tB.description}),tc.default.createElement("meta",{name:"twitter:image",content:tB.imageTwitter}),tc.default.createElement("meta",{name:"twitter:image:alt",content:tB.imageAltTwitter}),tc.default.createElement("meta",{name:"twitter:site",content:tB.siteTwitter}),tc.default.createElement("meta",{name:"twitter:card",content:tB.cardTwitter}),tc.default.createElement("meta",{property:"fb:app_id",content:tB.appIdFb}),tB.appIdVk&&tF(tB.appIdVk),(null==tI?void 0:tI.yandex)&&tc.default.createElement("meta",{name:"yandex-verification",content:tI.yandex}),(null==tI?void 0:tI.google)&&tc.default.createElement("meta",{name:"google-site-verification",content:tI.google}))};ti.HeadProject=tp},9971:function(tt,ti){"use strict";function ta(tt){return"if (typeof window !== 'undefined') {\n window.addEventListener('load', function() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.register('".concat(tt,"').catch(console.error);\n }\n });\n }")}function ts(tt){return'\n !function(){\n var t = document.createElement("script");\n t.type="text/javascript",\n t.async=!0,\n t.src="https://vk.com/js/api/openapi.js?162",\n t.onload = function() {\n var VK = window.VK;\n if (!VK) return;\n VK.Retargeting.Init("'.concat(tt,'"),\n VK.Retargeting.Hit()\n },document.head.appendChild(t)}();\n ')}Object.defineProperty(ti,"__esModule",{value:!0}),ti.getCdnUrlWithoutSlashAtTheEnd=ti.createVkPixelSnippet=ti.createRegisterServiceWorkerScript=void 0,ti.createRegisterServiceWorkerScript=ta,ti.createVkPixelSnippet=ts;var tc=function(tt){return"/"!==tt[tt.length-1]?tt:tt.slice(0,-1)};ti.getCdnUrlWithoutSlashAtTheEnd=tc},98747:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.SsoIFrameDataType=ti.SSO_URLS=void 0,ti.SSO_URLS=["https://id.tinkoff.ru","https://id-test.tinkoff.ru","https://id-qa.tcsbank.ru","https://id.tbank.ru","https://id-test.tbank.ru"],function(tt){tt.HeightChange="height-change",tt.InitializedFormName="sso-initialized-form-name"}(ta=ti.SsoIFrameDataType||(ti.SsoIFrameDataType={}))},67311:function(tt,ti,ta){"use strict";var ts,tc=ta(27024);Object.defineProperty(ti,"__esModule",{value:!0}),ti.useSsoAuthFormStep=ti.SsoAuthFormStep=void 0;var tu=ta(51387),td=ta(98747),tp=ta(73724);!function(tt){tt.Initial="Initial",tt.Confirmation="Confirmation",tt.Success="Success",tt.Error="Error"}(ts=ti.SsoAuthFormStep||(ti.SsoAuthFormStep={}));var tv=function(){var tt=tc(tu.useState(ts.Initial),2),ti=tt[0],ta=tt[1];return tu.useEffect(function(){var tt=function(tt){if(tb(tt))switch(tt.data.payload){case"entry":ta(ts.Initial);break;case"complete":ta(ts.Success);break;case"error":ta(ts.Error);break;default:ta(ts.Confirmation)}};return window.addEventListener("message",tt),function(){return window.removeEventListener("message",tt)}},[]),ti};function tb(tt){var ti,ta;return!!tp.isMessageFromIdTinkoff(tt.origin)&&(null===(ti=null==tt?void 0:tt.data)||void 0===ti?void 0:ti.type)===td.SsoIFrameDataType.InitializedFormName&&"string"==typeof(null===(ta=null==tt?void 0:tt.data)||void 0===ta?void 0:ta.payload)}ti.useSsoAuthFormStep=tv},73724:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.isMessageFromIdTinkoff=void 0;var ts=ta(98747),tc=function(tt){return ts.SSO_URLS.includes(tt)};ti.isMessageFromIdTinkoff=tc},96349:function(tt,ti,ta){"use strict";var ts=ta(12050),tc=ta(21136);Object.defineProperty(ti,"__esModule",{value:!0}),ti.AbstractStorage=void 0;var tu=ts(function tt(){tc(this,tt)});ti.AbstractStorage=tu},94518:function(tt,ti,ta){"use strict";var ts=ta(21136),tc=ta(12050),tu=ta(77897),td=ta(37914),tp=ta(68525);function tv(tt){var ti=tb();return function(){var ta,ts=tp(tt);if(ti){var tc=tp(this).constructor;ta=Reflect.construct(ts,arguments,tc)}else ta=ts.apply(this,arguments);return td(this,ta)}}function tb(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(tt){return!1}}Object.defineProperty(ti,"__esModule",{value:!0}),ti.NullStorage=void 0;var tg=function(tt){tu(ta,tt);var ti=tv(ta);function ta(){return ts(this,ta),ti.apply(this,arguments)}return tc(ta,[{key:"getLength",value:function(){console.error(Error("Storage.getLength(): storage is undefined"))}},{key:"clear",value:function(){console.error(Error("Storage.clear(): storage undefined"))}},{key:"getItem",value:function(){console.error(Error("Storage.getItem(): storage undefined"))}},{key:"getItemObject",value:function(){console.error(Error("Storage.getItemObject(): storage undefined"))}},{key:"key",value:function(){console.error(Error("Storage.key(): storage undefined"))}},{key:"removeItem",value:function(){console.error(Error("Storage.removeItem(): storage undefined"))}},{key:"setItem",value:function(){console.error(Error("Storage.setItem(): storage undefined"))}},{key:"setItemObject",value:function(){console.error(Error("Storage.setItemObject(): storage undefined"))}}]),ta}(ta(96349).AbstractStorage);ti.NullStorage=tg},73176:function(tt,ti,ta){"use strict";var ts=ta(21136),tc=ta(12050),tu=ta(77897),td=ta(37914),tp=ta(68525);function tv(tt){var ti=tb();return function(){var ta,ts=tp(tt);if(ti){var tc=tp(this).constructor;ta=Reflect.construct(ts,arguments,tc)}else ta=ts.apply(this,arguments);return td(this,ta)}}function tb(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(tt){return!1}}Object.defineProperty(ti,"__esModule",{value:!0}),ti.RealStorage=void 0;var tg=function(tt){tu(ta,tt);var ti=tv(ta);function ta(tt){var tc;return ts(this,ta),(tc=ti.call(this)).storage=tt.storage,tc.onError=tt.onError,tc}return tc(ta,[{key:"getLength",value:function(){return this.storage.length}},{key:"clear",value:function(){return this.storage.clear()}},{key:"getItem",value:function(tt){try{return this.storage.getItem(tt)}catch(tt){return this.onError(tt),null}}},{key:"getItemObject",value:function(tt){try{var ti=this.getItem(tt);if(null!==ti)return JSON.parse(ti);return ti}catch(tt){return this.onError(tt),null}}},{key:"key",value:function(tt){return this.storage.key(tt)}},{key:"removeItem",value:function(tt){return this.storage.removeItem(tt)}},{key:"setItem",value:function(tt,ti){try{this.storage.setItem(tt,ti)}catch(tt){this.onError(tt)}}},{key:"setItemObject",value:function(tt,ti){try{this.setItem(tt,JSON.stringify(ti))}catch(tt){this.onError(tt)}}}]),ta}(ta(96349).AbstractStorage);ti.RealStorage=tg},92455:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.initSessionStorage=ti.initLocalStorage=void 0;var ts=ta(73176),tc=ta(94518),tu=ta(99899),td=ta(83060),tp=ta(18065),tv=function(tt){var ti=function(ti){if(tt.onError)return tt.onError(ti);console.error(ti)};if(tp.isServer)return new tc.NullStorage;var ta=td.getWindowStorage(tt.storageType,ti);return ta?new ts.RealStorage({storage:ta,onError:ti}):new tc.NullStorage},tb=function(tt){return tv(Object.assign(Object.assign({},tt),{storageType:tu.StorageType.localStorage}))};ti.initLocalStorage=tb;var tg=function(tt){return tv(Object.assign(Object.assign({},tt),{storageType:tu.StorageType.sessionStorage}))};ti.initSessionStorage=tg},18065:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.isServer=void 0,ti.isServer="undefined"==typeof window},48247:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(99899),ti),tc(ta(92455),ti),tc(ta(94518),ti),tc(ta(73176),ti),tc(ta(96349),ti)},99899:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.StorageType=void 0,function(tt){tt.localStorage="localStorage",tt.sessionStorage="sessionStorage"}(ta=ti.StorageType||(ti.StorageType={}))},83060:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.getWindowStorage=void 0;var ta=function(tt,ti){try{var ta="specialsStorageCheck";return window[tt].setItem(ta,"true"),window[tt].removeItem(ta),window[tt]}catch(tt){return ti(tt),null}};ti.getWindowStorage=ta},29064:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=ti.INVALID_SESSION_ERROR_CODE=ti.SSO_CLIENT_API_OPTIONS=ti.SSO_API_OPTIONS=ti.PROJECT_API_OPTIONS=ti.PROJECT_USER_AUTH_OPTIONS=void 0,ti.PROJECT_USER_AUTH_OPTIONS={query:{authTokenQueryName:"auth_token",completeUriQueryName:"complete_uri",postCompleteRedirectUriQueryName:"post_complete_redirect_uri"},pages:{projectLoginPage:"/auth/login"}},ti.PROJECT_API_OPTIONS={userInfoUrl:"/v1/users/info",logoutUrl:"/v1/auth/logout",loginUrl:"/v1/auth/login",cookies:{authStatusCookieName:"spec_auth_status"}},ti.SSO_API_OPTIONS={pingUrl:"/auth/ping",logoutUrl:"/auth/logout"},ti.SSO_CLIENT_API_OPTIONS={validateUrl:"/validate",completeUrl:"/complete"},ti.INVALID_SESSION_ERROR_CODE="B4001",ti.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=["session_state","state","auth"]},12781:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(29064),ti),tc(ta(4348),ti),tc(ta(41658),ti),tc(ta(48920),ti),tc(ta(30144),ti),tc(ta(36035),ti),tc(ta(33981),ti),tc(ta(8788),ti),tc(ta(17600),ti),tc(ta(42495),ti),tc(ta(34637),ti),tc(ta(14215),ti),tc(ta(11981),ti),tc(ta(7790),ti),tc(ta(46394),ti),tc(ta(30705),ti),tc(ta(43781),ti),tc(ta(57497),ti),tc(ta(35336),ti),tc(ta(66985),ti),tc(ta(73142),ti),tc(ta(46827),ti),tc(ta(63971),ti)},14215:function(tt,ti,ta){"use strict";var ts=ta(27024),tc=ta(50391),tu=ta(21136),td=ta(12050);function tp(tt,ti){var ta="undefined"!=typeof Symbol&&tt[Symbol.iterator]||tt["@@iterator"];if(!ta){if(Array.isArray(tt)||(ta=tv(tt))||ti&&tt&&"number"==typeof tt.length){ta&&(tt=ta);var ts=0,tc=function(){};return{s:tc,n:function(){return ts>=tt.length?{done:!0}:{done:!1,value:tt[ts++]}},e:function(tt){throw tt},f:tc}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var tu,td=!0,tp=!1;return{s:function(){ta=ta.call(tt)},n:function(){var tt=ta.next();return td=tt.done,tt},e:function(tt){tp=!0,tu=tt},f:function(){try{td||null==ta.return||ta.return()}finally{if(tp)throw tu}}}}function tv(tt,ti){if(tt){if("string"==typeof tt)return tb(tt,ti);var ta=Object.prototype.toString.call(tt).slice(8,-1);if("Object"===ta&&tt.constructor&&(ta=tt.constructor.name),"Map"===ta||"Set"===ta)return Array.from(tt);if("Arguments"===ta||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ta))return tb(tt,ti)}}function tb(tt,ti){(null==ti||ti>tt.length)&&(ti=tt.length);for(var ta=0,ts=Array(ti);ta0)){ts.next=5;break}return t_=tt.calculateTimeToWait(ti,ta.delayInMs,ta.timeBetweenRetryExponent),ts.next=5,tg.wait(t_);case 5:return ts.next=7,tu(tc({},tb.IDEMPOTENCY_HEADER_KEY,tE));case 7:return ts.abrupt("return",ts.sent);case 10:if(ts.prev=10,ts.t0=ts.catch(0),!(titd.length-16&&(tc.default.randomFillSync(td),tp=0),td.slice(tp,tp+=16)}for(var tb=[],tg=0;tg<256;++tg)tb.push((tg+256).toString(16).slice(1));function t_(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return tb[tt[ti+0]]+tb[tt[ti+1]]+tb[tt[ti+2]]+tb[tt[ti+3]]+"-"+tb[tt[ti+4]]+tb[tt[ti+5]]+"-"+tb[tt[ti+6]]+tb[tt[ti+7]]+"-"+tb[tt[ti+8]]+tb[tt[ti+9]]+"-"+tb[tt[ti+10]]+tb[tt[ti+11]]+tb[tt[ti+12]]+tb[tt[ti+13]]+tb[tt[ti+14]]+tb[tt[ti+15]]}},74269:function(tt,ti){"use strict";function ta(tt){return new Promise(function(ti){return setTimeout(ti,tt)})}Object.defineProperty(ti,"__esModule",{value:!0}),ti.wait=void 0,ti.wait=ta},83840:function(tt,ti){"use strict";var ta,ts;Object.defineProperty(ti,"__esModule",{value:!0}),ti.LoaderType=ti.RequestStatus=void 0,function(tt){tt.Loading="loading",tt.Success="success",tt.Error="error"}(ta=ti.RequestStatus||(ti.RequestStatus={})),function(tt){tt.Remote="remote",tt.Local="local"}(ts=ti.LoaderType||(ti.LoaderType={}))},9270:function(tt,ti,ta){"use strict";var ts=ta(21136),tc=ta(12050);Object.defineProperty(ti,"__esModule",{value:!0}),ti.Resources=void 0;var tu=function(){function tt(ti){var ta=ti.data;ts(this,tt),this.data=ta}return tc(tt,[{key:"getData",value:function(){return this.data}}]),tt}();ti.Resources=tu},63503:function(tt,ti,ta){"use strict";var ts=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.withResources=void 0;var tc=ts(ta(51387));function tu(tt,ti){return function(ta){return tc.default.createElement(tt,Object.assign({},ti(),ta))}}ti.withResources=tu},51564:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(68791),ti),tc(ta(83840),ti),tc(ta(9270),ti),tc(ta(63503),ti),tc(ta(16432),ti),tc(ta(38729),ti)},16432:function(tt,ti,ta){"use strict";var ts=ta(50391),tc=ta(27024),tu=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),td=this&&this.__setModuleDefault||(Object.create?function(tt,ti){Object.defineProperty(tt,"default",{enumerable:!0,value:ti})}:function(tt,ti){tt.default=ti}),tp=this&&this.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var ti={};if(null!=tt)for(var ta in tt)"default"!==ta&&Object.prototype.hasOwnProperty.call(tt,ta)&&tu(ti,tt,ta);return td(ti,tt),ti},tv=this&&this.__awaiter||function(tt,ti,ta,ts){function tc(tt){return tt instanceof ta?tt:new ta(function(ti){ti(tt)})}return new(ta||(ta=Promise))(function(ta,tu){function td(tt){try{tv(ts.next(tt))}catch(tt){tu(tt)}}function tp(tt){try{tv(ts.throw(tt))}catch(tt){tu(tt)}}function tv(tt){tt.done?ta(tt.value):tc(tt.value).then(td,tp)}tv((ts=ts.apply(tt,ti||[])).next())})};Object.defineProperty(ti,"__esModule",{value:!0}),ti.ResourcesLoader=void 0;var tb=tp(ta(51387)),tg=ta(83840);function t_(tt){var ti=tE(tt);return tt.type===tg.LoaderType.Local?tb.default.createElement(tb.default.Fragment,null,tt.children):tt.loading&&ti.status===tg.RequestStatus.Loading?tt.loading:tt.error&&ti.status===tg.RequestStatus.Error?tt.error:ti.status===tg.RequestStatus.Success?tb.default.createElement(tb.default.Fragment,null,tt.children):null}function tE(tt){var ti=tc(tb.useState({status:tt.type===tg.LoaderType.Local?tg.RequestStatus.Success:tg.RequestStatus.Loading,error:void 0}),2),ta=ti[0],ts=ti[1];return tt.type===tg.LoaderType.Local&&tt.onLoad(tt.data),tb.useEffect(function(){tt.type===tg.LoaderType.Remote&&tS(tt.url).then(function(ti){tt.onLoad(ti),ts({status:tg.RequestStatus.Success})}).catch(function(tt){console.log(tt),ts({status:tg.RequestStatus.Error})})},[]),ta}function tS(tt){return tv(this,void 0,void 0,ts.mark(function ti(){var ta;return ts.wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:return ti.next=2,fetch("".concat(tt,"?t=").concat(Date.now()));case 2:return ta=ti.sent,ti.next=5,ta.json();case 5:return ti.abrupt("return",ti.sent);case 6:case"end":return ti.stop()}},ti)}))}ti.ResourcesLoader=t_},68791:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0})},38729:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.createLoaderPropsRemote=ti.createLoaderPropsLocal=void 0;var ts=ta(83840);function tc(tt,ti){return{type:ts.LoaderType.Local,data:tt,onLoad:ti}}function tu(tt,ti){return{type:ts.LoaderType.Remote,url:tt,onLoad:ti}}ti.createLoaderPropsLocal=tc,ti.createLoaderPropsRemote=tu},34834:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.defaultRedirectUri=ti.SecretCodeStatus=void 0,function(tt){tt.Enabled="Enabled",tt.Disabled="Disabled"}(ta=ti.SecretCodeStatus||(ti.SecretCodeStatus={})),ti.defaultRedirectUri="https://tbank.ru"},44532:function(tt,ti,ta){"use strict";var ts=ta(27024),tc=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tu=this&&this.__setModuleDefault||(Object.create?function(tt,ti){Object.defineProperty(tt,"default",{enumerable:!0,value:ti})}:function(tt,ti){tt.default=ti}),td=this&&this.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var ti={};if(null!=tt)for(var ta in tt)"default"!==ta&&Object.prototype.hasOwnProperty.call(tt,ta)&&tc(ti,tt,ta);return tu(ti,tt),ti};Object.defineProperty(ti,"__esModule",{value:!0}),ti.SecretCodeChecker=void 0;var tp=td(ta(51387)),tv=ta(44629),tb=ta(34834);function tg(tt){var ti=ts(tp.useState(!1),2),ta=ti[0],tc=ti[1];return(tp.useEffect(function(){if(tv.isSecretCodeEnabled(tt)){var ti=tt.getSecretCodeParams(),ta=ti.deps,ts=ti.config;if(ta.localStorage.getItem(ts.key)===ts.code)return tv.replaceSecretCodeFromQueryString(ts,ta),tc(!0);if(new URLSearchParams(ta.window.location.search).get(ts.key)===ts.code)return tv.saveSecretCodeToLocalStorage(ts,ta),tv.replaceSecretCodeFromQueryString(ts,ta),tc(!0);ta.window.location.href=ts.redirectUrl||tb.defaultRedirectUri}},[tt]),!tv.isSecretCodeEnabled(tt)||ta)?tp.default.createElement(tp.default.Fragment,null,tt.children):null}ti.SecretCodeChecker=tg},21994:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(44532),ti),tc(ta(34834),ti),tc(ta(36406),ti),tc(ta(44629),ti)},36406:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0})},44629:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.createSecretCodePropsDisabled=ti.createSecretCodePropsEnabled=ti.saveSecretCodeToLocalStorage=ti.replaceSecretCodeFromQueryString=ti.isSecretCodeEnabled=void 0;var ts=ta(34834);function tc(tt){return tt.status===ts.SecretCodeStatus.Enabled}function tu(tt,ti){var ta=ti.window,ts=ti.shallowUrlReplace,tc=new URL(ta.location.href);tc.searchParams.has(tt.key)&&(tc.searchParams.delete(tt.key),ts?ts(tc):ta.history.replaceState(null,document.title,tc.toString()))}function td(tt,ti){ti.localStorage.setItem(tt.key,tt.code)}function tp(tt){return{status:ts.SecretCodeStatus.Enabled,getSecretCodeParams:tt}}function tv(){return{status:ts.SecretCodeStatus.Disabled}}ti.isSecretCodeEnabled=tc,ti.replaceSecretCodeFromQueryString=tu,ti.saveSecretCodeToLocalStorage=td,ti.createSecretCodePropsEnabled=tp,ti.createSecretCodePropsDisabled=tv},44993:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.PAYLOAD_KEY=ti.Severity=ti.MASKED_PARAMS_SENTRY_LOGS=void 0,ti.MASKED_PARAMS_SENTRY_LOGS=["token","sessionid","sessionId","state","session_state","code"],function(tt){tt.Fatal="fatal",tt.Error="error",tt.Warning="warning",tt.Log="log",tt.Info="info",tt.Debug="debug",tt.Critical="critical"}(ta||(ti.Severity=ta={})),ti.PAYLOAD_KEY="payload"},42203:function(tt,ti,ta){"use strict";var ts=ta(31529),tc=ta(21136),tu=ta(12050);Object.defineProperty(ti,"__esModule",{value:!0}),ti.SentryBrowser=void 0;var td=ta(96575),tp=ta(44993),tv=function(){function tt(ti,ta,tu,td){var tv=this;tc(this,tt),this.sentry=ti,this.payloadFormatter=ta,this.extrasFormatter=tu,this.breadcrumbsFormatter=td,this.captureExceptionAsEvent=!0,this.captureException=function(tt){var ti=tt.trackingId,ta=tt.error,tc=tt.message,tu=tt.payload,td=tt.isMaskingDisabled,tb=td?tu:tv.payloadFormatter.mask({payload:tu,privateKeys:tv.privateKeys}),tg=ta||Error(tc);return(tv.sentry.configureScope(function(tt){var ta;tt.setLevel(tp.Severity.Error),tt.setExtras(tv.getPreparedExtras((ts(ta={error:tg,trackingId:ti,message:tc},tv.getPayloadKey(),tb),ts(ta,"isMaskingDisabled",td),ta)))}),tv.captureExceptionAsEvent)?tv.sentry.captureEvent({message:tc}):tv.sentry.captureException(tg)},this.captureEvent=function(tt){var ti=tt.trackingId,ta=tt.message,tc=tt.payload,tu=tt.isMaskingDisabled,td=tu?tc:tv.payloadFormatter.mask({payload:tc,privateKeys:tv.privateKeys});return tv.sentry.configureScope(function(tt){var tc;tt.setLevel(tp.Severity.Info),tt.setExtras(tv.getPreparedExtras((ts(tc={trackingId:ti,message:ta},tv.getPayloadKey(),td),ts(tc,"isMaskingDisabled",tu),tc)))}),tv.sentry.captureEvent({message:ta})},this.captureExceptionAndThrowError=function(tt,ti){throw tv.captureException({message:tt,error:ti}),ti},this.createCaptureExceptionAndThrowError=function(tt){return function(ti){return tv.captureExceptionAndThrowError(tt,ti)}}}return tu(tt,[{key:"init",value:function(tt){var ti=tt.sentryOptions,ta=tt.privateKeys,ts=void 0===ta?tp.MASKED_PARAMS_SENTRY_LOGS:ta,tc=tt.captureExceptionAsEvent,tu=void 0===tc||tc,td=tt.formattersOptions;this.privateKeys=ts,this.captureExceptionAsEvent=tu,this.formattersOptions=td,this.sentry.init(Object.assign(Object.assign({},ti),{beforeSend:this.beforeSendPrepare(),beforeBreadcrumb:this.beforeBreadcrumbPrepare()}))}},{key:"beforeSendPrepare",value:function(){var tt=this;return function(ti){var ta;return(null===(ta=ti.extra)||void 0===ta?void 0:ta.isMaskingDisabled)?ti:tt.payloadFormatter.mask({payload:ti,privateKeys:tt.privateKeys})}}},{key:"beforeBreadcrumbPrepare",value:function(){var tt=this;return function(ti,ta){var ts,tc,tu,td,tp,tv,tb,tg,t_,tE=(null===(ts=tt.formattersOptions)||void 0===ts?void 0:ts.breadcrumbs)?tt.breadcrumbsFormatter.format(ti):ti;if((null===(tc=tt.formattersOptions)||void 0===tc?void 0:tc.breadcrumbsResponse)&&"xhr"===ti.category){var tS={method:null===(td=null===(tu=ta.xhr)||void 0===tu?void 0:tu.__sentry_xhr__)||void 0===td?void 0:td.method,status_code:null===(tv=null===(tp=ta.xhr)||void 0===tp?void 0:tp.__sentry_xhr__)||void 0===tv?void 0:tv.status_code,url:null===(tg=null===(tb=ta.xhr)||void 0===tb?void 0:tb.__sentry_xhr__)||void 0===tg?void 0:tg.url,response:tt.breadcrumbsFormatter.formatResponse(null===(t_=ta.xhr)||void 0===t_?void 0:t_.response)};return Object.assign(Object.assign({},tE),{data:tS})}return tE}}},{key:"getPreparedExtras",value:function(tt){var ti;return(null===(ti=this.formattersOptions)||void 0===ti?void 0:ti.extras)?this.extrasFormatter.format(tt):tt}},{key:"getPayloadKey",value:function(){var tt,ti=null===(tt=this.formattersOptions)||void 0===tt?void 0:tt.payloadPostfix;return ti?"".concat(tp.PAYLOAD_KEY).concat(ti[0].toUpperCase()).concat(ti.substring(1)):tp.PAYLOAD_KEY}}],[{key:"getRealOrFake",value:function(tt){return tt.sentryBrowser?tt.sentryBrowser:new td.SentryBrowserFake}}]),tt}();ti.SentryBrowser=tv},60568:function(tt,ti,ta){"use strict";var ts=ta(12050),tc=ta(21136);Object.defineProperty(ti,"__esModule",{value:!0}),ti.SentryBrowserAbstract=void 0;var tu=ts(function tt(){tc(this,tt)});ti.SentryBrowserAbstract=tu},96575:function(tt,ti,ta){"use strict";var ts=ta(12050),tc=ta(21136);Object.defineProperty(ti,"__esModule",{value:!0}),ti.SentryBrowserFake=void 0;var tu=ts(function tt(){tc(this,tt),this.init=function(tt){console.error("SentryBrowser init not implemented")},this.captureException=function(tt){return console.error("SentryBrowser captureException not implemented"),null},this.captureEvent=function(tt){return console.error("SentryBrowser captureEvent not implemented"),null},this.captureExceptionAndThrowError=function(tt,ti){console.error("SentryBrowser captureExceptionAndThrowError not implemented")},this.createCaptureExceptionAndThrowError=function(tt){console.error("SentryBrowser createCaptureExceptionAndThrowError not implemented")}});ti.SentryBrowserFake=tu},5501:function(tt,ti,ta){"use strict";var ts=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.HeadScriptSentryBrowser=void 0;var tc=ts(ta(51387));function tu(tt){var ti=tt.wrapper,ta=tt.appStaticUrl,ts=tt.sentryBrowserParams;return tc.default.createElement(ti,null,tc.default.createElement("script",{src:"".concat(ta,"/libs/sentry-browser/bundle.min.js"),crossOrigin:"anonymous"}),tc.default.createElement("script",{dangerouslySetInnerHTML:{__html:td(ts)}}))}function td(tt){var ti=JSON.stringify(tt);return"\n if (typeof window.sentryBrowser === 'undefined') {\n console.error('sentryBrowser не определен');\n } else if (typeof window.sentryBrowser.init !== 'function') {\n console.error('Невозможно инициализировать sentryBrowser');\n } else {\n window.sentryBrowser.init(".concat(ti,");\n }\n ")}ti.HeadScriptSentryBrowser=tu},74645:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta);var tc=Object.getOwnPropertyDescriptor(ti,ta);(!tc||("get"in tc?!ti.__esModule:tc.writable||tc.configurable))&&(tc={enumerable:!0,get:function(){return ti[ta]}}),Object.defineProperty(tt,ts,tc)}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(5501),ti),tc(ta(42203),ti),tc(ta(60568),ti),tc(ta(44993),ti),tc(ta(71347),ti)},71347:function(tt,ti){"use strict";Object.defineProperty(ti,"__esModule",{value:!0})},82301:function(tt,ti){"use strict";var ta;Object.defineProperty(ti,"__esModule",{value:!0}),ti.EVENT_FAILURE_NAME=ti.STATIST_PROJECT=ti.EVENTEA_PROJECT=ti.PRODUCT_CATEGORY=ti.TRACKING_STATE_PARAMS_TO_COOKIE=ti.CookieKey=ti.PARAM_NOT_INIT=ti.IS_SERVER=ti.TINKOFF_WEB_TRACKING_URL=void 0,ti.TINKOFF_WEB_TRACKING_URL="https://acdn.t-static.ru/twa/v5/bundles/generic/client.js?container=sub_modules&ttm=tinkoff-pwa_special-projects",ti.IS_SERVER="undefined"==typeof window,ti.PARAM_NOT_INIT="noInit",function(tt){tt.Referer="spec_app_referer",tt.Payload="spec_app_payload"}(ta=ti.CookieKey||(ti.CookieKey={})),ti.TRACKING_STATE_PARAMS_TO_COOKIE=["wuid","wuidVisitNum"],ti.PRODUCT_CATEGORY="Specprojects",ti.EVENTEA_PROJECT="special-projects",ti.STATIST_PROJECT="eventea.projects.specialProjects",ti.EVENT_FAILURE_NAME="web-tracker-download-failed"},85046:function(tt,ti,ta){"use strict";var ts=ta(12050),tc=ta(21136);Object.defineProperty(ti,"__esModule",{value:!0}),ti.AbstractTracking=void 0;var tu=ts(function tt(){tc(this,tt)});ti.AbstractTracking=tu},47426:function(tt,ti,ta){"use strict";var ts=ta(21136),tc=ta(12050);Object.defineProperty(ti,"__esModule",{value:!0}),ti.NullTracking=void 0;var tu=function(){function tt(){var ti=this;ts(this,tt),this.sendEvent=function(){ti.showError()},this.updateLocation=function(){ti.showError()}}return tc(tt,[{key:"saveTrackingStateToCookie",value:function(){this.showError()}},{key:"subscribeTrackingPageLoad",value:function(){this.showError()}},{key:"subscribeTrackingFailure",value:function(){this.showError()}},{key:"setSsoId",value:function(){this.showError()}},{key:"updateABGroups",value:function(){this.showError()}},{key:"showError",value:function(){console.error(Error("невозможно инициализировать @tinkoff/web-tracking на сервере"))}}]),tt}();ti.NullTracking=tu},96678:function(tt,ti,ta){"use strict";var ts=ta(21136),tc=ta(12050),tu=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.RealTracking=void 0;var td=tu(ta(28573)),tp=ta(20224),tv=ta(82301),tb=ta(79308),tg=function(){function tt(ti){var ta=this;ts(this,tt),this.sendEvent=function(tt,ti){ti&&ta.tracking.extend(ti),ta.eventea.send({project:tv.EVENTEA_PROJECT,event:tt,payload:ti})},this.updateLocation=function(){ta.tracking.updateLocation()},this.subscribeTrackingPageLoad=function(tt){if(ta.hasTrackingStateAlreadyInitialized()){tt();return}var ti=function ti(){window.removeEventListener("pageLoad",ti),tt()};window.addEventListener("pageLoad",ti)};var tc=new td.default;tc.resolve(tp.getTracking()),this.tracking=tc,this.eventea=new tb.EventeaQueue,this.eventeaStatistQueue=new tb.EventeaStatistQueue,this.props=ti||{}}return tc(tt,[{key:"subscribeTrackingFailure",value:function(tt){if(window.webTrackingDownloadScriptFailed){tt();return}var ti=function ti(){window.removeEventListener(tv.EVENT_FAILURE_NAME,ti),tt()};window.addEventListener(tv.EVENT_FAILURE_NAME,ti)}},{key:"saveTrackingStateToCookie",value:function(){var tt=new URLSearchParams;tv.TRACKING_STATE_PARAMS_TO_COOKIE.forEach(function(ti){var ta,ts,tc;tt.append(ti,(null===(tc=null===(ts=null===(ta=window.tracking)||void 0===ta?void 0:ta.state)||void 0===ts?void 0:ts[ti])||void 0===tc?void 0:tc.toString())||tv.PARAM_NOT_INIT)}),document.cookie="".concat(this.props.appRefererCookieName||tv.CookieKey.Referer,"=").concat(window.location.href,";path=/"),document.cookie="".concat(this.props.appPayloadCookieName||tv.CookieKey.Payload,"=").concat(tt.toString(),";path=/")}},{key:"setSsoId",value:function(tt){this.eventeaStatistQueue.updateClientParameters({ssoId:tt})}},{key:"updateABGroups",value:function(tt){this.eventeaStatistQueue.updateABGroups(tv.STATIST_PROJECT,tt)}},{key:"hasTrackingStateAlreadyInitialized",value:function(){var tt,ti=null===(tt=window.tracking)||void 0===tt?void 0:tt.state;return!!ti&&tv.TRACKING_STATE_PARAMS_TO_COOKIE.every(function(tt){return void 0!==ti[tt]})}}]),tt}();ti.RealTracking=tg},42094:function(tt,ti,ta){"use strict";var ts=this&&this.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta),Object.defineProperty(tt,ts,{enumerable:!0,get:function(){return ti[ta]}})}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),tc=this&&this.__exportStar||function(tt,ti){for(var ta in tt)"default"===ta||Object.prototype.hasOwnProperty.call(ti,ta)||ts(ti,tt,ta)};Object.defineProperty(ti,"__esModule",{value:!0}),tc(ta(92817),ti),tc(ta(70507),ti),tc(ta(82301),ti),tc(ta(47426),ti),tc(ta(96678),ti),tc(ta(85046),ti),tc(ta(24252),ti),tc(ta(74346),ti)},92817:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.createTracking=void 0;var ts=ta(47426),tc=ta(96678);function tu(tt){return"undefined"==typeof window?new ts.NullTracking:new tc.RealTracking(tt)}ti.createTracking=tu},70507:function(tt,ti,ta){"use strict";Object.defineProperty(ti,"__esModule",{value:!0}),ti.createTrackingHeadScripts=void 0;var ts=ta(82301),tc=ta(19143);function tu(tt){var ti=[{tag:"script",children:tc.createTrackingProductConfigScript(tt)}];return!1!==tt.enabled&&ti.push.apply(ti,[{tag:"script",children:"\n function onTrackingScriptLoadError() {\n window.webTrackingDownloadScriptFailed = true;\n window.dispatchEvent(new Event('".concat(ts.EVENT_FAILURE_NAME,"'));\n }\n ")},{tag:"script",attrs:{src:ts.TINKOFF_WEB_TRACKING_URL,type:"text/javascript",defer:!0,onerror:"onTrackingScriptLoadError()"}}]),ti}ti.createTrackingHeadScripts=tu},74346:function(tt,ti,ta){"use strict";var ts=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.HeadScriptTracking=void 0;var tc=ts(ta(51387)),tu=ta(82301),td=ta(19143),tp=function(tt){var ti=tt.head,ta=tt.productName,ts=tt.productCategory,tp=void 0===ts?tu.PRODUCT_CATEGORY:ts;return tc.default.createElement(ti,null,tc.default.createElement("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:td.createTrackingProductConfigScript({productName:ta,productCategory:tp})}}))};ti.HeadScriptTracking=tp},24252:function(tt,ti,ta){"use strict";var ts=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(ti,"__esModule",{value:!0}),ti.ScriptTracking=void 0;var tc=ts(ta(51387)),tu=ta(82301),td=function(tt){var ti=tt.script,ta=function(){window.webTrackingDownloadScriptFailed=!0,window.dispatchEvent(new Event(tu.EVENT_FAILURE_NAME))};return tc.default.createElement(ti,{src:tu.TINKOFF_WEB_TRACKING_URL,type:"text/javascript",defer:!0,onError:ta})};ti.ScriptTracking=td},19143:function(tt,ti){"use strict";function ta(tt){return'\n !function(){\n if (typeof window.tracking !== "object") {\n window.tracking = {};\n }\n if (typeof window.tracking.state !== "object") {\n window.tracking.state = {};\n }\n if (typeof window.tracking.state.productCategory !== "string") {\n window.tracking.state.productCategory = "'.concat(tt.productCategory,'";\n } \n if (typeof window.tracking.state.productName !== "string") {\n window.tracking.state.productName = "').concat(tt.productName,'";\n }\n }();\n ')}Object.defineProperty(ti,"__esModule",{value:!0}),ti.createTrackingProductConfigScript=void 0,ti.createTrackingProductConfigScript=ta},79308:function(tt,ti,ta){"use strict";var ts=ta(49601),tc=ta(21136),tu=ta(12050);Object.defineProperty(ti,"__esModule",{value:!0}),ti.EventeaQueueObserver=ti.EventeaQueue=ti.EventeaStatistQueue=void 0;var td=ta(33016);Object.defineProperty(ti,"EventeaStatistQueue",{enumerable:!0,get:function(){return td.EventeaStatistQueue}});var tp="undefined"!=typeof window?window:void 0,tv=function(){function tt(ti){var ta,ts;tc(this,tt),this.errorHandlers=null==ti?void 0:ti.errorHandlers,tp?tp._evnteq||(tp._evnteq=[]):null===(ts=null===(ta=this.errorHandlers)||void 0===ta?void 0:ta.handleQueueUsageAtServer)||void 0===ts||ts.call(ta)}return tu(tt,[{key:"__addEventToStore",value:function(){if(null==tp?void 0:tp._evnteq){var tt;(tt=tp._evnteq).push.apply(tt,arguments)}}},{key:"getQueue",get:function(){var tt;return Array.isArray(null==tp?void 0:tp._evnteq)?null==tp?void 0:tp._evnteq:null===(tt=null==tp?void 0:tp._evnteq)||void 0===tt?void 0:tt.queue}},{key:"send",value:function(tt){this.__addEventToStore(["send",tt])}},{key:"sendOnce",value:function(tt){return this.__addEventToStore(["sendOnce",tt]),!0}},{key:"data",value:function(tt){this.__addEventToStore(["data",tt])}}]),tt}();ti.EventeaQueue=tv;var tb=function(){function tt(ti){var ta,tu,td;tc(this,tt),this.observerSuspended=!1,this.queue=[],this.errorHandlers=null==ti?void 0:ti.errorHandlers,tp?(Array.isArray(tp._evnteq)&&(td=this.queue).push.apply(td,ts(tp._evnteq)),tp._evnteq=this):(this.observerSuspended=!0,null===(tu=null===(ta=this.errorHandlers)||void 0===ta?void 0:ta.handleQueueUsageAtServer)||void 0===tu||tu.call(ta))}return tu(tt,[{key:"watch",set:function(tt){var ti,ta;this.observerSuspended?null===(ta=null===(ti=this.errorHandlers)||void 0===ti?void 0:ti.handleQueueUsageAtServer)||void 0===ta||ta.call(ti):(this.watcher=tt,this.push.apply(this,ts(this.queue)),this.queue=[])}},{key:"push",value:function(){for(var tt,ti,ta,ts=arguments.length,tc=Array(ts),tu=0;tu=tt?ti.apply(this,tc):function(){for(var tt=arguments.length,ti=Array(tt),ts=0;ts0;this._trackingResolve(tt),tt.ready.then(this._readyResolve),tt.extend(this._stateAcc),ta&&this._listeners.change&&this._listeners.change.forEach(function(ta){ta(tt.state,ti._stateAcc)}),this._listeners=Object.create(null)},tt.prototype.addPixels=function(tt){return this.tracking?this.tracking.addPixels(tt):this.trackingReady.then(function(ti){return ti.addPixels(tt)})},tt.prototype.resolve=function(tt){var ti=this;return Promise.resolve(tt).then(function(tt){return ti.setTracking(tt),tt})},Object.defineProperty(tt.prototype,"state",{get:function(){return this.tracking?this.tracking.state:this._stateAcc},enumerable:!1,configurable:!0}),tt.prototype.callUtil=function(tt){for(var ti,ta=[],tc=1;tc=200&&tt<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};tc.forEach(["delete","get","head"],function(tt){tg.headers[tt]={}}),tc.forEach(["post","put","patch"],function(tt){tg.headers[tt]=tc.merge(tp)}),tt.exports=tg},40707:function(tt){tt.exports={version:"0.26.0"}},89610:function(tt){"use strict";tt.exports=function(tt,ti){return function(){for(var ta=Array(arguments.length),ts=0;ts=0)&&("set-cookie"===ti?td[ti]=(td[ti]?td[ti]:[]).concat([ta]):td[ti]=td[ti]?td[ti]+", "+ta:ta)}),td}},67681:function(tt){"use strict";tt.exports=function(tt){return function(ti){return tt.apply(null,ti)}}},15563:function(tt,ti,ta){"use strict";var ts=ta(40707).version,tc={};["object","boolean","number","function","string","symbol"].forEach(function(tt,ti){tc[tt]=function(ta){return typeof ta===tt||"a"+(ti<1?"n ":" ")+tt}});var tu={};function td(tt,ti,ta){if("object"!=typeof tt)throw TypeError("options must be an object");for(var ts=Object.keys(tt),tc=ts.length;tc-- >0;){var tu=ts[tc],td=ti[tu];if(td){var tp=tt[tu],tv=void 0===tp||td(tp,tu,tt);if(!0!==tv)throw TypeError("option "+tu+" must be "+tv);continue}if(!0!==ta)throw Error("Unknown option "+tu)}}tc.transitional=function(tt,ti,ta){function tc(tt,ti){return"[Axios v"+ts+"] Transitional option '"+tt+"'"+ti+(ta?". "+ta:"")}return function(ta,ts,td){if(!1===tt)throw Error(tc(ts," has been removed"+(ti?" in "+ti:"")));return ti&&!tu[ts]&&(tu[ts]=!0,console.warn(tc(ts," has been deprecated since v"+ti+" and will be removed in the near future"))),!tt||tt(ta,ts,td)}},tt.exports={assertOptions:td,validators:tc}},20891:function(tt,ti,ta){"use strict";var ts=ta(89610),tc=Object.prototype.toString;function tu(tt){return Array.isArray(tt)}function td(tt){return void 0===tt}function tp(tt){return null!==tt&&!td(tt)&&null!==tt.constructor&&!td(tt.constructor)&&"function"==typeof tt.constructor.isBuffer&&tt.constructor.isBuffer(tt)}function tv(tt){return"[object ArrayBuffer]"===tc.call(tt)}function tb(tt){return"[object FormData]"===tc.call(tt)}function tg(tt){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(tt):tt&&tt.buffer&&tv(tt.buffer)}function t_(tt){return"string"==typeof tt}function tE(tt){return"number"==typeof tt}function tS(tt){return null!==tt&&"object"==typeof tt}function tA(tt){if("[object Object]"!==tc.call(tt))return!1;var ti=Object.getPrototypeOf(tt);return null===ti||ti===Object.prototype}function tT(tt){return"[object Date]"===tc.call(tt)}function tM(tt){return"[object File]"===tc.call(tt)}function tk(tt){return"[object Blob]"===tc.call(tt)}function tR(tt){return"[object Function]"===tc.call(tt)}function tC(tt){return tS(tt)&&tR(tt.pipe)}function tI(tt){return"[object URLSearchParams]"===tc.call(tt)}function tP(tt){return tt.trim?tt.trim():tt.replace(/^\s+|\s+$/g,"")}function tO(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function tN(tt,ti){if(null!=tt){if("object"!=typeof tt&&(tt=[tt]),tu(tt))for(var ta=0,ts=tt.length;ta80*ts){tu=tp=tt[0],td=tv=tt[1];for(var tk=ts;tktp&&(tp=tg),t_>tv&&(tv=t_);tE=0!==(tE=Math.max(tp-tu,tv-td))?32767/tE:0}return tc(tT,tM,ts,tu,td,tE,0),tM}function ta(tt,ti,ta,ts,tc){var tu,td;if(tc===tz(tt,ti,ta,ts)>0)for(tu=ti;tu=ti;tu-=ts)td=tF(tu,tt[tu],tt[tu+1],td);return td&&tP(td,td.next)&&(tG(td),td=td.next),td}function ts(tt,ti){if(!tt)return tt;ti||(ti=tt);var ta,ts=tt;do if(ta=!1,!ts.steiner&&(tP(ts,ts.next)||0===tI(ts.prev,ts,ts.next))){if(tG(ts),(ts=ti=ts.prev)===ts.next)break;ta=!0}else ts=ts.next;while(ta||ts!==ti);return ti}function tc(tt,ti,ta,tb,tg,t_,tE){if(tt){!tE&&t_&&tA(tt,tb,tg,t_);for(var tS,tT,tM=tt;tt.prev!==tt.next;){if(tS=tt.prev,tT=tt.next,t_?td(tt,tb,tg,t_):tu(tt)){ti.push(tS.i/ta|0),ti.push(tt.i/ta|0),ti.push(tT.i/ta|0),tG(tt),tt=tT.next,tM=tT.next;continue}if((tt=tT)===tM){tE?1===tE?tc(tt=tp(ts(tt),ti,ta),ti,ta,tb,tg,t_,2):2===tE&&tv(tt,ti,ta,tb,tg,t_):tc(ts(tt),ti,ta,tb,tg,t_,1);break}}}}function tu(tt){var ti=tt.prev,ta=tt,ts=tt.next;if(tI(ti,ta,ts)>=0)return!1;for(var tc=ti.x,tu=ta.x,td=ts.x,tp=ti.y,tv=ta.y,tb=ts.y,tg=tctu?tc>td?tc:td:tu>td?tu:td,tS=tp>tv?tp>tb?tp:tb:tv>tb?tv:tb,tA=ts.next;tA!==ti;){if(tA.x>=tg&&tA.x<=tE&&tA.y>=t_&&tA.y<=tS&&tR(tc,tp,tu,tv,td,tb,tA.x,tA.y)&&tI(tA.prev,tA,tA.next)>=0)return!1;tA=tA.next}return!0}function td(tt,ti,ta,ts){var tc=tt.prev,tu=tt,td=tt.next;if(tI(tc,tu,td)>=0)return!1;for(var tp=tc.x,tv=tu.x,tb=td.x,tg=tc.y,t_=tu.y,tE=td.y,tS=tptv?tp>tb?tp:tb:tv>tb?tv:tb,tk=tg>t_?tg>tE?tg:tE:t_>tE?t_:tE,tC=tM(tS,tA,ti,ta,ts),tP=tM(tT,tk,ti,ta,ts),tO=tt.prevZ,tN=tt.nextZ;tO&&tO.z>=tC&&tN&&tN.z<=tP;){if(tO.x>=tS&&tO.x<=tT&&tO.y>=tA&&tO.y<=tk&&tO!==tc&&tO!==td&&tR(tp,tg,tv,t_,tb,tE,tO.x,tO.y)&&tI(tO.prev,tO,tO.next)>=0||(tO=tO.prevZ,tN.x>=tS&&tN.x<=tT&&tN.y>=tA&&tN.y<=tk&&tN!==tc&&tN!==td&&tR(tp,tg,tv,t_,tb,tE,tN.x,tN.y)&&tI(tN.prev,tN,tN.next)>=0))return!1;tN=tN.nextZ}for(;tO&&tO.z>=tC;){if(tO.x>=tS&&tO.x<=tT&&tO.y>=tA&&tO.y<=tk&&tO!==tc&&tO!==td&&tR(tp,tg,tv,t_,tb,tE,tO.x,tO.y)&&tI(tO.prev,tO,tO.next)>=0)return!1;tO=tO.prevZ}for(;tN&&tN.z<=tP;){if(tN.x>=tS&&tN.x<=tT&&tN.y>=tA&&tN.y<=tk&&tN!==tc&&tN!==td&&tR(tp,tg,tv,t_,tb,tE,tN.x,tN.y)&&tI(tN.prev,tN,tN.next)>=0)return!1;tN=tN.nextZ}return!0}function tp(tt,ti,ta){var tc=tt;do{var tu=tc.prev,td=tc.next.next;!tP(tu,td)&&tO(tu,tc,tc.next,td)&&tD(tu,td)&&tD(td,tu)&&(ti.push(tu.i/ta|0),ti.push(tc.i/ta|0),ti.push(td.i/ta|0),tG(tc),tG(tc.next),tc=tt=td),tc=tc.next}while(tc!==tt);return ts(tc)}function tv(tt,ti,ta,tu,td,tp){var tv=tt;do{for(var tb=tv.next.next;tb!==tv.prev;){if(tv.i!==tb.i&&tC(tv,tb)){var tg=tU(tv,tb);tv=ts(tv,tv.next),tg=ts(tg,tg.next),tc(tv,ti,ta,tu,td,tp,0),tc(tg,ti,ta,tu,td,tp,0);return}tb=tb.next}tv=tv.next}while(tv!==tt)}function tb(tt,ti,ts,tc){var tu,td,tp,tv,tb,tE=[];for(tu=0,td=ti.length;tu=ts.next.y&&ts.next.y!==ts.y){var tp=ts.x+(tu-ts.y)*(ts.next.x-ts.x)/(ts.next.y-ts.y);if(tp<=tc&&tp>td&&(td=tp,ta=ts.x=ts.x&&ts.x>=tg&&tc!==ts.x&&tR(tuta.x||ts.x===ta.x&&tS(ta,ts)))&&(ta=ts,tE=tv)),ts=ts.next;while(ts!==tb);return ta}function tS(tt,ti){return 0>tI(tt.prev,tt,ti.prev)&&0>tI(ti.next,tt,tt.next)}function tA(tt,ti,ta,ts){var tc=tt;do 0===tc.z&&(tc.z=tM(tc.x,tc.y,ti,ta,ts)),tc.prevZ=tc.prev,tc.nextZ=tc.next,tc=tc.next;while(tc!==tt);tc.prevZ.nextZ=null,tc.prevZ=null,tT(tc)}function tT(tt){var ti,ta,ts,tc,tu,td,tp,tv,tb=1;do{for(ta=tt,tt=null,tu=null,td=0;ta;){for(td++,ts=ta,tp=0,ti=0;ti0||tv>0&&ts;)0!==tp&&(0===tv||!ts||ta.z<=ts.z)?(tc=ta,ta=ta.nextZ,tp--):(tc=ts,ts=ts.nextZ,tv--),tu?tu.nextZ=tc:tt=tc,tc.prevZ=tu,tu=tc;ta=ts}tu.nextZ=null,tb*=2}while(td>1);return tt}function tM(tt,ti,ta,ts,tc){return(tt=((tt=((tt=((tt=((tt=(tt-ta)*tc|0)|tt<<8)&16711935)|tt<<4)&252645135)|tt<<2)&858993459)|tt<<1)&1431655765)|(ti=((ti=((ti=((ti=((ti=(ti-ts)*tc|0)|ti<<8)&16711935)|ti<<4)&252645135)|ti<<2)&858993459)|ti<<1)&1431655765)<<1}function tk(tt){var ti=tt,ta=tt;do(ti.x=(tt-td)*(tu-tp)&&(tt-td)*(ts-tp)>=(ta-td)*(ti-tp)&&(ta-td)*(tu-tp)>=(tc-td)*(ts-tp)}function tC(tt,ti){return tt.next.i!==ti.i&&tt.prev.i!==ti.i&&!tL(tt,ti)&&(tD(tt,ti)&&tD(ti,tt)&&tj(tt,ti)&&(tI(tt.prev,tt,ti.prev)||tI(tt,ti.prev,ti))||tP(tt,ti)&&tI(tt.prev,tt,tt.next)>0&&tI(ti.prev,ti,ti.next)>0)}function tI(tt,ti,ta){return(ti.y-tt.y)*(ta.x-ti.x)-(ti.x-tt.x)*(ta.y-ti.y)}function tP(tt,ti){return tt.x===ti.x&&tt.y===ti.y}function tO(tt,ti,ta,ts){var tc=tB(tI(tt,ti,ta)),tu=tB(tI(tt,ti,ts)),td=tB(tI(ta,ts,tt)),tp=tB(tI(ta,ts,ti));return!!(tc!==tu&&td!==tp||0===tc&&tN(tt,ta,ti)||0===tu&&tN(tt,ts,ti)||0===td&&tN(ta,tt,ts)||0===tp&&tN(ta,ti,ts))}function tN(tt,ti,ta){return ti.x<=Math.max(tt.x,ta.x)&&ti.x>=Math.min(tt.x,ta.x)&&ti.y<=Math.max(tt.y,ta.y)&&ti.y>=Math.min(tt.y,ta.y)}function tB(tt){return tt>0?1:tt<0?-1:0}function tL(tt,ti){var ta=tt;do{if(ta.i!==tt.i&&ta.next.i!==tt.i&&ta.i!==ti.i&&ta.next.i!==ti.i&&tO(ta,ta.next,tt,ti))return!0;ta=ta.next}while(ta!==tt);return!1}function tD(tt,ti){return 0>tI(tt.prev,tt,tt.next)?tI(tt,ti,tt.next)>=0&&tI(tt,tt.prev,ti)>=0:0>tI(tt,ti,tt.prev)||0>tI(tt,tt.next,ti)}function tj(tt,ti){var ta=tt,ts=!1,tc=(tt.x+ti.x)/2,tu=(tt.y+ti.y)/2;do ta.y>tu!=ta.next.y>tu&&ta.next.y!==ta.y&&tc<(ta.next.x-ta.x)*(tu-ta.y)/(ta.next.y-ta.y)+ta.x&&(ts=!ts),ta=ta.next;while(ta!==tt);return ts}function tU(tt,ti){var ta=new tH(tt.i,tt.x,tt.y),ts=new tH(ti.i,ti.x,ti.y),tc=tt.next,tu=ti.prev;return tt.next=ti,ti.prev=tt,ta.next=tc,tc.prev=ta,ts.next=ta,ta.prev=ts,tu.next=ts,ts.prev=tu,ts}function tF(tt,ti,ta,ts){var tc=new tH(tt,ti,ta);return ts?(tc.next=ts.next,tc.prev=ts,ts.next.prev=tc,ts.next=tc):(tc.prev=tc,tc.next=tc),tc}function tG(tt){tt.next.prev=tt.prev,tt.prev.next=tt.next,tt.prevZ&&(tt.prevZ.nextZ=tt.nextZ),tt.nextZ&&(tt.nextZ.prevZ=tt.prevZ)}function tH(tt,ti,ta){this.i=tt,this.x=ti,this.y=ta,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function tz(tt,ti,ta,ts){for(var tc=0,tu=ti,td=ta-ts;tu0&&(ts+=tt[tc-1].length,ta.holes.push(ts))}return ta}},75022:function(tt){"use strict";var ti=Object.prototype.hasOwnProperty,ta="~";function ts(){}function tc(tt,ti,ta){this.fn=tt,this.context=ti,this.once=ta||!1}function tu(tt,ti,ts,tu,td){if("function"!=typeof ts)throw TypeError("The listener must be a function");var tp=new tc(ts,tu||tt,td),tv=ta?ta+ti:ti;return tt._events[tv]?tt._events[tv].fn?tt._events[tv]=[tt._events[tv],tp]:tt._events[tv].push(tp):(tt._events[tv]=tp,tt._eventsCount++),tt}function td(tt,ti){0==--tt._eventsCount?tt._events=new ts:delete tt._events[ti]}function tp(){this._events=new ts,this._eventsCount=0}Object.create&&(ts.prototype=Object.create(null),new ts().__proto__||(ta=!1)),tp.prototype.eventNames=function(){var tt,ts,tc=[];if(0===this._eventsCount)return tc;for(ts in tt=this._events)ti.call(tt,ts)&&tc.push(ta?ts.slice(1):ts);return Object.getOwnPropertySymbols?tc.concat(Object.getOwnPropertySymbols(tt)):tc},tp.prototype.listeners=function(tt){var ti=ta?ta+tt:tt,ts=this._events[ti];if(!ts)return[];if(ts.fn)return[ts.fn];for(var tc=0,tu=ts.length,td=Array(tu);tc=0&&(ti.hash=tt.substr(ta),tt=tt.substr(0,ta));var ts=tt.indexOf("?");ts>=0&&(ti.search=tt.substr(ts),tt=tt.substr(0,ts)),tt&&(ti.pathname=tt)}return ti}},33802:function(tt,ti,ta){var ts=ta(61448),tc=ta(62619),tu=ta(92897),td=ta(11326),tp=ta(28917);function tv(tt){var ti=-1,ta=null==tt?0:tt.length;for(this.clear();++ti-1}tt.exports=tc},42369:function(tt){function ti(tt,ti,ta){for(var ts=-1,tc=null==tt?0:tt.length;++ts0&&ta(tg)?ti>1?tu(tg,ti-1,ta,td,tp):ts(tp,tg):td||(tp[tp.length]=tg)}return tp}tt.exports=tu},76903:function(tt,ti,ta){var ts=ta(20675),tc=ta(55365),tu=ta(47769),td="[object Null]",tp="[object Undefined]",tv=ts?ts.toStringTag:void 0;function tb(tt){return null==tt?void 0===tt?tp:td:tv&&tv in Object(tt)?tc(tt):tu(tt)}tt.exports=tb},92668:function(tt,ti,ta){var ts=ta(78484),tc=ta(66318),tu=ta(89592);function td(tt,ti,ta){return ti==ti?tu(tt,ti,ta):ts(tt,tc,ta)}tt.exports=td},73803:function(tt,ti,ta){var ts=ta(76903),tc=ta(76419),tu="[object Arguments]";function td(tt){return tc(tt)&&ts(tt)==tu}tt.exports=td},66318:function(tt){function ti(tt){return tt!=tt}tt.exports=ti},66523:function(tt,ti,ta){var ts=ta(36031),tc=ta(25298),tu=ta(89943),td=ta(63614),tp=/[\\^$.*+?()[\]{}|]/g,tv=/^\[object .+?Constructor\]$/,tb=Object.prototype,tg=Function.prototype.toString,t_=tb.hasOwnProperty,tE=RegExp("^"+tg.call(t_).replace(tp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tS(tt){return!(!tu(tt)||tc(tt))&&(ts(tt)?tE:tv).test(td(tt))}tt.exports=tS},56497:function(tt){var ti=Math.floor,ta=Math.random;function ts(tt,ts){return tt+ti(ta()*(ts-tt+1))}tt.exports=ts},75237:function(tt,ti,ta){var ts=ta(41929),tc=/^\s+/;function tu(tt){return tt?tt.slice(0,ts(tt)+1).replace(tc,""):tt}tt.exports=tu},39037:function(tt,ti,ta){var ts=ta(34708),tc=ta(77682),tu=ta(42369),td=ta(19716),tp=ta(91100),tv=ta(57894),tb=200;function tg(tt,ti,ta){var tg=-1,t_=tc,tE=tt.length,tS=!0,tA=[],tT=tA;if(ta)tS=!1,t_=tu;else if(tE>=tb){var tM=ti?null:tp(tt);if(tM)return tv(tM);tS=!1,t_=td,tT=new ts}else tT=ti?[]:tA;t:for(;++tg-1&&tt%1==0&&tt-1}tt.exports=tc},66357:function(tt,ti,ta){var ts=ta(81816);function tc(tt,ti){var ta=this.__data__,tc=ts(ta,tt);return tc<0?(++this.size,ta.push([tt,ti])):ta[tc][1]=ti,this}tt.exports=tc},83314:function(tt,ti,ta){var ts=ta(33802),tc=ta(32381),tu=ta(97848);function td(){this.size=0,this.__data__={hash:new ts,map:new(tu||tc),string:new ts}}tt.exports=td},6388:function(tt,ti,ta){var ts=ta(23592);function tc(tt){var ti=ts(this,tt).delete(tt);return this.size-=ti?1:0,ti}tt.exports=tc},77773:function(tt,ti,ta){var ts=ta(23592);function tc(tt){return ts(this,tt).get(tt)}tt.exports=tc},21791:function(tt,ti,ta){var ts=ta(23592);function tc(tt){return ts(this,tt).has(tt)}tt.exports=tc},49005:function(tt,ti,ta){var ts=ta(23592);function tc(tt,ti){var ta=ts(this,tt),tc=ta.size;return ta.set(tt,ti),this.size+=ta.size==tc?0:1,this}tt.exports=tc},19317:function(tt,ti,ta){var ts=ta(47497)(Object,"create");tt.exports=ts},47769:function(tt){var ti=Object.prototype.toString;function ta(tt){return ti.call(tt)}tt.exports=ta},91161:function(tt,ti,ta){var ts=ta(69280),tc="object"==typeof self&&self&&self.Object===Object&&self,tu=ts||tc||Function("return this")();tt.exports=tu},58583:function(tt){var ti="__lodash_hash_undefined__";function ta(tt){return this.__data__.set(tt,ti),this}tt.exports=ta},89873:function(tt){function ti(tt){return this.__data__.has(tt)}tt.exports=ti},57894:function(tt){function ti(tt){var ti=-1,ta=Array(tt.size);return tt.forEach(function(tt){ta[++ti]=tt}),ta}tt.exports=ti},89592:function(tt){function ti(tt,ti,ta){for(var ts=ta-1,tc=tt.length;++ts-1&&tt%1==0&&tt<=ti}tt.exports=ta},89943:function(tt){function ti(tt){var ti=typeof tt;return null!=tt&&("object"==ti||"function"==ti)}tt.exports=ti},76419:function(tt){function ti(tt){return null!=tt&&"object"==typeof tt}tt.exports=ti},5439:function(tt,ti,ta){var ts=ta(76903),tc=ta(76419),tu="[object Symbol]";function td(tt){return"symbol"==typeof tt||tc(tt)&&ts(tt)==tu}tt.exports=td},32512:function(tt){function ti(){}tt.exports=ti},40830:function(tt,ti,ta){var ts=ta(56497),tc=ta(80176),tu=ta(84058),td=parseFloat,tp=Math.min,tv=Math.random;function tb(tt,ti,ta){if(ta&&"boolean"!=typeof ta&&tc(tt,ti,ta)&&(ti=ta=void 0),void 0===ta&&("boolean"==typeof ti?(ta=ti,ti=void 0):"boolean"==typeof tt&&(ta=tt,tt=void 0)),void 0===tt&&void 0===ti?(tt=0,ti=1):(tt=tu(tt),void 0===ti?(ti=tt,tt=0):ti=tu(ti)),tt>ti){var tb=tt;tt=ti,ti=tb}if(ta||tt%1||ti%1){var tg=tv();return tp(tt+tg*(ti-tt+td("1e-"+((tg+"").length-1))),ti)}return ts(tt,ti)}tt.exports=tb},84058:function(tt,ti,ta){var ts=ta(13548),tc=1/0,tu=17976931348623157e292;function td(tt){return tt?(tt=ts(tt))===tc||tt===-tc?(tt<0?-1:1)*tu:tt==tt?tt:0:0===tt?tt:0}tt.exports=td},13548:function(tt,ti,ta){var ts=ta(75237),tc=ta(89943),tu=ta(5439),td=0/0,tp=/^[-+]0x[0-9a-f]+$/i,tv=/^0b[01]+$/i,tb=/^0o[0-7]+$/i,tg=parseInt;function t_(tt){if("number"==typeof tt)return tt;if(tu(tt))return td;if(tc(tt)){var ti="function"==typeof tt.valueOf?tt.valueOf():tt;tt=tc(ti)?ti+"":ti}if("string"!=typeof tt)return 0===tt?tt:+tt;tt=ts(tt);var ta=tv.test(tt);return ta||tb.test(tt)?tg(tt.slice(2),ta?2:8):tp.test(tt)?td:+tt}tt.exports=t_},60590:function(tt,ti,ta){var ts=ta(39037);function tc(tt){return tt&&tt.length?ts(tt):[]}tt.exports=tc},70718:function(tt,ti,ta){"use strict";var ts,tc;tt.exports=(null==(ts=ta.g.process)?void 0:ts.env)&&"object"==typeof(null==(tc=ta.g.process)?void 0:tc.env)?ta.g.process:ta(58631)},35713:function(tt){var ti="/";!function(){var ta={675:function(tt,ti){"use strict";ti.byteLength=tb,ti.toByteArray=t_,ti.fromByteArray=tA;for(var ta=[],ts=[],tc="undefined"!=typeof Uint8Array?Uint8Array:Array,tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",td=0,tp=tu.length;td0)throw Error("Invalid string. Length must be a multiple of 4");var ta=tt.indexOf("=");-1===ta&&(ta=ti);var ts=ta===ti?0:4-ta%4;return[ta,ts]}function tb(tt){var ti=tv(tt),ta=ti[0],ts=ti[1];return(ta+ts)*3/4-ts}function tg(tt,ti,ta){return(ti+ta)*3/4-ta}function t_(tt){var ti,ta,tu=tv(tt),td=tu[0],tp=tu[1],tb=new tc(tg(tt,td,tp)),t_=0,tE=tp>0?td-4:td;for(ta=0;ta>16&255,tb[t_++]=ti>>8&255,tb[t_++]=255&ti;return 2===tp&&(ti=ts[tt.charCodeAt(ta)]<<2|ts[tt.charCodeAt(ta+1)]>>4,tb[t_++]=255&ti),1===tp&&(ti=ts[tt.charCodeAt(ta)]<<10|ts[tt.charCodeAt(ta+1)]<<4|ts[tt.charCodeAt(ta+2)]>>2,tb[t_++]=ti>>8&255,tb[t_++]=255&ti),tb}function tE(tt){return ta[tt>>18&63]+ta[tt>>12&63]+ta[tt>>6&63]+ta[63&tt]}function tS(tt,ti,ta){for(var ts=[],tc=ti;tctv?tv:tp+td));return 1===tc?tu.push(ta[(ti=tt[ts-1])>>2]+ta[ti<<4&63]+"=="):2===tc&&tu.push(ta[(ti=(tt[ts-2]<<8)+tt[ts-1])>>10]+ta[ti>>4&63]+ta[ti<<2&63]+"="),tu.join("")}ts["-".charCodeAt(0)]=62,ts["_".charCodeAt(0)]=63},72:function(tt,ti,ta){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var ts=ta(675),tc=ta(783),tu="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;ti.Buffer=tb,ti.SlowBuffer=tC,ti.INSPECT_MAX_BYTES=50;var td=2147483647;function tp(){try{var tt=new Uint8Array(1),ti={foo:function(){return 42}};return Object.setPrototypeOf(ti,Uint8Array.prototype),Object.setPrototypeOf(tt,ti),42===tt.foo()}catch(tt){return!1}}function tv(tt){if(tt>td)throw RangeError('The value "'+tt+'" is invalid for option "size"');var ti=new Uint8Array(tt);return Object.setPrototypeOf(ti,tb.prototype),ti}function tb(tt,ti,ta){if("number"==typeof tt){if("string"==typeof ti)throw TypeError('The "string" argument must be of type string. Received type number');return tS(tt)}return tg(tt,ti,ta)}function tg(tt,ti,ta){if("string"==typeof tt)return tA(tt,ti);if(ArrayBuffer.isView(tt))return tT(tt);if(null==tt)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tt);if(t7(tt,ArrayBuffer)||tt&&t7(tt.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(t7(tt,SharedArrayBuffer)||tt&&t7(tt.buffer,SharedArrayBuffer)))return tM(tt,ti,ta);if("number"==typeof tt)throw TypeError('The "value" argument must not be of type number. Received type number');var ts=tt.valueOf&&tt.valueOf();if(null!=ts&&ts!==tt)return tb.from(ts,ti,ta);var tc=tk(tt);if(tc)return tc;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof tt[Symbol.toPrimitive])return tb.from(tt[Symbol.toPrimitive]("string"),ti,ta);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tt)}function t_(tt){if("number"!=typeof tt)throw TypeError('"size" argument must be of type number');if(tt<0)throw RangeError('The value "'+tt+'" is invalid for option "size"')}function tE(tt,ti,ta){return(t_(tt),tt<=0)?tv(tt):void 0!==ti?"string"==typeof ta?tv(tt).fill(ti,ta):tv(tt).fill(ti):tv(tt)}function tS(tt){return t_(tt),tv(tt<0?0:0|tR(tt))}function tA(tt,ti){if(("string"!=typeof ti||""===ti)&&(ti="utf8"),!tb.isEncoding(ti))throw TypeError("Unknown encoding: "+ti);var ta=0|tI(tt,ti),ts=tv(ta),tc=ts.write(tt,ti);return tc!==ta&&(ts=ts.slice(0,tc)),ts}function tT(tt){for(var ti=tt.length<0?0:0|tR(tt.length),ta=tv(ti),ts=0;ts=td)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+td.toString(16)+" bytes");return 0|tt}function tC(tt){return+tt!=tt&&(tt=0),tb.alloc(+tt)}function tI(tt,ti){if(tb.isBuffer(tt))return tt.length;if(ArrayBuffer.isView(tt)||t7(tt,ArrayBuffer))return tt.byteLength;if("string"!=typeof tt)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof tt);var ta=tt.length,ts=arguments.length>2&&!0===arguments[2];if(!ts&&0===ta)return 0;for(var tc=!1;;)switch(ti){case"ascii":case"latin1":case"binary":return ta;case"utf8":case"utf-8":return t3(tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ta;case"hex":return ta>>>1;case"base64":return t4(tt).length;default:if(tc)return ts?-1:t3(tt).length;ti=(""+ti).toLowerCase(),tc=!0}}function tP(tt,ti,ta){var ts=!1;if((void 0===ti||ti<0)&&(ti=0),ti>this.length||((void 0===ta||ta>this.length)&&(ta=this.length),ta<=0||(ta>>>=0)<=(ti>>>=0)))return"";for(tt||(tt="utf8");;)switch(tt){case"hex":return tX(this,ti,ta);case"utf8":case"utf-8":return tz(this,ti,ta);case"ascii":return tW(this,ti,ta);case"latin1":case"binary":return tY(this,ti,ta);case"base64":return tH(this,ti,ta);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tQ(this,ti,ta);default:if(ts)throw TypeError("Unknown encoding: "+tt);tt=(tt+"").toLowerCase(),ts=!0}}function tO(tt,ti,ta){var ts=tt[ti];tt[ti]=tt[ta],tt[ta]=ts}function tN(tt,ti,ta,ts,tc){if(0===tt.length)return -1;if("string"==typeof ta?(ts=ta,ta=0):ta>2147483647?ta=2147483647:ta<-2147483648&&(ta=-2147483648),t9(ta=+ta)&&(ta=tc?0:tt.length-1),ta<0&&(ta=tt.length+ta),ta>=tt.length){if(tc)return -1;ta=tt.length-1}else if(ta<0){if(!tc)return -1;ta=0}if("string"==typeof ti&&(ti=tb.from(ti,ts)),tb.isBuffer(ti))return 0===ti.length?-1:tB(tt,ti,ta,ts,tc);if("number"==typeof ti)return(ti&=255,"function"==typeof Uint8Array.prototype.indexOf)?tc?Uint8Array.prototype.indexOf.call(tt,ti,ta):Uint8Array.prototype.lastIndexOf.call(tt,ti,ta):tB(tt,[ti],ta,ts,tc);throw TypeError("val must be string, number or Buffer")}function tB(tt,ti,ta,ts,tc){var tu,td=1,tp=tt.length,tv=ti.length;if(void 0!==ts&&("ucs2"===(ts=String(ts).toLowerCase())||"ucs-2"===ts||"utf16le"===ts||"utf-16le"===ts)){if(tt.length<2||ti.length<2)return -1;td=2,tp/=2,tv/=2,ta/=2}function tb(tt,ti){return 1===td?tt[ti]:tt.readUInt16BE(ti*td)}if(tc){var tg=-1;for(tu=ta;tutp&&(ta=tp-tv),tu=ta;tu>=0;tu--){for(var t_=!0,tE=0;tEtc&&(ts=tc):ts=tc;var tu=ti.length;ts>tu/2&&(ts=tu/2);for(var td=0;td239?4:tb>223?3:tb>191?2:1;if(tc+t_<=ta)switch(t_){case 1:tb<128&&(tg=tb);break;case 2:(192&(tu=tt[tc+1]))==128&&(tv=(31&tb)<<6|63&tu)>127&&(tg=tv);break;case 3:tu=tt[tc+1],td=tt[tc+2],(192&tu)==128&&(192&td)==128&&(tv=(15&tb)<<12|(63&tu)<<6|63&td)>2047&&(tv<55296||tv>57343)&&(tg=tv);break;case 4:tu=tt[tc+1],td=tt[tc+2],tp=tt[tc+3],(192&tu)==128&&(192&td)==128&&(192&tp)==128&&(tv=(15&tb)<<18|(63&tu)<<12|(63&td)<<6|63&tp)>65535&&tv<1114112&&(tg=tv)}null===tg?(tg=65533,t_=1):tg>65535&&(tg-=65536,ts.push(tg>>>10&1023|55296),tg=56320|1023&tg),ts.push(tg),tc+=t_}return tq(ts)}ti.kMaxLength=td,tb.TYPED_ARRAY_SUPPORT=tp(),tb.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tb.prototype,"parent",{enumerable:!0,get:function(){if(tb.isBuffer(this))return this.buffer}}),Object.defineProperty(tb.prototype,"offset",{enumerable:!0,get:function(){if(tb.isBuffer(this))return this.byteOffset}}),tb.poolSize=8192,tb.from=function(tt,ti,ta){return tg(tt,ti,ta)},Object.setPrototypeOf(tb.prototype,Uint8Array.prototype),Object.setPrototypeOf(tb,Uint8Array),tb.alloc=function(tt,ti,ta){return tE(tt,ti,ta)},tb.allocUnsafe=function(tt){return tS(tt)},tb.allocUnsafeSlow=function(tt){return tS(tt)},tb.isBuffer=function(tt){return null!=tt&&!0===tt._isBuffer&&tt!==tb.prototype},tb.compare=function(tt,ti){if(t7(tt,Uint8Array)&&(tt=tb.from(tt,tt.offset,tt.byteLength)),t7(ti,Uint8Array)&&(ti=tb.from(ti,ti.offset,ti.byteLength)),!tb.isBuffer(tt)||!tb.isBuffer(ti))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(tt===ti)return 0;for(var ta=tt.length,ts=ti.length,tc=0,tu=Math.min(ta,ts);tcta&&(tt+=" ... "),""},tu&&(tb.prototype[tu]=tb.prototype.inspect),tb.prototype.compare=function(tt,ti,ta,ts,tc){if(t7(tt,Uint8Array)&&(tt=tb.from(tt,tt.offset,tt.byteLength)),!tb.isBuffer(tt))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof tt);if(void 0===ti&&(ti=0),void 0===ta&&(ta=tt?tt.length:0),void 0===ts&&(ts=0),void 0===tc&&(tc=this.length),ti<0||ta>tt.length||ts<0||tc>this.length)throw RangeError("out of range index");if(ts>=tc&&ti>=ta)return 0;if(ts>=tc)return -1;if(ti>=ta)return 1;if(ti>>>=0,ta>>>=0,ts>>>=0,tc>>>=0,this===tt)return 0;for(var tu=tc-ts,td=ta-ti,tp=Math.min(tu,td),tv=this.slice(ts,tc),tg=tt.slice(ti,ta),t_=0;t_>>=0,isFinite(ta)?(ta>>>=0,void 0===ts&&(ts="utf8")):(ts=ta,ta=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var tc=this.length-ti;if((void 0===ta||ta>tc)&&(ta=tc),tt.length>0&&(ta<0||ti<0)||ti>this.length)throw RangeError("Attempt to write outside buffer bounds");ts||(ts="utf8");for(var tu=!1;;)switch(ts){case"hex":return tL(this,tt,ti,ta);case"utf8":case"utf-8":return tD(this,tt,ti,ta);case"ascii":return tj(this,tt,ti,ta);case"latin1":case"binary":return tU(this,tt,ti,ta);case"base64":return tF(this,tt,ti,ta);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tG(this,tt,ti,ta);default:if(tu)throw TypeError("Unknown encoding: "+ts);ts=(""+ts).toLowerCase(),tu=!0}},tb.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tV=4096;function tq(tt){var ti=tt.length;if(ti<=tV)return String.fromCharCode.apply(String,tt);for(var ta="",ts=0;tsts)&&(ta=ts);for(var tc="",tu=ti;tuta)throw RangeError("Trying to access beyond buffer length")}function tZ(tt,ti,ta,ts,tc,tu){if(!tb.isBuffer(tt))throw TypeError('"buffer" argument must be a Buffer instance');if(ti>tc||titt.length)throw RangeError("Index out of range")}function tJ(tt,ti,ta,ts,tc,tu){if(ta+ts>tt.length||ta<0)throw RangeError("Index out of range")}function t$(tt,ti,ta,ts,tu){return ti=+ti,ta>>>=0,tu||tJ(tt,ti,ta,4,34028234663852886e22,-34028234663852886e22),tc.write(tt,ti,ta,ts,23,4),ta+4}function t0(tt,ti,ta,ts,tu){return ti=+ti,ta>>>=0,tu||tJ(tt,ti,ta,8,17976931348623157e292,-17976931348623157e292),tc.write(tt,ti,ta,ts,52,8),ta+8}tb.prototype.slice=function(tt,ti){var ta=this.length;tt=~~tt,ti=void 0===ti?ta:~~ti,tt<0?(tt+=ta)<0&&(tt=0):tt>ta&&(tt=ta),ti<0?(ti+=ta)<0&&(ti=0):ti>ta&&(ti=ta),ti>>=0,ti>>>=0,ta||tK(tt,ti,this.length);for(var ts=this[tt],tc=1,tu=0;++tu>>=0,ti>>>=0,ta||tK(tt,ti,this.length);for(var ts=this[tt+--ti],tc=1;ti>0&&(tc*=256);)ts+=this[tt+--ti]*tc;return ts},tb.prototype.readUInt8=function(tt,ti){return tt>>>=0,ti||tK(tt,1,this.length),this[tt]},tb.prototype.readUInt16LE=function(tt,ti){return tt>>>=0,ti||tK(tt,2,this.length),this[tt]|this[tt+1]<<8},tb.prototype.readUInt16BE=function(tt,ti){return tt>>>=0,ti||tK(tt,2,this.length),this[tt]<<8|this[tt+1]},tb.prototype.readUInt32LE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),(this[tt]|this[tt+1]<<8|this[tt+2]<<16)+16777216*this[tt+3]},tb.prototype.readUInt32BE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),16777216*this[tt]+(this[tt+1]<<16|this[tt+2]<<8|this[tt+3])},tb.prototype.readIntLE=function(tt,ti,ta){tt>>>=0,ti>>>=0,ta||tK(tt,ti,this.length);for(var ts=this[tt],tc=1,tu=0;++tu=(tc*=128)&&(ts-=Math.pow(2,8*ti)),ts},tb.prototype.readIntBE=function(tt,ti,ta){tt>>>=0,ti>>>=0,ta||tK(tt,ti,this.length);for(var ts=ti,tc=1,tu=this[tt+--ts];ts>0&&(tc*=256);)tu+=this[tt+--ts]*tc;return tu>=(tc*=128)&&(tu-=Math.pow(2,8*ti)),tu},tb.prototype.readInt8=function(tt,ti){return(tt>>>=0,ti||tK(tt,1,this.length),128&this[tt])?-((255-this[tt]+1)*1):this[tt]},tb.prototype.readInt16LE=function(tt,ti){tt>>>=0,ti||tK(tt,2,this.length);var ta=this[tt]|this[tt+1]<<8;return 32768&ta?4294901760|ta:ta},tb.prototype.readInt16BE=function(tt,ti){tt>>>=0,ti||tK(tt,2,this.length);var ta=this[tt+1]|this[tt]<<8;return 32768&ta?4294901760|ta:ta},tb.prototype.readInt32LE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),this[tt]|this[tt+1]<<8|this[tt+2]<<16|this[tt+3]<<24},tb.prototype.readInt32BE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),this[tt]<<24|this[tt+1]<<16|this[tt+2]<<8|this[tt+3]},tb.prototype.readFloatLE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),tc.read(this,tt,!0,23,4)},tb.prototype.readFloatBE=function(tt,ti){return tt>>>=0,ti||tK(tt,4,this.length),tc.read(this,tt,!1,23,4)},tb.prototype.readDoubleLE=function(tt,ti){return tt>>>=0,ti||tK(tt,8,this.length),tc.read(this,tt,!0,52,8)},tb.prototype.readDoubleBE=function(tt,ti){return tt>>>=0,ti||tK(tt,8,this.length),tc.read(this,tt,!1,52,8)},tb.prototype.writeUIntLE=function(tt,ti,ta,ts){if(tt=+tt,ti>>>=0,ta>>>=0,!ts){var tc=Math.pow(2,8*ta)-1;tZ(this,tt,ti,ta,tc,0)}var tu=1,td=0;for(this[ti]=255&tt;++td>>=0,ta>>>=0,!ts){var tc=Math.pow(2,8*ta)-1;tZ(this,tt,ti,ta,tc,0)}var tu=ta-1,td=1;for(this[ti+tu]=255&tt;--tu>=0&&(td*=256);)this[ti+tu]=tt/td&255;return ti+ta},tb.prototype.writeUInt8=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,1,255,0),this[ti]=255&tt,ti+1},tb.prototype.writeUInt16LE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,2,65535,0),this[ti]=255&tt,this[ti+1]=tt>>>8,ti+2},tb.prototype.writeUInt16BE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,2,65535,0),this[ti]=tt>>>8,this[ti+1]=255&tt,ti+2},tb.prototype.writeUInt32LE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,4,4294967295,0),this[ti+3]=tt>>>24,this[ti+2]=tt>>>16,this[ti+1]=tt>>>8,this[ti]=255&tt,ti+4},tb.prototype.writeUInt32BE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,4,4294967295,0),this[ti]=tt>>>24,this[ti+1]=tt>>>16,this[ti+2]=tt>>>8,this[ti+3]=255&tt,ti+4},tb.prototype.writeIntLE=function(tt,ti,ta,ts){if(tt=+tt,ti>>>=0,!ts){var tc=Math.pow(2,8*ta-1);tZ(this,tt,ti,ta,tc-1,-tc)}var tu=0,td=1,tp=0;for(this[ti]=255&tt;++tu>0)-tp&255;return ti+ta},tb.prototype.writeIntBE=function(tt,ti,ta,ts){if(tt=+tt,ti>>>=0,!ts){var tc=Math.pow(2,8*ta-1);tZ(this,tt,ti,ta,tc-1,-tc)}var tu=ta-1,td=1,tp=0;for(this[ti+tu]=255&tt;--tu>=0&&(td*=256);)tt<0&&0===tp&&0!==this[ti+tu+1]&&(tp=1),this[ti+tu]=(tt/td>>0)-tp&255;return ti+ta},tb.prototype.writeInt8=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,1,127,-128),tt<0&&(tt=255+tt+1),this[ti]=255&tt,ti+1},tb.prototype.writeInt16LE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,2,32767,-32768),this[ti]=255&tt,this[ti+1]=tt>>>8,ti+2},tb.prototype.writeInt16BE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,2,32767,-32768),this[ti]=tt>>>8,this[ti+1]=255&tt,ti+2},tb.prototype.writeInt32LE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,4,2147483647,-2147483648),this[ti]=255&tt,this[ti+1]=tt>>>8,this[ti+2]=tt>>>16,this[ti+3]=tt>>>24,ti+4},tb.prototype.writeInt32BE=function(tt,ti,ta){return tt=+tt,ti>>>=0,ta||tZ(this,tt,ti,4,2147483647,-2147483648),tt<0&&(tt=4294967295+tt+1),this[ti]=tt>>>24,this[ti+1]=tt>>>16,this[ti+2]=tt>>>8,this[ti+3]=255&tt,ti+4},tb.prototype.writeFloatLE=function(tt,ti,ta){return t$(this,tt,ti,!0,ta)},tb.prototype.writeFloatBE=function(tt,ti,ta){return t$(this,tt,ti,!1,ta)},tb.prototype.writeDoubleLE=function(tt,ti,ta){return t0(this,tt,ti,!0,ta)},tb.prototype.writeDoubleBE=function(tt,ti,ta){return t0(this,tt,ti,!1,ta)},tb.prototype.copy=function(tt,ti,ta,ts){if(!tb.isBuffer(tt))throw TypeError("argument should be a Buffer");if(ta||(ta=0),ts||0===ts||(ts=this.length),ti>=tt.length&&(ti=tt.length),ti||(ti=0),ts>0&&ts=this.length)throw RangeError("Index out of range");if(ts<0)throw RangeError("sourceEnd out of bounds");ts>this.length&&(ts=this.length),tt.length-ti=0;--tu)tt[tu+ti]=this[tu+ta];else Uint8Array.prototype.set.call(tt,this.subarray(ta,ts),ti);return tc},tb.prototype.fill=function(tt,ti,ta,ts){if("string"==typeof tt){if("string"==typeof ti?(ts=ti,ti=0,ta=this.length):"string"==typeof ta&&(ts=ta,ta=this.length),void 0!==ts&&"string"!=typeof ts)throw TypeError("encoding must be a string");if("string"==typeof ts&&!tb.isEncoding(ts))throw TypeError("Unknown encoding: "+ts);if(1===tt.length){var tc,tu=tt.charCodeAt(0);("utf8"===ts&&tu<128||"latin1"===ts)&&(tt=tu)}}else"number"==typeof tt?tt&=255:"boolean"==typeof tt&&(tt=Number(tt));if(ti<0||this.length>>=0,ta=void 0===ta?this.length:ta>>>0,tt||(tt=0),"number"==typeof tt)for(tc=ti;tc55295&&ta<57344){if(!tc){if(ta>56319||td+1===ts){(ti-=3)>-1&&tu.push(239,191,189);continue}tc=ta;continue}if(ta<56320){(ti-=3)>-1&&tu.push(239,191,189),tc=ta;continue}ta=(tc-55296<<10|ta-56320)+65536}else tc&&(ti-=3)>-1&&tu.push(239,191,189);if(tc=null,ta<128){if((ti-=1)<0)break;tu.push(ta)}else if(ta<2048){if((ti-=2)<0)break;tu.push(ta>>6|192,63&ta|128)}else if(ta<65536){if((ti-=3)<0)break;tu.push(ta>>12|224,ta>>6&63|128,63&ta|128)}else if(ta<1114112){if((ti-=4)<0)break;tu.push(ta>>18|240,ta>>12&63|128,ta>>6&63|128,63&ta|128)}else throw Error("Invalid code point")}return tu}function t8(tt){for(var ti=[],ta=0;ta>8,tc.push(ta%256),tc.push(ts);return tc}function t4(tt){return ts.toByteArray(t2(tt))}function t6(tt,ti,ta,ts){for(var tc=0;tc=ti.length)&&!(tc>=tt.length);++tc)ti[tc+ta]=tt[tc];return tc}function t7(tt,ti){return tt instanceof ti||null!=tt&&null!=tt.constructor&&null!=tt.constructor.name&&tt.constructor.name===ti.name}function t9(tt){return tt!=tt}var et=function(){for(var tt="0123456789abcdef",ti=Array(256),ta=0;ta<16;++ta)for(var ts=16*ta,tc=0;tc<16;++tc)ti[ts+tc]=tt[ta]+tt[tc];return ti}()},783:function(tt,ti){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ti.read=function(tt,ti,ta,ts,tc){var tu,td,tp=8*tc-ts-1,tv=(1<>1,tg=-7,t_=ta?tc-1:0,tE=ta?-1:1,tS=tt[ti+t_];for(t_+=tE,tu=tS&(1<<-tg)-1,tS>>=-tg,tg+=tp;tg>0;tu=256*tu+tt[ti+t_],t_+=tE,tg-=8);for(td=tu&(1<<-tg)-1,tu>>=-tg,tg+=ts;tg>0;td=256*td+tt[ti+t_],t_+=tE,tg-=8);if(0===tu)tu=1-tb;else{if(tu===tv)return td?NaN:(tS?-1:1)*(1/0);td+=Math.pow(2,ts),tu-=tb}return(tS?-1:1)*td*Math.pow(2,tu-ts)},ti.write=function(tt,ti,ta,ts,tc,tu){var td,tp,tv,tb=8*tu-tc-1,tg=(1<>1,tE=23===tc?5960464477539062e-23:0,tS=ts?0:tu-1,tA=ts?1:-1,tT=ti<0||0===ti&&1/ti<0?1:0;for(isNaN(ti=Math.abs(ti))||ti===1/0?(tp=isNaN(ti)?1:0,td=tg):(td=Math.floor(Math.log(ti)/Math.LN2),ti*(tv=Math.pow(2,-td))<1&&(td--,tv*=2),td+t_>=1?ti+=tE/tv:ti+=tE*Math.pow(2,1-t_),ti*tv>=2&&(td++,tv/=2),td+t_>=tg?(tp=0,td=tg):td+t_>=1?(tp=(ti*tv-1)*Math.pow(2,tc),td+=t_):(tp=ti*Math.pow(2,t_-1)*Math.pow(2,tc),td=0));tc>=8;tt[ta+tS]=255&tp,tS+=tA,tp/=256,tc-=8);for(td=td<0;tt[ta+tS]=255&td,tS+=tA,td/=256,tb-=8);tt[ta+tS-tA]|=128*tT}}},ts={};function tc(tt){var ti=ts[tt];if(void 0!==ti)return ti.exports;var tu=ts[tt]={exports:{}},td=!0;try{ta[tt](tu,tu.exports,tc),td=!1}finally{td&&delete ts[tt]}return tu.exports}tc.ab=ti+"/";var tu=tc(72);tt.exports=tu}()},48831:function(tt,ti,ta){var ts="/",tc=ta(35713).Buffer,tu=ta(70718),td=ta(50391),tp=ta(12050),tv=ta(21136),tb=ta(77897),tg=ta(37914),t_=ta(68525);function tE(tt){var ti=tS();return function(){var ta,ts=t_(tt);if(ti){var tc=t_(this).constructor;ta=Reflect.construct(ts,arguments,tc)}else ta=ts.apply(this,arguments);return tg(this,ta)}}function tS(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(tt){return!1}}!function(){var ti={7160:function(tt,ti,ta){var ts=ti;ts.bignum=ta(711),ts.define=ta(495).define,ts.base=ta(853),ts.constants=ta(7335),ts.decoders=ta(6701),ts.encoders=ta(3418)},495:function(tt,ti,ta){var ts=ta(7160),tc=ta(3782);function tu(tt,ti){this.name=tt,this.body=ti,this.decoders={},this.encoders={}}ti.define=function(tt,ti){return new tu(tt,ti)},tu.prototype._createNamed=function(tt){var ti;try{ti=ta(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(tt){ti=function(tt){this._initNamed(tt)}}return tc(ti,tt),ti.prototype._initNamed=function(ti){tt.call(this,ti)},new ti(this)},tu.prototype._getDecoder=function(tt){return tt=tt||"der",this.decoders.hasOwnProperty(tt)||(this.decoders[tt]=this._createNamed(ts.decoders[tt])),this.decoders[tt]},tu.prototype.decode=function(tt,ti,ta){return this._getDecoder(ti).decode(tt,ta)},tu.prototype._getEncoder=function(tt){return tt=tt||"der",this.encoders.hasOwnProperty(tt)||(this.encoders[tt]=this._createNamed(ts.encoders[tt])),this.encoders[tt]},tu.prototype.encode=function(tt,ti,ta){return this._getEncoder(ti).encode(tt,ta)}},6483:function(tt,ti,ta){var ts=ta(3782),tc=ta(853).Reporter,tu=ta(4300).Buffer;function td(tt,ti){if(tc.call(this,ti),!tu.isBuffer(tt)){this.error("Input not Buffer");return}this.base=tt,this.offset=0,this.length=tt.length}function tp(tt,ti){if(Array.isArray(tt))this.length=0,this.value=tt.map(function(tt){return tt instanceof tp||(tt=new tp(tt,ti)),this.length+=tt.length,tt},this);else if("number"==typeof tt){if(!(0<=tt&&tt<=255))return ti.error("non-byte EncoderBuffer value");this.value=tt,this.length=1}else if("string"==typeof tt)this.value=tt,this.length=tu.byteLength(tt);else{if(!tu.isBuffer(tt))return ti.error("Unsupported type: "+typeof tt);this.value=tt,this.length=tt.length}}ts(td,tc),ti.C=td,td.prototype.save=function(){return{offset:this.offset,reporter:tc.prototype.save.call(this)}},td.prototype.restore=function(tt){var ti=new td(this.base);return ti.offset=tt.offset,ti.length=this.offset,this.offset=tt.offset,tc.prototype.restore.call(this,tt.reporter),ti},td.prototype.isEmpty=function(){return this.offset===this.length},td.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")},td.prototype.skip=function(tt,ti){if(!(this.offset+tt<=this.length))return this.error(ti||"DecoderBuffer overrun");var ta=new td(this.base);return ta._reporterState=this._reporterState,ta.offset=this.offset,ta.length=this.offset+tt,this.offset+=tt,ta},td.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)},ti.R=tp,tp.prototype.join=function(tt,ti){return tt||(tt=new tu(this.length)),ti||(ti=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(ta){ta.join(tt,ti),ti+=ta.length}):("number"==typeof this.value?tt[ti]=this.value:"string"==typeof this.value?tt.write(this.value,ti):tu.isBuffer(this.value)&&this.value.copy(tt,ti),ti+=this.length)),tt}},853:function(tt,ti,ta){var ts=ti;ts.Reporter=ta(1293).b,ts.DecoderBuffer=ta(6483).C,ts.EncoderBuffer=ta(6483).R,ts.Node=ta(9374)},9374:function(tt,ti,ta){var ts=ta(853).Reporter,tc=ta(853).EncoderBuffer,tu=ta(853).DecoderBuffer,td=ta(3523),tp=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],tv=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tp),tb=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function tg(tt,ti){var ta={};this._baseState=ta,ta.enc=tt,ta.parent=ti||null,ta.children=null,ta.tag=null,ta.args=null,ta.reverseArgs=null,ta.choice=null,ta.optional=!1,ta.any=!1,ta.obj=!1,ta.use=null,ta.useDecoder=null,ta.key=null,ta.default=null,ta.explicit=null,ta.implicit=null,ta.contains=null,ta.parent||(ta.children=[],this._wrap())}tt.exports=tg;var t_=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];tg.prototype.clone=function(){var tt=this._baseState,ti={};t_.forEach(function(ta){ti[ta]=tt[ta]});var ta=new this.constructor(ti.parent);return ta._baseState=ti,ta},tg.prototype._wrap=function(){var tt=this._baseState;tv.forEach(function(ti){this[ti]=function(){var ta=new this.constructor(this);return tt.children.push(ta),ta[ti].apply(ta,arguments)}},this)},tg.prototype._init=function(tt){var ti=this._baseState;td(null===ti.parent),tt.call(this),ti.children=ti.children.filter(function(tt){return tt._baseState.parent===this},this),td.equal(ti.children.length,1,"Root node can have only one child")},tg.prototype._useArgs=function(tt){var ti=this._baseState,ta=tt.filter(function(tt){return tt instanceof this.constructor},this);tt=tt.filter(function(tt){return!(tt instanceof this.constructor)},this),0!==ta.length&&(td(null===ti.children),ti.children=ta,ta.forEach(function(tt){tt._baseState.parent=this},this)),0!==tt.length&&(td(null===ti.args),ti.args=tt,ti.reverseArgs=tt.map(function(tt){if("object"!=typeof tt||tt.constructor!==Object)return tt;var ti={};return Object.keys(tt).forEach(function(ta){ta==(0|ta)&&(ta|=0),ti[tt[ta]]=ta}),ti}))},tb.forEach(function(tt){tg.prototype[tt]=function(){throw Error(tt+" not implemented for encoding: "+this._baseState.enc)}}),tp.forEach(function(tt){tg.prototype[tt]=function(){var ti=this._baseState,ta=Array.prototype.slice.call(arguments);return td(null===ti.tag),ti.tag=tt,this._useArgs(ta),this}}),tg.prototype.use=function(tt){td(tt);var ti=this._baseState;return td(null===ti.use),ti.use=tt,this},tg.prototype.optional=function(){return this._baseState.optional=!0,this},tg.prototype.def=function(tt){var ti=this._baseState;return td(null===ti.default),ti.default=tt,ti.optional=!0,this},tg.prototype.explicit=function(tt){var ti=this._baseState;return td(null===ti.explicit&&null===ti.implicit),ti.explicit=tt,this},tg.prototype.implicit=function(tt){var ti=this._baseState;return td(null===ti.explicit&&null===ti.implicit),ti.implicit=tt,this},tg.prototype.obj=function(){var tt=this._baseState,ti=Array.prototype.slice.call(arguments);return tt.obj=!0,0!==ti.length&&this._useArgs(ti),this},tg.prototype.key=function(tt){var ti=this._baseState;return td(null===ti.key),ti.key=tt,this},tg.prototype.any=function(){return this._baseState.any=!0,this},tg.prototype.choice=function(tt){var ti=this._baseState;return td(null===ti.choice),ti.choice=tt,this._useArgs(Object.keys(tt).map(function(ti){return tt[ti]})),this},tg.prototype.contains=function(tt){var ti=this._baseState;return td(null===ti.use),ti.contains=tt,this},tg.prototype._decode=function(tt,ti){var ta,ts=this._baseState;if(null===ts.parent)return tt.wrapResult(ts.children[0]._decode(tt,ti));var tc=ts.default,td=!0,tp=null;if(null!==ts.key&&(tp=tt.enterKey(ts.key)),ts.optional){var tv=null;if(null!==ts.explicit?tv=ts.explicit:null!==ts.implicit?tv=ts.implicit:null!==ts.tag&&(tv=ts.tag),null!==tv||ts.any){if(td=this._peekTag(tt,tv,ts.any),tt.isError(td))return td}else{var tb=tt.save();try{null===ts.choice?this._decodeGeneric(ts.tag,tt,ti):this._decodeChoice(tt,ti),td=!0}catch(tt){td=!1}tt.restore(tb)}}if(ts.obj&&td&&(ta=tt.enterObject()),td){if(null!==ts.explicit){var tg=this._decodeTag(tt,ts.explicit);if(tt.isError(tg))return tg;tt=tg}var t_=tt.offset;if(null===ts.use&&null===ts.choice){if(ts.any)var tb=tt.save();var tE=this._decodeTag(tt,null!==ts.implicit?ts.implicit:ts.tag,ts.any);if(tt.isError(tE))return tE;ts.any?tc=tt.raw(tb):tt=tE}if(ti&&ti.track&&null!==ts.tag&&ti.track(tt.path(),t_,tt.length,"tagged"),ti&&ti.track&&null!==ts.tag&&ti.track(tt.path(),tt.offset,tt.length,"content"),ts.any||(tc=null===ts.choice?this._decodeGeneric(ts.tag,tt,ti):this._decodeChoice(tt,ti)),tt.isError(tc))return tc;if(ts.any||null!==ts.choice||null===ts.children||ts.children.forEach(function(ta){ta._decode(tt,ti)}),ts.contains&&("octstr"===ts.tag||"bitstr"===ts.tag)){var tS=new tu(tc);tc=this._getUse(ts.contains,tt._reporterState.obj)._decode(tS,ti)}}return ts.obj&&td&&(tc=tt.leaveObject(ta)),null!==ts.key&&(null!==tc||!0===td)?tt.leaveKey(tp,ts.key,tc):null!==tp&&tt.exitKey(tp),tc},tg.prototype._decodeGeneric=function(tt,ti,ta){var ts=this._baseState;if("seq"===tt||"set"===tt)return null;if("seqof"===tt||"setof"===tt)return this._decodeList(ti,tt,ts.args[0],ta);if(/str$/.test(tt))return this._decodeStr(ti,tt,ta);if("objid"===tt&&ts.args)return this._decodeObjid(ti,ts.args[0],ts.args[1],ta);if("objid"===tt)return this._decodeObjid(ti,null,null,ta);if("gentime"===tt||"utctime"===tt)return this._decodeTime(ti,tt,ta);if("null_"===tt)return this._decodeNull(ti,ta);if("bool"===tt)return this._decodeBool(ti,ta);else if("objDesc"===tt)return this._decodeStr(ti,tt,ta);else if("int"===tt||"enum"===tt)return this._decodeInt(ti,ts.args&&ts.args[0],ta);return null!==ts.use?this._getUse(ts.use,ti._reporterState.obj)._decode(ti,ta):ti.error("unknown tag: "+tt)},tg.prototype._getUse=function(tt,ti){var ta=this._baseState;return ta.useDecoder=this._use(tt,ti),td(null===ta.useDecoder._baseState.parent),ta.useDecoder=ta.useDecoder._baseState.children[0],ta.implicit!==ta.useDecoder._baseState.implicit&&(ta.useDecoder=ta.useDecoder.clone(),ta.useDecoder._baseState.implicit=ta.implicit),ta.useDecoder},tg.prototype._decodeChoice=function(tt,ti){var ta=this._baseState,ts=null,tc=!1;return(Object.keys(ta.choice).some(function(tu){var td=tt.save(),tp=ta.choice[tu];try{var tv=tp._decode(tt,ti);if(tt.isError(tv))return!1;ts={type:tu,value:tv},tc=!0}catch(ti){return tt.restore(td),!1}return!0},this),tc)?ts:tt.error("Choice not matched")},tg.prototype._createEncoderBuffer=function(tt){return new tc(tt,this.reporter)},tg.prototype._encode=function(tt,ti,ta){var ts=this._baseState;if(null===ts.default||ts.default!==tt){var tc=this._encodeValue(tt,ti,ta);if(void 0!==tc&&!this._skipDefault(tc,ti,ta))return tc}},tg.prototype._encodeValue=function(tt,ti,ta){var tc,tu=this._baseState;if(null===tu.parent)return tu.children[0]._encode(tt,ti||new ts);var tc=null;if(this.reporter=ti,tu.optional&&void 0===tt){if(null===tu.default)return;tt=tu.default}var td=null,tp=!1;if(tu.any)tc=this._createEncoderBuffer(tt);else if(tu.choice)tc=this._encodeChoice(tt,ti);else if(tu.contains)td=this._getUse(tu.contains,ta)._encode(tt,ti),tp=!0;else if(tu.children)td=tu.children.map(function(ta){if("null_"===ta._baseState.tag)return ta._encode(null,ti,tt);if(null===ta._baseState.key)return ti.error("Child should have a key");var ts=ti.enterKey(ta._baseState.key);if("object"!=typeof tt)return ti.error("Child expected, but input is not object");var tc=ta._encode(tt[ta._baseState.key],ti,tt);return ti.leaveKey(ts),tc},this).filter(function(tt){return tt}),td=this._createEncoderBuffer(td);else if("seqof"===tu.tag||"setof"===tu.tag){if(!(tu.args&&1===tu.args.length))return ti.error("Too many args for : "+tu.tag);if(!Array.isArray(tt))return ti.error("seqof/setof, but data is not Array");var tv=this.clone();tv._baseState.implicit=null,td=this._createEncoderBuffer(tt.map(function(ta){var ts=this._baseState;return this._getUse(ts.args[0],tt)._encode(ta,ti)},tv))}else null!==tu.use?tc=this._getUse(tu.use,ta)._encode(tt,ti):(td=this._encodePrimitive(tu.tag,tt),tp=!0);if(!tu.any&&null===tu.choice){var tb=null!==tu.implicit?tu.implicit:tu.tag,tg=null===tu.implicit?"universal":"context";null===tb?null===tu.use&&ti.error("Tag could be omitted only for .use()"):null===tu.use&&(tc=this._encodeComposite(tb,tp,tg,td))}return null!==tu.explicit&&(tc=this._encodeComposite(tu.explicit,!1,"context",tc)),tc},tg.prototype._encodeChoice=function(tt,ti){var ta=this._baseState,ts=ta.choice[tt.type];return ts||td(!1,tt.type+" not found in "+JSON.stringify(Object.keys(ta.choice))),ts._encode(tt.value,ti)},tg.prototype._encodePrimitive=function(tt,ti){var ta=this._baseState;if(/str$/.test(tt))return this._encodeStr(ti,tt);if("objid"===tt&&ta.args)return this._encodeObjid(ti,ta.reverseArgs[0],ta.args[1]);if("objid"===tt)return this._encodeObjid(ti,null,null);if("gentime"===tt||"utctime"===tt)return this._encodeTime(ti,tt);if("null_"===tt)return this._encodeNull();if("int"===tt||"enum"===tt)return this._encodeInt(ti,ta.args&&ta.reverseArgs[0]);if("bool"===tt)return this._encodeBool(ti);else if("objDesc"===tt)return this._encodeStr(ti,tt);else throw Error("Unsupported tag: "+tt)},tg.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)},tg.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(tt)}},1293:function(tt,ti,ta){var ts=ta(3782);function tc(tt){this._reporterState={obj:null,path:[],options:tt||{},errors:[]}}function tu(tt,ti){this.path=tt,this.rethrow(ti)}ti.b=tc,tc.prototype.isError=function(tt){return tt instanceof tu},tc.prototype.save=function(){var tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}},tc.prototype.restore=function(tt){var ti=this._reporterState;ti.obj=tt.obj,ti.path=ti.path.slice(0,tt.pathLen)},tc.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)},tc.prototype.exitKey=function(tt){var ti=this._reporterState;ti.path=ti.path.slice(0,tt-1)},tc.prototype.leaveKey=function(tt,ti,ta){var ts=this._reporterState;this.exitKey(tt),null!==ts.obj&&(ts.obj[ti]=ta)},tc.prototype.path=function(){return this._reporterState.path.join("/")},tc.prototype.enterObject=function(){var tt=this._reporterState,ti=tt.obj;return tt.obj={},ti},tc.prototype.leaveObject=function(tt){var ti=this._reporterState,ta=ti.obj;return ti.obj=tt,ta},tc.prototype.error=function(tt){var ti,ta=this._reporterState,ts=tt instanceof tu;if(ti=ts?tt:new tu(ta.path.map(function(tt){return"["+JSON.stringify(tt)+"]"}).join(""),tt.message||tt,tt.stack),!ta.options.partial)throw ti;return ts||ta.errors.push(ti),ti},tc.prototype.wrapResult=function(tt){var ti=this._reporterState;return ti.options.partial?{result:this.isError(tt)?null:tt,errors:ti.errors}:tt},ts(tu,Error),tu.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,tu),!this.stack)try{throw Error(this.message)}catch(tt){this.stack=tt.stack}return this}},9791:function(tt,ti,ta){var ts=ta(7335);ti.tagClass={0:"universal",1:"application",2:"context",3:"private"},ti.tagClassByName=ts._reverse(ti.tagClass),ti.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ti.tagByName=ts._reverse(ti.tag)},7335:function(tt,ti,ta){var ts=ti;ts._reverse=function(tt){var ti={};return Object.keys(tt).forEach(function(ta){(0|ta)==ta&&(ta|=0),ti[tt[ta]]=ta}),ti},ts.der=ta(9791)},2259:function(tt,ti,ta){var ts=ta(3782),tc=ta(7160),tu=tc.base,td=tc.bignum,tp=tc.constants.der;function tv(tt){this.enc="der",this.name=tt.name,this.entity=tt,this.tree=new tb,this.tree._init(tt.body)}function tb(tt){tu.Node.call(this,"der",tt)}function tg(tt,ti){var ta=tt.readUInt8(ti);if(tt.isError(ta))return ta;var ts=tp.tagClass[ta>>6],tc=(32&ta)==0;if((31&ta)==31){var tu=ta;for(ta=0;(128&tu)==128;){if(tu=tt.readUInt8(ti),tt.isError(tu))return tu;ta<<=7,ta|=127&tu}}else ta&=31;var td=tp.tag[ta];return{cls:ts,primitive:tc,tag:ta,tagStr:td}}function t_(tt,ti,ta){var ts=tt.readUInt8(ta);if(tt.isError(ts))return ts;if(!ti&&128===ts)return null;if((128&ts)==0)return ts;var tc=127&ts;if(tc>4)return tt.error("length octect is too long");ts=0;for(var tu=0;tu=31?ts.error("Multi-octet tag encoding unsupported"):(ti||(tc|=32),tc|=tp.tagClassByName[ta||"universal"]<<6)}tt.exports=tv,tv.prototype.encode=function(tt,ti){return this.tree._encode(tt,ti).join()},ts(tb,td.Node),tb.prototype._encodeComposite=function(tt,ti,ta,ts){var tu=t_(tt,ti,ta,this.reporter);if(ts.length<128){var td=new tc(2);return td[0]=tu,td[1]=ts.length,this._createEncoderBuffer([td,ts])}for(var tp=1,tv=ts.length;tv>=256;tv>>=8)tp++;var td=new tc(2+tp);td[0]=tu,td[1]=128|tp;for(var tv=1+tp,tb=ts.length;tb>0;tv--,tb>>=8)td[tv]=255&tb;return this._createEncoderBuffer([td,ts])},tb.prototype._encodeStr=function(tt,ti){if("bitstr"===ti)return this._createEncoderBuffer([0|tt.unused,tt.data]);if("bmpstr"===ti){for(var ta=new tc(2*tt.length),ts=0;ts=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,40*tt[0]+tt[1])}for(var tu=0,ts=0;ts=128;td>>=7)tu++}for(var tp=new tc(tu),tv=tp.length-1,ts=tt.length-1;ts>=0;ts--){var td=tt[ts];for(tp[tv--]=127&td;(td>>=7)>0;)tp[tv--]=128|127&td}return this._createEncoderBuffer(tp)},tb.prototype._encodeTime=function(tt,ti){var ta,ts=new Date(tt);return"gentime"===ti?ta=[tg(ts.getFullYear()),tg(ts.getUTCMonth()+1),tg(ts.getUTCDate()),tg(ts.getUTCHours()),tg(ts.getUTCMinutes()),tg(ts.getUTCSeconds()),"Z"].join(""):"utctime"===ti?ta=[tg(ts.getFullYear()%100),tg(ts.getUTCMonth()+1),tg(ts.getUTCDate()),tg(ts.getUTCHours()),tg(ts.getUTCMinutes()),tg(ts.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+ti+" time is not supported yet"),this._encodeStr(ta,"octstr")},tb.prototype._encodeNull=function(){return this._createEncoderBuffer("")},tb.prototype._encodeInt=function(tt,ti){if("string"==typeof tt){if(!ti)return this.reporter.error("String int or enum given, but no values map");if(!ti.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=ti[tt]}if("number"!=typeof tt&&!tc.isBuffer(tt)){var ta=tt.toArray();!tt.sign&&128&ta[0]&&ta.unshift(0),tt=new tc(ta)}if(tc.isBuffer(tt)){var ts=tt.length;0===tt.length&&ts++;var tu=new tc(ts);return tt.copy(tu),0===tt.length&&(tu[0]=0),this._createEncoderBuffer(tu)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);for(var ts=1,td=tt;td>=256;td>>=8)ts++;for(var tu=Array(ts),td=tu.length-1;td>=0;td--)tu[td]=255&tt,tt>>=8;return 128&tu[0]&&tu.unshift(0),this._createEncoderBuffer(new tc(tu))},tb.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)},tb.prototype._use=function(tt,ti){return"function"==typeof tt&&(tt=tt(ti)),tt._getEncoder("der").tree},tb.prototype._skipDefault=function(tt,ti,ta){var ts,tc=this._baseState;if(null===tc.default)return!1;var tu=tt.join();if(void 0===tc.defaultBuffer&&(tc.defaultBuffer=this._encodeValue(tc.default,ti,ta).join()),tu.length!==tc.defaultBuffer.length)return!1;for(ts=0;ts=49&&td<=54?ts|=td-49+10:td>=17&&td<=22?ts|=td-17+10:ts|=15&td}return ts}function tp(tt,ti,ta,ts){for(var tc=0,tu=Math.min(tt.length,ta),td=ti;td=49?tc+=tp-49+10:tp>=17?tc+=tp-17+10:tc+=tp}return tc}tu.isBN=function(tt){return tt instanceof tu||null!==tt&&"object"==typeof tt&&tt.constructor.wordSize===tu.wordSize&&Array.isArray(tt.words)},tu.max=function(tt,ti){return tt.cmp(ti)>0?tt:ti},tu.min=function(tt,ti){return 0>tt.cmp(ti)?tt:ti},tu.prototype._init=function(tt,ti,ta){if("number"==typeof tt)return this._initNumber(tt,ti,ta);if("object"==typeof tt)return this._initArray(tt,ti,ta);"hex"===ti&&(ti=16),ts(ti===(0|ti)&&ti>=2&&ti<=36);var tc=0;"-"===(tt=tt.toString().replace(/\s+/g,""))[0]&&tc++,16===ti?this._parseHex(tt,tc):this._parseBase(tt,ti,tc),"-"===tt[0]&&(this.negative=1),this.strip(),"le"===ta&&this._initArray(this.toArray(),ti,ta)},tu.prototype._initNumber=function(tt,ti,ta){tt<0&&(this.negative=1,tt=-tt),tt<67108864?(this.words=[67108863&tt],this.length=1):tt<4503599627370496?(this.words=[67108863&tt,tt/67108864&67108863],this.length=2):(ts(tt<9007199254740992),this.words=[67108863&tt,tt/67108864&67108863,1],this.length=3),"le"===ta&&this._initArray(this.toArray(),ti,ta)},tu.prototype._initArray=function(tt,ti,ta){if(ts("number"==typeof tt.length),tt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(tt.length/3),this.words=Array(this.length);for(var tc,tu,td=0;td=0;td-=3)tu=tt[td]|tt[td-1]<<8|tt[td-2]<<16,this.words[tc]|=tu<>>26-tp&67108863,(tp+=24)>=26&&(tp-=26,tc++);else if("le"===ta)for(td=0,tc=0;td>>26-tp&67108863,(tp+=24)>=26&&(tp-=26,tc++);return this.strip()},tu.prototype._parseHex=function(tt,ti){this.length=Math.ceil((tt.length-ti)/6),this.words=Array(this.length);for(var ta,ts,tc=0;tc=ti;tc-=6)ts=td(tt,tc,tc+6),this.words[ta]|=ts<>>26-tu&4194303,(tu+=24)>=26&&(tu-=26,ta++);tc+6!==ti&&(ts=td(tt,ti,tc+6),this.words[ta]|=ts<>>26-tu&4194303),this.strip()},tu.prototype._parseBase=function(tt,ti,ta){this.words=[0],this.length=1;for(var ts=0,tc=1;tc<=67108863;tc*=ti)ts++;ts--,tc=tc/ti|0;for(var tu=tt.length-ta,td=tu%ts,tv=Math.min(tu,tu-td)+ta,tb=0,tg=ta;tg1&&0===this.words[this.length-1];)this.length--;return this._normSign()},tu.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},tu.prototype.inspect=function(){return(this.red?""};var tv,tb=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],tg=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],t_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function tE(tt){for(var ti=Array(tt.bitLength()),ta=0;ta>>tc}return ti}function tS(tt,ti,ta){ta.negative=ti.negative^tt.negative;var ts=tt.length+ti.length|0;ta.length=ts,ts=ts-1|0;var tc=0|tt.words[0],tu=0|ti.words[0],td=tc*tu,tp=67108863&td,tv=td/67108864|0;ta.words[0]=tp;for(var tb=1;tb>>26,t_=67108863&tv,tE=Math.min(tb,ti.length-1),tS=Math.max(0,tb-tt.length+1);tS<=tE;tS++){var tA=tb-tS|0;tg+=(td=(tc=0|tt.words[tA])*(tu=0|ti.words[tS])+t_)/67108864|0,t_=67108863&td}ta.words[tb]=0|t_,tv=0|tg}return 0!==tv?ta.words[tb]=0|tv:ta.length--,ta.strip()}tu.prototype.toString=function(tt,ti){if(ti=0|ti||1,16===(tt=tt||10)||"hex"===tt){ta="";for(var ta,tc=0,tu=0,td=0;td>>24-tc&16777215)||td!==this.length-1?tb[6-tv.length]+tv+ta:tv+ta,(tc+=2)>=26&&(tc-=26,td--)}for(0!==tu&&(ta=tu.toString(16)+ta);ta.length%ti!=0;)ta="0"+ta;return 0!==this.negative&&(ta="-"+ta),ta}if(tt===(0|tt)&&tt>=2&&tt<=36){var tE=tg[tt],tS=t_[tt];ta="";var tA=this.clone();for(tA.negative=0;!tA.isZero();){var tT=tA.modn(tS).toString(tt);ta=(tA=tA.idivn(tS)).isZero()?tT+ta:tb[tE-tT.length]+tT+ta}for(this.isZero()&&(ta="0"+ta);ta.length%ti!=0;)ta="0"+ta;return 0!==this.negative&&(ta="-"+ta),ta}ts(!1,"Base should be between 2 and 36")},tu.prototype.toNumber=function(){var tt=this.words[0];return 2===this.length?tt+=67108864*this.words[1]:3===this.length&&1===this.words[2]?tt+=4503599627370496+67108864*this.words[1]:this.length>2&&ts(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-tt:tt},tu.prototype.toJSON=function(){return this.toString(16)},tu.prototype.toBuffer=function(tt,ti){return ts(void 0!==tv),this.toArrayLike(tv,tt,ti)},tu.prototype.toArray=function(tt,ti){return this.toArrayLike(Array,tt,ti)},tu.prototype.toArrayLike=function(tt,ti,ta){var tc,tu,td=this.byteLength(),tp=ta||Math.max(1,td);ts(td<=tp,"byte array longer than desired length"),ts(tp>0,"Requested array length <= 0"),this.strip();var tv="le"===ti,tb=new tt(tp),tg=this.clone();if(tv){for(tu=0;!tg.isZero();tu++)tc=tg.andln(255),tg.iushrn(8),tb[tu]=tc;for(;tu=4096&&(ta+=13,ti>>>=13),ti>=64&&(ta+=7,ti>>>=7),ti>=8&&(ta+=4,ti>>>=4),ti>=2&&(ta+=2,ti>>>=2),ta+ti},tu.prototype._zeroBits=function(tt){if(0===tt)return 26;var ti=tt,ta=0;return(8191&ti)==0&&(ta+=13,ti>>>=13),(127&ti)==0&&(ta+=7,ti>>>=7),(15&ti)==0&&(ta+=4,ti>>>=4),(3&ti)==0&&(ta+=2,ti>>>=2),(1&ti)==0&&ta++,ta},tu.prototype.bitLength=function(){var tt=this.words[this.length-1],ti=this._countBits(tt);return(this.length-1)*26+ti},tu.prototype.zeroBits=function(){if(this.isZero())return 0;for(var tt=0,ti=0;titt.length?this.clone().ior(tt):tt.clone().ior(this)},tu.prototype.uor=function(tt){return this.length>tt.length?this.clone().iuor(tt):tt.clone().iuor(this)},tu.prototype.iuand=function(tt){var ti;ti=this.length>tt.length?tt:this;for(var ta=0;tatt.length?this.clone().iand(tt):tt.clone().iand(this)},tu.prototype.uand=function(tt){return this.length>tt.length?this.clone().iuand(tt):tt.clone().iuand(this)},tu.prototype.iuxor=function(tt){this.length>tt.length?(ti=this,ta=tt):(ti=tt,ta=this);for(var ti,ta,ts=0;tstt.length?this.clone().ixor(tt):tt.clone().ixor(this)},tu.prototype.uxor=function(tt){return this.length>tt.length?this.clone().iuxor(tt):tt.clone().iuxor(this)},tu.prototype.inotn=function(tt){ts("number"==typeof tt&&tt>=0);var ti=0|Math.ceil(tt/26),ta=tt%26;this._expand(ti),ta>0&&ti--;for(var tc=0;tc0&&(this.words[tc]=~this.words[tc]&67108863>>26-ta),this.strip()},tu.prototype.notn=function(tt){return this.clone().inotn(tt)},tu.prototype.setn=function(tt,ti){ts("number"==typeof tt&&tt>=0);var ta=tt/26|0,tc=tt%26;return this._expand(ta+1),ti?this.words[ta]=this.words[ta]|1<tt.length?(ta=this,ts=tt):(ta=tt,ts=this);for(var ti,ta,ts,tc=0,tu=0;tu>>26;for(;0!==tc&&tu>>26;if(this.length=ta.length,0!==tc)this.words[this.length]=tc,this.length++;else if(ta!==this)for(;tutt.length?this.clone().iadd(tt):tt.clone().iadd(this)},tu.prototype.isub=function(tt){if(0!==tt.negative){tt.negative=0;var ti,ta,ts=this.iadd(tt);return tt.negative=1,ts._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(tt),this.negative=1,this._normSign();var tc=this.cmp(tt);if(0===tc)return this.negative=0,this.length=1,this.words[0]=0,this;tc>0?(ti=this,ta=tt):(ti=tt,ta=this);for(var tu=0,td=0;td>26,this.words[td]=67108863&ts;for(;0!==tu&&td>26,this.words[td]=67108863&ts;if(0===tu&&td>>13,tS=0|td[1],tA=8191&tS,tT=tS>>>13,tM=0|td[2],tk=8191&tM,tR=tM>>>13,tC=0|td[3],tI=8191&tC,tP=tC>>>13,tO=0|td[4],tN=8191&tO,tB=tO>>>13,tL=0|td[5],tD=8191&tL,tj=tL>>>13,tU=0|td[6],tF=8191&tU,tG=tU>>>13,tH=0|td[7],tz=8191&tH,tV=tH>>>13,tq=0|td[8],tW=8191&tq,tY=tq>>>13,tX=0|td[9],tQ=8191&tX,tK=tX>>>13,tZ=0|tp[0],tJ=8191&tZ,t$=tZ>>>13,t0=0|tp[1],t1=8191&t0,t2=t0>>>13,t3=0|tp[2],t8=8191&t3,t5=t3>>>13,t4=0|tp[3],t6=8191&t4,t7=t4>>>13,t9=0|tp[4],et=8191&t9,er=t9>>>13,ei=0|tp[5],ea=8191&ei,eo=ei>>>13,es=0|tp[6],ec=8191&es,eu=es>>>13,eh=0|tp[7],ed=8191&eh,ef=eh>>>13,ep=0|tp[8],ev=8191&ep,eb=ep>>>13,eg=0|tp[9],ey=8191&eg,em=eg>>>13;ta.negative=tt.negative^ti.negative,ta.length=19;var e_=(tb+(ts=Math.imul(t_,tJ))|0)+((8191&(tc=(tc=Math.imul(t_,t$))+Math.imul(tE,tJ)|0))<<13)|0;tb=((tu=Math.imul(tE,t$))+(tc>>>13)|0)+(e_>>>26)|0,e_&=67108863,ts=Math.imul(tA,tJ),tc=(tc=Math.imul(tA,t$))+Math.imul(tT,tJ)|0,tu=Math.imul(tT,t$);var ew=(tb+(ts=ts+Math.imul(t_,t1)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t2)|0)+Math.imul(tE,t1)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t2)|0)+(tc>>>13)|0)+(ew>>>26)|0,ew&=67108863,ts=Math.imul(tk,tJ),tc=(tc=Math.imul(tk,t$))+Math.imul(tR,tJ)|0,tu=Math.imul(tR,t$),ts=ts+Math.imul(tA,t1)|0,tc=(tc=tc+Math.imul(tA,t2)|0)+Math.imul(tT,t1)|0,tu=tu+Math.imul(tT,t2)|0;var ex=(tb+(ts=ts+Math.imul(t_,t8)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t5)|0)+Math.imul(tE,t8)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t5)|0)+(tc>>>13)|0)+(ex>>>26)|0,ex&=67108863,ts=Math.imul(tI,tJ),tc=(tc=Math.imul(tI,t$))+Math.imul(tP,tJ)|0,tu=Math.imul(tP,t$),ts=ts+Math.imul(tk,t1)|0,tc=(tc=tc+Math.imul(tk,t2)|0)+Math.imul(tR,t1)|0,tu=tu+Math.imul(tR,t2)|0,ts=ts+Math.imul(tA,t8)|0,tc=(tc=tc+Math.imul(tA,t5)|0)+Math.imul(tT,t8)|0,tu=tu+Math.imul(tT,t5)|0;var eE=(tb+(ts=ts+Math.imul(t_,t6)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t7)|0)+Math.imul(tE,t6)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t7)|0)+(tc>>>13)|0)+(eE>>>26)|0,eE&=67108863,ts=Math.imul(tN,tJ),tc=(tc=Math.imul(tN,t$))+Math.imul(tB,tJ)|0,tu=Math.imul(tB,t$),ts=ts+Math.imul(tI,t1)|0,tc=(tc=tc+Math.imul(tI,t2)|0)+Math.imul(tP,t1)|0,tu=tu+Math.imul(tP,t2)|0,ts=ts+Math.imul(tk,t8)|0,tc=(tc=tc+Math.imul(tk,t5)|0)+Math.imul(tR,t8)|0,tu=tu+Math.imul(tR,t5)|0,ts=ts+Math.imul(tA,t6)|0,tc=(tc=tc+Math.imul(tA,t7)|0)+Math.imul(tT,t6)|0,tu=tu+Math.imul(tT,t7)|0;var eS=(tb+(ts=ts+Math.imul(t_,et)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,er)|0)+Math.imul(tE,et)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,er)|0)+(tc>>>13)|0)+(eS>>>26)|0,eS&=67108863,ts=Math.imul(tD,tJ),tc=(tc=Math.imul(tD,t$))+Math.imul(tj,tJ)|0,tu=Math.imul(tj,t$),ts=ts+Math.imul(tN,t1)|0,tc=(tc=tc+Math.imul(tN,t2)|0)+Math.imul(tB,t1)|0,tu=tu+Math.imul(tB,t2)|0,ts=ts+Math.imul(tI,t8)|0,tc=(tc=tc+Math.imul(tI,t5)|0)+Math.imul(tP,t8)|0,tu=tu+Math.imul(tP,t5)|0,ts=ts+Math.imul(tk,t6)|0,tc=(tc=tc+Math.imul(tk,t7)|0)+Math.imul(tR,t6)|0,tu=tu+Math.imul(tR,t7)|0,ts=ts+Math.imul(tA,et)|0,tc=(tc=tc+Math.imul(tA,er)|0)+Math.imul(tT,et)|0,tu=tu+Math.imul(tT,er)|0;var eA=(tb+(ts=ts+Math.imul(t_,ea)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eo)|0)+Math.imul(tE,ea)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eo)|0)+(tc>>>13)|0)+(eA>>>26)|0,eA&=67108863,ts=Math.imul(tF,tJ),tc=(tc=Math.imul(tF,t$))+Math.imul(tG,tJ)|0,tu=Math.imul(tG,t$),ts=ts+Math.imul(tD,t1)|0,tc=(tc=tc+Math.imul(tD,t2)|0)+Math.imul(tj,t1)|0,tu=tu+Math.imul(tj,t2)|0,ts=ts+Math.imul(tN,t8)|0,tc=(tc=tc+Math.imul(tN,t5)|0)+Math.imul(tB,t8)|0,tu=tu+Math.imul(tB,t5)|0,ts=ts+Math.imul(tI,t6)|0,tc=(tc=tc+Math.imul(tI,t7)|0)+Math.imul(tP,t6)|0,tu=tu+Math.imul(tP,t7)|0,ts=ts+Math.imul(tk,et)|0,tc=(tc=tc+Math.imul(tk,er)|0)+Math.imul(tR,et)|0,tu=tu+Math.imul(tR,er)|0,ts=ts+Math.imul(tA,ea)|0,tc=(tc=tc+Math.imul(tA,eo)|0)+Math.imul(tT,ea)|0,tu=tu+Math.imul(tT,eo)|0;var eT=(tb+(ts=ts+Math.imul(t_,ec)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eu)|0)+Math.imul(tE,ec)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eu)|0)+(tc>>>13)|0)+(eT>>>26)|0,eT&=67108863,ts=Math.imul(tz,tJ),tc=(tc=Math.imul(tz,t$))+Math.imul(tV,tJ)|0,tu=Math.imul(tV,t$),ts=ts+Math.imul(tF,t1)|0,tc=(tc=tc+Math.imul(tF,t2)|0)+Math.imul(tG,t1)|0,tu=tu+Math.imul(tG,t2)|0,ts=ts+Math.imul(tD,t8)|0,tc=(tc=tc+Math.imul(tD,t5)|0)+Math.imul(tj,t8)|0,tu=tu+Math.imul(tj,t5)|0,ts=ts+Math.imul(tN,t6)|0,tc=(tc=tc+Math.imul(tN,t7)|0)+Math.imul(tB,t6)|0,tu=tu+Math.imul(tB,t7)|0,ts=ts+Math.imul(tI,et)|0,tc=(tc=tc+Math.imul(tI,er)|0)+Math.imul(tP,et)|0,tu=tu+Math.imul(tP,er)|0,ts=ts+Math.imul(tk,ea)|0,tc=(tc=tc+Math.imul(tk,eo)|0)+Math.imul(tR,ea)|0,tu=tu+Math.imul(tR,eo)|0,ts=ts+Math.imul(tA,ec)|0,tc=(tc=tc+Math.imul(tA,eu)|0)+Math.imul(tT,ec)|0,tu=tu+Math.imul(tT,eu)|0;var eM=(tb+(ts=ts+Math.imul(t_,ed)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,ef)|0)+Math.imul(tE,ed)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,ef)|0)+(tc>>>13)|0)+(eM>>>26)|0,eM&=67108863,ts=Math.imul(tW,tJ),tc=(tc=Math.imul(tW,t$))+Math.imul(tY,tJ)|0,tu=Math.imul(tY,t$),ts=ts+Math.imul(tz,t1)|0,tc=(tc=tc+Math.imul(tz,t2)|0)+Math.imul(tV,t1)|0,tu=tu+Math.imul(tV,t2)|0,ts=ts+Math.imul(tF,t8)|0,tc=(tc=tc+Math.imul(tF,t5)|0)+Math.imul(tG,t8)|0,tu=tu+Math.imul(tG,t5)|0,ts=ts+Math.imul(tD,t6)|0,tc=(tc=tc+Math.imul(tD,t7)|0)+Math.imul(tj,t6)|0,tu=tu+Math.imul(tj,t7)|0,ts=ts+Math.imul(tN,et)|0,tc=(tc=tc+Math.imul(tN,er)|0)+Math.imul(tB,et)|0,tu=tu+Math.imul(tB,er)|0,ts=ts+Math.imul(tI,ea)|0,tc=(tc=tc+Math.imul(tI,eo)|0)+Math.imul(tP,ea)|0,tu=tu+Math.imul(tP,eo)|0,ts=ts+Math.imul(tk,ec)|0,tc=(tc=tc+Math.imul(tk,eu)|0)+Math.imul(tR,ec)|0,tu=tu+Math.imul(tR,eu)|0,ts=ts+Math.imul(tA,ed)|0,tc=(tc=tc+Math.imul(tA,ef)|0)+Math.imul(tT,ed)|0,tu=tu+Math.imul(tT,ef)|0;var ek=(tb+(ts=ts+Math.imul(t_,ev)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eb)|0)+Math.imul(tE,ev)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eb)|0)+(tc>>>13)|0)+(ek>>>26)|0,ek&=67108863,ts=Math.imul(tQ,tJ),tc=(tc=Math.imul(tQ,t$))+Math.imul(tK,tJ)|0,tu=Math.imul(tK,t$),ts=ts+Math.imul(tW,t1)|0,tc=(tc=tc+Math.imul(tW,t2)|0)+Math.imul(tY,t1)|0,tu=tu+Math.imul(tY,t2)|0,ts=ts+Math.imul(tz,t8)|0,tc=(tc=tc+Math.imul(tz,t5)|0)+Math.imul(tV,t8)|0,tu=tu+Math.imul(tV,t5)|0,ts=ts+Math.imul(tF,t6)|0,tc=(tc=tc+Math.imul(tF,t7)|0)+Math.imul(tG,t6)|0,tu=tu+Math.imul(tG,t7)|0,ts=ts+Math.imul(tD,et)|0,tc=(tc=tc+Math.imul(tD,er)|0)+Math.imul(tj,et)|0,tu=tu+Math.imul(tj,er)|0,ts=ts+Math.imul(tN,ea)|0,tc=(tc=tc+Math.imul(tN,eo)|0)+Math.imul(tB,ea)|0,tu=tu+Math.imul(tB,eo)|0,ts=ts+Math.imul(tI,ec)|0,tc=(tc=tc+Math.imul(tI,eu)|0)+Math.imul(tP,ec)|0,tu=tu+Math.imul(tP,eu)|0,ts=ts+Math.imul(tk,ed)|0,tc=(tc=tc+Math.imul(tk,ef)|0)+Math.imul(tR,ed)|0,tu=tu+Math.imul(tR,ef)|0,ts=ts+Math.imul(tA,ev)|0,tc=(tc=tc+Math.imul(tA,eb)|0)+Math.imul(tT,ev)|0,tu=tu+Math.imul(tT,eb)|0;var eR=(tb+(ts=ts+Math.imul(t_,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,em)|0)+Math.imul(tE,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,em)|0)+(tc>>>13)|0)+(eR>>>26)|0,eR&=67108863,ts=Math.imul(tQ,t1),tc=(tc=Math.imul(tQ,t2))+Math.imul(tK,t1)|0,tu=Math.imul(tK,t2),ts=ts+Math.imul(tW,t8)|0,tc=(tc=tc+Math.imul(tW,t5)|0)+Math.imul(tY,t8)|0,tu=tu+Math.imul(tY,t5)|0,ts=ts+Math.imul(tz,t6)|0,tc=(tc=tc+Math.imul(tz,t7)|0)+Math.imul(tV,t6)|0,tu=tu+Math.imul(tV,t7)|0,ts=ts+Math.imul(tF,et)|0,tc=(tc=tc+Math.imul(tF,er)|0)+Math.imul(tG,et)|0,tu=tu+Math.imul(tG,er)|0,ts=ts+Math.imul(tD,ea)|0,tc=(tc=tc+Math.imul(tD,eo)|0)+Math.imul(tj,ea)|0,tu=tu+Math.imul(tj,eo)|0,ts=ts+Math.imul(tN,ec)|0,tc=(tc=tc+Math.imul(tN,eu)|0)+Math.imul(tB,ec)|0,tu=tu+Math.imul(tB,eu)|0,ts=ts+Math.imul(tI,ed)|0,tc=(tc=tc+Math.imul(tI,ef)|0)+Math.imul(tP,ed)|0,tu=tu+Math.imul(tP,ef)|0,ts=ts+Math.imul(tk,ev)|0,tc=(tc=tc+Math.imul(tk,eb)|0)+Math.imul(tR,ev)|0,tu=tu+Math.imul(tR,eb)|0;var eC=(tb+(ts=ts+Math.imul(tA,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tA,em)|0)+Math.imul(tT,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tT,em)|0)+(tc>>>13)|0)+(eC>>>26)|0,eC&=67108863,ts=Math.imul(tQ,t8),tc=(tc=Math.imul(tQ,t5))+Math.imul(tK,t8)|0,tu=Math.imul(tK,t5),ts=ts+Math.imul(tW,t6)|0,tc=(tc=tc+Math.imul(tW,t7)|0)+Math.imul(tY,t6)|0,tu=tu+Math.imul(tY,t7)|0,ts=ts+Math.imul(tz,et)|0,tc=(tc=tc+Math.imul(tz,er)|0)+Math.imul(tV,et)|0,tu=tu+Math.imul(tV,er)|0,ts=ts+Math.imul(tF,ea)|0,tc=(tc=tc+Math.imul(tF,eo)|0)+Math.imul(tG,ea)|0,tu=tu+Math.imul(tG,eo)|0,ts=ts+Math.imul(tD,ec)|0,tc=(tc=tc+Math.imul(tD,eu)|0)+Math.imul(tj,ec)|0,tu=tu+Math.imul(tj,eu)|0,ts=ts+Math.imul(tN,ed)|0,tc=(tc=tc+Math.imul(tN,ef)|0)+Math.imul(tB,ed)|0,tu=tu+Math.imul(tB,ef)|0,ts=ts+Math.imul(tI,ev)|0,tc=(tc=tc+Math.imul(tI,eb)|0)+Math.imul(tP,ev)|0,tu=tu+Math.imul(tP,eb)|0;var eI=(tb+(ts=ts+Math.imul(tk,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tk,em)|0)+Math.imul(tR,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tR,em)|0)+(tc>>>13)|0)+(eI>>>26)|0,eI&=67108863,ts=Math.imul(tQ,t6),tc=(tc=Math.imul(tQ,t7))+Math.imul(tK,t6)|0,tu=Math.imul(tK,t7),ts=ts+Math.imul(tW,et)|0,tc=(tc=tc+Math.imul(tW,er)|0)+Math.imul(tY,et)|0,tu=tu+Math.imul(tY,er)|0,ts=ts+Math.imul(tz,ea)|0,tc=(tc=tc+Math.imul(tz,eo)|0)+Math.imul(tV,ea)|0,tu=tu+Math.imul(tV,eo)|0,ts=ts+Math.imul(tF,ec)|0,tc=(tc=tc+Math.imul(tF,eu)|0)+Math.imul(tG,ec)|0,tu=tu+Math.imul(tG,eu)|0,ts=ts+Math.imul(tD,ed)|0,tc=(tc=tc+Math.imul(tD,ef)|0)+Math.imul(tj,ed)|0,tu=tu+Math.imul(tj,ef)|0,ts=ts+Math.imul(tN,ev)|0,tc=(tc=tc+Math.imul(tN,eb)|0)+Math.imul(tB,ev)|0,tu=tu+Math.imul(tB,eb)|0;var eP=(tb+(ts=ts+Math.imul(tI,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tI,em)|0)+Math.imul(tP,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tP,em)|0)+(tc>>>13)|0)+(eP>>>26)|0,eP&=67108863,ts=Math.imul(tQ,et),tc=(tc=Math.imul(tQ,er))+Math.imul(tK,et)|0,tu=Math.imul(tK,er),ts=ts+Math.imul(tW,ea)|0,tc=(tc=tc+Math.imul(tW,eo)|0)+Math.imul(tY,ea)|0,tu=tu+Math.imul(tY,eo)|0,ts=ts+Math.imul(tz,ec)|0,tc=(tc=tc+Math.imul(tz,eu)|0)+Math.imul(tV,ec)|0,tu=tu+Math.imul(tV,eu)|0,ts=ts+Math.imul(tF,ed)|0,tc=(tc=tc+Math.imul(tF,ef)|0)+Math.imul(tG,ed)|0,tu=tu+Math.imul(tG,ef)|0,ts=ts+Math.imul(tD,ev)|0,tc=(tc=tc+Math.imul(tD,eb)|0)+Math.imul(tj,ev)|0,tu=tu+Math.imul(tj,eb)|0;var eO=(tb+(ts=ts+Math.imul(tN,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tN,em)|0)+Math.imul(tB,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tB,em)|0)+(tc>>>13)|0)+(eO>>>26)|0,eO&=67108863,ts=Math.imul(tQ,ea),tc=(tc=Math.imul(tQ,eo))+Math.imul(tK,ea)|0,tu=Math.imul(tK,eo),ts=ts+Math.imul(tW,ec)|0,tc=(tc=tc+Math.imul(tW,eu)|0)+Math.imul(tY,ec)|0,tu=tu+Math.imul(tY,eu)|0,ts=ts+Math.imul(tz,ed)|0,tc=(tc=tc+Math.imul(tz,ef)|0)+Math.imul(tV,ed)|0,tu=tu+Math.imul(tV,ef)|0,ts=ts+Math.imul(tF,ev)|0,tc=(tc=tc+Math.imul(tF,eb)|0)+Math.imul(tG,ev)|0,tu=tu+Math.imul(tG,eb)|0;var eN=(tb+(ts=ts+Math.imul(tD,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tD,em)|0)+Math.imul(tj,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tj,em)|0)+(tc>>>13)|0)+(eN>>>26)|0,eN&=67108863,ts=Math.imul(tQ,ec),tc=(tc=Math.imul(tQ,eu))+Math.imul(tK,ec)|0,tu=Math.imul(tK,eu),ts=ts+Math.imul(tW,ed)|0,tc=(tc=tc+Math.imul(tW,ef)|0)+Math.imul(tY,ed)|0,tu=tu+Math.imul(tY,ef)|0,ts=ts+Math.imul(tz,ev)|0,tc=(tc=tc+Math.imul(tz,eb)|0)+Math.imul(tV,ev)|0,tu=tu+Math.imul(tV,eb)|0;var eB=(tb+(ts=ts+Math.imul(tF,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tF,em)|0)+Math.imul(tG,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tG,em)|0)+(tc>>>13)|0)+(eB>>>26)|0,eB&=67108863,ts=Math.imul(tQ,ed),tc=(tc=Math.imul(tQ,ef))+Math.imul(tK,ed)|0,tu=Math.imul(tK,ef),ts=ts+Math.imul(tW,ev)|0,tc=(tc=tc+Math.imul(tW,eb)|0)+Math.imul(tY,ev)|0,tu=tu+Math.imul(tY,eb)|0;var eL=(tb+(ts=ts+Math.imul(tz,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tz,em)|0)+Math.imul(tV,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tV,em)|0)+(tc>>>13)|0)+(eL>>>26)|0,eL&=67108863,ts=Math.imul(tQ,ev),tc=(tc=Math.imul(tQ,eb))+Math.imul(tK,ev)|0,tu=Math.imul(tK,eb);var eD=(tb+(ts=ts+Math.imul(tW,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tW,em)|0)+Math.imul(tY,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tY,em)|0)+(tc>>>13)|0)+(eD>>>26)|0,eD&=67108863;var ej=(tb+(ts=Math.imul(tQ,ey))|0)+((8191&(tc=(tc=Math.imul(tQ,em))+Math.imul(tK,ey)|0))<<13)|0;return tb=((tu=Math.imul(tK,em))+(tc>>>13)|0)+(ej>>>26)|0,ej&=67108863,tv[0]=e_,tv[1]=ew,tv[2]=ex,tv[3]=eE,tv[4]=eS,tv[5]=eA,tv[6]=eT,tv[7]=eM,tv[8]=ek,tv[9]=eR,tv[10]=eC,tv[11]=eI,tv[12]=eP,tv[13]=eO,tv[14]=eN,tv[15]=eB,tv[16]=eL,tv[17]=eD,tv[18]=ej,0!==tb&&(tv[19]=tb,ta.length++),ta};function tT(tt,ti,ta){ta.negative=ti.negative^tt.negative,ta.length=tt.length+ti.length;for(var ts=0,tc=0,tu=0;tu>>26)|0)>>>26,td&=67108863}ta.words[tu]=tp,ts=td,td=tc}return 0!==ts?ta.words[tu]=ts:ta.length--,ta.strip()}function tM(tt,ti,ta){return new tk().mulp(tt,ti,ta)}function tk(tt,ti){this.x=tt,this.y=ti}Math.imul||(tA=tS),tu.prototype.mulTo=function(tt,ti){var ta=this.length+tt.length;return 10===this.length&&10===tt.length?tA(this,tt,ti):ta<63?tS(this,tt,ti):ta<1024?tT(this,tt,ti):tM(this,tt,ti)},tk.prototype.makeRBT=function(tt){for(var ti=Array(tt),ta=tu.prototype._countBits(tt)-1,ts=0;ts>=1;return ts},tk.prototype.permute=function(tt,ti,ta,ts,tc,tu){for(var td=0;td>>=1)tc++;return 1<>>=13,ta[2*td+1]=8191&tu,tu>>>=13;for(td=2*ti;td>=26,ti+=(tc/67108864|0)+(tu>>>26),this.words[ta]=67108863&tu}return 0!==ti&&(this.words[ta]=ti,this.length++),this},tu.prototype.muln=function(tt){return this.clone().imuln(tt)},tu.prototype.sqr=function(){return this.mul(this)},tu.prototype.isqr=function(){return this.imul(this.clone())},tu.prototype.pow=function(tt){var ti=tE(tt);if(0===ti.length)return new tu(1);for(var ta=this,ts=0;ts=0);var ti,ta=tt%26,tc=(tt-ta)/26,tu=67108863>>>26-ta<<26-ta;if(0!==ta){var td=0;for(ti=0;ti>>26-ta}td&&(this.words[ti]=td,this.length++)}if(0!==tc){for(ti=this.length-1;ti>=0;ti--)this.words[ti+tc]=this.words[ti];for(ti=0;ti=0),tc=ti?(ti-ti%26)/26:0;var tc,tu=tt%26,td=Math.min((tt-tu)/26,this.length),tp=67108863^67108863>>>tu<td)for(this.length-=td,tb=0;tb=0&&(0!==tg||tb>=tc);tb--){var t_=0|this.words[tb];this.words[tb]=tg<<26-tu|t_>>>tu,tg=t_&tp}return tv&&0!==tg&&(tv.words[tv.length++]=tg),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},tu.prototype.ishrn=function(tt,ti,ta){return ts(0===this.negative),this.iushrn(tt,ti,ta)},tu.prototype.shln=function(tt){return this.clone().ishln(tt)},tu.prototype.ushln=function(tt){return this.clone().iushln(tt)},tu.prototype.shrn=function(tt){return this.clone().ishrn(tt)},tu.prototype.ushrn=function(tt){return this.clone().iushrn(tt)},tu.prototype.testn=function(tt){ts("number"==typeof tt&&tt>=0);var ti=tt%26,ta=(tt-ti)/26,tc=1<=0);var ti=tt%26,ta=(tt-ti)/26;if(ts(0===this.negative,"imaskn works only with positive numbers"),this.length<=ta)return this;if(0!==ti&&ta++,this.length=Math.min(ta,this.length),0!==ti){var tc=67108863^67108863>>>ti<=67108864;ti++)this.words[ti]-=67108864,ti===this.length-1?this.words[ti+1]=1:this.words[ti+1]++;return this.length=Math.max(this.length,ti+1),this},tu.prototype.isubn=function(tt){if(ts("number"==typeof tt),ts(tt<67108864),tt<0)return this.iaddn(-tt);if(0!==this.negative)return this.negative=0,this.iaddn(tt),this.negative=1,this;if(this.words[0]-=tt,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ti=0;ti>26)-(tv/67108864|0),this.words[tc+ta]=67108863&tu}for(;tc>26,this.words[tc+ta]=67108863&tu;if(0===tp)return this.strip();for(ts(-1===tp),tp=0,tc=0;tc>26,this.words[tc]=67108863&tu;return this.negative=1,this.strip()},tu.prototype._wordDiv=function(tt,ti){var ta,ts=this.length-tt.length,tc=this.clone(),td=tt,tp=0|td.words[td.length-1];0!=(ts=26-this._countBits(tp))&&(td=td.ushln(ts),tc.iushln(ts),tp=0|td.words[td.length-1]);var tv=tc.length-td.length;if("mod"!==ti){(ta=new tu(null)).length=tv+1,ta.words=Array(ta.length);for(var tb=0;tb=0;t_--){var tE=(0|tc.words[td.length+t_])*67108864+(0|tc.words[td.length+t_-1]);for(tE=Math.min(tE/tp|0,67108863),tc._ishlnsubmul(td,tE,t_);0!==tc.negative;)tE--,tc.negative=0,tc._ishlnsubmul(td,1,t_),tc.isZero()||(tc.negative^=1);ta&&(ta.words[t_]=tE)}return ta&&ta.strip(),tc.strip(),"div"!==ti&&0!==ts&&tc.iushrn(ts),{div:ta||null,mod:tc}},tu.prototype.divmod=function(tt,ti,ta){var tc,td,tp;return(ts(!tt.isZero()),this.isZero())?{div:new tu(0),mod:new tu(0)}:0!==this.negative&&0===tt.negative?(tp=this.neg().divmod(tt,ti),"mod"!==ti&&(tc=tp.div.neg()),"div"!==ti&&(td=tp.mod.neg(),ta&&0!==td.negative&&td.iadd(tt)),{div:tc,mod:td}):0===this.negative&&0!==tt.negative?(tp=this.divmod(tt.neg(),ti),"mod"!==ti&&(tc=tp.div.neg()),{div:tc,mod:tp.mod}):(this.negative&tt.negative)!=0?(tp=this.neg().divmod(tt.neg(),ti),"div"!==ti&&(td=tp.mod.neg(),ta&&0!==td.negative&&td.isub(tt)),{div:tp.div,mod:td}):tt.length>this.length||0>this.cmp(tt)?{div:new tu(0),mod:this}:1===tt.length?"div"===ti?{div:this.divn(tt.words[0]),mod:null}:"mod"===ti?{div:null,mod:new tu(this.modn(tt.words[0]))}:{div:this.divn(tt.words[0]),mod:new tu(this.modn(tt.words[0]))}:this._wordDiv(tt,ti)},tu.prototype.div=function(tt){return this.divmod(tt,"div",!1).div},tu.prototype.mod=function(tt){return this.divmod(tt,"mod",!1).mod},tu.prototype.umod=function(tt){return this.divmod(tt,"mod",!0).mod},tu.prototype.divRound=function(tt){var ti=this.divmod(tt);if(ti.mod.isZero())return ti.div;var ta=0!==ti.div.negative?ti.mod.isub(tt):ti.mod,ts=tt.ushrn(1),tc=tt.andln(1),tu=ta.cmp(ts);return tu<0||1===tc&&0===tu?ti.div:0!==ti.div.negative?ti.div.isubn(1):ti.div.iaddn(1)},tu.prototype.modn=function(tt){ts(tt<=67108863);for(var ti=67108864%tt,ta=0,tc=this.length-1;tc>=0;tc--)ta=(ti*ta+(0|this.words[tc]))%tt;return ta},tu.prototype.idivn=function(tt){ts(tt<=67108863);for(var ti=0,ta=this.length-1;ta>=0;ta--){var tc=(0|this.words[ta])+67108864*ti;this.words[ta]=tc/tt|0,ti=tc%tt}return this.strip()},tu.prototype.divn=function(tt){return this.clone().idivn(tt)},tu.prototype.egcd=function(tt){ts(0===tt.negative),ts(!tt.isZero());var ti=this,ta=tt.clone();ti=0!==ti.negative?ti.umod(tt):ti.clone();for(var tc=new tu(1),td=new tu(0),tp=new tu(0),tv=new tu(1),tb=0;ti.isEven()&&ta.isEven();)ti.iushrn(1),ta.iushrn(1),++tb;for(var tg=ta.clone(),t_=ti.clone();!ti.isZero();){for(var tE=0,tS=1;(ti.words[0]&tS)==0&&tE<26;++tE,tS<<=1);if(tE>0)for(ti.iushrn(tE);tE-- >0;)(tc.isOdd()||td.isOdd())&&(tc.iadd(tg),td.isub(t_)),tc.iushrn(1),td.iushrn(1);for(var tA=0,tT=1;(ta.words[0]&tT)==0&&tA<26;++tA,tT<<=1);if(tA>0)for(ta.iushrn(tA);tA-- >0;)(tp.isOdd()||tv.isOdd())&&(tp.iadd(tg),tv.isub(t_)),tp.iushrn(1),tv.iushrn(1);ti.cmp(ta)>=0?(ti.isub(ta),tc.isub(tp),td.isub(tv)):(ta.isub(ti),tp.isub(tc),tv.isub(td))}return{a:tp,b:tv,gcd:ta.iushln(tb)}},tu.prototype._invmp=function(tt){ts(0===tt.negative),ts(!tt.isZero());var ti,ta=this,tc=tt.clone();ta=0!==ta.negative?ta.umod(tt):ta.clone();for(var td=new tu(1),tp=new tu(0),tv=tc.clone();ta.cmpn(1)>0&&tc.cmpn(1)>0;){for(var tb=0,tg=1;(ta.words[0]&tg)==0&&tb<26;++tb,tg<<=1);if(tb>0)for(ta.iushrn(tb);tb-- >0;)td.isOdd()&&td.iadd(tv),td.iushrn(1);for(var t_=0,tE=1;(tc.words[0]&tE)==0&&t_<26;++t_,tE<<=1);if(t_>0)for(tc.iushrn(t_);t_-- >0;)tp.isOdd()&&tp.iadd(tv),tp.iushrn(1);ta.cmp(tc)>=0?(ta.isub(tc),td.isub(tp)):(tc.isub(ta),tp.isub(td))}return 0>(ti=0===ta.cmpn(1)?td:tp).cmpn(0)&&ti.iadd(tt),ti},tu.prototype.gcd=function(tt){if(this.isZero())return tt.abs();if(tt.isZero())return this.abs();var ti=this.clone(),ta=tt.clone();ti.negative=0,ta.negative=0;for(var ts=0;ti.isEven()&&ta.isEven();ts++)ti.iushrn(1),ta.iushrn(1);for(;;){for(;ti.isEven();)ti.iushrn(1);for(;ta.isEven();)ta.iushrn(1);var tc=ti.cmp(ta);if(tc<0){var tu=ti;ti=ta,ta=tu}else if(0===tc||0===ta.cmpn(1))break;ti.isub(ta)}return ta.iushln(ts)},tu.prototype.invm=function(tt){return this.egcd(tt).a.umod(tt)},tu.prototype.isEven=function(){return(1&this.words[0])==0},tu.prototype.isOdd=function(){return(1&this.words[0])==1},tu.prototype.andln=function(tt){return this.words[0]&tt},tu.prototype.bincn=function(tt){ts("number"==typeof tt);var ti=tt%26,ta=(tt-ti)/26,tc=1<>>26,tp&=67108863,this.words[td]=tp}return 0!==tu&&(this.words[td]=tu,this.length++),this},tu.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},tu.prototype.cmpn=function(tt){var ti,ta=tt<0;if(0!==this.negative&&!ta)return -1;if(0===this.negative&&ta)return 1;if(this.strip(),this.length>1)ti=1;else{ta&&(tt=-tt),ts(tt<=67108863,"Number is too big");var tc=0|this.words[0];ti=tc===tt?0:tctt.length)return 1;if(this.length=0;ta--){var ts=0|this.words[ta],tc=0|tt.words[ta];if(ts!==tc){tstc&&(ti=1);break}}return ti},tu.prototype.gtn=function(tt){return 1===this.cmpn(tt)},tu.prototype.gt=function(tt){return 1===this.cmp(tt)},tu.prototype.gten=function(tt){return this.cmpn(tt)>=0},tu.prototype.gte=function(tt){return this.cmp(tt)>=0},tu.prototype.ltn=function(tt){return -1===this.cmpn(tt)},tu.prototype.lt=function(tt){return -1===this.cmp(tt)},tu.prototype.lten=function(tt){return 0>=this.cmpn(tt)},tu.prototype.lte=function(tt){return 0>=this.cmp(tt)},tu.prototype.eqn=function(tt){return 0===this.cmpn(tt)},tu.prototype.eq=function(tt){return 0===this.cmp(tt)},tu.red=function(tt){return new tB(tt)},tu.prototype.toRed=function(tt){return ts(!this.red,"Already a number in reduction context"),ts(0===this.negative,"red works only with positives"),tt.convertTo(this)._forceRed(tt)},tu.prototype.fromRed=function(){return ts(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tu.prototype._forceRed=function(tt){return this.red=tt,this},tu.prototype.forceRed=function(tt){return ts(!this.red,"Already a number in reduction context"),this._forceRed(tt)},tu.prototype.redAdd=function(tt){return ts(this.red,"redAdd works only with red numbers"),this.red.add(this,tt)},tu.prototype.redIAdd=function(tt){return ts(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,tt)},tu.prototype.redSub=function(tt){return ts(this.red,"redSub works only with red numbers"),this.red.sub(this,tt)},tu.prototype.redISub=function(tt){return ts(this.red,"redISub works only with red numbers"),this.red.isub(this,tt)},tu.prototype.redShl=function(tt){return ts(this.red,"redShl works only with red numbers"),this.red.shl(this,tt)},tu.prototype.redMul=function(tt){return ts(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.mul(this,tt)},tu.prototype.redIMul=function(tt){return ts(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.imul(this,tt)},tu.prototype.redSqr=function(){return ts(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tu.prototype.redISqr=function(){return ts(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tu.prototype.redSqrt=function(){return ts(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tu.prototype.redInvm=function(){return ts(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tu.prototype.redNeg=function(){return ts(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tu.prototype.redPow=function(tt){return ts(this.red&&!tt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,tt)};var tR={k256:null,p224:null,p192:null,p25519:null};function tC(tt,ti){this.name=tt,this.p=new tu(ti,16),this.n=this.p.bitLength(),this.k=new tu(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function tI(){tC.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function tP(){tC.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function tO(){tC.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function tN(){tC.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function tB(tt){if("string"==typeof tt){var ti=tu._prime(tt);this.m=ti.p,this.prime=ti}else ts(tt.gtn(1),"modulus must be greater than 1"),this.m=tt,this.prime=null}function tL(tt){tB.call(this,tt),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new tu(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}tC.prototype._tmp=function(){var tt=new tu(null);return tt.words=Array(Math.ceil(this.n/13)),tt},tC.prototype.ireduce=function(tt){var ti,ta=tt;do this.split(ta,this.tmp),ti=(ta=(ta=this.imulK(ta)).iadd(this.tmp)).bitLength();while(ti>this.n);var ts=ti0?ta.isub(this.p):void 0!==ta.strip?ta.strip():ta._strip(),ta},tC.prototype.split=function(tt,ti){tt.iushrn(this.n,0,ti)},tC.prototype.imulK=function(tt){return tt.imul(this.k)},tc(tI,tC),tI.prototype.split=function(tt,ti){for(var ta=4194303,ts=Math.min(tt.length,9),tc=0;tc>>22,tu=td}tu>>>=22,tt.words[tc-10]=tu,0===tu&&tt.length>10?tt.length-=10:tt.length-=9},tI.prototype.imulK=function(tt){tt.words[tt.length]=0,tt.words[tt.length+1]=0,tt.length+=2;for(var ti=0,ta=0;ta>>=26,tt.words[ta]=tc,ti=ts}return 0!==ti&&(tt.words[tt.length++]=ti),tt},tu._prime=function(tt){var ti;if(tR[tt])return tR[tt];if("k256"===tt)ti=new tI;else if("p224"===tt)ti=new tP;else if("p192"===tt)ti=new tO;else if("p25519"===tt)ti=new tN;else throw Error("Unknown prime "+tt);return tR[tt]=ti,ti},tB.prototype._verify1=function(tt){ts(0===tt.negative,"red works only with positives"),ts(tt.red,"red works only with red numbers")},tB.prototype._verify2=function(tt,ti){ts((tt.negative|ti.negative)==0,"red works only with positives"),ts(tt.red&&tt.red===ti.red,"red works only with red numbers")},tB.prototype.imod=function(tt){return this.prime?this.prime.ireduce(tt)._forceRed(this):tt.umod(this.m)._forceRed(this)},tB.prototype.neg=function(tt){return tt.isZero()?tt.clone():this.m.sub(tt)._forceRed(this)},tB.prototype.add=function(tt,ti){this._verify2(tt,ti);var ta=tt.add(ti);return ta.cmp(this.m)>=0&&ta.isub(this.m),ta._forceRed(this)},tB.prototype.iadd=function(tt,ti){this._verify2(tt,ti);var ta=tt.iadd(ti);return ta.cmp(this.m)>=0&&ta.isub(this.m),ta},tB.prototype.sub=function(tt,ti){this._verify2(tt,ti);var ta=tt.sub(ti);return 0>ta.cmpn(0)&&ta.iadd(this.m),ta._forceRed(this)},tB.prototype.isub=function(tt,ti){this._verify2(tt,ti);var ta=tt.isub(ti);return 0>ta.cmpn(0)&&ta.iadd(this.m),ta},tB.prototype.shl=function(tt,ti){return this._verify1(tt),this.imod(tt.ushln(ti))},tB.prototype.imul=function(tt,ti){return this._verify2(tt,ti),this.imod(tt.imul(ti))},tB.prototype.mul=function(tt,ti){return this._verify2(tt,ti),this.imod(tt.mul(ti))},tB.prototype.isqr=function(tt){return this.imul(tt,tt.clone())},tB.prototype.sqr=function(tt){return this.mul(tt,tt)},tB.prototype.sqrt=function(tt){if(tt.isZero())return tt.clone();var ti=this.m.andln(3);if(ts(ti%2==1),3===ti){var ta=this.m.add(new tu(1)).iushrn(2);return this.pow(tt,ta)}for(var tc=this.m.subn(1),td=0;!tc.isZero()&&0===tc.andln(1);)td++,tc.iushrn(1);ts(!tc.isZero());var tp=new tu(1).toRed(this),tv=tp.redNeg(),tb=this.m.subn(1).iushrn(1),tg=this.m.bitLength();for(tg=new tu(2*tg*tg).toRed(this);0!==this.pow(tg,tb).cmp(tv);)tg.redIAdd(tv);for(var t_=this.pow(tg,tc),tE=this.pow(tt,tc.addn(1).iushrn(1)),tS=this.pow(tt,tc),tA=td;0!==tS.cmp(tp);){for(var tT=tS,tM=0;0!==tT.cmp(tp);tM++)tT=tT.redSqr();ts(tM=0;tc--){for(var tg=ti.words[tc],t_=tb-1;t_>=0;t_--){var tE=tg>>t_&1;if(td!==ts[0]&&(td=this.sqr(td)),0===tE&&0===tp){tv=0;continue}tp<<=1,tp|=tE,(++tv===ta||0===tc&&0===t_)&&(td=this.mul(td,ts[tp]),tv=0,tp=0)}tb=26}return td},tB.prototype.convertTo=function(tt){var ti=tt.umod(this.m);return ti===tt?ti.clone():ti},tB.prototype.convertFrom=function(tt){var ti=tt.clone();return ti.red=null,ti},tu.mont=function(tt){return new tL(tt)},tc(tL,tB),tL.prototype.convertTo=function(tt){return this.imod(tt.ushln(this.shift))},tL.prototype.convertFrom=function(tt){var ti=this.imod(tt.mul(this.rinv));return ti.red=null,ti},tL.prototype.imul=function(tt,ti){if(tt.isZero()||ti.isZero())return tt.words[0]=0,tt.length=1,tt;var ta=tt.imul(ti),ts=ta.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),tc=ta.isub(ts).iushrn(this.shift),tu=tc;return tc.cmp(this.m)>=0?tu=tc.isub(this.m):0>tc.cmpn(0)&&(tu=tc.iadd(this.m)),tu._forceRed(this)},tL.prototype.mul=function(tt,ti){if(tt.isZero()||ti.isZero())return new tu(0)._forceRed(this);var ta=tt.mul(ti),ts=ta.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),tc=ta.isub(ts).iushrn(this.shift),td=tc;return tc.cmp(this.m)>=0?td=tc.isub(this.m):0>tc.cmpn(0)&&(td=tc.iadd(this.m)),td._forceRed(this)},tL.prototype.invm=function(tt){return this.imod(tt._invmp(this.m).mul(this.r2))._forceRed(this)}}(tt=ta.nmd(tt),this)},1670:function(tt,ti,ta){!function(tt,ti){"use strict";function ts(tt,ti){if(!tt)throw Error(ti||"Assertion failed")}function tc(tt,ti){tt.super_=ti;var ta=function(){};ta.prototype=ti.prototype,tt.prototype=new ta,tt.prototype.constructor=tt}function tu(tt,ti,ta){if(tu.isBN(tt))return tt;this.negative=0,this.words=null,this.length=0,this.red=null,null!==tt&&(("le"===ti||"be"===ti)&&(ta=ti,ti=10),this._init(tt||0,ti||10,ta||"be"))}"object"==typeof tt?tt.exports=tu:ti.BN=tu,tu.BN=tu,tu.wordSize=26;try{tg=ta(4300).Buffer}catch(tt){}function td(tt,ti,ta){for(var tc=0,tu=Math.min(tt.length,ta),td=0,tp=ti;tp=49&&tb<=54?tb-49+10:tb>=17&&tb<=22?tb-17+10:tb,td|=tv}return ts(!(240&td),"Invalid character in "+tt),tc}function tp(tt,ti,ta,tc){for(var tu=0,td=0,tp=Math.min(tt.length,ta),tv=ti;tv=49?tb-49+10:tb>=17?tb-17+10:tb,ts(tb>=0&&td"}tu.isBN=function(tt){return tt instanceof tu||null!==tt&&"object"==typeof tt&&tt.constructor.wordSize===tu.wordSize&&Array.isArray(tt.words)},tu.max=function(tt,ti){return tt.cmp(ti)>0?tt:ti},tu.min=function(tt,ti){return 0>tt.cmp(ti)?tt:ti},tu.prototype._init=function(tt,ti,ta){if("number"==typeof tt)return this._initNumber(tt,ti,ta);if("object"==typeof tt)return this._initArray(tt,ti,ta);"hex"===ti&&(ti=16),ts(ti===(0|ti)&&ti>=2&&ti<=36);var tc=0;"-"===(tt=tt.toString().replace(/\s+/g,""))[0]&&tc++,16===ti?this._parseHex(tt,tc):this._parseBase(tt,ti,tc),"-"===tt[0]&&(this.negative=1),this._strip(),"le"===ta&&this._initArray(this.toArray(),ti,ta)},tu.prototype._initNumber=function(tt,ti,ta){tt<0&&(this.negative=1,tt=-tt),tt<67108864?(this.words=[67108863&tt],this.length=1):tt<4503599627370496?(this.words=[67108863&tt,tt/67108864&67108863],this.length=2):(ts(tt<9007199254740992),this.words=[67108863&tt,tt/67108864&67108863,1],this.length=3),"le"===ta&&this._initArray(this.toArray(),ti,ta)},tu.prototype._initArray=function(tt,ti,ta){if(ts("number"==typeof tt.length),tt.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(tt.length/3),this.words=Array(this.length);for(var tc,tu,td=0;td=0;td-=3)tu=tt[td]|tt[td-1]<<8|tt[td-2]<<16,this.words[tc]|=tu<>>26-tp&67108863,(tp+=24)>=26&&(tp-=26,tc++);else if("le"===ta)for(td=0,tc=0;td>>26-tp&67108863,(tp+=24)>=26&&(tp-=26,tc++);return this._strip()},tu.prototype._parseHex=function(tt,ti){this.length=Math.ceil((tt.length-ti)/6),this.words=Array(this.length);for(var ta,ts,tc=0;tc=ti;tc-=6)ts=td(tt,tc,tc+6),this.words[ta]|=ts<>>26-tu&4194303,(tu+=24)>=26&&(tu-=26,ta++);tc+6!==ti&&(ts=td(tt,ti,tc+6),this.words[ta]|=ts<>>26-tu&4194303),this._strip()},tu.prototype._parseBase=function(tt,ti,ta){this.words=[0],this.length=1;for(var ts=0,tc=1;tc<=67108863;tc*=ti)ts++;ts--,tc=tc/ti|0;for(var tu=tt.length-ta,td=tu%ts,tv=Math.min(tu,tu-td)+ta,tb=0,tg=ta;tg1&&0===this.words[this.length-1];)this.length--;return this._normSign()},tu.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?tu.prototype[Symbol.for("nodejs.util.inspect.custom")]=tb:tu.prototype.inspect=tb;var tg,t_=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],tE=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],tS=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];tu.prototype.toString=function(tt,ti){if(ti=0|ti||1,16===(tt=tt||10)||"hex"===tt){ta="";for(var ta,tc=0,tu=0,td=0;td>>24-tc&16777215)||td!==this.length-1?t_[6-tv.length]+tv+ta:tv+ta,(tc+=2)>=26&&(tc-=26,td--)}for(0!==tu&&(ta=tu.toString(16)+ta);ta.length%ti!=0;)ta="0"+ta;return 0!==this.negative&&(ta="-"+ta),ta}if(tt===(0|tt)&&tt>=2&&tt<=36){var tb=tE[tt],tg=tS[tt];ta="";var tA=this.clone();for(tA.negative=0;!tA.isZero();){var tT=tA.modrn(tg).toString(tt);ta=(tA=tA.idivn(tg)).isZero()?tT+ta:t_[tb-tT.length]+tT+ta}for(this.isZero()&&(ta="0"+ta);ta.length%ti!=0;)ta="0"+ta;return 0!==this.negative&&(ta="-"+ta),ta}ts(!1,"Base should be between 2 and 36")},tu.prototype.toNumber=function(){var tt=this.words[0];return 2===this.length?tt+=67108864*this.words[1]:3===this.length&&1===this.words[2]?tt+=4503599627370496+67108864*this.words[1]:this.length>2&&ts(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-tt:tt},tu.prototype.toJSON=function(){return this.toString(16,2)},tg&&(tu.prototype.toBuffer=function(tt,ti){return this.toArrayLike(tg,tt,ti)}),tu.prototype.toArray=function(tt,ti){return this.toArrayLike(Array,tt,ti)};var tA=function(tt,ti){return tt.allocUnsafe?tt.allocUnsafe(ti):new tt(ti)};function tT(tt){for(var ti=Array(tt.bitLength()),ta=0;ta>>tc&1}return ti}function tM(tt,ti,ta){ta.negative=ti.negative^tt.negative;var ts=tt.length+ti.length|0;ta.length=ts,ts=ts-1|0;var tc=0|tt.words[0],tu=0|ti.words[0],td=tc*tu,tp=67108863&td,tv=td/67108864|0;ta.words[0]=tp;for(var tb=1;tb>>26,t_=67108863&tv,tE=Math.min(tb,ti.length-1),tS=Math.max(0,tb-tt.length+1);tS<=tE;tS++){var tA=tb-tS|0;tg+=(td=(tc=0|tt.words[tA])*(tu=0|ti.words[tS])+t_)/67108864|0,t_=67108863&td}ta.words[tb]=0|t_,tv=0|tg}return 0!==tv?ta.words[tb]=0|tv:ta.length--,ta._strip()}tu.prototype.toArrayLike=function(tt,ti,ta){this._strip();var tc=this.byteLength(),tu=ta||Math.max(1,tc);ts(tc<=tu,"byte array longer than desired length"),ts(tu>0,"Requested array length <= 0");var td=tA(tt,tu);return this["_toArrayLike"+("le"===ti?"LE":"BE")](td,tc),td},tu.prototype._toArrayLikeLE=function(tt,ti){for(var ta=0,ts=0,tc=0,tu=0;tc>8&255),ta>16&255),6===tu?(ta>24&255),ts=0,tu=0):(ts=td>>>24,tu+=2)}if(ta=0&&(tt[ta--]=td>>8&255),ta>=0&&(tt[ta--]=td>>16&255),6===tu?(ta>=0&&(tt[ta--]=td>>24&255),ts=0,tu=0):(ts=td>>>24,tu+=2)}if(ta>=0)for(tt[ta--]=ts;ta>=0;)tt[ta--]=0},Math.clz32?tu.prototype._countBits=function(tt){return 32-Math.clz32(tt)}:tu.prototype._countBits=function(tt){var ti=tt,ta=0;return ti>=4096&&(ta+=13,ti>>>=13),ti>=64&&(ta+=7,ti>>>=7),ti>=8&&(ta+=4,ti>>>=4),ti>=2&&(ta+=2,ti>>>=2),ta+ti},tu.prototype._zeroBits=function(tt){if(0===tt)return 26;var ti=tt,ta=0;return(8191&ti)==0&&(ta+=13,ti>>>=13),(127&ti)==0&&(ta+=7,ti>>>=7),(15&ti)==0&&(ta+=4,ti>>>=4),(3&ti)==0&&(ta+=2,ti>>>=2),(1&ti)==0&&ta++,ta},tu.prototype.bitLength=function(){var tt=this.words[this.length-1],ti=this._countBits(tt);return(this.length-1)*26+ti},tu.prototype.zeroBits=function(){if(this.isZero())return 0;for(var tt=0,ti=0;titt.length?this.clone().ior(tt):tt.clone().ior(this)},tu.prototype.uor=function(tt){return this.length>tt.length?this.clone().iuor(tt):tt.clone().iuor(this)},tu.prototype.iuand=function(tt){var ti;ti=this.length>tt.length?tt:this;for(var ta=0;tatt.length?this.clone().iand(tt):tt.clone().iand(this)},tu.prototype.uand=function(tt){return this.length>tt.length?this.clone().iuand(tt):tt.clone().iuand(this)},tu.prototype.iuxor=function(tt){this.length>tt.length?(ti=this,ta=tt):(ti=tt,ta=this);for(var ti,ta,ts=0;tstt.length?this.clone().ixor(tt):tt.clone().ixor(this)},tu.prototype.uxor=function(tt){return this.length>tt.length?this.clone().iuxor(tt):tt.clone().iuxor(this)},tu.prototype.inotn=function(tt){ts("number"==typeof tt&&tt>=0);var ti=0|Math.ceil(tt/26),ta=tt%26;this._expand(ti),ta>0&&ti--;for(var tc=0;tc0&&(this.words[tc]=~this.words[tc]&67108863>>26-ta),this._strip()},tu.prototype.notn=function(tt){return this.clone().inotn(tt)},tu.prototype.setn=function(tt,ti){ts("number"==typeof tt&&tt>=0);var ta=tt/26|0,tc=tt%26;return this._expand(ta+1),ti?this.words[ta]=this.words[ta]|1<tt.length?(ta=this,ts=tt):(ta=tt,ts=this);for(var ti,ta,ts,tc=0,tu=0;tu>>26;for(;0!==tc&&tu>>26;if(this.length=ta.length,0!==tc)this.words[this.length]=tc,this.length++;else if(ta!==this)for(;tutt.length?this.clone().iadd(tt):tt.clone().iadd(this)},tu.prototype.isub=function(tt){if(0!==tt.negative){tt.negative=0;var ti,ta,ts=this.iadd(tt);return tt.negative=1,ts._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(tt),this.negative=1,this._normSign();var tc=this.cmp(tt);if(0===tc)return this.negative=0,this.length=1,this.words[0]=0,this;tc>0?(ti=this,ta=tt):(ti=tt,ta=this);for(var tu=0,td=0;td>26,this.words[td]=67108863&ts;for(;0!==tu&&td>26,this.words[td]=67108863&ts;if(0===tu&&td>>13,tS=0|td[1],tA=8191&tS,tT=tS>>>13,tM=0|td[2],tk=8191&tM,tR=tM>>>13,tC=0|td[3],tI=8191&tC,tP=tC>>>13,tO=0|td[4],tN=8191&tO,tB=tO>>>13,tL=0|td[5],tD=8191&tL,tj=tL>>>13,tU=0|td[6],tF=8191&tU,tG=tU>>>13,tH=0|td[7],tz=8191&tH,tV=tH>>>13,tq=0|td[8],tW=8191&tq,tY=tq>>>13,tX=0|td[9],tQ=8191&tX,tK=tX>>>13,tZ=0|tp[0],tJ=8191&tZ,t$=tZ>>>13,t0=0|tp[1],t1=8191&t0,t2=t0>>>13,t3=0|tp[2],t8=8191&t3,t5=t3>>>13,t4=0|tp[3],t6=8191&t4,t7=t4>>>13,t9=0|tp[4],et=8191&t9,er=t9>>>13,ei=0|tp[5],ea=8191&ei,eo=ei>>>13,es=0|tp[6],ec=8191&es,eu=es>>>13,eh=0|tp[7],ed=8191&eh,ef=eh>>>13,ep=0|tp[8],ev=8191&ep,eb=ep>>>13,eg=0|tp[9],ey=8191&eg,em=eg>>>13;ta.negative=tt.negative^ti.negative,ta.length=19;var e_=(tb+(ts=Math.imul(t_,tJ))|0)+((8191&(tc=(tc=Math.imul(t_,t$))+Math.imul(tE,tJ)|0))<<13)|0;tb=((tu=Math.imul(tE,t$))+(tc>>>13)|0)+(e_>>>26)|0,e_&=67108863,ts=Math.imul(tA,tJ),tc=(tc=Math.imul(tA,t$))+Math.imul(tT,tJ)|0,tu=Math.imul(tT,t$);var ew=(tb+(ts=ts+Math.imul(t_,t1)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t2)|0)+Math.imul(tE,t1)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t2)|0)+(tc>>>13)|0)+(ew>>>26)|0,ew&=67108863,ts=Math.imul(tk,tJ),tc=(tc=Math.imul(tk,t$))+Math.imul(tR,tJ)|0,tu=Math.imul(tR,t$),ts=ts+Math.imul(tA,t1)|0,tc=(tc=tc+Math.imul(tA,t2)|0)+Math.imul(tT,t1)|0,tu=tu+Math.imul(tT,t2)|0;var ex=(tb+(ts=ts+Math.imul(t_,t8)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t5)|0)+Math.imul(tE,t8)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t5)|0)+(tc>>>13)|0)+(ex>>>26)|0,ex&=67108863,ts=Math.imul(tI,tJ),tc=(tc=Math.imul(tI,t$))+Math.imul(tP,tJ)|0,tu=Math.imul(tP,t$),ts=ts+Math.imul(tk,t1)|0,tc=(tc=tc+Math.imul(tk,t2)|0)+Math.imul(tR,t1)|0,tu=tu+Math.imul(tR,t2)|0,ts=ts+Math.imul(tA,t8)|0,tc=(tc=tc+Math.imul(tA,t5)|0)+Math.imul(tT,t8)|0,tu=tu+Math.imul(tT,t5)|0;var eE=(tb+(ts=ts+Math.imul(t_,t6)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,t7)|0)+Math.imul(tE,t6)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,t7)|0)+(tc>>>13)|0)+(eE>>>26)|0,eE&=67108863,ts=Math.imul(tN,tJ),tc=(tc=Math.imul(tN,t$))+Math.imul(tB,tJ)|0,tu=Math.imul(tB,t$),ts=ts+Math.imul(tI,t1)|0,tc=(tc=tc+Math.imul(tI,t2)|0)+Math.imul(tP,t1)|0,tu=tu+Math.imul(tP,t2)|0,ts=ts+Math.imul(tk,t8)|0,tc=(tc=tc+Math.imul(tk,t5)|0)+Math.imul(tR,t8)|0,tu=tu+Math.imul(tR,t5)|0,ts=ts+Math.imul(tA,t6)|0,tc=(tc=tc+Math.imul(tA,t7)|0)+Math.imul(tT,t6)|0,tu=tu+Math.imul(tT,t7)|0;var eS=(tb+(ts=ts+Math.imul(t_,et)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,er)|0)+Math.imul(tE,et)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,er)|0)+(tc>>>13)|0)+(eS>>>26)|0,eS&=67108863,ts=Math.imul(tD,tJ),tc=(tc=Math.imul(tD,t$))+Math.imul(tj,tJ)|0,tu=Math.imul(tj,t$),ts=ts+Math.imul(tN,t1)|0,tc=(tc=tc+Math.imul(tN,t2)|0)+Math.imul(tB,t1)|0,tu=tu+Math.imul(tB,t2)|0,ts=ts+Math.imul(tI,t8)|0,tc=(tc=tc+Math.imul(tI,t5)|0)+Math.imul(tP,t8)|0,tu=tu+Math.imul(tP,t5)|0,ts=ts+Math.imul(tk,t6)|0,tc=(tc=tc+Math.imul(tk,t7)|0)+Math.imul(tR,t6)|0,tu=tu+Math.imul(tR,t7)|0,ts=ts+Math.imul(tA,et)|0,tc=(tc=tc+Math.imul(tA,er)|0)+Math.imul(tT,et)|0,tu=tu+Math.imul(tT,er)|0;var eA=(tb+(ts=ts+Math.imul(t_,ea)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eo)|0)+Math.imul(tE,ea)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eo)|0)+(tc>>>13)|0)+(eA>>>26)|0,eA&=67108863,ts=Math.imul(tF,tJ),tc=(tc=Math.imul(tF,t$))+Math.imul(tG,tJ)|0,tu=Math.imul(tG,t$),ts=ts+Math.imul(tD,t1)|0,tc=(tc=tc+Math.imul(tD,t2)|0)+Math.imul(tj,t1)|0,tu=tu+Math.imul(tj,t2)|0,ts=ts+Math.imul(tN,t8)|0,tc=(tc=tc+Math.imul(tN,t5)|0)+Math.imul(tB,t8)|0,tu=tu+Math.imul(tB,t5)|0,ts=ts+Math.imul(tI,t6)|0,tc=(tc=tc+Math.imul(tI,t7)|0)+Math.imul(tP,t6)|0,tu=tu+Math.imul(tP,t7)|0,ts=ts+Math.imul(tk,et)|0,tc=(tc=tc+Math.imul(tk,er)|0)+Math.imul(tR,et)|0,tu=tu+Math.imul(tR,er)|0,ts=ts+Math.imul(tA,ea)|0,tc=(tc=tc+Math.imul(tA,eo)|0)+Math.imul(tT,ea)|0,tu=tu+Math.imul(tT,eo)|0;var eT=(tb+(ts=ts+Math.imul(t_,ec)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eu)|0)+Math.imul(tE,ec)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eu)|0)+(tc>>>13)|0)+(eT>>>26)|0,eT&=67108863,ts=Math.imul(tz,tJ),tc=(tc=Math.imul(tz,t$))+Math.imul(tV,tJ)|0,tu=Math.imul(tV,t$),ts=ts+Math.imul(tF,t1)|0,tc=(tc=tc+Math.imul(tF,t2)|0)+Math.imul(tG,t1)|0,tu=tu+Math.imul(tG,t2)|0,ts=ts+Math.imul(tD,t8)|0,tc=(tc=tc+Math.imul(tD,t5)|0)+Math.imul(tj,t8)|0,tu=tu+Math.imul(tj,t5)|0,ts=ts+Math.imul(tN,t6)|0,tc=(tc=tc+Math.imul(tN,t7)|0)+Math.imul(tB,t6)|0,tu=tu+Math.imul(tB,t7)|0,ts=ts+Math.imul(tI,et)|0,tc=(tc=tc+Math.imul(tI,er)|0)+Math.imul(tP,et)|0,tu=tu+Math.imul(tP,er)|0,ts=ts+Math.imul(tk,ea)|0,tc=(tc=tc+Math.imul(tk,eo)|0)+Math.imul(tR,ea)|0,tu=tu+Math.imul(tR,eo)|0,ts=ts+Math.imul(tA,ec)|0,tc=(tc=tc+Math.imul(tA,eu)|0)+Math.imul(tT,ec)|0,tu=tu+Math.imul(tT,eu)|0;var eM=(tb+(ts=ts+Math.imul(t_,ed)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,ef)|0)+Math.imul(tE,ed)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,ef)|0)+(tc>>>13)|0)+(eM>>>26)|0,eM&=67108863,ts=Math.imul(tW,tJ),tc=(tc=Math.imul(tW,t$))+Math.imul(tY,tJ)|0,tu=Math.imul(tY,t$),ts=ts+Math.imul(tz,t1)|0,tc=(tc=tc+Math.imul(tz,t2)|0)+Math.imul(tV,t1)|0,tu=tu+Math.imul(tV,t2)|0,ts=ts+Math.imul(tF,t8)|0,tc=(tc=tc+Math.imul(tF,t5)|0)+Math.imul(tG,t8)|0,tu=tu+Math.imul(tG,t5)|0,ts=ts+Math.imul(tD,t6)|0,tc=(tc=tc+Math.imul(tD,t7)|0)+Math.imul(tj,t6)|0,tu=tu+Math.imul(tj,t7)|0,ts=ts+Math.imul(tN,et)|0,tc=(tc=tc+Math.imul(tN,er)|0)+Math.imul(tB,et)|0,tu=tu+Math.imul(tB,er)|0,ts=ts+Math.imul(tI,ea)|0,tc=(tc=tc+Math.imul(tI,eo)|0)+Math.imul(tP,ea)|0,tu=tu+Math.imul(tP,eo)|0,ts=ts+Math.imul(tk,ec)|0,tc=(tc=tc+Math.imul(tk,eu)|0)+Math.imul(tR,ec)|0,tu=tu+Math.imul(tR,eu)|0,ts=ts+Math.imul(tA,ed)|0,tc=(tc=tc+Math.imul(tA,ef)|0)+Math.imul(tT,ed)|0,tu=tu+Math.imul(tT,ef)|0;var ek=(tb+(ts=ts+Math.imul(t_,ev)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,eb)|0)+Math.imul(tE,ev)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,eb)|0)+(tc>>>13)|0)+(ek>>>26)|0,ek&=67108863,ts=Math.imul(tQ,tJ),tc=(tc=Math.imul(tQ,t$))+Math.imul(tK,tJ)|0,tu=Math.imul(tK,t$),ts=ts+Math.imul(tW,t1)|0,tc=(tc=tc+Math.imul(tW,t2)|0)+Math.imul(tY,t1)|0,tu=tu+Math.imul(tY,t2)|0,ts=ts+Math.imul(tz,t8)|0,tc=(tc=tc+Math.imul(tz,t5)|0)+Math.imul(tV,t8)|0,tu=tu+Math.imul(tV,t5)|0,ts=ts+Math.imul(tF,t6)|0,tc=(tc=tc+Math.imul(tF,t7)|0)+Math.imul(tG,t6)|0,tu=tu+Math.imul(tG,t7)|0,ts=ts+Math.imul(tD,et)|0,tc=(tc=tc+Math.imul(tD,er)|0)+Math.imul(tj,et)|0,tu=tu+Math.imul(tj,er)|0,ts=ts+Math.imul(tN,ea)|0,tc=(tc=tc+Math.imul(tN,eo)|0)+Math.imul(tB,ea)|0,tu=tu+Math.imul(tB,eo)|0,ts=ts+Math.imul(tI,ec)|0,tc=(tc=tc+Math.imul(tI,eu)|0)+Math.imul(tP,ec)|0,tu=tu+Math.imul(tP,eu)|0,ts=ts+Math.imul(tk,ed)|0,tc=(tc=tc+Math.imul(tk,ef)|0)+Math.imul(tR,ed)|0,tu=tu+Math.imul(tR,ef)|0,ts=ts+Math.imul(tA,ev)|0,tc=(tc=tc+Math.imul(tA,eb)|0)+Math.imul(tT,ev)|0,tu=tu+Math.imul(tT,eb)|0;var eR=(tb+(ts=ts+Math.imul(t_,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(t_,em)|0)+Math.imul(tE,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tE,em)|0)+(tc>>>13)|0)+(eR>>>26)|0,eR&=67108863,ts=Math.imul(tQ,t1),tc=(tc=Math.imul(tQ,t2))+Math.imul(tK,t1)|0,tu=Math.imul(tK,t2),ts=ts+Math.imul(tW,t8)|0,tc=(tc=tc+Math.imul(tW,t5)|0)+Math.imul(tY,t8)|0,tu=tu+Math.imul(tY,t5)|0,ts=ts+Math.imul(tz,t6)|0,tc=(tc=tc+Math.imul(tz,t7)|0)+Math.imul(tV,t6)|0,tu=tu+Math.imul(tV,t7)|0,ts=ts+Math.imul(tF,et)|0,tc=(tc=tc+Math.imul(tF,er)|0)+Math.imul(tG,et)|0,tu=tu+Math.imul(tG,er)|0,ts=ts+Math.imul(tD,ea)|0,tc=(tc=tc+Math.imul(tD,eo)|0)+Math.imul(tj,ea)|0,tu=tu+Math.imul(tj,eo)|0,ts=ts+Math.imul(tN,ec)|0,tc=(tc=tc+Math.imul(tN,eu)|0)+Math.imul(tB,ec)|0,tu=tu+Math.imul(tB,eu)|0,ts=ts+Math.imul(tI,ed)|0,tc=(tc=tc+Math.imul(tI,ef)|0)+Math.imul(tP,ed)|0,tu=tu+Math.imul(tP,ef)|0,ts=ts+Math.imul(tk,ev)|0,tc=(tc=tc+Math.imul(tk,eb)|0)+Math.imul(tR,ev)|0,tu=tu+Math.imul(tR,eb)|0;var eC=(tb+(ts=ts+Math.imul(tA,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tA,em)|0)+Math.imul(tT,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tT,em)|0)+(tc>>>13)|0)+(eC>>>26)|0,eC&=67108863,ts=Math.imul(tQ,t8),tc=(tc=Math.imul(tQ,t5))+Math.imul(tK,t8)|0,tu=Math.imul(tK,t5),ts=ts+Math.imul(tW,t6)|0,tc=(tc=tc+Math.imul(tW,t7)|0)+Math.imul(tY,t6)|0,tu=tu+Math.imul(tY,t7)|0,ts=ts+Math.imul(tz,et)|0,tc=(tc=tc+Math.imul(tz,er)|0)+Math.imul(tV,et)|0,tu=tu+Math.imul(tV,er)|0,ts=ts+Math.imul(tF,ea)|0,tc=(tc=tc+Math.imul(tF,eo)|0)+Math.imul(tG,ea)|0,tu=tu+Math.imul(tG,eo)|0,ts=ts+Math.imul(tD,ec)|0,tc=(tc=tc+Math.imul(tD,eu)|0)+Math.imul(tj,ec)|0,tu=tu+Math.imul(tj,eu)|0,ts=ts+Math.imul(tN,ed)|0,tc=(tc=tc+Math.imul(tN,ef)|0)+Math.imul(tB,ed)|0,tu=tu+Math.imul(tB,ef)|0,ts=ts+Math.imul(tI,ev)|0,tc=(tc=tc+Math.imul(tI,eb)|0)+Math.imul(tP,ev)|0,tu=tu+Math.imul(tP,eb)|0;var eI=(tb+(ts=ts+Math.imul(tk,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tk,em)|0)+Math.imul(tR,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tR,em)|0)+(tc>>>13)|0)+(eI>>>26)|0,eI&=67108863,ts=Math.imul(tQ,t6),tc=(tc=Math.imul(tQ,t7))+Math.imul(tK,t6)|0,tu=Math.imul(tK,t7),ts=ts+Math.imul(tW,et)|0,tc=(tc=tc+Math.imul(tW,er)|0)+Math.imul(tY,et)|0,tu=tu+Math.imul(tY,er)|0,ts=ts+Math.imul(tz,ea)|0,tc=(tc=tc+Math.imul(tz,eo)|0)+Math.imul(tV,ea)|0,tu=tu+Math.imul(tV,eo)|0,ts=ts+Math.imul(tF,ec)|0,tc=(tc=tc+Math.imul(tF,eu)|0)+Math.imul(tG,ec)|0,tu=tu+Math.imul(tG,eu)|0,ts=ts+Math.imul(tD,ed)|0,tc=(tc=tc+Math.imul(tD,ef)|0)+Math.imul(tj,ed)|0,tu=tu+Math.imul(tj,ef)|0,ts=ts+Math.imul(tN,ev)|0,tc=(tc=tc+Math.imul(tN,eb)|0)+Math.imul(tB,ev)|0,tu=tu+Math.imul(tB,eb)|0;var eP=(tb+(ts=ts+Math.imul(tI,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tI,em)|0)+Math.imul(tP,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tP,em)|0)+(tc>>>13)|0)+(eP>>>26)|0,eP&=67108863,ts=Math.imul(tQ,et),tc=(tc=Math.imul(tQ,er))+Math.imul(tK,et)|0,tu=Math.imul(tK,er),ts=ts+Math.imul(tW,ea)|0,tc=(tc=tc+Math.imul(tW,eo)|0)+Math.imul(tY,ea)|0,tu=tu+Math.imul(tY,eo)|0,ts=ts+Math.imul(tz,ec)|0,tc=(tc=tc+Math.imul(tz,eu)|0)+Math.imul(tV,ec)|0,tu=tu+Math.imul(tV,eu)|0,ts=ts+Math.imul(tF,ed)|0,tc=(tc=tc+Math.imul(tF,ef)|0)+Math.imul(tG,ed)|0,tu=tu+Math.imul(tG,ef)|0,ts=ts+Math.imul(tD,ev)|0,tc=(tc=tc+Math.imul(tD,eb)|0)+Math.imul(tj,ev)|0,tu=tu+Math.imul(tj,eb)|0;var eO=(tb+(ts=ts+Math.imul(tN,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tN,em)|0)+Math.imul(tB,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tB,em)|0)+(tc>>>13)|0)+(eO>>>26)|0,eO&=67108863,ts=Math.imul(tQ,ea),tc=(tc=Math.imul(tQ,eo))+Math.imul(tK,ea)|0,tu=Math.imul(tK,eo),ts=ts+Math.imul(tW,ec)|0,tc=(tc=tc+Math.imul(tW,eu)|0)+Math.imul(tY,ec)|0,tu=tu+Math.imul(tY,eu)|0,ts=ts+Math.imul(tz,ed)|0,tc=(tc=tc+Math.imul(tz,ef)|0)+Math.imul(tV,ed)|0,tu=tu+Math.imul(tV,ef)|0,ts=ts+Math.imul(tF,ev)|0,tc=(tc=tc+Math.imul(tF,eb)|0)+Math.imul(tG,ev)|0,tu=tu+Math.imul(tG,eb)|0;var eN=(tb+(ts=ts+Math.imul(tD,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tD,em)|0)+Math.imul(tj,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tj,em)|0)+(tc>>>13)|0)+(eN>>>26)|0,eN&=67108863,ts=Math.imul(tQ,ec),tc=(tc=Math.imul(tQ,eu))+Math.imul(tK,ec)|0,tu=Math.imul(tK,eu),ts=ts+Math.imul(tW,ed)|0,tc=(tc=tc+Math.imul(tW,ef)|0)+Math.imul(tY,ed)|0,tu=tu+Math.imul(tY,ef)|0,ts=ts+Math.imul(tz,ev)|0,tc=(tc=tc+Math.imul(tz,eb)|0)+Math.imul(tV,ev)|0,tu=tu+Math.imul(tV,eb)|0;var eB=(tb+(ts=ts+Math.imul(tF,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tF,em)|0)+Math.imul(tG,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tG,em)|0)+(tc>>>13)|0)+(eB>>>26)|0,eB&=67108863,ts=Math.imul(tQ,ed),tc=(tc=Math.imul(tQ,ef))+Math.imul(tK,ed)|0,tu=Math.imul(tK,ef),ts=ts+Math.imul(tW,ev)|0,tc=(tc=tc+Math.imul(tW,eb)|0)+Math.imul(tY,ev)|0,tu=tu+Math.imul(tY,eb)|0;var eL=(tb+(ts=ts+Math.imul(tz,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tz,em)|0)+Math.imul(tV,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tV,em)|0)+(tc>>>13)|0)+(eL>>>26)|0,eL&=67108863,ts=Math.imul(tQ,ev),tc=(tc=Math.imul(tQ,eb))+Math.imul(tK,ev)|0,tu=Math.imul(tK,eb);var eD=(tb+(ts=ts+Math.imul(tW,ey)|0)|0)+((8191&(tc=(tc=tc+Math.imul(tW,em)|0)+Math.imul(tY,ey)|0))<<13)|0;tb=((tu=tu+Math.imul(tY,em)|0)+(tc>>>13)|0)+(eD>>>26)|0,eD&=67108863;var ej=(tb+(ts=Math.imul(tQ,ey))|0)+((8191&(tc=(tc=Math.imul(tQ,em))+Math.imul(tK,ey)|0))<<13)|0;return tb=((tu=Math.imul(tK,em))+(tc>>>13)|0)+(ej>>>26)|0,ej&=67108863,tv[0]=e_,tv[1]=ew,tv[2]=ex,tv[3]=eE,tv[4]=eS,tv[5]=eA,tv[6]=eT,tv[7]=eM,tv[8]=ek,tv[9]=eR,tv[10]=eC,tv[11]=eI,tv[12]=eP,tv[13]=eO,tv[14]=eN,tv[15]=eB,tv[16]=eL,tv[17]=eD,tv[18]=ej,0!==tb&&(tv[19]=tb,ta.length++),ta};function tR(tt,ti,ta){ta.negative=ti.negative^tt.negative,ta.length=tt.length+ti.length;for(var ts=0,tc=0,tu=0;tu>>26)|0)>>>26,td&=67108863}ta.words[tu]=tp,ts=td,td=tc}return 0!==ts?ta.words[tu]=ts:ta.length--,ta._strip()}function tC(tt,ti,ta){return tR(tt,ti,ta)}function tI(tt,ti){this.x=tt,this.y=ti}Math.imul||(tk=tM),tu.prototype.mulTo=function(tt,ti){var ta=this.length+tt.length;return 10===this.length&&10===tt.length?tk(this,tt,ti):ta<63?tM(this,tt,ti):ta<1024?tR(this,tt,ti):tC(this,tt,ti)},tI.prototype.makeRBT=function(tt){for(var ti=Array(tt),ta=tu.prototype._countBits(tt)-1,ts=0;ts>=1;return ts},tI.prototype.permute=function(tt,ti,ta,ts,tc,tu){for(var td=0;td>>=1)tc++;return 1<>>=13,ta[2*td+1]=8191&tu,tu>>>=13;for(td=2*ti;td>=26,ta+=(tu/67108864|0)+(td>>>26),this.words[tc]=67108863&td}return 0!==ta&&(this.words[tc]=ta,this.length++),ti?this.ineg():this},tu.prototype.muln=function(tt){return this.clone().imuln(tt)},tu.prototype.sqr=function(){return this.mul(this)},tu.prototype.isqr=function(){return this.imul(this.clone())},tu.prototype.pow=function(tt){var ti=tT(tt);if(0===ti.length)return new tu(1);for(var ta=this,ts=0;ts=0);var ti,ta=tt%26,tc=(tt-ta)/26,tu=67108863>>>26-ta<<26-ta;if(0!==ta){var td=0;for(ti=0;ti>>26-ta}td&&(this.words[ti]=td,this.length++)}if(0!==tc){for(ti=this.length-1;ti>=0;ti--)this.words[ti+tc]=this.words[ti];for(ti=0;ti=0),tc=ti?(ti-ti%26)/26:0;var tc,tu=tt%26,td=Math.min((tt-tu)/26,this.length),tp=67108863^67108863>>>tu<td)for(this.length-=td,tb=0;tb=0&&(0!==tg||tb>=tc);tb--){var t_=0|this.words[tb];this.words[tb]=tg<<26-tu|t_>>>tu,tg=t_&tp}return tv&&0!==tg&&(tv.words[tv.length++]=tg),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},tu.prototype.ishrn=function(tt,ti,ta){return ts(0===this.negative),this.iushrn(tt,ti,ta)},tu.prototype.shln=function(tt){return this.clone().ishln(tt)},tu.prototype.ushln=function(tt){return this.clone().iushln(tt)},tu.prototype.shrn=function(tt){return this.clone().ishrn(tt)},tu.prototype.ushrn=function(tt){return this.clone().iushrn(tt)},tu.prototype.testn=function(tt){ts("number"==typeof tt&&tt>=0);var ti=tt%26,ta=(tt-ti)/26,tc=1<=0);var ti=tt%26,ta=(tt-ti)/26;if(ts(0===this.negative,"imaskn works only with positive numbers"),this.length<=ta)return this;if(0!==ti&&ta++,this.length=Math.min(ta,this.length),0!==ti){var tc=67108863^67108863>>>ti<=67108864;ti++)this.words[ti]-=67108864,ti===this.length-1?this.words[ti+1]=1:this.words[ti+1]++;return this.length=Math.max(this.length,ti+1),this},tu.prototype.isubn=function(tt){if(ts("number"==typeof tt),ts(tt<67108864),tt<0)return this.iaddn(-tt);if(0!==this.negative)return this.negative=0,this.iaddn(tt),this.negative=1,this;if(this.words[0]-=tt,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ti=0;ti>26)-(tv/67108864|0),this.words[tc+ta]=67108863&tu}for(;tc>26,this.words[tc+ta]=67108863&tu;if(0===tp)return this._strip();for(ts(-1===tp),tp=0,tc=0;tc>26,this.words[tc]=67108863&tu;return this.negative=1,this._strip()},tu.prototype._wordDiv=function(tt,ti){var ta,ts=this.length-tt.length,tc=this.clone(),td=tt,tp=0|td.words[td.length-1];0!=(ts=26-this._countBits(tp))&&(td=td.ushln(ts),tc.iushln(ts),tp=0|td.words[td.length-1]);var tv=tc.length-td.length;if("mod"!==ti){(ta=new tu(null)).length=tv+1,ta.words=Array(ta.length);for(var tb=0;tb=0;t_--){var tE=(0|tc.words[td.length+t_])*67108864+(0|tc.words[td.length+t_-1]);for(tE=Math.min(tE/tp|0,67108863),tc._ishlnsubmul(td,tE,t_);0!==tc.negative;)tE--,tc.negative=0,tc._ishlnsubmul(td,1,t_),tc.isZero()||(tc.negative^=1);ta&&(ta.words[t_]=tE)}return ta&&ta._strip(),tc._strip(),"div"!==ti&&0!==ts&&tc.iushrn(ts),{div:ta||null,mod:tc}},tu.prototype.divmod=function(tt,ti,ta){var tc,td,tp;return(ts(!tt.isZero()),this.isZero())?{div:new tu(0),mod:new tu(0)}:0!==this.negative&&0===tt.negative?(tp=this.neg().divmod(tt,ti),"mod"!==ti&&(tc=tp.div.neg()),"div"!==ti&&(td=tp.mod.neg(),ta&&0!==td.negative&&td.iadd(tt)),{div:tc,mod:td}):0===this.negative&&0!==tt.negative?(tp=this.divmod(tt.neg(),ti),"mod"!==ti&&(tc=tp.div.neg()),{div:tc,mod:tp.mod}):(this.negative&tt.negative)!=0?(tp=this.neg().divmod(tt.neg(),ti),"div"!==ti&&(td=tp.mod.neg(),ta&&0!==td.negative&&td.isub(tt)),{div:tp.div,mod:td}):tt.length>this.length||0>this.cmp(tt)?{div:new tu(0),mod:this}:1===tt.length?"div"===ti?{div:this.divn(tt.words[0]),mod:null}:"mod"===ti?{div:null,mod:new tu(this.modrn(tt.words[0]))}:{div:this.divn(tt.words[0]),mod:new tu(this.modrn(tt.words[0]))}:this._wordDiv(tt,ti)},tu.prototype.div=function(tt){return this.divmod(tt,"div",!1).div},tu.prototype.mod=function(tt){return this.divmod(tt,"mod",!1).mod},tu.prototype.umod=function(tt){return this.divmod(tt,"mod",!0).mod},tu.prototype.divRound=function(tt){var ti=this.divmod(tt);if(ti.mod.isZero())return ti.div;var ta=0!==ti.div.negative?ti.mod.isub(tt):ti.mod,ts=tt.ushrn(1),tc=tt.andln(1),tu=ta.cmp(ts);return tu<0||1===tc&&0===tu?ti.div:0!==ti.div.negative?ti.div.isubn(1):ti.div.iaddn(1)},tu.prototype.modrn=function(tt){var ti=tt<0;ti&&(tt=-tt),ts(tt<=67108863);for(var ta=67108864%tt,tc=0,tu=this.length-1;tu>=0;tu--)tc=(ta*tc+(0|this.words[tu]))%tt;return ti?-tc:tc},tu.prototype.modn=function(tt){return this.modrn(tt)},tu.prototype.idivn=function(tt){var ti=tt<0;ti&&(tt=-tt),ts(tt<=67108863);for(var ta=0,tc=this.length-1;tc>=0;tc--){var tu=(0|this.words[tc])+67108864*ta;this.words[tc]=tu/tt|0,ta=tu%tt}return this._strip(),ti?this.ineg():this},tu.prototype.divn=function(tt){return this.clone().idivn(tt)},tu.prototype.egcd=function(tt){ts(0===tt.negative),ts(!tt.isZero());var ti=this,ta=tt.clone();ti=0!==ti.negative?ti.umod(tt):ti.clone();for(var tc=new tu(1),td=new tu(0),tp=new tu(0),tv=new tu(1),tb=0;ti.isEven()&&ta.isEven();)ti.iushrn(1),ta.iushrn(1),++tb;for(var tg=ta.clone(),t_=ti.clone();!ti.isZero();){for(var tE=0,tS=1;(ti.words[0]&tS)==0&&tE<26;++tE,tS<<=1);if(tE>0)for(ti.iushrn(tE);tE-- >0;)(tc.isOdd()||td.isOdd())&&(tc.iadd(tg),td.isub(t_)),tc.iushrn(1),td.iushrn(1);for(var tA=0,tT=1;(ta.words[0]&tT)==0&&tA<26;++tA,tT<<=1);if(tA>0)for(ta.iushrn(tA);tA-- >0;)(tp.isOdd()||tv.isOdd())&&(tp.iadd(tg),tv.isub(t_)),tp.iushrn(1),tv.iushrn(1);ti.cmp(ta)>=0?(ti.isub(ta),tc.isub(tp),td.isub(tv)):(ta.isub(ti),tp.isub(tc),tv.isub(td))}return{a:tp,b:tv,gcd:ta.iushln(tb)}},tu.prototype._invmp=function(tt){ts(0===tt.negative),ts(!tt.isZero());var ti,ta=this,tc=tt.clone();ta=0!==ta.negative?ta.umod(tt):ta.clone();for(var td=new tu(1),tp=new tu(0),tv=tc.clone();ta.cmpn(1)>0&&tc.cmpn(1)>0;){for(var tb=0,tg=1;(ta.words[0]&tg)==0&&tb<26;++tb,tg<<=1);if(tb>0)for(ta.iushrn(tb);tb-- >0;)td.isOdd()&&td.iadd(tv),td.iushrn(1);for(var t_=0,tE=1;(tc.words[0]&tE)==0&&t_<26;++t_,tE<<=1);if(t_>0)for(tc.iushrn(t_);t_-- >0;)tp.isOdd()&&tp.iadd(tv),tp.iushrn(1);ta.cmp(tc)>=0?(ta.isub(tc),td.isub(tp)):(tc.isub(ta),tp.isub(td))}return 0>(ti=0===ta.cmpn(1)?td:tp).cmpn(0)&&ti.iadd(tt),ti},tu.prototype.gcd=function(tt){if(this.isZero())return tt.abs();if(tt.isZero())return this.abs();var ti=this.clone(),ta=tt.clone();ti.negative=0,ta.negative=0;for(var ts=0;ti.isEven()&&ta.isEven();ts++)ti.iushrn(1),ta.iushrn(1);for(;;){for(;ti.isEven();)ti.iushrn(1);for(;ta.isEven();)ta.iushrn(1);var tc=ti.cmp(ta);if(tc<0){var tu=ti;ti=ta,ta=tu}else if(0===tc||0===ta.cmpn(1))break;ti.isub(ta)}return ta.iushln(ts)},tu.prototype.invm=function(tt){return this.egcd(tt).a.umod(tt)},tu.prototype.isEven=function(){return(1&this.words[0])==0},tu.prototype.isOdd=function(){return(1&this.words[0])==1},tu.prototype.andln=function(tt){return this.words[0]&tt},tu.prototype.bincn=function(tt){ts("number"==typeof tt);var ti=tt%26,ta=(tt-ti)/26,tc=1<>>26,tp&=67108863,this.words[td]=tp}return 0!==tu&&(this.words[td]=tu,this.length++),this},tu.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},tu.prototype.cmpn=function(tt){var ti,ta=tt<0;if(0!==this.negative&&!ta)return -1;if(0===this.negative&&ta)return 1;if(this._strip(),this.length>1)ti=1;else{ta&&(tt=-tt),ts(tt<=67108863,"Number is too big");var tc=0|this.words[0];ti=tc===tt?0:tctt.length)return 1;if(this.length=0;ta--){var ts=0|this.words[ta],tc=0|tt.words[ta];if(ts!==tc){tstc&&(ti=1);break}}return ti},tu.prototype.gtn=function(tt){return 1===this.cmpn(tt)},tu.prototype.gt=function(tt){return 1===this.cmp(tt)},tu.prototype.gten=function(tt){return this.cmpn(tt)>=0},tu.prototype.gte=function(tt){return this.cmp(tt)>=0},tu.prototype.ltn=function(tt){return -1===this.cmpn(tt)},tu.prototype.lt=function(tt){return -1===this.cmp(tt)},tu.prototype.lten=function(tt){return 0>=this.cmpn(tt)},tu.prototype.lte=function(tt){return 0>=this.cmp(tt)},tu.prototype.eqn=function(tt){return 0===this.cmpn(tt)},tu.prototype.eq=function(tt){return 0===this.cmp(tt)},tu.red=function(tt){return new tj(tt)},tu.prototype.toRed=function(tt){return ts(!this.red,"Already a number in reduction context"),ts(0===this.negative,"red works only with positives"),tt.convertTo(this)._forceRed(tt)},tu.prototype.fromRed=function(){return ts(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},tu.prototype._forceRed=function(tt){return this.red=tt,this},tu.prototype.forceRed=function(tt){return ts(!this.red,"Already a number in reduction context"),this._forceRed(tt)},tu.prototype.redAdd=function(tt){return ts(this.red,"redAdd works only with red numbers"),this.red.add(this,tt)},tu.prototype.redIAdd=function(tt){return ts(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,tt)},tu.prototype.redSub=function(tt){return ts(this.red,"redSub works only with red numbers"),this.red.sub(this,tt)},tu.prototype.redISub=function(tt){return ts(this.red,"redISub works only with red numbers"),this.red.isub(this,tt)},tu.prototype.redShl=function(tt){return ts(this.red,"redShl works only with red numbers"),this.red.shl(this,tt)},tu.prototype.redMul=function(tt){return ts(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.mul(this,tt)},tu.prototype.redIMul=function(tt){return ts(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.imul(this,tt)},tu.prototype.redSqr=function(){return ts(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tu.prototype.redISqr=function(){return ts(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tu.prototype.redSqrt=function(){return ts(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tu.prototype.redInvm=function(){return ts(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tu.prototype.redNeg=function(){return ts(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tu.prototype.redPow=function(tt){return ts(this.red&&!tt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,tt)};var tP={k256:null,p224:null,p192:null,p25519:null};function tO(tt,ti){this.name=tt,this.p=new tu(ti,16),this.n=this.p.bitLength(),this.k=new tu(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function tN(){tO.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function tB(){tO.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function tL(){tO.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function tD(){tO.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function tj(tt){if("string"==typeof tt){var ti=tu._prime(tt);this.m=ti.p,this.prime=ti}else ts(tt.gtn(1),"modulus must be greater than 1"),this.m=tt,this.prime=null}function tU(tt){tj.call(this,tt),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new tu(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}tO.prototype._tmp=function(){var tt=new tu(null);return tt.words=Array(Math.ceil(this.n/13)),tt},tO.prototype.ireduce=function(tt){var ti,ta=tt;do this.split(ta,this.tmp),ti=(ta=(ta=this.imulK(ta)).iadd(this.tmp)).bitLength();while(ti>this.n);var ts=ti0?ta.isub(this.p):void 0!==ta.strip?ta.strip():ta._strip(),ta},tO.prototype.split=function(tt,ti){tt.iushrn(this.n,0,ti)},tO.prototype.imulK=function(tt){return tt.imul(this.k)},tc(tN,tO),tN.prototype.split=function(tt,ti){for(var ta=4194303,ts=Math.min(tt.length,9),tc=0;tc>>22,tu=td}tu>>>=22,tt.words[tc-10]=tu,0===tu&&tt.length>10?tt.length-=10:tt.length-=9},tN.prototype.imulK=function(tt){tt.words[tt.length]=0,tt.words[tt.length+1]=0,tt.length+=2;for(var ti=0,ta=0;ta>>=26,tt.words[ta]=tc,ti=ts}return 0!==ti&&(tt.words[tt.length++]=ti),tt},tu._prime=function(tt){var ti;if(tP[tt])return tP[tt];if("k256"===tt)ti=new tN;else if("p224"===tt)ti=new tB;else if("p192"===tt)ti=new tL;else if("p25519"===tt)ti=new tD;else throw Error("Unknown prime "+tt);return tP[tt]=ti,ti},tj.prototype._verify1=function(tt){ts(0===tt.negative,"red works only with positives"),ts(tt.red,"red works only with red numbers")},tj.prototype._verify2=function(tt,ti){ts((tt.negative|ti.negative)==0,"red works only with positives"),ts(tt.red&&tt.red===ti.red,"red works only with red numbers")},tj.prototype.imod=function(tt){return this.prime?this.prime.ireduce(tt)._forceRed(this):(tv(tt,tt.umod(this.m)._forceRed(this)),tt)},tj.prototype.neg=function(tt){return tt.isZero()?tt.clone():this.m.sub(tt)._forceRed(this)},tj.prototype.add=function(tt,ti){this._verify2(tt,ti);var ta=tt.add(ti);return ta.cmp(this.m)>=0&&ta.isub(this.m),ta._forceRed(this)},tj.prototype.iadd=function(tt,ti){this._verify2(tt,ti);var ta=tt.iadd(ti);return ta.cmp(this.m)>=0&&ta.isub(this.m),ta},tj.prototype.sub=function(tt,ti){this._verify2(tt,ti);var ta=tt.sub(ti);return 0>ta.cmpn(0)&&ta.iadd(this.m),ta._forceRed(this)},tj.prototype.isub=function(tt,ti){this._verify2(tt,ti);var ta=tt.isub(ti);return 0>ta.cmpn(0)&&ta.iadd(this.m),ta},tj.prototype.shl=function(tt,ti){return this._verify1(tt),this.imod(tt.ushln(ti))},tj.prototype.imul=function(tt,ti){return this._verify2(tt,ti),this.imod(tt.imul(ti))},tj.prototype.mul=function(tt,ti){return this._verify2(tt,ti),this.imod(tt.mul(ti))},tj.prototype.isqr=function(tt){return this.imul(tt,tt.clone())},tj.prototype.sqr=function(tt){return this.mul(tt,tt)},tj.prototype.sqrt=function(tt){if(tt.isZero())return tt.clone();var ti=this.m.andln(3);if(ts(ti%2==1),3===ti){var ta=this.m.add(new tu(1)).iushrn(2);return this.pow(tt,ta)}for(var tc=this.m.subn(1),td=0;!tc.isZero()&&0===tc.andln(1);)td++,tc.iushrn(1);ts(!tc.isZero());var tp=new tu(1).toRed(this),tv=tp.redNeg(),tb=this.m.subn(1).iushrn(1),tg=this.m.bitLength();for(tg=new tu(2*tg*tg).toRed(this);0!==this.pow(tg,tb).cmp(tv);)tg.redIAdd(tv);for(var t_=this.pow(tg,tc),tE=this.pow(tt,tc.addn(1).iushrn(1)),tS=this.pow(tt,tc),tA=td;0!==tS.cmp(tp);){for(var tT=tS,tM=0;0!==tT.cmp(tp);tM++)tT=tT.redSqr();ts(tM=0;tc--){for(var tg=ti.words[tc],t_=tb-1;t_>=0;t_--){var tE=tg>>t_&1;if(td!==ts[0]&&(td=this.sqr(td)),0===tE&&0===tp){tv=0;continue}tp<<=1,tp|=tE,(++tv===ta||0===tc&&0===t_)&&(td=this.mul(td,ts[tp]),tv=0,tp=0)}tb=26}return td},tj.prototype.convertTo=function(tt){var ti=tt.umod(this.m);return ti===tt?ti.clone():ti},tj.prototype.convertFrom=function(tt){var ti=tt.clone();return ti.red=null,ti},tu.mont=function(tt){return new tU(tt)},tc(tU,tj),tU.prototype.convertTo=function(tt){return this.imod(tt.ushln(this.shift))},tU.prototype.convertFrom=function(tt){var ti=this.imod(tt.mul(this.rinv));return ti.red=null,ti},tU.prototype.imul=function(tt,ti){if(tt.isZero()||ti.isZero())return tt.words[0]=0,tt.length=1,tt;var ta=tt.imul(ti),ts=ta.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),tc=ta.isub(ts).iushrn(this.shift),tu=tc;return tc.cmp(this.m)>=0?tu=tc.isub(this.m):0>tc.cmpn(0)&&(tu=tc.iadd(this.m)),tu._forceRed(this)},tU.prototype.mul=function(tt,ti){if(tt.isZero()||ti.isZero())return new tu(0)._forceRed(this);var ta=tt.mul(ti),ts=ta.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),tc=ta.isub(ts).iushrn(this.shift),td=tc;return tc.cmp(this.m)>=0?td=tc.isub(this.m):0>tc.cmpn(0)&&(td=tc.iadd(this.m)),td._forceRed(this)},tU.prototype.invm=function(tt){return this.imod(tt._invmp(this.m).mul(this.r2))._forceRed(this)}}(tt=ta.nmd(tt),this)},3500:function(tt,ti,ta){var ts;function tc(tt){this.rand=tt}if(tt.exports=function(tt){return ts||(ts=new tc(null)),ts.generate(tt)},tt.exports.Rand=tc,tc.prototype.generate=function(tt){return this._rand(tt)},tc.prototype._rand=function(tt){if(this.rand.getBytes)return this.rand.getBytes(tt);for(var ti=new Uint8Array(tt),ta=0;ta>>24]^tg[tA>>>16&255]^t_[tT>>>8&255]^tE[255&tM]^ti[tk++],td=tb[tA>>>24]^tg[tT>>>16&255]^t_[tM>>>8&255]^tE[255&tS]^ti[tk++],tp=tb[tT>>>24]^tg[tM>>>16&255]^t_[tS>>>8&255]^tE[255&tA]^ti[tk++],tv=tb[tM>>>24]^tg[tS>>>16&255]^t_[tA>>>8&255]^tE[255&tT]^ti[tk++],tS=tu,tA=td,tT=tp,tM=tv;return tu=(ts[tS>>>24]<<24|ts[tA>>>16&255]<<16|ts[tT>>>8&255]<<8|ts[255&tM])^ti[tk++],td=(ts[tA>>>24]<<24|ts[tT>>>16&255]<<16|ts[tM>>>8&255]<<8|ts[255&tS])^ti[tk++],[tu>>>=0,td>>>=0,tp=((ts[tT>>>24]<<24|ts[tM>>>16&255]<<16|ts[tS>>>8&255]<<8|ts[255&tA])^ti[tk++])>>>0,tv=((ts[tM>>>24]<<24|ts[tS>>>16&255]<<16|ts[tA>>>8&255]<<8|ts[255&tT])^ti[tk++])>>>0]}var tp=[0,1,2,4,8,16,32,64,128,27,54],tv=function(){for(var tt=Array(256),ti=0;ti<256;ti++)ti<128?tt[ti]=ti<<1:tt[ti]=ti<<1^283;for(var ta=[],ts=[],tc=[[],[],[],[]],tu=[[],[],[],[]],td=0,tp=0,tv=0;tv<256;++tv){var tb=tp^tp<<1^tp<<2^tp<<3^tp<<4;tb=tb>>>8^255&tb^99,ta[td]=tb,ts[tb]=td;var tg=tt[td],t_=tt[tg],tE=tt[t_],tS=257*tt[tb]^16843008*tb;tc[0][td]=tS<<24|tS>>>8,tc[1][td]=tS<<16|tS>>>16,tc[2][td]=tS<<8|tS>>>24,tc[3][td]=tS,tS=16843009*tE^65537*t_^257*tg^16843008*td,tu[0][tb]=tS<<24|tS>>>8,tu[1][tb]=tS<<16|tS>>>16,tu[2][tb]=tS<<8|tS>>>24,tu[3][tb]=tS,0===td?td=tp=1:(td=tg^tt[tt[tt[tE^tg]]],tp^=tt[tt[tp]])}return{SBOX:ta,INV_SBOX:ts,SUB_MIX:tc,INV_SUB_MIX:tu}}();function tb(tt){this._key=tc(tt),this._reset()}tb.blockSize=16,tb.keySize=32,tb.prototype.blockSize=tb.blockSize,tb.prototype.keySize=tb.keySize,tb.prototype._reset=function(){for(var tt=this._key,ti=tt.length,ta=ti+6,ts=(ta+1)*4,tc=[],tu=0;tu>>24,td=(tv.SBOX[td>>>24]<<24|tv.SBOX[td>>>16&255]<<16|tv.SBOX[td>>>8&255]<<8|tv.SBOX[255&td])^tp[tu/ti|0]<<24):ti>6&&tu%ti==4&&(td=tv.SBOX[td>>>24]<<24|tv.SBOX[td>>>16&255]<<16|tv.SBOX[td>>>8&255]<<8|tv.SBOX[255&td]),tc[tu]=tc[tu-ti]^td}for(var tb=[],tg=0;tg>>24]]^tv.INV_SUB_MIX[1][tv.SBOX[tE>>>16&255]]^tv.INV_SUB_MIX[2][tv.SBOX[tE>>>8&255]]^tv.INV_SUB_MIX[3][tv.SBOX[255&tE]]}this._nRounds=ta,this._keySchedule=tc,this._invKeySchedule=tb},tb.prototype.encryptBlockRaw=function(tt){return td(tt=tc(tt),this._keySchedule,tv.SUB_MIX,tv.SBOX,this._nRounds)},tb.prototype.encryptBlock=function(tt){var ti=this.encryptBlockRaw(tt),ta=ts.allocUnsafe(16);return ta.writeUInt32BE(ti[0],0),ta.writeUInt32BE(ti[1],4),ta.writeUInt32BE(ti[2],8),ta.writeUInt32BE(ti[3],12),ta},tb.prototype.decryptBlock=function(tt){var ti=(tt=tc(tt))[1];tt[1]=tt[3],tt[3]=ti;var ta=td(tt,this._invKeySchedule,tv.INV_SUB_MIX,tv.INV_SBOX,this._nRounds),tu=ts.allocUnsafe(16);return tu.writeUInt32BE(ta[0],0),tu.writeUInt32BE(ta[3],4),tu.writeUInt32BE(ta[2],8),tu.writeUInt32BE(ta[1],12),tu},tb.prototype.scrub=function(){tu(this._keySchedule),tu(this._invKeySchedule),tu(this._key)},tt.exports.AES=tb},6624:function(tt,ti,ta){var ts=ta(1387),tc=ta(6911).Buffer,tu=ta(1043),td=ta(3782),tp=ta(7225),tv=ta(4734),tb=ta(598);function tg(tt,ti){var ta=0;tt.length!==ti.length&&ta++;for(var ts=Math.min(tt.length,ti.length),tc=0;tc16)throw Error("unable to decrypt data");for(var ta=-1;++ta16)return ti=this.cache.slice(0,16),this.cache=this.cache.slice(16),ti}else if(this.cache.length>=16)return ti=this.cache.slice(0,16),this.cache=this.cache.slice(16),ti;return null},t_.prototype.flush=function(){if(this.cache.length)return this.cache},ti.createDecipher=tA,ti.createDecipheriv=tS},2:function(tt,ti,ta){var ts=ta(6370),tc=ta(6624),tu=ta(6911).Buffer,td=ta(126),tp=ta(1043),tv=ta(1387),tb=ta(8368);function tg(tt,ti,ta){tp.call(this),this._cache=new tE,this._cipher=new tv.AES(ti),this._prev=tu.from(ta),this._mode=tt,this._autopadding=!0}ta(3782)(tg,tp),tg.prototype._update=function(tt){this._cache.add(tt);for(var ti,ta,ts=[];ti=this._cache.get();)ta=this._mode.encrypt(this,ti),ts.push(ta);return tu.concat(ts)};var t_=tu.alloc(16,16);function tE(){this.cache=tu.allocUnsafe(0)}function tS(tt,ti,ta){var tp=ts[tt.toLowerCase()];if(!tp)throw TypeError("invalid suite type");if("string"==typeof ti&&(ti=tu.from(ti)),ti.length!==tp.key/8)throw TypeError("invalid key length "+ti.length);if("string"==typeof ta&&(ta=tu.from(ta)),"GCM"!==tp.mode&&ta.length!==tp.iv)throw TypeError("invalid iv length "+ta.length);return"stream"===tp.type?new td(tp.module,ti,ta):"auth"===tp.type?new tc(tp.module,ti,ta):new tg(tp.module,ti,ta)}function tA(tt,ti){var ta=ts[tt.toLowerCase()];if(!ta)throw TypeError("invalid suite type");var tc=tb(ti,!1,ta.key,ta.iv);return tS(tt,tc.key,tc.iv)}tg.prototype._final=function(){var tt=this._cache.flush();if(this._autopadding)return tt=this._mode.encrypt(this,tt),this._cipher.scrub(),tt;if(!tt.equals(t_))throw this._cipher.scrub(),Error("data not multiple of block length")},tg.prototype.setAutoPadding=function(tt){return this._autopadding=!!tt,this},tE.prototype.add=function(tt){this.cache=tu.concat([this.cache,tt])},tE.prototype.get=function(){if(this.cache.length>15){var tt=this.cache.slice(0,16);return this.cache=this.cache.slice(16),tt}return null},tE.prototype.flush=function(){for(var tt=16-this.cache.length,ti=tu.allocUnsafe(tt),ta=-1;++ta>>0,0),ti.writeUInt32BE(tt[1]>>>0,4),ti.writeUInt32BE(tt[2]>>>0,8),ti.writeUInt32BE(tt[3]>>>0,12),ti}function tp(tt){this.h=tt,this.state=ts.alloc(16,0),this.cache=ts.allocUnsafe(0)}tp.prototype.ghash=function(tt){for(var ti=-1;++ti0;tt--)ta[tt]=ta[tt]>>>1|(1&ta[tt-1])<<31;ta[0]=ta[0]>>>1,ti&&(ta[0]=-520093696^ta[0])}this.state=td(ts)},tp.prototype.update=function(tt){var ti;for(this.cache=ts.concat([this.cache,tt]);this.cache.length>=16;)ti=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(ti)},tp.prototype.final=function(tt,ti){return this.cache.length&&this.ghash(ts.concat([this.cache,tc],16)),this.ghash(td([0,tt,0,ti])),this.state},tt.exports=tp},598:function(tt){function ti(tt){for(var ti,ta=tt.length;ta--;)if(255===(ti=tt.readUInt8(ta)))tt.writeUInt8(0,ta);else{ti++,tt.writeUInt8(ti,ta);break}}tt.exports=ti},9825:function(tt,ti,ta){var ts=ta(4734);ti.encrypt=function(tt,ti){var ta=ts(ti,tt._prev);return tt._prev=tt._cipher.encryptBlock(ta),tt._prev},ti.decrypt=function(tt,ti){var ta=tt._prev;return tt._prev=ti,ts(tt._cipher.decryptBlock(ti),ta)}},321:function(tt,ti,ta){var ts=ta(6911).Buffer,tc=ta(4734);function tu(tt,ti,ta){var tu=ti.length,td=tc(ti,tt._cache);return tt._cache=tt._cache.slice(tu),tt._prev=ts.concat([tt._prev,ta?ti:td]),td}ti.encrypt=function(tt,ti,ta){for(var tc,td=ts.allocUnsafe(0);ti.length;)if(0===tt._cache.length&&(tt._cache=tt._cipher.encryptBlock(tt._prev),tt._prev=ts.allocUnsafe(0)),tt._cache.length<=ti.length)tc=tt._cache.length,td=ts.concat([td,tu(tt,ti.slice(0,tc),ta)]),ti=ti.slice(tc);else{td=ts.concat([td,tu(tt,ti,ta)]);break}return td}},3147:function(tt,ti,ta){var ts=ta(6911).Buffer;function tc(tt,ti,ta){for(var ts,tc,td,tp=-1,tv=8,tb=0;++tp>tp%8,tt._prev=tu(tt._prev,ta?tc:td);return tb}function tu(tt,ti){var ta=tt.length,tc=-1,tu=ts.allocUnsafe(tt.length);for(tt=ts.concat([tt,ts.from([ti])]);++tc>7;return tu}ti.encrypt=function(tt,ti,ta){for(var tu=ti.length,td=ts.allocUnsafe(tu),tp=-1;++tp=0||!ta.umod(tt.prime1)||!ta.umod(tt.prime2);)ta=new ts(tu(ti));return ta}tt.exports=tp,tp.getr=tv},9276:function(tt,ti,ta){tt.exports=ta(2908)},4078:function(tt,ti,ta){var ts=ta(6911).Buffer,tc=ta(9739),tu=ta(3726),td=ta(3782),tp=ta(9807),tv=ta(4013),tb=ta(2908);function tg(tt){tu.Writable.call(this);var ti=tb[tt];if(!ti)throw Error("Unknown message digest");this._hashType=ti.hash,this._hash=tc(ti.hash),this._tag=ti.id,this._signType=ti.sign}function t_(tt){tu.Writable.call(this);var ti=tb[tt];if(!ti)throw Error("Unknown message digest");this._hash=tc(ti.hash),this._tag=ti.id,this._signType=ti.sign}function tE(tt){return new tg(tt)}function tS(tt){return new t_(tt)}Object.keys(tb).forEach(function(tt){tb[tt].id=ts.from(tb[tt].id,"hex"),tb[tt.toLowerCase()]=tb[tt]}),td(tg,tu.Writable),tg.prototype._write=function(tt,ti,ta){this._hash.update(tt),ta()},tg.prototype.update=function(tt,ti){return"string"==typeof tt&&(tt=ts.from(tt,ti)),this._hash.update(tt),this},tg.prototype.sign=function(tt,ti){this.end();var ta=tp(this._hash.digest(),tt,this._hashType,this._signType,this._tag);return ti?ta.toString(ti):ta},td(t_,tu.Writable),t_.prototype._write=function(tt,ti,ta){this._hash.update(tt),ta()},t_.prototype.update=function(tt,ti){return"string"==typeof tt&&(tt=ts.from(tt,ti)),this._hash.update(tt),this},t_.prototype.verify=function(tt,ti,ta){return"string"==typeof ti&&(ti=ts.from(ti,ta)),this.end(),tv(ti,this._hash.digest(),tt,this._signType,this._tag)},tt.exports={Sign:tE,Verify:tS,createSign:tE,createVerify:tS}},9807:function(tt,ti,ta){var ts=ta(6911).Buffer,tc=ta(4873),tu=ta(7166),td=ta(949).ec,tp=ta(1670),tv=ta(9902),tb=ta(9267);function tg(tt,ti,ta,tc,td){var tp=tv(ti);if(tp.curve){if("ecdsa"!==tc&&"ecdsa/rsa"!==tc)throw Error("wrong private key type");return t_(tt,tp)}if("dsa"===tp.type){if("dsa"!==tc)throw Error("wrong private key type");return tE(tt,tp,ta)}if("rsa"!==tc&&"ecdsa/rsa"!==tc)throw Error("wrong private key type");tt=ts.concat([td,tt]);for(var tb=tp.modulus.byteLength(),tg=[0,1];tt.length+tg.length+10&&ta.ishrn(ts),ta}function tM(tt,ti){tt=(tt=tT(tt,ti)).mod(ti);var ta=ts.from(tt.toArray());if(ta.length=tt.cmpn(0)||tt.cmp(ti)>=ti)throw Error("invalid sig")}tt.exports=tv},4734:function(tt){tt.exports=function(tt,ti){for(var ta=Math.min(tt.length,ti.length),ts=new tc(ta),tu=0;tuta?ti=("rmd160"===tt?new tv:tb(tt)).update(ti).digest():ti.lengthtp?ti=tt(ti):ti.length0;ts--)ti+=this._buffer(tt,ti),ta+=this._flushBuffer(tc,ta);return ti+=this._buffer(tt,ti),tc},tc.prototype.final=function(tt){var ti,ta;return(tt&&(ti=this.update(tt)),ta="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),ti)?ti.concat(ta):ta},tc.prototype._pad=function(tt,ti){if(0===ti)return!1;for(;ti>>1];ta=tu.r28shl(ta,tp),tc=tu.r28shl(tc,tp),tu.pc2(ta,tc,tt.keys,td)}},tv.prototype._update=function(tt,ti,ta,ts){var tc=this._desState,td=tu.readUInt32BE(tt,ti),tp=tu.readUInt32BE(tt,ti+4);tu.ip(td,tp,tc.tmp,0),td=tc.tmp[0],tp=tc.tmp[1],"encrypt"===this.type?this._encrypt(tc,td,tp,tc.tmp,0):this._decrypt(tc,td,tp,tc.tmp,0),td=tc.tmp[0],tp=tc.tmp[1],tu.writeUInt32BE(ta,td,ts),tu.writeUInt32BE(ta,tp,ts+4)},tv.prototype._pad=function(tt,ti){for(var ta=tt.length-ti,ts=ti;ts>>0,td=tS}tu.rip(tp,td,ts,tc)},tv.prototype._decrypt=function(tt,ti,ta,ts,tc){for(var td=ta,tp=ti,tv=tt.keys.length-2;tv>=0;tv-=2){var tb=tt.keys[tv],tg=tt.keys[tv+1];tu.expand(td,tt.tmp,0),tb^=tt.tmp[0],tg^=tt.tmp[1];var t_=tu.substitute(tb,tg),tE=tu.permute(t_),tS=td;td=(tp^tE)>>>0,tp=tS}tu.rip(td,tp,ts,tc)}},6159:function(tt,ti,ta){"use strict";var ts=ta(3523),tc=ta(3782),tu=ta(9876),td=ta(1016);function tp(tt,ti){ts.equal(ti.length,24,"Invalid key length");var ta=ti.slice(0,8),tc=ti.slice(8,16),tu=ti.slice(16,24);"encrypt"===tt?this.ciphers=[td.create({type:"encrypt",key:ta}),td.create({type:"decrypt",key:tc}),td.create({type:"encrypt",key:tu})]:this.ciphers=[td.create({type:"decrypt",key:tu}),td.create({type:"encrypt",key:tc}),td.create({type:"decrypt",key:ta})]}function tv(tt){tu.call(this,tt);var ti=new tp(this.type,this.options.key);this._edeState=ti}tc(tv,tu),tt.exports=tv,tv.create=function(tt){return new tv(tt)},tv.prototype._update=function(tt,ti,ta,ts){var tc=this._edeState;tc.ciphers[0]._update(tt,ti,ta,ts),tc.ciphers[1]._update(ta,ts,ta,ts),tc.ciphers[2]._update(ta,ts,ta,ts)},tv.prototype._pad=td.prototype._pad,tv.prototype._unpad=td.prototype._unpad},5334:function(tt,ti){"use strict";ti.readUInt32BE=function(tt,ti){return(tt[0+ti]<<24|tt[1+ti]<<16|tt[2+ti]<<8|tt[3+ti])>>>0},ti.writeUInt32BE=function(tt,ti,ta){tt[0+ta]=ti>>>24,tt[1+ta]=ti>>>16&255,tt[2+ta]=ti>>>8&255,tt[3+ta]=255&ti},ti.ip=function(tt,ti,ta,ts){for(var tc=0,tu=0,td=6;td>=0;td-=2){for(var tp=0;tp<=24;tp+=8)tc<<=1,tc|=ti>>>tp+td&1;for(var tp=0;tp<=24;tp+=8)tc<<=1,tc|=tt>>>tp+td&1}for(var td=6;td>=0;td-=2){for(var tp=1;tp<=25;tp+=8)tu<<=1,tu|=ti>>>tp+td&1;for(var tp=1;tp<=25;tp+=8)tu<<=1,tu|=tt>>>tp+td&1}ta[ts+0]=tc>>>0,ta[ts+1]=tu>>>0},ti.rip=function(tt,ti,ta,ts){for(var tc=0,tu=0,td=0;td<4;td++)for(var tp=24;tp>=0;tp-=8)tc<<=1,tc|=ti>>>tp+td&1,tc<<=1,tc|=tt>>>tp+td&1;for(var td=4;td<8;td++)for(var tp=24;tp>=0;tp-=8)tu<<=1,tu|=ti>>>tp+td&1,tu<<=1,tu|=tt>>>tp+td&1;ta[ts+0]=tc>>>0,ta[ts+1]=tu>>>0},ti.pc1=function(tt,ti,ta,ts){for(var tc=0,tu=0,td=7;td>=5;td--){for(var tp=0;tp<=24;tp+=8)tc<<=1,tc|=ti>>tp+td&1;for(var tp=0;tp<=24;tp+=8)tc<<=1,tc|=tt>>tp+td&1}for(var tp=0;tp<=24;tp+=8)tc<<=1,tc|=ti>>tp+td&1;for(var td=1;td<=3;td++){for(var tp=0;tp<=24;tp+=8)tu<<=1,tu|=ti>>tp+td&1;for(var tp=0;tp<=24;tp+=8)tu<<=1,tu|=tt>>tp+td&1}for(var tp=0;tp<=24;tp+=8)tu<<=1,tu|=tt>>tp+td&1;ta[ts+0]=tc>>>0,ta[ts+1]=tu>>>0},ti.r28shl=function(tt,ti){return tt<>>28-ti};var ta=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ti.pc2=function(tt,ti,ts,tc){for(var tu=0,td=0,tp=ta.length>>>1,tv=0;tv>>ta[tv]&1;for(var tv=tp;tv>>ta[tv]&1;ts[tc+0]=tu>>>0,ts[tc+1]=td>>>0},ti.expand=function(tt,ti,ta){var ts=0,tc=0;ts=(1&tt)<<5|tt>>>27;for(var tu=23;tu>=15;tu-=4)ts<<=6,ts|=tt>>>tu&63;for(var tu=11;tu>=3;tu-=4)tc|=tt>>>tu&63,tc<<=6;tc|=(31&tt)<<1|tt>>>31,ti[ta+0]=ts>>>0,ti[ta+1]=tc>>>0};var ts=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ti.substitute=function(tt,ti){for(var ta=0,tc=0;tc<4;tc++){var tu=tt>>>18-6*tc&63,td=ts[64*tc+tu];ta<<=4,ta|=td}for(var tc=0;tc<4;tc++){var tu=ti>>>18-6*tc&63,td=ts[256+64*tc+tu];ta<<=4,ta|=td}return ta>>>0};var tc=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ti.permute=function(tt){for(var ti=0,ta=0;ta>>tc[ta]&1;return ti>>>0},ti.padSplit=function(tt,ti,ta){for(var ts=tt.toString(2);ts.lengthtt;)ta.ishrn(1);if(ta.isEven()&&ta.iadd(tp),ta.testn(1)||ta.iadd(tv),ti.cmp(tv)){if(!ti.cmp(tb))for(;ta.mod(tg).cmp(t_);)ta.iadd(tS)}else for(;ta.mod(tu).cmp(tE);)ta.iadd(tS);if(tM(tA=ta.shrn(1))&&tM(ta)&&tk(tA)&&tk(ta)&&td.test(tA)&&td.test(ta))return ta}}},949:function(tt,ti,ta){"use strict";var ts=ti;ts.version=ta(2531).i8,ts.utils=ta(4401),ts.rand=ta(3500),ts.curve=ta(9359),ts.curves=ta(6226),ts.ec=ta(4088),ts.eddsa=ta(8511)},2727:function(tt,ti,ta){"use strict";var ts=ta(711),tc=ta(4401),tu=tc.getNAF,td=tc.getJSF,tp=tc.assert;function tv(tt,ti){this.type=tt,this.p=new ts(ti.p,16),this.red=ti.prime?ts.red(ti.prime):ts.mont(this.p),this.zero=new ts(0).toRed(this.red),this.one=new ts(1).toRed(this.red),this.two=new ts(2).toRed(this.red),this.n=ti.n&&new ts(ti.n,16),this.g=ti.g&&this.pointFromJSON(ti.g,ti.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var ta=this.n&&this.p.div(this.n);!ta||ta.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function tb(tt,ti){this.curve=tt,this.type=ti,this.precomputed=null}tt.exports=tv,tv.prototype.point=function(){throw Error("Not implemented")},tv.prototype.validate=function(){throw Error("Not implemented")},tv.prototype._fixedNafMul=function(tt,ti){tp(tt.precomputed);var ta=tt._getDoubles(),ts=tu(ti,1,this._bitLength),tc=(1<=tv;ti--)tb=(tb<<1)+ts[ti];td.push(tb)}for(var tg=this.jpoint(null,null,null),t_=this.jpoint(null,null,null),tE=tc;tE>0;tE--){for(var tv=0;tv=0;tb--){for(var ti=0;tb>=0&&0===td[tb];tb--)ti++;if(tb>=0&&ti++,tv=tv.dblp(ti),tb<0)break;var tg=td[tb];tp(0!==tg),tv="affine"===tt.type?tg>0?tv.mixedAdd(tc[tg-1>>1]):tv.mixedAdd(tc[-tg-1>>1].neg()):tg>0?tv.add(tc[tg-1>>1]):tv.add(tc[-tg-1>>1].neg())}return"affine"===tt.type?tv.toP():tv},tv.prototype._wnafMulAdd=function(tt,ti,ta,ts,tc){for(var tp=this._wnafT1,tv=this._wnafT2,tb=this._wnafT3,tg=0,t_=0;t_=1;t_-=2){var tA=t_-1,tT=t_;if(1!==tp[tA]||1!==tp[tT]){tb[tA]=tu(ta[tA],tp[tA],this._bitLength),tb[tT]=tu(ta[tT],tp[tT],this._bitLength),tg=Math.max(tb[tA].length,tg),tg=Math.max(tb[tT].length,tg);continue}var tM=[ti[tA],null,null,ti[tT]];0===ti[tA].y.cmp(ti[tT].y)?(tM[1]=ti[tA].add(ti[tT]),tM[2]=ti[tA].toJ().mixedAdd(ti[tT].neg())):0===ti[tA].y.cmp(ti[tT].y.redNeg())?(tM[1]=ti[tA].toJ().mixedAdd(ti[tT]),tM[2]=ti[tA].add(ti[tT].neg())):(tM[1]=ti[tA].toJ().mixedAdd(ti[tT]),tM[2]=ti[tA].toJ().mixedAdd(ti[tT].neg()));var tk=[-3,-1,-5,-7,0,7,5,1,3],tR=td(ta[tA],ta[tT]);tg=Math.max(tR[0].length,tg),tb[tA]=Array(tg),tb[tT]=Array(tg);for(var tC=0;tC=0;t_--){for(var tB=0;t_>=0;){for(var tL=!0,tC=0;tC=0&&tB++,tO=tO.dblp(tB),t_<0)break;for(var tC=0;tC0?tE=tv[tC][tD-1>>1]:tD<0&&(tE=tv[tC][-tD-1>>1].neg()),tO="affine"===tE.type?tO.mixedAdd(tE):tO.add(tE))}}for(var t_=0;t_=Math.ceil((tt.bitLength()+1)/ti.step)},tb.prototype._getDoubles=function(tt,ti){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ta=[this],ts=this,tc=0;tc":""},tb.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},tb.prototype._extDbl=function(){var tt=this.x.redSqr(),ti=this.y.redSqr(),ta=this.z.redSqr();ta=ta.redIAdd(ta);var ts=this.curve._mulA(tt),tc=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(ti),tu=ts.redAdd(ti),td=tu.redSub(ta),tp=ts.redSub(ti),tv=tc.redMul(td),tb=tu.redMul(tp),tg=tc.redMul(tp),t_=td.redMul(tu);return this.curve.point(tv,tb,t_,tg)},tb.prototype._projDbl=function(){var tt,ti,ta,ts=this.x.redAdd(this.y).redSqr(),tc=this.x.redSqr(),tu=this.y.redSqr();if(this.curve.twisted){var td=this.curve._mulA(tc),tp=td.redAdd(tu);if(this.zOne)tt=ts.redSub(tc).redSub(tu).redMul(tp.redSub(this.curve.two)),ti=tp.redMul(td.redSub(tu)),ta=tp.redSqr().redSub(tp).redSub(tp);else{var tv=this.z.redSqr(),tb=tp.redSub(tv).redISub(tv);tt=ts.redSub(tc).redISub(tu).redMul(tb),ti=tp.redMul(td.redSub(tu)),ta=tp.redMul(tb)}}else{var td=tc.redAdd(tu),tv=this.curve._mulC(this.z).redSqr(),tb=td.redSub(tv).redSub(tv);tt=this.curve._mulC(ts.redISub(td)).redMul(tb),ti=this.curve._mulC(td).redMul(tc.redISub(tu)),ta=td.redMul(tb)}return this.curve.point(tt,ti,ta)},tb.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},tb.prototype._extAdd=function(tt){var ti=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),ta=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),ts=this.t.redMul(this.curve.dd).redMul(tt.t),tc=this.z.redMul(tt.z.redAdd(tt.z)),tu=ta.redSub(ti),td=tc.redSub(ts),tp=tc.redAdd(ts),tv=ta.redAdd(ti),tb=tu.redMul(td),tg=tp.redMul(tv),t_=tu.redMul(tv),tE=td.redMul(tp);return this.curve.point(tb,tg,tE,t_)},tb.prototype._projAdd=function(tt){var ti,ta,ts=this.z.redMul(tt.z),tc=ts.redSqr(),tu=this.x.redMul(tt.x),td=this.y.redMul(tt.y),tp=this.curve.d.redMul(tu).redMul(td),tv=tc.redSub(tp),tb=tc.redAdd(tp),tg=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(tu).redISub(td),t_=ts.redMul(tv).redMul(tg);return this.curve.twisted?(ti=ts.redMul(tb).redMul(td.redSub(this.curve._mulA(tu))),ta=tv.redMul(tb)):(ti=ts.redMul(tb).redMul(td.redSub(tu)),ta=this.curve._mulC(tv).redMul(tb)),this.curve.point(t_,ti,ta)},tb.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)},tb.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)},tb.prototype.mulAdd=function(tt,ti,ta){return this.curve._wnafMulAdd(1,[this,ti],[tt,ta],2,!1)},tb.prototype.jmulAdd=function(tt,ti,ta){return this.curve._wnafMulAdd(1,[this,ti],[tt,ta],2,!0)},tb.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this},tb.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},tb.prototype.getX=function(){return this.normalize(),this.x.fromRed()},tb.prototype.getY=function(){return this.normalize(),this.y.fromRed()},tb.prototype.eq=function(tt){return this===tt||0===this.getX().cmp(tt.getX())&&0===this.getY().cmp(tt.getY())},tb.prototype.eqXToP=function(tt){var ti=tt.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(ti))return!0;for(var ta=tt.clone(),ts=this.curve.redN.redMul(this.z);;){if(ta.iadd(this.curve.n),ta.cmp(this.curve.p)>=0)return!1;if(ti.redIAdd(ts),0===this.x.cmp(ti))return!0}},tb.prototype.toP=tb.prototype.normalize,tb.prototype.mixedAdd=tb.prototype.add},9359:function(tt,ti,ta){"use strict";var ts=ti;ts.base=ta(2727),ts.short=ta(4720),ts.mont=ta(6653),ts.edwards=ta(2705)},6653:function(tt,ti,ta){"use strict";var ts=ta(711),tc=ta(3782),tu=ta(2727),td=ta(4401);function tp(tt){tu.call(this,"mont",tt),this.a=new ts(tt.a,16).toRed(this.red),this.b=new ts(tt.b,16).toRed(this.red),this.i4=new ts(4).toRed(this.red).redInvm(),this.two=new ts(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function tv(tt,ti,ta){tu.BasePoint.call(this,tt,"projective"),null===ti&&null===ta?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ts(ti,16),this.z=new ts(ta,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}tc(tp,tu),tt.exports=tp,tp.prototype.validate=function(tt){var ti=tt.normalize().x,ta=ti.redSqr(),ts=ta.redMul(ti).redAdd(ta.redMul(this.a)).redAdd(ti);return 0===ts.redSqrt().redSqr().cmp(ts)},tc(tv,tu.BasePoint),tp.prototype.decodePoint=function(tt,ti){return this.point(td.toArray(tt,ti),1)},tp.prototype.point=function(tt,ti){return new tv(this,tt,ti)},tp.prototype.pointFromJSON=function(tt){return tv.fromJSON(this,tt)},tv.prototype.precompute=function(){},tv.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},tv.fromJSON=function(tt,ti){return new tv(tt,ti[0],ti[1]||tt.one)},tv.prototype.inspect=function(){return this.isInfinity()?"":""},tv.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},tv.prototype.dbl=function(){var tt=this.x.redAdd(this.z).redSqr(),ti=this.x.redSub(this.z).redSqr(),ta=tt.redSub(ti),ts=tt.redMul(ti),tc=ta.redMul(ti.redAdd(this.curve.a24.redMul(ta)));return this.curve.point(ts,tc)},tv.prototype.add=function(){throw Error("Not supported on Montgomery curve")},tv.prototype.diffAdd=function(tt,ti){var ta=this.x.redAdd(this.z),ts=this.x.redSub(this.z),tc=tt.x.redAdd(tt.z),tu=tt.x.redSub(tt.z).redMul(ta),td=tc.redMul(ts),tp=ti.z.redMul(tu.redAdd(td).redSqr()),tv=ti.x.redMul(tu.redISub(td).redSqr());return this.curve.point(tp,tv)},tv.prototype.mul=function(tt){for(var ti=tt.clone(),ta=this,ts=this.curve.point(null,null),tc=this,tu=[];0!==ti.cmpn(0);ti.iushrn(1))tu.push(ti.andln(1));for(var td=tu.length-1;td>=0;td--)0===tu[td]?(ta=ta.diffAdd(ts,tc),ts=ts.dbl()):(ts=ta.diffAdd(ts,tc),ta=ta.dbl());return ts},tv.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},tv.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},tv.prototype.eq=function(tt){return 0===this.getX().cmp(tt.getX())},tv.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},tv.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(tt,ti,ta){"use strict";var ts=ta(4401),tc=ta(711),tu=ta(3782),td=ta(2727),tp=ts.assert;function tv(tt){td.call(this,"short",tt),this.a=new tc(tt.a,16).toRed(this.red),this.b=new tc(tt.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(tt),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function tb(tt,ti,ta,ts){td.BasePoint.call(this,tt,"affine"),null===ti&&null===ta?(this.x=null,this.y=null,this.inf=!0):(this.x=new tc(ti,16),this.y=new tc(ta,16),ts&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function tg(tt,ti,ta,ts){td.BasePoint.call(this,tt,"jacobian"),null===ti&&null===ta&&null===ts?(this.x=this.curve.one,this.y=this.curve.one,this.z=new tc(0)):(this.x=new tc(ti,16),this.y=new tc(ta,16),this.z=new tc(ts,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}tu(tv,td),tt.exports=tv,tv.prototype._getEndomorphism=function(tt){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(tt.beta)ti=new tc(tt.beta,16).toRed(this.red);else{var ti,ta,ts,tu=this._getEndoRoots(this.p);ti=(ti=0>tu[0].cmp(tu[1])?tu[0]:tu[1]).toRed(this.red)}if(tt.lambda)ta=new tc(tt.lambda,16);else{var td=this._getEndoRoots(this.n);0===this.g.mul(td[0]).x.cmp(this.g.x.redMul(ti))?ta=td[0]:(ta=td[1],tp(0===this.g.mul(ta).x.cmp(this.g.x.redMul(ti))))}return ts=tt.basis?tt.basis.map(function(tt){return{a:new tc(tt.a,16),b:new tc(tt.b,16)}}):this._getEndoBasis(ta),{beta:ti,lambda:ta,basis:ts}}},tv.prototype._getEndoRoots=function(tt){var ti=tt===this.p?this.red:tc.mont(tt),ta=new tc(2).toRed(ti).redInvm(),ts=ta.redNeg(),tu=new tc(3).toRed(ti).redNeg().redSqrt().redMul(ta);return[ts.redAdd(tu).fromRed(),ts.redSub(tu).fromRed()]},tv.prototype._getEndoBasis=function(tt){for(var ti,ta,ts,tu,td,tp,tv,tb,tg,t_=this.n.ushrn(Math.floor(this.n.bitLength()/2)),tE=tt,tS=this.n.clone(),tA=new tc(1),tT=new tc(0),tM=new tc(0),tk=new tc(1),tR=0;0!==tE.cmpn(0);){var tC=tS.div(tE);tb=tS.sub(tC.mul(tE)),tg=tM.sub(tC.mul(tA));var tI=tk.sub(tC.mul(tT));if(!ts&&0>tb.cmp(t_))ti=tv.neg(),ta=tA,ts=tb.neg(),tu=tg;else if(ts&&2==++tR)break;tv=tb,tS=tE,tE=tb,tM=tA,tA=tg,tk=tT,tT=tI}td=tb.neg(),tp=tg;var tP=ts.sqr().add(tu.sqr());return td.sqr().add(tp.sqr()).cmp(tP)>=0&&(td=ti,tp=ta),ts.negative&&(ts=ts.neg(),tu=tu.neg()),td.negative&&(td=td.neg(),tp=tp.neg()),[{a:ts,b:tu},{a:td,b:tp}]},tv.prototype._endoSplit=function(tt){var ti=this.endo.basis,ta=ti[0],ts=ti[1],tc=ts.b.mul(tt).divRound(this.n),tu=ta.b.neg().mul(tt).divRound(this.n),td=tc.mul(ta.a),tp=tu.mul(ts.a),tv=tc.mul(ta.b),tb=tu.mul(ts.b);return{k1:tt.sub(td).sub(tp),k2:tv.add(tb).neg()}},tv.prototype.pointFromX=function(tt,ti){(tt=new tc(tt,16)).red||(tt=tt.toRed(this.red));var ta=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),ts=ta.redSqrt();if(0!==ts.redSqr().redSub(ta).cmp(this.zero))throw Error("invalid point");var tu=ts.fromRed().isOdd();return(ti&&!tu||!ti&&tu)&&(ts=ts.redNeg()),this.point(tt,ts)},tv.prototype.validate=function(tt){if(tt.inf)return!0;var ti=tt.x,ta=tt.y,ts=this.a.redMul(ti),tc=ti.redSqr().redMul(ti).redIAdd(ts).redIAdd(this.b);return 0===ta.redSqr().redISub(tc).cmpn(0)},tv.prototype._endoWnafMulAdd=function(tt,ti,ta){for(var ts=this._endoWnafT1,tc=this._endoWnafT2,tu=0;tu":""},tb.prototype.isInfinity=function(){return this.inf},tb.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt)||0===this.x.cmp(tt.x))return this.curve.point(null,null);var ti=this.y.redSub(tt.y);0!==ti.cmpn(0)&&(ti=ti.redMul(this.x.redSub(tt.x).redInvm()));var ta=ti.redSqr().redISub(this.x).redISub(tt.x),ts=ti.redMul(this.x.redSub(ta)).redISub(this.y);return this.curve.point(ta,ts)},tb.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(0===tt.cmpn(0))return this.curve.point(null,null);var ti=this.curve.a,ta=this.x.redSqr(),ts=tt.redInvm(),tc=ta.redAdd(ta).redIAdd(ta).redIAdd(ti).redMul(ts),tu=tc.redSqr().redISub(this.x.redAdd(this.x)),td=tc.redMul(this.x.redSub(tu)).redISub(this.y);return this.curve.point(tu,td)},tb.prototype.getX=function(){return this.x.fromRed()},tb.prototype.getY=function(){return this.y.fromRed()},tb.prototype.mul=function(tt){return(tt=new tc(tt,16),this.isInfinity())?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)},tb.prototype.mulAdd=function(tt,ti,ta){var ts=[this,ti],tc=[tt,ta];return this.curve.endo?this.curve._endoWnafMulAdd(ts,tc):this.curve._wnafMulAdd(1,ts,tc,2)},tb.prototype.jmulAdd=function(tt,ti,ta){var ts=[this,ti],tc=[tt,ta];return this.curve.endo?this.curve._endoWnafMulAdd(ts,tc,!0):this.curve._wnafMulAdd(1,ts,tc,2,!0)},tb.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||0===this.x.cmp(tt.x)&&0===this.y.cmp(tt.y))},tb.prototype.neg=function(tt){if(this.inf)return this;var ti=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var ta=this.precomputed,ts=function(tt){return tt.neg()};ti.precomputed={naf:ta.naf&&{wnd:ta.naf.wnd,points:ta.naf.points.map(ts)},doubles:ta.doubles&&{step:ta.doubles.step,points:ta.doubles.points.map(ts)}}}return ti},tb.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},tu(tg,td.BasePoint),tv.prototype.jpoint=function(tt,ti,ta){return new tg(this,tt,ti,ta)},tg.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),ti=tt.redSqr(),ta=this.x.redMul(ti),ts=this.y.redMul(ti).redMul(tt);return this.curve.point(ta,ts)},tg.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},tg.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var ti=tt.z.redSqr(),ta=this.z.redSqr(),ts=this.x.redMul(ti),tc=tt.x.redMul(ta),tu=this.y.redMul(ti.redMul(tt.z)),td=tt.y.redMul(ta.redMul(this.z)),tp=ts.redSub(tc),tv=tu.redSub(td);if(0===tp.cmpn(0))return 0!==tv.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var tb=tp.redSqr(),tg=tb.redMul(tp),t_=ts.redMul(tb),tE=tv.redSqr().redIAdd(tg).redISub(t_).redISub(t_),tS=tv.redMul(t_.redISub(tE)).redISub(tu.redMul(tg)),tA=this.z.redMul(tt.z).redMul(tp);return this.curve.jpoint(tE,tS,tA)},tg.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var ti=this.z.redSqr(),ta=this.x,ts=tt.x.redMul(ti),tc=this.y,tu=tt.y.redMul(ti).redMul(this.z),td=ta.redSub(ts),tp=tc.redSub(tu);if(0===td.cmpn(0))return 0!==tp.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var tv=td.redSqr(),tb=tv.redMul(td),tg=ta.redMul(tv),t_=tp.redSqr().redIAdd(tb).redISub(tg).redISub(tg),tE=tp.redMul(tg.redISub(t_)).redISub(tc.redMul(tb)),tS=this.z.redMul(td);return this.curve.jpoint(t_,tE,tS)},tg.prototype.dblp=function(tt){if(0===tt||this.isInfinity())return this;if(!tt)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var ti=this,ta=0;ta=0)return!1;if(ta.redIAdd(tc),0===this.x.cmp(ta))return!0}},tg.prototype.inspect=function(){return this.isInfinity()?"":""},tg.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(tt,ti,ta){"use strict";var ts,tc=ti,tu=ta(7028),td=ta(9359),tp=ta(4401).assert;function tv(tt){"short"===tt.type?this.curve=new td.short(tt):"edwards"===tt.type?this.curve=new td.edwards(tt):this.curve=new td.mont(tt),this.g=this.curve.g,this.n=this.curve.n,this.hash=tt.hash,tp(this.g.validate(),"Invalid curve"),tp(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function tb(tt,ti){Object.defineProperty(tc,tt,{configurable:!0,enumerable:!0,get:function(){var ta=new tv(ti);return Object.defineProperty(tc,tt,{configurable:!0,enumerable:!0,value:ta}),ta}})}tc.PresetCurve=tv,tb("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:tu.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),tb("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:tu.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),tb("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:tu.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),tb("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:tu.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),tb("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:tu.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),tb("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tu.sha256,gRed:!1,g:["9"]}),tb("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tu.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{ts=ta(9702)}catch(tt){ts=void 0}tb("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:tu.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",ts]})},4088:function(tt,ti,ta){"use strict";var ts=ta(711),tc=ta(4910),tu=ta(4401),td=ta(6226),tp=ta(3500),tv=tu.assert,tb=ta(4724),tg=ta(7526);function t_(tt){if(!(this instanceof t_))return new t_(tt);"string"==typeof tt&&(tv(td.hasOwnProperty(tt),"Unknown curve "+tt),tt=td[tt]),tt instanceof td.PresetCurve&&(tt={curve:tt}),this.curve=tt.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=tt.curve.g,this.g.precompute(tt.curve.n.bitLength()+1),this.hash=tt.hash||tt.curve.hash}tt.exports=t_,t_.prototype.keyPair=function(tt){return new tb(this,tt)},t_.prototype.keyFromPrivate=function(tt,ti){return tb.fromPrivate(this,tt,ti)},t_.prototype.keyFromPublic=function(tt,ti){return tb.fromPublic(this,tt,ti)},t_.prototype.genKeyPair=function(tt){tt||(tt={});for(var ti=new tc({hash:this.hash,pers:tt.pers,persEnc:tt.persEnc||"utf8",entropy:tt.entropy||tp(this.hash.hmacStrength),entropyEnc:tt.entropy&&tt.entropyEnc||"utf8",nonce:this.n.toArray()}),ta=this.n.byteLength(),tu=this.n.sub(new ts(2));;){var td=new ts(ti.generate(ta));if(!(td.cmp(tu)>0))return td.iaddn(1),this.keyFromPrivate(td)}},t_.prototype._truncateToN=function(tt,ti){var ta=8*tt.byteLength()-this.n.bitLength();return(ta>0&&(tt=tt.ushrn(ta)),!ti&&tt.cmp(this.n)>=0)?tt.sub(this.n):tt},t_.prototype.sign=function(tt,ti,ta,tu){"object"==typeof ta&&(tu=ta,ta=null),tu||(tu={}),ti=this.keyFromPrivate(ti,ta),tt=this._truncateToN(new ts(tt,16));for(var td=this.n.byteLength(),tp=ti.getPrivate().toArray("be",td),tv=tt.toArray("be",td),tb=new tc({hash:this.hash,entropy:tp,nonce:tv,pers:tu.pers,persEnc:tu.persEnc||"utf8"}),t_=this.n.sub(new ts(1)),tE=0;;tE++){var tS=tu.k?tu.k(tE):new ts(tb.generate(this.n.byteLength()));if(!(0>=(tS=this._truncateToN(tS,!0)).cmpn(1)||tS.cmp(t_)>=0)){var tA=this.g.mul(tS);if(!tA.isInfinity()){var tT=tA.getX(),tM=tT.umod(this.n);if(0!==tM.cmpn(0)){var tk=tS.invm(this.n).mul(tM.mul(ti.getPrivate()).iadd(tt));if(0!==(tk=tk.umod(this.n)).cmpn(0)){var tR=(tA.getY().isOdd()?1:0)|(0!==tT.cmp(tM)?2:0);return tu.canonical&&tk.cmp(this.nh)>0&&(tk=this.n.sub(tk),tR^=1),new tg({r:tM,s:tk,recoveryParam:tR})}}}}}},t_.prototype.verify=function(tt,ti,ta,tc){tt=this._truncateToN(new ts(tt,16)),ta=this.keyFromPublic(ta,tc);var tu=(ti=new tg(ti,"hex")).r,td=ti.s;if(0>tu.cmpn(1)||tu.cmp(this.n)>=0||0>td.cmpn(1)||td.cmp(this.n)>=0)return!1;var tp=td.invm(this.n),tv=tp.mul(tt).umod(this.n),tb=tp.mul(tu).umod(this.n);if(!this.curve._maxwellTrick){var t_=this.g.mulAdd(tv,ta.getPublic(),tb);return!t_.isInfinity()&&0===t_.getX().umod(this.n).cmp(tu)}var t_=this.g.jmulAdd(tv,ta.getPublic(),tb);return!t_.isInfinity()&&t_.eqXToP(tu)},t_.prototype.recoverPubKey=function(tt,ti,ta,tc){tv((3&ta)===ta,"The recovery param is more than two bits"),ti=new tg(ti,tc);var tu=this.n,td=new ts(tt),tp=ti.r,tb=ti.s,t_=1&ta,tE=ta>>1;if(tp.cmp(this.curve.p.umod(this.curve.n))>=0&&tE)throw Error("Unable to find sencond key candinate");tp=tE?this.curve.pointFromX(tp.add(this.curve.n),t_):this.curve.pointFromX(tp,t_);var tS=ti.r.invm(tu),tA=tu.sub(td).mul(tS).umod(tu),tT=tb.mul(tS).umod(tu);return this.g.mulAdd(tA,tp,tT)},t_.prototype.getKeyRecoveryParam=function(tt,ti,ta,ts){if(null!==(ti=new tg(ti,ts)).recoveryParam)return ti.recoveryParam;for(var tc,tu=0;tu<4;tu++){try{tc=this.recoverPubKey(tt,ti,tu)}catch(tt){continue}if(tc.eq(ta))return tu}throw Error("Unable to find valid recovery factor")}},4724:function(tt,ti,ta){"use strict";var ts=ta(711),tc=ta(4401).assert;function tu(tt,ti){this.ec=tt,this.priv=null,this.pub=null,ti.priv&&this._importPrivate(ti.priv,ti.privEnc),ti.pub&&this._importPublic(ti.pub,ti.pubEnc)}tt.exports=tu,tu.fromPublic=function(tt,ti,ta){return ti instanceof tu?ti:new tu(tt,{pub:ti,pubEnc:ta})},tu.fromPrivate=function(tt,ti,ta){return ti instanceof tu?ti:new tu(tt,{priv:ti,privEnc:ta})},tu.prototype.validate=function(){var tt=this.getPublic();return tt.isInfinity()?{result:!1,reason:"Invalid public key"}:tt.validate()?tt.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},tu.prototype.getPublic=function(tt,ti){return("string"==typeof tt&&(ti=tt,tt=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),ti)?this.pub.encode(ti,tt):this.pub},tu.prototype.getPrivate=function(tt){return"hex"===tt?this.priv.toString(16,2):this.priv},tu.prototype._importPrivate=function(tt,ti){this.priv=new ts(tt,ti||16),this.priv=this.priv.umod(this.ec.curve.n)},tu.prototype._importPublic=function(tt,ti){if(tt.x||tt.y){"mont"===this.ec.curve.type?tc(tt.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&tc(tt.x&&tt.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(tt.x,tt.y);return}this.pub=this.ec.curve.decodePoint(tt,ti)},tu.prototype.derive=function(tt){return tt.mul(this.priv).getX()},tu.prototype.sign=function(tt,ti,ta){return this.ec.sign(tt,this,ti,ta)},tu.prototype.verify=function(tt,ti){return this.ec.verify(tt,ti,this)},tu.prototype.inspect=function(){return""}},7526:function(tt,ti,ta){"use strict";var ts=ta(711),tc=ta(4401),tu=tc.assert;function td(tt,ti){if(tt instanceof td)return tt;this._importDER(tt,ti)||(tu(tt.r&&tt.s,"Signature without r or s"),this.r=new ts(tt.r,16),this.s=new ts(tt.s,16),void 0===tt.recoveryParam?this.recoveryParam=null:this.recoveryParam=tt.recoveryParam)}function tp(){this.place=0}function tv(tt,ti){var ta=tt[ti.place++];if(!(128&ta))return ta;var ts=15&ta;if(0===ts||ts>4)return!1;for(var tc=0,tu=0,td=ti.place;tu>>=0;return!(tc<=127)&&(ti.place=td,tc)}function tb(tt){for(var ti=0,ta=tt.length-1;!tt[ti]&&!(128&tt[ti+1])&&ti>>3);for(tt.push(128|ta);--ta;)tt.push(ti>>>(ta<<3)&255);tt.push(ti)}tt.exports=td,td.prototype._importDER=function(tt,ti){tt=tc.toArray(tt,ti);var ta=new tp;if(48!==tt[ta.place++])return!1;var tu=tv(tt,ta);if(!1===tu||tu+ta.place!==tt.length||2!==tt[ta.place++])return!1;var td=tv(tt,ta);if(!1===td)return!1;var tb=tt.slice(ta.place,td+ta.place);if(ta.place+=td,2!==tt[ta.place++])return!1;var tg=tv(tt,ta);if(!1===tg||tt.length!==tg+ta.place)return!1;var t_=tt.slice(ta.place,tg+ta.place);if(0===tb[0]){if(!(128&tb[1]))return!1;tb=tb.slice(1)}if(0===t_[0]){if(!(128&t_[1]))return!1;t_=t_.slice(1)}return this.r=new ts(tb),this.s=new ts(t_),this.recoveryParam=null,!0},td.prototype.toDER=function(tt){var ti=this.r.toArray(),ta=this.s.toArray();for(128&ti[0]&&(ti=[0].concat(ti)),128&ta[0]&&(ta=[0].concat(ta)),ti=tb(ti),ta=tb(ta);!ta[0]&&!(128&ta[1]);)ta=ta.slice(1);var ts=[2];tg(ts,ti.length),(ts=ts.concat(ti)).push(2),tg(ts,ta.length);var tu=ts.concat(ta),td=[48];return tg(td,tu.length),td=td.concat(tu),tc.encode(td,tt)}},8511:function(tt,ti,ta){"use strict";var ts=ta(7028),tc=ta(6226),tu=ta(4401),td=tu.assert,tp=tu.parseBytes,tv=ta(9917),tb=ta(9314);function tg(tt){if(td("ed25519"===tt,"only tested with ed25519 so far"),!(this instanceof tg))return new tg(tt);var tt=tc[tt].curve;this.curve=tt,this.g=tt.g,this.g.precompute(tt.n.bitLength()+1),this.pointClass=tt.point().constructor,this.encodingLength=Math.ceil(tt.n.bitLength()/8),this.hash=ts.sha512}tt.exports=tg,tg.prototype.sign=function(tt,ti){tt=tp(tt);var ta=this.keyFromSecret(ti),ts=this.hashInt(ta.messagePrefix(),tt),tc=this.g.mul(ts),tu=this.encodePoint(tc),td=this.hashInt(tu,ta.pubBytes(),tt).mul(ta.priv()),tv=ts.add(td).umod(this.curve.n);return this.makeSignature({R:tc,S:tv,Rencoded:tu})},tg.prototype.verify=function(tt,ti,ta){tt=tp(tt),ti=this.makeSignature(ti);var ts=this.keyFromPublic(ta),tc=this.hashInt(ti.Rencoded(),ts.pubBytes(),tt),tu=this.g.mul(ti.S());return ti.R().add(ts.pub().mul(tc)).eq(tu)},tg.prototype.hashInt=function(){for(var tt=this.hash(),ti=0;ti(tc>>1)-1?(tc>>1)-tv:tv,tu.isubn(tp)):tp=0,ts[td]=tp,tu.iushrn(1)}return ts}function tv(tt,ti){var ta=[[],[]];tt=tt.clone(),ti=ti.clone();for(var ts=0,tc=0;tt.cmpn(-ts)>0||ti.cmpn(-tc)>0;){var tu,td,tp=tt.andln(3)+ts&3,tv=ti.andln(3)+tc&3;if(3===tp&&(tp=-1),3===tv&&(tv=-1),(1&tp)==0)tu=0;else{var tb=tt.andln(7)+ts&7;tu=(3===tb||5===tb)&&2===tv?-tp:tp}if(ta[0].push(tu),(1&tv)==0)td=0;else{var tb=ti.andln(7)+tc&7;td=(3===tb||5===tb)&&2===tp?-tv:tv}ta[1].push(td),2*ts===tu+1&&(ts=1-ts),2*tc===td+1&&(tc=1-tc),tt.iushrn(1),ti.iushrn(1)}return ta}function tb(tt,ti,ta){var ts="_"+ti;tt.prototype[ti]=function(){return void 0!==this[ts]?this[ts]:this[ts]=ta.call(this)}}function tg(tt){return"string"==typeof tt?ts.toArray(tt,"hex"):tt}function t_(tt){return new tc(tt,"hex","le")}ts.assert=tu,ts.toArray=td.toArray,ts.zero2=td.zero2,ts.toHex=td.toHex,ts.encode=td.encode,ts.getNAF=tp,ts.getJSF=tv,ts.cachedProperty=tb,ts.parseBytes=tg,ts.intFromLE=t_},8368:function(tt,ti,ta){var ts=ta(6911).Buffer,tc=ta(3533);function tu(tt,ti,ta,tu){if(ts.isBuffer(tt)||(tt=ts.from(tt,"binary")),ti&&(ts.isBuffer(ti)||(ti=ts.from(ti,"binary")),8!==ti.length))throw RangeError("salt should be Buffer with 8 byte length");for(var td=ta/8,tp=ts.alloc(td),tv=ts.alloc(tu||0),tb=ts.alloc(0);td>0||tu>0;){var tg=new tc;tg.update(tb),tg.update(tt),ti&&tg.update(ti),tb=tg.digest();var t_=0;if(td>0){var tE=tp.length-td;t_=Math.min(td,tb.length),tb.copy(tp,tE,0,t_),td-=t_}if(t_0){var tS=tv.length-tu,tA=Math.min(tu,tb.length-t_);tb.copy(tv,tS,t_,t_+tA),tu-=tA}}return tb.fill(0),{key:tp,iv:tv}}tt.exports=tu},9029:function(tt,ti,ta){"use strict";var ts=ta(6911).Buffer,tc=ta(3726).Transform;function tu(tt,ti){if(!ts.isBuffer(tt)&&"string"!=typeof tt)throw TypeError(ti+" must be a string or a buffer")}function td(tt){tc.call(this),this._block=ts.allocUnsafe(tt),this._blockSize=tt,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ta(3782)(td,tc),td.prototype._transform=function(tt,ti,ta){var ts=null;try{this.update(tt,ti)}catch(tt){ts=tt}ta(ts)},td.prototype._flush=function(tt){var ti=null;try{this.push(this.digest())}catch(tt){ti=tt}tt(ti)},td.prototype.update=function(tt,ti){if(tu(tt,"Data"),this._finalized)throw Error("Digest already called");ts.isBuffer(tt)||(tt=ts.from(tt,ti));for(var ta=this._block,tc=0;this._blockOffset+tt.length-tc>=this._blockSize;){for(var td=this._blockOffset;td0;++tp)this._length[tp]+=tv,(tv=this._length[tp]/4294967296|0)>0&&(this._length[tp]-=4294967296*tv);return this},td.prototype._update=function(){throw Error("_update is not implemented")},td.prototype.digest=function(tt){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var ti=this._digest();void 0!==tt&&(ti=ti.toString(tt)),this._block.fill(0),this._blockOffset=0;for(var ta=0;ta<4;++ta)this._length[ta]=0;return ti},td.prototype._digest=function(){throw Error("_digest is not implemented")},tt.exports=td},7028:function(tt,ti,ta){var ts=ti;ts.utils=ta(263),ts.common=ta(1330),ts.sha=ta(301),ts.ripemd=ta(3079),ts.hmac=ta(3092),ts.sha1=ts.sha.sha1,ts.sha256=ts.sha.sha256,ts.sha224=ts.sha.sha224,ts.sha384=ts.sha.sha384,ts.sha512=ts.sha.sha512,ts.ripemd160=ts.ripemd.ripemd160},1330:function(tt,ti,ta){"use strict";var ts=ta(263),tc=ta(3523);function tu(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ti.BlockHash=tu,tu.prototype.update=function(tt,ti){if(tt=ts.toArray(tt,ti),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){var ta=(tt=this.pending).length%this._delta8;this.pending=tt.slice(tt.length-ta,tt.length),0===this.pending.length&&(this.pending=null),tt=ts.join32(tt,0,tt.length-ta,this.endian);for(var tc=0;tc>>24&255,ts[tc++]=tt>>>16&255,ts[tc++]=tt>>>8&255,ts[tc++]=255&tt}else for(tu=8,ts[tc++]=255&tt,ts[tc++]=tt>>>8&255,ts[tc++]=tt>>>16&255,ts[tc++]=tt>>>24&255,ts[tc++]=0,ts[tc++]=0,ts[tc++]=0,ts[tc++]=0;tuthis.blockSize&&(tt=new this.Hash().update(tt).digest()),tc(tt.length<=this.blockSize);for(var ti=tt.length;ti>>3}function t_(tt){return ts(tt,17)^ts(tt,19)^tt>>>10}ti.ft_1=tc,ti.ch32=tu,ti.maj32=td,ti.p32=tp,ti.s0_256=tv,ti.s1_256=tb,ti.g0_256=tg,ti.g1_256=t_},263:function(tt,ti,ta){"use strict";var ts=ta(3523),tc=ta(3782);function tu(tt,ti){return(64512&tt.charCodeAt(ti))==55296&&!(ti<0)&&!(ti+1>=tt.length)&&(64512&tt.charCodeAt(ti+1))==56320}function td(tt,ti){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var ta=[];if("string"==typeof tt){if(ti){if("hex"===ti)for((tt=tt.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(tt="0"+tt),tc=0;tc>6|192,ta[ts++]=63&td|128):tu(tt,tc)?(td=65536+((1023&td)<<10)+(1023&tt.charCodeAt(++tc)),ta[ts++]=td>>18|240,ta[ts++]=td>>12&63|128,ta[ts++]=td>>6&63|128,ta[ts++]=63&td|128):(ta[ts++]=td>>12|224,ta[ts++]=td>>6&63|128,ta[ts++]=63&td|128)}}else for(tc=0;tc>>24|tt>>>8&65280|tt<<8&16711680|(255&tt)<<24)>>>0}function tb(tt,ti){for(var ta="",ts=0;ts>>0;return tp}function tS(tt,ti){for(var ta=Array(4*tt.length),ts=0,tc=0;ts>>24,ta[tc+1]=tu>>>16&255,ta[tc+2]=tu>>>8&255,ta[tc+3]=255&tu):(ta[tc+3]=tu>>>24,ta[tc+2]=tu>>>16&255,ta[tc+1]=tu>>>8&255,ta[tc]=255&tu)}return ta}function tA(tt,ti){return tt>>>ti|tt<<32-ti}function tT(tt,ti){return tt<>>32-ti}function tM(tt,ti){return tt+ti>>>0}function tk(tt,ti,ta){return tt+ti+ta>>>0}function tR(tt,ti,ta,ts){return tt+ti+ta+ts>>>0}function tC(tt,ti,ta,ts,tc){return tt+ti+ta+ts+tc>>>0}function tI(tt,ti,ta,ts){var tc=tt[ti],tu=ts+tt[ti+1]>>>0,td=(tu>>0,tt[ti+1]=tu}function tP(tt,ti,ta,ts){return(ti+ts>>>0>>0}function tO(tt,ti,ta,ts){return ti+ts>>>0}function tN(tt,ti,ta,ts,tc,tu,td,tp){var tv,tb=ti;return tt+ta+tc+td+(tv=0+((tb=tb+ts>>>0)>>0)>>0)>>0}function tB(tt,ti,ta,ts,tc,tu,td,tp){return ti+ts+tu+tp>>>0}function tL(tt,ti,ta,ts,tc,tu,td,tp,tv,tb){var tg,t_=ti;return tt+ta+tc+td+tv+(tg=0+((t_=t_+ts>>>0)>>0)>>0)>>0)>>0}function tD(tt,ti,ta,ts,tc,tu,td,tp,tv,tb){return ti+ts+tu+tp+tb>>>0}function tj(tt,ti,ta){return(ti<<32-ta|tt>>>ta)>>>0}function tU(tt,ti,ta){return(tt<<32-ta|ti>>>ta)>>>0}function tF(tt,ti,ta){return tt>>>ta}function tG(tt,ti,ta){return(tt<<32-ta|ti>>>ta)>>>0}ti.inherits=tc,ti.toArray=td,ti.toHex=tp,ti.htonl=tv,ti.toHex32=tb,ti.zero2=tg,ti.zero8=t_,ti.join32=tE,ti.split32=tS,ti.rotr32=tA,ti.rotl32=tT,ti.sum32=tM,ti.sum32_3=tk,ti.sum32_4=tR,ti.sum32_5=tC,ti.sum64=tI,ti.sum64_hi=tP,ti.sum64_lo=tO,ti.sum64_4_hi=tN,ti.sum64_4_lo=tB,ti.sum64_5_hi=tL,ti.sum64_5_lo=tD,ti.rotr64_hi=tj,ti.rotr64_lo=tU,ti.shr64_hi=tF,ti.shr64_lo=tG},4910:function(tt,ti,ta){"use strict";var ts=ta(7028),tc=ta(6545),tu=ta(3523);function td(tt){if(!(this instanceof td))return new td(tt);this.hash=tt.hash,this.predResist=!!tt.predResist,this.outLen=this.hash.outSize,this.minEntropy=tt.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var ti=tc.toArray(tt.entropy,tt.entropyEnc||"hex"),ta=tc.toArray(tt.nonce,tt.nonceEnc||"hex"),ts=tc.toArray(tt.pers,tt.persEnc||"hex");tu(ti.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(ti,ta,ts)}tt.exports=td,td.prototype._init=function(tt,ti,ta){var ts=tt.concat(ti).concat(ta);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var tc=0;tc=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(ta||[])),this._reseed=1},td.prototype.generate=function(tt,ti,ta,ts){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof ti&&(ts=ta,ta=ti,ti=null),ta&&(ta=tc.toArray(ta,ts||"hex"),this._update(ta));for(var tu=[];tu.length>>32-ti}function tb(tt,ti,ta,ts,tc,tu,td){return tv(tt+(ti&ta|~ti&ts)+tc+tu|0,td)+ti|0}function tg(tt,ti,ta,ts,tc,tu,td){return tv(tt+(ti&ts|ta&~ts)+tc+tu|0,td)+ti|0}function t_(tt,ti,ta,ts,tc,tu,td){return tv(tt+(ti^ta^ts)+tc+tu|0,td)+ti|0}function tE(tt,ti,ta,ts,tc,tu,td){return tv(tt+(ta^(ti|~ts))+tc+tu|0,td)+ti|0}ts(tp,tc),tp.prototype._update=function(){for(var tt=td,ti=0;ti<16;++ti)tt[ti]=this._block.readInt32LE(4*ti);var ta=this._a,ts=this._b,tc=this._c,tu=this._d;ta=tb(ta,ts,tc,tu,tt[0],3614090360,7),tu=tb(tu,ta,ts,tc,tt[1],3905402710,12),tc=tb(tc,tu,ta,ts,tt[2],606105819,17),ts=tb(ts,tc,tu,ta,tt[3],3250441966,22),ta=tb(ta,ts,tc,tu,tt[4],4118548399,7),tu=tb(tu,ta,ts,tc,tt[5],1200080426,12),tc=tb(tc,tu,ta,ts,tt[6],2821735955,17),ts=tb(ts,tc,tu,ta,tt[7],4249261313,22),ta=tb(ta,ts,tc,tu,tt[8],1770035416,7),tu=tb(tu,ta,ts,tc,tt[9],2336552879,12),tc=tb(tc,tu,ta,ts,tt[10],4294925233,17),ts=tb(ts,tc,tu,ta,tt[11],2304563134,22),ta=tb(ta,ts,tc,tu,tt[12],1804603682,7),tu=tb(tu,ta,ts,tc,tt[13],4254626195,12),tc=tb(tc,tu,ta,ts,tt[14],2792965006,17),ts=tb(ts,tc,tu,ta,tt[15],1236535329,22),ta=tg(ta,ts,tc,tu,tt[1],4129170786,5),tu=tg(tu,ta,ts,tc,tt[6],3225465664,9),tc=tg(tc,tu,ta,ts,tt[11],643717713,14),ts=tg(ts,tc,tu,ta,tt[0],3921069994,20),ta=tg(ta,ts,tc,tu,tt[5],3593408605,5),tu=tg(tu,ta,ts,tc,tt[10],38016083,9),tc=tg(tc,tu,ta,ts,tt[15],3634488961,14),ts=tg(ts,tc,tu,ta,tt[4],3889429448,20),ta=tg(ta,ts,tc,tu,tt[9],568446438,5),tu=tg(tu,ta,ts,tc,tt[14],3275163606,9),tc=tg(tc,tu,ta,ts,tt[3],4107603335,14),ts=tg(ts,tc,tu,ta,tt[8],1163531501,20),ta=tg(ta,ts,tc,tu,tt[13],2850285829,5),tu=tg(tu,ta,ts,tc,tt[2],4243563512,9),tc=tg(tc,tu,ta,ts,tt[7],1735328473,14),ts=tg(ts,tc,tu,ta,tt[12],2368359562,20),ta=t_(ta,ts,tc,tu,tt[5],4294588738,4),tu=t_(tu,ta,ts,tc,tt[8],2272392833,11),tc=t_(tc,tu,ta,ts,tt[11],1839030562,16),ts=t_(ts,tc,tu,ta,tt[14],4259657740,23),ta=t_(ta,ts,tc,tu,tt[1],2763975236,4),tu=t_(tu,ta,ts,tc,tt[4],1272893353,11),tc=t_(tc,tu,ta,ts,tt[7],4139469664,16),ts=t_(ts,tc,tu,ta,tt[10],3200236656,23),ta=t_(ta,ts,tc,tu,tt[13],681279174,4),tu=t_(tu,ta,ts,tc,tt[0],3936430074,11),tc=t_(tc,tu,ta,ts,tt[3],3572445317,16),ts=t_(ts,tc,tu,ta,tt[6],76029189,23),ta=t_(ta,ts,tc,tu,tt[9],3654602809,4),tu=t_(tu,ta,ts,tc,tt[12],3873151461,11),tc=t_(tc,tu,ta,ts,tt[15],530742520,16),ts=t_(ts,tc,tu,ta,tt[2],3299628645,23),ta=tE(ta,ts,tc,tu,tt[0],4096336452,6),tu=tE(tu,ta,ts,tc,tt[7],1126891415,10),tc=tE(tc,tu,ta,ts,tt[14],2878612391,15),ts=tE(ts,tc,tu,ta,tt[5],4237533241,21),ta=tE(ta,ts,tc,tu,tt[12],1700485571,6),tu=tE(tu,ta,ts,tc,tt[3],2399980690,10),tc=tE(tc,tu,ta,ts,tt[10],4293915773,15),ts=tE(ts,tc,tu,ta,tt[1],2240044497,21),ta=tE(ta,ts,tc,tu,tt[8],1873313359,6),tu=tE(tu,ta,ts,tc,tt[15],4264355552,10),tc=tE(tc,tu,ta,ts,tt[6],2734768916,15),ts=tE(ts,tc,tu,ta,tt[13],1309151649,21),ta=tE(ta,ts,tc,tu,tt[4],4149444226,6),tu=tE(tu,ta,ts,tc,tt[11],3174756917,10),tc=tE(tc,tu,ta,ts,tt[2],718787259,15),ts=tE(ts,tc,tu,ta,tt[9],3951481745,21),this._a=this._a+ta|0,this._b=this._b+ts|0,this._c=this._c+tc|0,this._d=this._d+tu|0},tp.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var tt=tu.allocUnsafe(16);return tt.writeInt32LE(this._a,0),tt.writeInt32LE(this._b,4),tt.writeInt32LE(this._c,8),tt.writeInt32LE(this._d,12),tt},tt.exports=tp},1354:function(tt,ti,ta){var ts=ta(711),tc=ta(3500);function tu(tt){this.rand=tt||new tc.Rand}tt.exports=tu,tu.create=function(tt){return new tu(tt)},tu.prototype._randbelow=function(tt){var ti=Math.ceil(tt.bitLength()/8);do var ta=new ts(this.rand.generate(ti));while(ta.cmp(tt)>=0);return ta},tu.prototype._randrange=function(tt,ti){var ta=ti.sub(tt);return tt.add(this._randbelow(ta))},tu.prototype.test=function(tt,ti,ta){var tc=tt.bitLength(),tu=ts.mont(tt),td=new ts(1).toRed(tu);ti||(ti=Math.max(1,tc/48|0));for(var tp=tt.subn(1),tv=0;!tp.testn(tv);tv++);for(var tb=tt.shrn(tv),tg=tp.toRed(tu),t_=!0;ti>0;ti--){var tE=this._randrange(new ts(2),tp);ta&&ta(tE);var tS=tE.toRed(tu).redPow(tb);if(0!==tS.cmp(td)&&0!==tS.cmp(tg)){for(var tA=1;tA0;ti--){var tg=this._randrange(new ts(2),td),t_=tt.gcd(tg);if(0!==t_.cmpn(1))return t_;var tE=tg.toRed(tc).redPow(tv);if(0!==tE.cmp(tu)&&0!==tE.cmp(tb)){for(var tS=1;tS>8,td=255&tc;tu?ta.push(tu,td):ta.push(td)}return ta}function tc(tt){return 1===tt.length?"0"+tt:tt}function tu(tt){for(var ti="",ta=0;tati||ta!=ta)throw TypeError("Bad key length")}},2127:function(tt,ti,ta){var ts={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},tc=ta(4873),tu=ta(6911).Buffer,td=ta(5349),tp=ta(7007),tv=ta(5407);function tb(tt,ti,ta,tb,tg){td(ta,tb),tt=tv(tt,tp,"Password"),ti=tv(ti,tp,"Salt"),tg=tg||"sha1";var t_=tu.allocUnsafe(tb),tE=tu.allocUnsafe(ti.length+4);ti.copy(tE,0,0,ti.length);for(var tS=0,tA=ts[tg],tT=Math.ceil(tb/tA),tM=1;tM<=tT;tM++){tE.writeUInt32BE(tM,ti.length);for(var tk=tc(tg,tt).update(tE).digest(),tR=tk,tC=1;tC=ti.length){tu++;break}var td=ti.slice(2,tc-1);if(("0002"!==ts.toString("hex")&&!ta||"0001"!==ts.toString("hex")&&ta)&&tu++,td.length<8&&tu++,tu)throw Error("decryption error");return ti.slice(tc)}function tS(tt,ti){tt=tg.from(tt),ti=tg.from(ti);var ta=0,ts=tt.length;tt.length!==ti.length&&(ta++,ts=Math.min(tt.length,ti.length));for(var tc=-1;++tctS||new td(ti).cmp(tv.modulus)>=0)throw Error("decryption error");tu=ta?tb(new td(ti),tv):tp(ti,tv);var tA=tg.alloc(tS-tu.length);if(tu=tg.concat([tA,tu],tS),4===tc)return t_(tv,tu);if(1===tc)return tE(tv,tu,ta);if(3===tc)return tu;throw Error("unknown padding")}},3995:function(tt,ti,ta){var ts=ta(9902),tc=ta(7223),tu=ta(9739),td=ta(5520),tp=ta(6386),tv=ta(711),tb=ta(1607),tg=ta(7166),t_=ta(6911).Buffer;function tE(tt,ti){var ta=tt.modulus.byteLength(),ts=ti.length,tb=tu("sha1").update(t_.alloc(0)).digest(),tg=tb.length,tE=2*tg;if(ts>ta-tE-2)throw Error("message too long");var tS=t_.alloc(ta-ts-tE-2),tA=ta-tg-1,tT=tc(tg),tM=tp(t_.concat([tb,tS,t_.alloc(1,1),ti],tA),td(tT,tA)),tk=tp(tT,td(tM,tg));return new tv(t_.concat([t_.alloc(1),tk,tM],ta))}function tS(tt,ti,ta){var ts,tc=ti.length,tu=tt.modulus.byteLength();if(tc>tu-11)throw Error("message too long");return ts=ta?t_.alloc(tu-tc-3,255):tA(tu-tc-3),new tv(t_.concat([t_.from([0,ta?1:2]),ts,t_.alloc(1),ti],tu))}function tA(tt){for(var ti,ta=t_.allocUnsafe(tt),ts=0,tu=tc(2*tt),td=0;ts=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return ta?tg(tu,td):tb(tu,td)}},1607:function(tt,ti,ta){var ts=ta(711),tc=ta(6911).Buffer;function tu(tt,ti){return tc.from(tt.toRed(ts.mont(ti.modulus)).redPow(new ts(ti.publicExponent)).fromRed().toArray())}tt.exports=tu},6386:function(tt){tt.exports=function(tt,ti){for(var ta=tt.length,ts=-1;++tstd)throw RangeError("requested too many random bytes");var ta=tv.allocUnsafe(tt);if(tt>0){if(tt>tc)for(var ts=0;tstg||tt<0)throw TypeError("offset must be a uint32");if(tt>tv||tt>ti)throw RangeError("offset out of range")}function tE(tt,ti,ta){if("number"!=typeof tt||tt!=tt)throw TypeError("size must be a number");if(tt>tg||tt<0)throw TypeError("size must be a uint32");if(tt+ti>ta||tt>tv)throw RangeError("buffer too small")}function tS(tt,ti,ts,tc){if(!tp.isBuffer(tt)&&!(tt instanceof ta.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof ti)tc=ti,ti=0,ts=tt.length;else if("function"==typeof ts)tc=ts,ts=tt.length-ti;else if("function"!=typeof tc)throw TypeError('"cb" argument must be a function');return t_(ti,tt.length),tE(ts,ti,tt.length),tA(tt,ti,ts,tc)}function tA(tt,ti,ta,ts){var tc=tt.buffer,td=new Uint8Array(tc,ti,ta);if(tb.getRandomValues(td),ts){tu.nextTick(function(){ts(null,tt)});return}return tt}function tT(tt,ti,ts){if(void 0===ti&&(ti=0),!tp.isBuffer(tt)&&!(tt instanceof ta.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return t_(ti,tt.length),void 0===ts&&(ts=tt.length-ti),tE(ts,ti,tt.length),tA(tt,ti,ts)}tb&&tb.getRandomValues?(ti.randomFill=tS,ti.randomFillSync=tT):(ti.randomFill=tc,ti.randomFillSync=tc)},4646:function(tt){"use strict";var ti={};function ta(tt,ta,ts){function tc(tt,ti,ts){return"string"==typeof ta?ta:ta(tt,ti,ts)}ts||(ts=Error);var tu=function(tt){tb(ta,tt);var ti=tE(ta);function ta(tt,ts,tu){return tv(this,ta),ti.call(this,tc(tt,ts,tu))}return tp(ta)}(ts);tu.prototype.name=ts.name,tu.prototype.code=tt,ti[tt]=tu}function ts(tt,ti){if(!Array.isArray(tt))return"of ".concat(ti," ").concat(String(tt));var ta=tt.length;return(tt=tt.map(function(tt){return String(tt)}),ta>2)?"one of ".concat(ti," ").concat(tt.slice(0,ta-1).join(", "),", or ")+tt[ta-1]:2===ta?"one of ".concat(ti," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(ti," ").concat(tt[0])}function tc(tt,ti,ta){return tt.substr(!ta||ta<0?0:+ta,ti.length)===ti}function tu(tt,ti,ta){return(void 0===ta||ta>tt.length)&&(ta=tt.length),tt.substring(ta-ti.length,ta)===ti}function td(tt,ti,ta){return"number"!=typeof ta&&(ta=0),!(ta+ti.length>tt.length)&&-1!==tt.indexOf(ti,ta)}ta("ERR_INVALID_OPT_VALUE",function(tt,ti){return'The value "'+ti+'" is invalid for option "'+tt+'"'},TypeError),ta("ERR_INVALID_ARG_TYPE",function(tt,ti,ta){if("string"==typeof ti&&tc(ti,"not ")?(tp="must not be",ti=ti.replace(/^not /,"")):tp="must be",tu(tt," argument"))tv="The ".concat(tt," ").concat(tp," ").concat(ts(ti,"type"));else{var tp,tv,tb=td(tt,".")?"property":"argument";tv='The "'.concat(tt,'" ').concat(tb," ").concat(tp," ").concat(ts(ti,"type"))}return tv+". Received type ".concat(typeof ta)},TypeError),ta("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ta("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),ta("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ta("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),ta("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ta("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ta("ERR_STREAM_WRITE_AFTER_END","write after end"),ta("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ta("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),ta("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tt.exports.q=ti},2403:function(tt,ti,ta){"use strict";var ts=Object.keys||function(tt){var ti=[];for(var ta in tt)ti.push(ta);return ti};tt.exports=tg;var tc=ta(1709),td=ta(7337);ta(3782)(tg,tc);for(var tp=ts(td.prototype),tv=0;tv0){if("string"==typeof ti||tp.objectMode||Object.getPrototypeOf(ti)===tE.prototype||(ti=tA(ti)),ts)tp.endEmitted?tL(tt,new tB):tH(tt,tp,ti,!0);else if(tp.ended)tL(tt,new tO);else{if(tp.destroyed)return!1;tp.reading=!1,tp.decoder&&!ta?(ti=tp.decoder.write(ti),tp.objectMode||0!==ti.length?tH(tt,tp,ti,!1):tK(tt,tp)):tH(tt,tp,ti,!1)}}else ts||(tp.reading=!1,tK(tt,tp));return!tp.ended&&(tp.length=tV?tt=tV:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function tW(tt,ti){return tt<=0||0===ti.length&&ti.ended?0:ti.objectMode?1:tt!=tt?ti.flowing&&ti.length?ti.buffer.head.data.length:ti.length:(tt>ti.highWaterMark&&(ti.highWaterMark=tq(tt)),tt<=ti.length)?tt:ti.ended?ti.length:(ti.needReadable=!0,0)}function tY(tt,ti){if(td("onEofChunk"),!ti.ended){if(ti.decoder){var ta=ti.decoder.end();ta&&ta.length&&(ti.buffer.push(ta),ti.length+=ti.objectMode?1:ta.length)}ti.ended=!0,ti.sync?tX(tt):(ti.needReadable=!1,ti.emittedReadable||(ti.emittedReadable=!0,tQ(tt)))}}function tX(tt){var ti=tt._readableState;td("emitReadable",ti.needReadable,ti.emittedReadable),ti.needReadable=!1,ti.emittedReadable||(td("emitReadable",ti.flowing),ti.emittedReadable=!0,tu.nextTick(tQ,tt))}function tQ(tt){var ti=tt._readableState;td("emitReadable_",ti.destroyed,ti.length,ti.ended),!ti.destroyed&&(ti.length||ti.ended)&&(tt.emit("readable"),ti.emittedReadable=!1),ti.needReadable=!ti.flowing&&!ti.ended&&ti.length<=ti.highWaterMark,t3(tt)}function tK(tt,ti){ti.readingMore||(ti.readingMore=!0,tu.nextTick(tZ,tt,ti))}function tZ(tt,ti){for(;!ti.reading&&!ti.ended&&(ti.length0,ti.resumeScheduled&&!ti.paused?ti.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function t0(tt){td("readable nexttick read 0"),tt.read(0)}function t1(tt,ti){ti.resumeScheduled||(ti.resumeScheduled=!0,tu.nextTick(t2,tt,ti))}function t2(tt,ti){td("resume",ti.reading),ti.reading||tt.read(0),ti.resumeScheduled=!1,tt.emit("resume"),t3(tt),ti.flowing&&!ti.reading&&tt.read(0)}function t3(tt){var ti=tt._readableState;for(td("flow",ti.flowing);ti.flowing&&null!==tt.read(););}function t8(tt,ti){var ta;return 0===ti.length?null:(ti.objectMode?ta=ti.buffer.shift():!tt||tt>=ti.length?(ta=ti.decoder?ti.buffer.join(""):1===ti.buffer.length?ti.buffer.first():ti.buffer.concat(ti.length),ti.buffer.clear()):ta=ti.buffer.consume(tt,ti.decoder),ta)}function t5(tt){var ti=tt._readableState;td("endReadable",ti.endEmitted),ti.endEmitted||(ti.ended=!0,tu.nextTick(t4,ti,tt))}function t4(tt,ti){if(td("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&0===tt.length&&(tt.endEmitted=!0,ti.readable=!1,ti.emit("end"),tt.autoDestroy)){var ta=ti._writableState;(!ta||ta.autoDestroy&&ta.finished)&&ti.destroy()}}function t6(tt,ti){for(var ta=0,ts=tt.length;ta=ta.highWaterMark:ta.length>0)||ta.ended))return td("read: emitReadable",ta.length,ta.ended),0===ta.length&&ta.ended?t5(this):tX(this),null;if(0===(tt=tW(tt,ta))&&ta.ended)return 0===ta.length&&t5(this),null;var tc=ta.needReadable;return td("need readable",tc),(0===ta.length||ta.length-tt0?t8(tt,ta):null)?(ta.needReadable=ta.length<=ta.highWaterMark,tt=0):(ta.length-=tt,ta.awaitDrain=0),0===ta.length&&(ta.ended||(ta.needReadable=!0),ts!==tt&&ta.ended&&t5(this)),null!==ti&&this.emit("data",ti),ti},tF.prototype._read=function(tt){tL(this,new tN("_read()"))},tF.prototype.pipe=function(tt,ti){var ta=this,ts=this._readableState;switch(ts.pipesCount){case 0:ts.pipes=tt;break;case 1:ts.pipes=[ts.pipes,tt];break;default:ts.pipes.push(tt)}ts.pipesCount+=1,td("pipe count=%d opts=%j",ts.pipesCount,ti);var tc=ti&&!1===ti.end||tt===tu.stdout||tt===tu.stderr?tk:tv;function tp(tt,ti){td("onunpipe"),tt===ta&&ti&&!1===ti.hasUnpiped&&(ti.hasUnpiped=!0,tE())}function tv(){td("onend"),tt.end()}ts.endEmitted?tu.nextTick(tc):ta.once("end",tc),tt.on("unpipe",tp);var tb=tJ(ta);tt.on("drain",tb);var t_=!1;function tE(){td("cleanup"),tt.removeListener("close",tT),tt.removeListener("finish",tM),tt.removeListener("drain",tb),tt.removeListener("error",tA),tt.removeListener("unpipe",tp),ta.removeListener("end",tv),ta.removeListener("end",tk),ta.removeListener("data",tS),t_=!0,ts.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&tb()}function tS(ti){td("ondata");var tc=tt.write(ti);td("dest.write",tc),!1===tc&&((1===ts.pipesCount&&ts.pipes===tt||ts.pipesCount>1&&-1!==t6(ts.pipes,tt))&&!t_&&(td("false write response, pause",ts.awaitDrain),ts.awaitDrain++),ta.pause())}function tA(ti){td("onerror",ti),tk(),tt.removeListener("error",tA),0===tg(tt,"error")&&tL(tt,ti)}function tT(){tt.removeListener("finish",tM),tk()}function tM(){td("onfinish"),tt.removeListener("close",tT),tk()}function tk(){td("unpipe"),ta.unpipe(tt)}return ta.on("data",tS),tj(tt,"error",tA),tt.once("close",tT),tt.once("finish",tM),tt.emit("pipe",ta),ts.flowing||(td("pipe resume"),ta.resume()),tt},tF.prototype.unpipe=function(tt){var ti=this._readableState,ta={hasUnpiped:!1};if(0===ti.pipesCount)return this;if(1===ti.pipesCount)return tt&&tt!==ti.pipes||(tt||(tt=ti.pipes),ti.pipes=null,ti.pipesCount=0,ti.flowing=!1,tt&&tt.emit("unpipe",this,ta)),this;if(!tt){var ts=ti.pipes,tc=ti.pipesCount;ti.pipes=null,ti.pipesCount=0,ti.flowing=!1;for(var tu=0;tu0,!1!==ts.flowing&&this.resume()):"readable"!==tt||ts.endEmitted||ts.readableListening||(ts.readableListening=ts.needReadable=!0,ts.flowing=!1,ts.emittedReadable=!1,td("on readable",ts.length,ts.reading),ts.length?tX(this):ts.reading||tu.nextTick(t0,this)),ta},tF.prototype.addListener=tF.prototype.on,tF.prototype.removeListener=function(tt,ti){var ta=t_.prototype.removeListener.call(this,tt,ti);return"readable"===tt&&tu.nextTick(t$,this),ta},tF.prototype.removeAllListeners=function(tt){var ti=t_.prototype.removeAllListeners.apply(this,arguments);return("readable"===tt||void 0===tt)&&tu.nextTick(t$,this),ti},tF.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(td("resume"),tt.flowing=!tt.readableListening,t1(this,tt)),tt.paused=!1,this},tF.prototype.pause=function(){return td("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(td("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},tF.prototype.wrap=function(tt){var ti=this,ta=this._readableState,ts=!1;for(var tc in tt.on("end",function(){if(td("wrapped end"),ta.decoder&&!ta.ended){var tt=ta.decoder.end();tt&&tt.length&&ti.push(tt)}ti.push(null)}),tt.on("data",function(tc){td("wrapped data"),ta.decoder&&(tc=ta.decoder.write(tc)),(!ta.objectMode||null!=tc)&&(ta.objectMode||tc&&tc.length)&&(ti.push(tc)||(ts=!0,tt.pause()))}),tt)void 0===this[tc]&&"function"==typeof tt[tc]&&(this[tc]=function(ti){return function(){return tt[ti].apply(tt,arguments)}}(tc));for(var tu=0;tu-1))throw new tB(tt);return this._writableState.defaultEncoding=tt,this},Object.defineProperty(tU.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tU.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),tU.prototype._write=function(tt,ti,ta){ta(new tR("_write()"))},tU.prototype._writev=null,tU.prototype.end=function(tt,ti,ta){var ts=this._writableState;return"function"==typeof tt?(ta=tt,tt=null,ti=null):"function"==typeof ti&&(ta=ti,ti=null),null!=tt&&this.write(tt,ti),ts.corked&&(ts.corked=1,this.uncork()),ts.ending||t1(this,ts,ta),this},Object.defineProperty(tU.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tU.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(tt){this._writableState&&(this._writableState.destroyed=tt)}}),tU.prototype.destroy=tA.destroy,tU.prototype._undestroy=tA.undestroy,tU.prototype._destroy=function(tt,ti){ti(tt)}},6871:function(tt,ti,ta){"use strict";function ts(tt,ti,ta){return ti in tt?Object.defineProperty(tt,ti,{value:ta,enumerable:!0,configurable:!0,writable:!0}):tt[ti]=ta,tt}var tc,td=ta(9698),tp=Symbol("lastResolve"),tv=Symbol("lastReject"),tb=Symbol("error"),tg=Symbol("ended"),t_=Symbol("lastPromise"),tE=Symbol("handlePromise"),tS=Symbol("stream");function tA(tt,ti){return{value:tt,done:ti}}function tT(tt){var ti=tt[tp];if(null!==ti){var ta=tt[tS].read();null!==ta&&(tt[t_]=null,tt[tp]=null,tt[tv]=null,ti(tA(ta,!1)))}}function tM(tt){tu.nextTick(tT,tt)}function tk(tt,ti){return function(ta,ts){tt.then(function(){if(ti[tg]){ta(tA(void 0,!0));return}ti[tE](ta,ts)},ts)}}var tR=Object.getPrototypeOf(function(){}),tC=Object.setPrototypeOf((ts(tc={get stream(){return this[tS]},next:function(){var tt,ti=this,ta=this[tb];if(null!==ta)return Promise.reject(ta);if(this[tg])return Promise.resolve(tA(void 0,!0));if(this[tS].destroyed)return new Promise(function(tt,ta){tu.nextTick(function(){ti[tb]?ta(ti[tb]):tt(tA(void 0,!0))})});var ts=this[t_];if(ts)tt=new Promise(tk(ts,this));else{var tc=this[tS].read();if(null!==tc)return Promise.resolve(tA(tc,!1));tt=new Promise(this[tE])}return this[t_]=tt,tt}},Symbol.asyncIterator,function(){return this}),ts(tc,"return",function(){var tt=this;return new Promise(function(ti,ta){tt[tS].destroy(null,function(tt){if(tt){ta(tt);return}ti(tA(void 0,!0))})})}),tc),tR),tI=function(tt){var ti,ta=Object.create(tC,(ts(ti={},tS,{value:tt,writable:!0}),ts(ti,tp,{value:null,writable:!0}),ts(ti,tv,{value:null,writable:!0}),ts(ti,tb,{value:null,writable:!0}),ts(ti,tg,{value:tt._readableState.endEmitted,writable:!0}),ts(ti,tE,{value:function(tt,ti){var ts=ta[tS].read();ts?(ta[t_]=null,ta[tp]=null,ta[tv]=null,tt(tA(ts,!1))):(ta[tp]=tt,ta[tv]=ti)},writable:!0}),ti));return ta[t_]=null,td(tt,function(tt){if(tt&&"ERR_STREAM_PREMATURE_CLOSE"!==tt.code){var ti=ta[tv];null!==ti&&(ta[t_]=null,ta[tp]=null,ta[tv]=null,ti(tt)),ta[tb]=tt;return}var ts=ta[tp];null!==ts&&(ta[t_]=null,ta[tp]=null,ta[tv]=null,ts(tA(void 0,!0))),ta[tg]=!0}),tt.on("readable",tM.bind(null,ta)),ta};tt.exports=tI},4379:function(tt,ti,ta){"use strict";function ts(tt,ti){var ta=Object.keys(tt);if(Object.getOwnPropertySymbols){var ts=Object.getOwnPropertySymbols(tt);ti&&(ts=ts.filter(function(ti){return Object.getOwnPropertyDescriptor(tt,ti).enumerable})),ta.push.apply(ta,ts)}return ta}function tc(tt){for(var ti=1;ti0?this.tail.next=ti:this.head=ti,this.tail=ti,++this.length}},{key:"unshift",value:function(tt){var ti={data:tt,next:this.head};0===this.length&&(this.tail=ti),this.head=ti,++this.length}},{key:"shift",value:function(){if(0!==this.length){var tt=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,tt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(tt){if(0===this.length)return"";for(var ti=this.head,ta=""+ti.data;ti=ti.next;)ta+=tt+ti.data;return ta}},{key:"concat",value:function(tt){if(0===this.length)return tb.alloc(0);for(var ti=tb.allocUnsafe(tt>>>0),ta=this.head,ts=0;ta;)tE(ta.data,ti,ts),ts+=ta.data.length,ta=ta.next;return ti}},{key:"consume",value:function(tt,ti){var ta;return tttc.length?tc.length:tt;if(tu===tc.length?ts+=tc:ts+=tc.slice(0,tt),0==(tt-=tu)){tu===tc.length?(++ta,ti.next?this.head=ti.next:this.head=this.tail=null):(this.head=ti,ti.data=tc.slice(tu));break}++ta}return this.length-=ta,ts}},{key:"_getBuffer",value:function(tt){var ti=tb.allocUnsafe(tt),ta=this.head,ts=1;for(ta.data.copy(ti),tt-=ta.data.length;ta=ta.next;){var tc=ta.data,tu=tt>tc.length?tc.length:tt;if(tc.copy(ti,ti.length-tt,0,tu),0==(tt-=tu)){tu===tc.length?(++ts,ta.next?this.head=ta.next:this.head=this.tail=null):(this.head=ta,ta.data=tc.slice(tu));break}++ts}return this.length-=ts,ti}},{key:t_,value:function(tt,ti){return tg(this,tc({},ti,{depth:0,customInspect:!1}))}}]),tt}()},7025:function(tt){"use strict";function ti(tt,ti){var tc=this,tp=this._readableState&&this._readableState.destroyed,tv=this._writableState&&this._writableState.destroyed;return tp||tv?(ti?ti(tt):tt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,tu.nextTick(td,this,tt)):tu.nextTick(td,this,tt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(tt||null,function(tt){!ti&&tt?tc._writableState?tc._writableState.errorEmitted?tu.nextTick(ts,tc):(tc._writableState.errorEmitted=!0,tu.nextTick(ta,tc,tt)):tu.nextTick(ta,tc,tt):ti?(tu.nextTick(ts,tc),ti(tt)):tu.nextTick(ts,tc)}),this)}function ta(tt,ti){td(tt,ti),ts(tt)}function ts(tt){(!tt._writableState||tt._writableState.emitClose)&&(!tt._readableState||tt._readableState.emitClose)&&tt.emit("close")}function tc(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function td(tt,ti){tt.emit("error",ti)}function tp(tt,ti){var ta=tt._readableState,ts=tt._writableState;ta&&ta.autoDestroy||ts&&ts.autoDestroy?tt.destroy(ti):tt.emit("error",ti)}tt.exports={destroy:ti,undestroy:tc,errorOrDestroy:tp}},9698:function(tt,ti,ta){"use strict";var ts=ta(4646).q.ERR_STREAM_PREMATURE_CLOSE;function tc(tt){var ti=!1;return function(){if(!ti){ti=!0;for(var ta=arguments.length,ts=Array(ta),tc=0;tc0,function(ti){tt||(tt=ti),ti&&tu.forEach(t_),td||(tu.forEach(t_),tc(tt))})});return ta.reduce(tE)}tt.exports=tA},6776:function(tt,ti,ta){"use strict";var ts=ta(4646).q.ERR_INVALID_OPT_VALUE;function tc(tt,ti,ta){return null!=tt.highWaterMark?tt.highWaterMark:ti?tt[ta]:null}function tu(tt,ti,ta,tu){var td=tc(ti,tu,ta);if(null!=td){if(!(isFinite(td)&&Math.floor(td)===td)||td<0){var tp=tu?ta:"highWaterMark";throw new ts(tp,td)}return Math.floor(td)}return tt.objectMode?16:16384}tt.exports={getHighWaterMark:tu}},4678:function(tt,ti,ta){tt.exports=ta(2781)},3726:function(tt,ti,ta){var ts=ta(2781);"disable"===tu.env.READABLE_STREAM&&ts?(tt.exports=ts.Readable,Object.assign(tt.exports,ts),tt.exports.Stream=ts):((ti=tt.exports=ta(1709)).Stream=ts||ti,ti.Readable=ti,ti.Writable=ta(7337),ti.Duplex=ta(2403),ti.Transform=ta(1170),ti.PassThrough=ta(7889),ti.finished=ta(9698),ti.pipeline=ta(8442))},3225:function(tt,ti,ta){"use strict";var ts=ta(4300).Buffer,tc=ta(3782),tu=ta(9029),td=Array(16),tp=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],tv=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],tb=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],tg=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],t_=[0,1518500249,1859775393,2400959708,2840853838],tE=[1352829926,1548603684,1836072691,2053994217,0];function tS(){tu.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function tA(tt,ti){return tt<>>32-ti}function tT(tt,ti,ta,ts,tc,tu,td,tp){return tA(tt+(ti^ta^ts)+tu+td|0,tp)+tc|0}function tM(tt,ti,ta,ts,tc,tu,td,tp){return tA(tt+(ti&ta|~ti&ts)+tu+td|0,tp)+tc|0}function tk(tt,ti,ta,ts,tc,tu,td,tp){return tA(tt+((ti|~ta)^ts)+tu+td|0,tp)+tc|0}function tR(tt,ti,ta,ts,tc,tu,td,tp){return tA(tt+(ti&ts|ta&~ts)+tu+td|0,tp)+tc|0}function tC(tt,ti,ta,ts,tc,tu,td,tp){return tA(tt+(ti^(ta|~ts))+tu+td|0,tp)+tc|0}tc(tS,tu),tS.prototype._update=function(){for(var tt,ti,ta=td,ts=0;ts<16;++ts)ta[ts]=this._block.readInt32LE(4*ts);for(var tc=0|this._a,tu=0|this._b,tS=0|this._c,tI=0|this._d,tP=0|this._e,tO=0|this._a,tN=0|this._b,tB=0|this._c,tL=0|this._d,tD=0|this._e,tj=0;tj<80;tj+=1)tj<16?(tt=tT(tc,tu,tS,tI,tP,ta[tp[tj]],t_[0],tb[tj]),ti=tC(tO,tN,tB,tL,tD,ta[tv[tj]],tE[0],tg[tj])):tj<32?(tt=tM(tc,tu,tS,tI,tP,ta[tp[tj]],t_[1],tb[tj]),ti=tR(tO,tN,tB,tL,tD,ta[tv[tj]],tE[1],tg[tj])):tj<48?(tt=tk(tc,tu,tS,tI,tP,ta[tp[tj]],t_[2],tb[tj]),ti=tk(tO,tN,tB,tL,tD,ta[tv[tj]],tE[2],tg[tj])):tj<64?(tt=tR(tc,tu,tS,tI,tP,ta[tp[tj]],t_[3],tb[tj]),ti=tM(tO,tN,tB,tL,tD,ta[tv[tj]],tE[3],tg[tj])):(tt=tC(tc,tu,tS,tI,tP,ta[tp[tj]],t_[4],tb[tj]),ti=tT(tO,tN,tB,tL,tD,ta[tv[tj]],tE[4],tg[tj])),tc=tP,tP=tI,tI=tA(tS,10),tS=tu,tu=tt,tO=tD,tD=tL,tL=tA(tB,10),tB=tN,tN=ti;var tU=this._b+tS+tL|0;this._b=this._c+tI+tD|0,this._c=this._d+tP+tO|0,this._d=this._e+tc+tN|0,this._e=this._a+tu+tB|0,this._a=tU},tS.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var tt=ts.alloc?ts.alloc(20):new ts(20);return tt.writeInt32LE(this._a,0),tt.writeInt32LE(this._b,4),tt.writeInt32LE(this._c,8),tt.writeInt32LE(this._d,12),tt.writeInt32LE(this._e,16),tt},tt.exports=tS},5055:function(tt,ti,ta){var ts=ta(4300),tc=ts.Buffer;function tu(tt,ti){for(var ta in tt)ti[ta]=tt[ta]}function td(tt,ti,ta){return tc(tt,ti,ta)}tc.from&&tc.alloc&&tc.allocUnsafe&&tc.allocUnsafeSlow?tt.exports=ts:(tu(ts,ti),ti.Buffer=td),td.prototype=Object.create(tc.prototype),tu(tc,td),td.from=function(tt,ti,ta){if("number"==typeof tt)throw TypeError("Argument must not be a number");return tc(tt,ti,ta)},td.alloc=function(tt,ti,ta){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ts=tc(tt);return void 0!==ti?"string"==typeof ta?ts.fill(ti,ta):ts.fill(ti):ts.fill(0),ts},td.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return tc(tt)},td.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts.SlowBuffer(tt)}},6911:function(tt,ti,ta){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var ts=ta(4300),tc=ts.Buffer;function tu(tt,ti){for(var ta in tt)ti[ta]=tt[ta]}function td(tt,ti,ta){return tc(tt,ti,ta)}tc.from&&tc.alloc&&tc.allocUnsafe&&tc.allocUnsafeSlow?tt.exports=ts:(tu(ts,ti),ti.Buffer=td),td.prototype=Object.create(tc.prototype),tu(tc,td),td.from=function(tt,ti,ta){if("number"==typeof tt)throw TypeError("Argument must not be a number");return tc(tt,ti,ta)},td.alloc=function(tt,ti,ta){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ts=tc(tt);return void 0!==ti?"string"==typeof ta?ts.fill(ti,ta):ts.fill(ti):ts.fill(0),ts},td.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return tc(tt)},td.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts.SlowBuffer(tt)}},2858:function(tt,ti,ta){var ts=ta(6911).Buffer;function tc(tt,ti){this._block=ts.alloc(tt),this._finalSize=ti,this._blockSize=tt,this._len=0}tc.prototype.update=function(tt,ti){"string"==typeof tt&&(ti=ti||"utf8",tt=ts.from(tt,ti));for(var ta=this._block,tc=this._blockSize,tu=tt.length,td=this._len,tp=0;tp=this._finalSize&&(this._update(this._block),this._block.fill(0));var ta=8*this._len;if(ta<=4294967295)this._block.writeUInt32BE(ta,this._blockSize-4);else{var ts=(4294967295&ta)>>>0,tc=(ta-ts)/4294967296;this._block.writeUInt32BE(tc,this._blockSize-8),this._block.writeUInt32BE(ts,this._blockSize-4)}this._update(this._block);var tu=this._hash();return tt?tu.toString(tt):tu},tc.prototype._update=function(){throw Error("_update must be implemented by subclass")},tt.exports=tc},4371:function(tt,ti,ta){var ts=tt.exports=function(tt){var ti=ts[tt=tt.toLowerCase()];if(!ti)throw Error(tt+" is not supported (we accept pull requests)");return new ti};ts.sha=ta(4018),ts.sha1=ta(4179),ts.sha224=ta(532),ts.sha256=ta(1843),ts.sha384=ta(7455),ts.sha512=ta(9934)},4018:function(tt,ti,ta){var ts=ta(3782),tc=ta(2858),tu=ta(6911).Buffer,td=[1518500249,1859775393,-1894007588,-899497514],tp=Array(80);function tv(){this.init(),this._w=tp,tc.call(this,64,56)}function tb(tt){return tt<<5|tt>>>27}function tg(tt){return tt<<30|tt>>>2}function t_(tt,ti,ta,ts){return 0===tt?ti&ta|~ti&ts:2===tt?ti&ta|ti&ts|ta&ts:ti^ta^ts}ts(tv,tc),tv.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},tv.prototype._update=function(tt){for(var ti=this._w,ta=0|this._a,ts=0|this._b,tc=0|this._c,tu=0|this._d,tp=0|this._e,tv=0;tv<16;++tv)ti[tv]=tt.readInt32BE(4*tv);for(;tv<80;++tv)ti[tv]=ti[tv-3]^ti[tv-8]^ti[tv-14]^ti[tv-16];for(var tE=0;tE<80;++tE){var tS=~~(tE/20),tA=tb(ta)+t_(tS,ts,tc,tu)+tp+ti[tE]+td[tS]|0;tp=tu,tu=tc,tc=tg(ts),ts=ta,ta=tA}this._a=ta+this._a|0,this._b=ts+this._b|0,this._c=tc+this._c|0,this._d=tu+this._d|0,this._e=tp+this._e|0},tv.prototype._hash=function(){var tt=tu.allocUnsafe(20);return tt.writeInt32BE(0|this._a,0),tt.writeInt32BE(0|this._b,4),tt.writeInt32BE(0|this._c,8),tt.writeInt32BE(0|this._d,12),tt.writeInt32BE(0|this._e,16),tt},tt.exports=tv},4179:function(tt,ti,ta){var ts=ta(3782),tc=ta(2858),tu=ta(6911).Buffer,td=[1518500249,1859775393,-1894007588,-899497514],tp=Array(80);function tv(){this.init(),this._w=tp,tc.call(this,64,56)}function tb(tt){return tt<<1|tt>>>31}function tg(tt){return tt<<5|tt>>>27}function t_(tt){return tt<<30|tt>>>2}function tE(tt,ti,ta,ts){return 0===tt?ti&ta|~ti&ts:2===tt?ti&ta|ti&ts|ta&ts:ti^ta^ts}ts(tv,tc),tv.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},tv.prototype._update=function(tt){for(var ti=this._w,ta=0|this._a,ts=0|this._b,tc=0|this._c,tu=0|this._d,tp=0|this._e,tv=0;tv<16;++tv)ti[tv]=tt.readInt32BE(4*tv);for(;tv<80;++tv)ti[tv]=tb(ti[tv-3]^ti[tv-8]^ti[tv-14]^ti[tv-16]);for(var tS=0;tS<80;++tS){var tA=~~(tS/20),tT=tg(ta)+tE(tA,ts,tc,tu)+tp+ti[tS]+td[tA]|0;tp=tu,tu=tc,tc=t_(ts),ts=ta,ta=tT}this._a=ta+this._a|0,this._b=ts+this._b|0,this._c=tc+this._c|0,this._d=tu+this._d|0,this._e=tp+this._e|0},tv.prototype._hash=function(){var tt=tu.allocUnsafe(20);return tt.writeInt32BE(0|this._a,0),tt.writeInt32BE(0|this._b,4),tt.writeInt32BE(0|this._c,8),tt.writeInt32BE(0|this._d,12),tt.writeInt32BE(0|this._e,16),tt},tt.exports=tv},532:function(tt,ti,ta){var ts=ta(3782),tc=ta(1843),tu=ta(2858),td=ta(6911).Buffer,tp=Array(64);function tv(){this.init(),this._w=tp,tu.call(this,64,56)}ts(tv,tc),tv.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},tv.prototype._hash=function(){var tt=td.allocUnsafe(28);return tt.writeInt32BE(this._a,0),tt.writeInt32BE(this._b,4),tt.writeInt32BE(this._c,8),tt.writeInt32BE(this._d,12),tt.writeInt32BE(this._e,16),tt.writeInt32BE(this._f,20),tt.writeInt32BE(this._g,24),tt},tt.exports=tv},1843:function(tt,ti,ta){var ts=ta(3782),tc=ta(2858),tu=ta(6911).Buffer,td=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],tp=Array(64);function tv(){this.init(),this._w=tp,tc.call(this,64,56)}function tb(tt,ti,ta){return ta^tt&(ti^ta)}function tg(tt,ti,ta){return tt&ti|ta&(tt|ti)}function t_(tt){return(tt>>>2|tt<<30)^(tt>>>13|tt<<19)^(tt>>>22|tt<<10)}function tE(tt){return(tt>>>6|tt<<26)^(tt>>>11|tt<<21)^(tt>>>25|tt<<7)}function tS(tt){return(tt>>>7|tt<<25)^(tt>>>18|tt<<14)^tt>>>3}function tA(tt){return(tt>>>17|tt<<15)^(tt>>>19|tt<<13)^tt>>>10}ts(tv,tc),tv.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},tv.prototype._update=function(tt){for(var ti=this._w,ta=0|this._a,ts=0|this._b,tc=0|this._c,tu=0|this._d,tp=0|this._e,tv=0|this._f,tT=0|this._g,tM=0|this._h,tk=0;tk<16;++tk)ti[tk]=tt.readInt32BE(4*tk);for(;tk<64;++tk)ti[tk]=tA(ti[tk-2])+ti[tk-7]+tS(ti[tk-15])+ti[tk-16]|0;for(var tR=0;tR<64;++tR){var tC=tM+tE(tp)+tb(tp,tv,tT)+td[tR]+ti[tR]|0,tI=t_(ta)+tg(ta,ts,tc)|0;tM=tT,tT=tv,tv=tp,tp=tu+tC|0,tu=tc,tc=ts,ts=ta,ta=tC+tI|0}this._a=ta+this._a|0,this._b=ts+this._b|0,this._c=tc+this._c|0,this._d=tu+this._d|0,this._e=tp+this._e|0,this._f=tv+this._f|0,this._g=tT+this._g|0,this._h=tM+this._h|0},tv.prototype._hash=function(){var tt=tu.allocUnsafe(32);return tt.writeInt32BE(this._a,0),tt.writeInt32BE(this._b,4),tt.writeInt32BE(this._c,8),tt.writeInt32BE(this._d,12),tt.writeInt32BE(this._e,16),tt.writeInt32BE(this._f,20),tt.writeInt32BE(this._g,24),tt.writeInt32BE(this._h,28),tt},tt.exports=tv},7455:function(tt,ti,ta){var ts=ta(3782),tc=ta(9934),tu=ta(2858),td=ta(6911).Buffer,tp=Array(160);function tv(){this.init(),this._w=tp,tu.call(this,128,112)}ts(tv,tc),tv.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},tv.prototype._hash=function(){var tt=td.allocUnsafe(48);function ti(ti,ta,ts){tt.writeInt32BE(ti,ts),tt.writeInt32BE(ta,ts+4)}return ti(this._ah,this._al,0),ti(this._bh,this._bl,8),ti(this._ch,this._cl,16),ti(this._dh,this._dl,24),ti(this._eh,this._el,32),ti(this._fh,this._fl,40),tt},tt.exports=tv},9934:function(tt,ti,ta){var ts=ta(3782),tc=ta(2858),tu=ta(6911).Buffer,td=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],tp=Array(160);function tv(){this.init(),this._w=tp,tc.call(this,128,112)}function tb(tt,ti,ta){return ta^tt&(ti^ta)}function tg(tt,ti,ta){return tt&ti|ta&(tt|ti)}function t_(tt,ti){return(tt>>>28|ti<<4)^(ti>>>2|tt<<30)^(ti>>>7|tt<<25)}function tE(tt,ti){return(tt>>>14|ti<<18)^(tt>>>18|ti<<14)^(ti>>>9|tt<<23)}function tS(tt,ti){return(tt>>>1|ti<<31)^(tt>>>8|ti<<24)^tt>>>7}function tA(tt,ti){return(tt>>>1|ti<<31)^(tt>>>8|ti<<24)^(tt>>>7|ti<<25)}function tT(tt,ti){return(tt>>>19|ti<<13)^(ti>>>29|tt<<3)^tt>>>6}function tM(tt,ti){return(tt>>>19|ti<<13)^(ti>>>29|tt<<3)^(tt>>>6|ti<<26)}function tk(tt,ti){return tt>>>0>>0?1:0}ts(tv,tc),tv.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},tv.prototype._update=function(tt){for(var ti=this._w,ta=0|this._ah,ts=0|this._bh,tc=0|this._ch,tu=0|this._dh,tp=0|this._eh,tv=0|this._fh,tR=0|this._gh,tC=0|this._hh,tI=0|this._al,tP=0|this._bl,tO=0|this._cl,tN=0|this._dl,tB=0|this._el,tL=0|this._fl,tD=0|this._gl,tj=0|this._hl,tU=0;tU<32;tU+=2)ti[tU]=tt.readInt32BE(4*tU),ti[tU+1]=tt.readInt32BE(4*tU+4);for(;tU<160;tU+=2){var tF=ti[tU-30],tG=ti[tU-30+1],tH=tS(tF,tG),tz=tA(tG,tF);tF=ti[tU-4],tG=ti[tU-4+1];var tV=tT(tF,tG),tq=tM(tG,tF),tW=ti[tU-14],tY=ti[tU-14+1],tX=ti[tU-32],tQ=ti[tU-32+1],tK=tz+tY|0,tZ=tH+tW+tk(tK,tz)|0;tZ=(tZ=tZ+tV+tk(tK=tK+tq|0,tq)|0)+tX+tk(tK=tK+tQ|0,tQ)|0,ti[tU]=tZ,ti[tU+1]=tK}for(var tJ=0;tJ<160;tJ+=2){tZ=ti[tJ],tK=ti[tJ+1];var t$=tg(ta,ts,tc),t0=tg(tI,tP,tO),t1=t_(ta,tI),t2=t_(tI,ta),t3=tE(tp,tB),t8=tE(tB,tp),t5=td[tJ],t4=td[tJ+1],t6=tb(tp,tv,tR),t7=tb(tB,tL,tD),t9=tj+t8|0,et=tC+t3+tk(t9,tj)|0;et=(et=(et=et+t6+tk(t9=t9+t7|0,t7)|0)+t5+tk(t9=t9+t4|0,t4)|0)+tZ+tk(t9=t9+tK|0,tK)|0;var er=t2+t0|0,ei=t1+t$+tk(er,t2)|0;tC=tR,tj=tD,tR=tv,tD=tL,tv=tp,tL=tB,tp=tu+et+tk(tB=tN+t9|0,tN)|0,tu=tc,tN=tO,tc=ts,tO=tP,ts=ta,tP=tI,ta=et+ei+tk(tI=t9+er|0,t9)|0}this._al=this._al+tI|0,this._bl=this._bl+tP|0,this._cl=this._cl+tO|0,this._dl=this._dl+tN|0,this._el=this._el+tB|0,this._fl=this._fl+tL|0,this._gl=this._gl+tD|0,this._hl=this._hl+tj|0,this._ah=this._ah+ta+tk(this._al,tI)|0,this._bh=this._bh+ts+tk(this._bl,tP)|0,this._ch=this._ch+tc+tk(this._cl,tO)|0,this._dh=this._dh+tu+tk(this._dl,tN)|0,this._eh=this._eh+tp+tk(this._el,tB)|0,this._fh=this._fh+tv+tk(this._fl,tL)|0,this._gh=this._gh+tR+tk(this._gl,tD)|0,this._hh=this._hh+tC+tk(this._hl,tj)|0},tv.prototype._hash=function(){var tt=tu.allocUnsafe(64);function ti(ti,ta,ts){tt.writeInt32BE(ti,ts),tt.writeInt32BE(ta,ts+4)}return ti(this._ah,this._al,0),ti(this._bh,this._bl,8),ti(this._ch,this._cl,16),ti(this._dh,this._dl,24),ti(this._eh,this._el,32),ti(this._fh,this._fl,40),ti(this._gh,this._gl,48),ti(this._hh,this._hl,56),tt},tt.exports=tv},3704:function(tt,ti,ta){"use strict";var ts=ta(5055).Buffer,tc=ts.isEncoding||function(tt){switch((tt=""+tt)&&tt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function tu(tt){var ti;if(!tt)return"utf8";for(;;)switch(tt){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return tt;default:if(ti)return;tt=(""+tt).toLowerCase(),ti=!0}}function td(tt){var ti=tu(tt);if("string"!=typeof ti&&(ts.isEncoding===tc||!tc(tt)))throw Error("Unknown encoding: "+tt);return ti||tt}function tp(tt){var ti;switch(this.encoding=td(tt),this.encoding){case"utf16le":this.text=tA,this.end=tT,ti=4;break;case"utf8":this.fillLast=t_,ti=4;break;case"base64":this.text=tM,this.end=tk,ti=3;break;default:this.write=tR,this.end=tC;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ts.allocUnsafe(ti)}function tv(tt){return tt<=127?0:tt>>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tb(tt,ti,ta){var ts=ti.length-1;if(ts=0?(tc>0&&(tt.lastNeed=tc-1),tc):--ts=0?(tc>0&&(tt.lastNeed=tc-2),tc):--ts=0?(tc>0&&(2===tc?tc=0:tt.lastNeed=tc-3),tc):0}function tg(tt,ti,ta){if((192&ti[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&ti.length>1){if((192&ti[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&ti.length>2&&(192&ti[2])!=128)return tt.lastNeed=2,"�"}}function t_(tt){var ti=this.lastTotal-this.lastNeed,ta=tg(this,tt,ti);return void 0!==ta?ta:this.lastNeed<=tt.length?(tt.copy(this.lastChar,ti,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,ti,0,tt.length),this.lastNeed-=tt.length)}function tE(tt,ti){var ta=tb(this,tt,ti);if(!this.lastNeed)return tt.toString("utf8",ti);this.lastTotal=ta;var ts=tt.length-(ta-this.lastNeed);return tt.copy(this.lastChar,0,ts),tt.toString("utf8",ti,ts)}function tS(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+"�":ti}function tA(tt,ti){if((tt.length-ti)%2==0){var ta=tt.toString("utf16le",ti);if(ta){var ts=ta.charCodeAt(ta.length-1);if(ts>=55296&&ts<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ta.slice(0,-1)}return ta}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",ti,tt.length-1)}function tT(tt){var ti=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ta=this.lastTotal-this.lastNeed;return ti+this.lastChar.toString("utf16le",0,ta)}return ti}function tM(tt,ti){var ta=(tt.length-ti)%3;return 0===ta?tt.toString("base64",ti):(this.lastNeed=3-ta,this.lastTotal=3,1===ta?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",ti,tt.length-ta))}function tk(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+this.lastChar.toString("base64",0,3-this.lastNeed):ti}function tR(tt){return tt.toString(this.encoding)}function tC(tt){return tt&&tt.length?this.write(tt):""}ti.s=tp,tp.prototype.write=function(tt){var ti,ta;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(ti=this.fillLast(tt)))return"";ta=this.lastNeed,this.lastNeed=0}else ta=0;return ta0&&tp.length>tu&&!tp.warned){tp.warned=!0;var tu,td,tp,tg=Error("Possible EventEmitter memory leak detected. "+tp.length+" "+String(ti)+" listeners added. Use emitter.setMaxListeners() to increase limit");tg.name="MaxListenersExceededWarning",tg.emitter=tt,tg.type=ti,tg.count=tp.length,tc(tg)}return tt}function t_(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function tE(tt,ti,ta){var ts={fired:!1,wrapFn:void 0,target:tt,type:ti,listener:ta},tc=t_.bind(ts);return tc.listener=ta,ts.wrapFn=tc,tc}function tS(tt,ti,ta){var ts=tt._events;if(void 0===ts)return[];var tc=ts[ti];return void 0===tc?[]:"function"==typeof tc?ta?[tc.listener||tc]:[tc]:ta?tk(tc):tT(tc,tc.length)}function tA(tt){var ti=this._events;if(void 0!==ti){var ta=ti[tt];if("function"==typeof ta)return 1;if(void 0!==ta)return ta.length}return 0}function tT(tt,ti){for(var ta=Array(ti),ts=0;ts0&&(td=ti[0]),td instanceof Error)throw td;var td,tp=Error("Unhandled error."+(td?" ("+td.message+")":""));throw tp.context=td,tp}var tv=tu[tt];if(void 0===tv)return!1;if("function"==typeof tv)ts(tv,this,ti);else for(var tb=tv.length,tg=tT(tv,tb),ta=0;ta=0;tu--)if(ta[tu]===ti||ta[tu].listener===ti){td=ta[tu].listener,tc=tu;break}if(tc<0)return this;0===tc?ta.shift():tM(ta,tc),1===ta.length&&(ts[tt]=ta[0]),void 0!==ts.removeListener&&this.emit("removeListener",tt,td||ti)}return this},td.prototype.off=td.prototype.removeListener,td.prototype.removeAllListeners=function(tt){var ti,ta,ts;if(void 0===(ta=this._events))return this;if(void 0===ta.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ta[tt]&&(0==--this._eventsCount?this._events=Object.create(null):delete ta[tt]),this;if(0==arguments.length){var tc,tu=Object.keys(ta);for(ts=0;ts=0;ts--)this.removeListener(tt,ti[ts]);return this},td.prototype.listeners=function(tt){return tS(this,tt,!0)},td.prototype.rawListeners=function(tt){return tS(this,tt,!1)},td.listenerCount=function(tt,ti){return"function"==typeof tt.listenerCount?tt.listenerCount(ti):tA.call(tt,ti)},td.prototype.listenerCount=tA,td.prototype.eventNames=function(){return this._eventsCount>0?ti(this._events):[]}}},ts={};function tc(tt){var ti=ts[tt];if(void 0!==ti)return ti.exports;var tu=ts[tt]={exports:{}},td=!0;try{ta[tt](tu,tu.exports,tc),td=!1}finally{td&&delete ts[tt]}return tu.exports}tc.ab=ti+"/";var tu=tc(864);tt.exports=tu}()},71888:function(tt,ti,ta){var ts="/";!function(){var ti={452:function(tt){"use strict";tt.exports=ta(42684)}},tc={};function tu(tt){var ta=tc[tt];if(void 0!==ta)return ta.exports;var ts=tc[tt]={exports:{}},td=!0;try{ti[tt](ts,ts.exports,tu),td=!1}finally{td&&delete tc[tt]}return ts.exports}tu.ab=ts+"/";var td={};!function(){var tt,ti=td,ta=(tt=tu(452))&&"object"==typeof tt&&"default"in tt?tt.default:tt,ts=/https?|ftp|gopher|file/;function tc(tt){"string"==typeof tt&&(tt=tC(tt));var ti=function(tt,ti,ta){var ts=tt.auth,tc=tt.hostname,tu=tt.protocol||"",td=tt.pathname||"",tp=tt.hash||"",tv=tt.query||"",tb=!1;ts=ts?encodeURIComponent(ts).replace(/%3A/i,":")+"@":"",tt.host?tb=ts+tt.host:tc&&(tb=ts+(~tc.indexOf(":")?"["+tc+"]":tc),tt.port&&(tb+=":"+tt.port)),tv&&"object"==typeof tv&&(tv=ti.encode(tv));var tg=tt.search||tv&&"?"+tv||"";return tu&&":"!==tu.substr(-1)&&(tu+=":"),tt.slashes||(!tu||ta.test(tu))&&!1!==tb?(tb="//"+(tb||""),td&&"/"!==td[0]&&(td="/"+td)):tb||(tb=""),tp&&"#"!==tp[0]&&(tp="#"+tp),tg&&"?"!==tg[0]&&(tg="?"+tg),{protocol:tu,host:tb,pathname:td=td.replace(/[?#]/g,encodeURIComponent),search:tg=tg.replace("#","%23"),hash:tp}}(tt,ta,ts);return""+ti.protocol+ti.host+ti.pathname+ti.search+ti.hash}var tp="http://",tv="w.w",tb=tp+tv,tg=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,t_=/https?|ftp|gopher|file/;function tE(tt,ti){var ta="string"==typeof tt?tC(tt):tt;tt="object"==typeof tt?tc(tt):tt;var ts=tC(ti),tu="";ta.protocol&&!ta.slashes&&(tu=ta.protocol,tt=tt.replace(ta.protocol,""),tu+="/"===ti[0]||"/"===tt[0]?"/":""),tu&&ts.protocol&&(tu="",ts.slashes||(tu=ts.protocol,ti=ti.replace(ts.protocol,"")));var td=tt.match(tg);td&&!ts.protocol&&(tt=tt.substr((tu=td[1]+(td[2]||"")).length),/^\/\/[^/]/.test(ti)&&(tu=tu.slice(0,-1)));var tv=new URL(tt,tb+"/"),tE=new URL(ti,tv).toString().replace(tb,""),tS=ts.protocol||ta.protocol;return tS+=ta.slashes||ts.slashes?"//":"",!tu&&tS?tE=tE.replace(tp,tS):tu&&(tE=tE.replace(tp,"")),t_.test(tE)||~ti.indexOf(".")||"/"===tt.slice(-1)||"/"===ti.slice(-1)||"/"!==tE.slice(-1)||(tE=tE.slice(0,-1)),tu&&(tE=tu+("/"===tE[0]?tE.substr(1):tE)),tE}function tS(){}tS.prototype.parse=tC,tS.prototype.format=tc,tS.prototype.resolve=tE,tS.prototype.resolveObject=tE;var tA=/^https?|ftp|gopher|file/,tT=/^(.*?)([#?].*)/,tM=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,tk=/^([a-z0-9.+-]*:)?\/\/\/*/i,tR=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function tC(tt,ti,ts){if(void 0===ti&&(ti=!1),void 0===ts&&(ts=!1),tt&&"object"==typeof tt&&tt instanceof tS)return tt;var tu=(tt=tt.trim()).match(tT);tt=tu?tu[1].replace(/\\/g,"/")+tu[2]:tt.replace(/\\/g,"/"),tR.test(tt)&&"/"!==tt.slice(-1)&&(tt+="/");var td=!/(^javascript)/.test(tt)&&tt.match(tM),tp=tk.test(tt),tg="";td&&(tA.test(td[1])||(tg=td[1].toLowerCase(),tt=""+td[2]+td[3]),td[2]||(tp=!1,tA.test(td[1])?(tg=td[1],tt=""+td[3]):tt="//"+td[3]),3!==td[2].length&&1!==td[2].length||(tg=td[1],tt="/"+td[3]));var t_,tE=(tu?tu[1]:tt).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),tC=tE&&tE[1],tI=new tS,tP="",tO="";try{t_=new URL(tt)}catch(ti){tP=ti,tg||ts||!/^\/\//.test(tt)||/^\/\/.+[@.]/.test(tt)||(tO="/",tt=tt.substr(1));try{t_=new URL(tt,tb)}catch(tt){return tI.protocol=tg,tI.href=tg,tI}}tI.slashes=tp&&!tO,tI.host=t_.host===tv?"":t_.host,tI.hostname=t_.hostname===tv?"":t_.hostname.replace(/(\[|\])/g,""),tI.protocol=tP?tg||null:t_.protocol,tI.search=t_.search.replace(/\\/g,"%5C"),tI.hash=t_.hash.replace(/\\/g,"%5C");var tN=tt.split("#");!tI.search&&~tN[0].indexOf("?")&&(tI.search="?"),tI.hash||""!==tN[1]||(tI.hash="#"),tI.query=ti?ta.decode(t_.search.substr(1)):tI.search.substr(1),tI.pathname=tO+(td?function(tt){return tt.replace(/['^|`]/g,function(tt){return"%"+tt.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(tt,ti){try{return decodeURIComponent(ti).split("").map(function(tt){var ti=tt.charCodeAt();return ti>256||/^[a-z0-9]$/i.test(tt)?tt:"%"+ti.toString(16).toUpperCase()}).join("")}catch(tt){return ti}})}(t_.pathname):t_.pathname),"about:"===tI.protocol&&"blank"===tI.pathname&&(tI.protocol="",tI.pathname=""),tP&&"/"!==tt[0]&&(tI.pathname=tI.pathname.substr(1)),tg&&!tA.test(tg)&&"/"!==tt.slice(-1)&&"/"===tI.pathname&&(tI.pathname=""),tI.path=tI.pathname+tI.search,tI.auth=[t_.username,t_.password].map(decodeURIComponent).filter(Boolean).join(":"),tI.port=t_.port,tC&&!tI.host.endsWith(tC)&&(tI.host+=tC,tI.port=tC.slice(1)),tI.href=tO?""+tI.pathname+tI.search+tI.hash:tc(tI);var tB=/^(file)/.test(tI.href)?["host","hostname"]:[];return Object.keys(tI).forEach(function(tt){~tB.indexOf(tt)||(tI[tt]=tI[tt]||null)}),tI}ti.parse=tC,ti.format=tc,ti.resolve=tE,ti.resolveObject=function(tt,ti){return tC(tE(tt,ti))},ti.Url=tS}(),tt.exports=td}()},58631:function(tt){var ti="/";!function(){var ta={229:function(tt){var ti,ta,ts,tc=tt.exports={};function tu(){throw Error("setTimeout has not been defined")}function td(){throw Error("clearTimeout has not been defined")}function tp(tt){if(ti===setTimeout)return setTimeout(tt,0);if((ti===tu||!ti)&&setTimeout)return ti=setTimeout,setTimeout(tt,0);try{return ti(tt,0)}catch(ta){try{return ti.call(null,tt,0)}catch(ta){return ti.call(this,tt,0)}}}function tv(tt){if(ta===clearTimeout)return clearTimeout(tt);if((ta===td||!ta)&&clearTimeout)return ta=clearTimeout,clearTimeout(tt);try{return ta(tt)}catch(ti){try{return ta.call(null,tt)}catch(ti){return ta.call(this,tt)}}}!function(){try{ti="function"==typeof setTimeout?setTimeout:tu}catch(tt){ti=tu}try{ta="function"==typeof clearTimeout?clearTimeout:td}catch(tt){ta=td}}();var tb=[],tg=!1,t_=-1;function tE(){tg&&ts&&(tg=!1,ts.length?tb=ts.concat(tb):t_=-1,tb.length&&tS())}function tS(){if(!tg){var tt=tp(tE);tg=!0;for(var ti=tb.length;ti;){for(ts=tb,tb=[];++t_1)for(var ta=1;ta0&&tb>tv&&(tb=tv);for(var tg=0;tg=0?(t_=tT.substr(0,tM),tE=tT.substr(tM+1)):(t_=tT,tE=""),tS=decodeURIComponent(t_),tA=decodeURIComponent(tE),ti(td,tS)?ta(td[tS])?td[tS].push(tA):td[tS]=[td[tS],tA]:td[tS]=tA}return td};var ta=Array.isArray||function(tt){return"[object Array]"===Object.prototype.toString.call(tt)}},577:function(tt){var ti=function(tt){switch(typeof tt){case"string":return tt;case"boolean":return tt?"true":"false";case"number":return isFinite(tt)?tt:"";default:return""}};tt.exports=function(tt,tu,td,tp){return(tu=tu||"&",td=td||"=",null===tt&&(tt=void 0),"object"==typeof tt)?ts(tc(tt),function(tc){var tp=encodeURIComponent(ti(tc))+td;return ta(tt[tc])?ts(tt[tc],function(tt){return tp+encodeURIComponent(ti(tt))}).join(tu):tp+encodeURIComponent(ti(tt[tc]))}).join(tu):tp?encodeURIComponent(ti(tp))+td+encodeURIComponent(ti(tt)):""};var ta=Array.isArray||function(tt){return"[object Array]"===Object.prototype.toString.call(tt)};function ts(tt,ti){if(tt.map)return tt.map(ti);for(var ta=[],ts=0;ts2)?"one of ".concat(ti," ").concat(tt.slice(0,ta-1).join(", "),", or ")+tt[ta-1]:2===ta?"one of ".concat(ti," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(ti," ").concat(tt[0])}function tc(tt,ti,ta){return tt.substr(!ta||ta<0?0:+ta,ti.length)===ti}function tu(tt,ti,ta){return(void 0===ta||ta>tt.length)&&(ta=tt.length),tt.substring(ta-ti.length,ta)===ti}function tb(tt,ti,ta){return"number"!=typeof ta&&(ta=0),!(ta+ti.length>tt.length)&&-1!==tt.indexOf(ti,ta)}ta("ERR_INVALID_OPT_VALUE",function(tt,ti){return'The value "'+ti+'" is invalid for option "'+tt+'"'},TypeError),ta("ERR_INVALID_ARG_TYPE",function(tt,ti,ta){if("string"==typeof ti&&tc(ti,"not ")?(td="must not be",ti=ti.replace(/^not /,"")):td="must be",tu(tt," argument"))tp="The ".concat(tt," ").concat(td," ").concat(ts(ti,"type"));else{var td,tp,tv=tb(tt,".")?"property":"argument";tp='The "'.concat(tt,'" ').concat(tv," ").concat(td," ").concat(ts(ti,"type"))}return tp+". Received type ".concat(typeof ta)},TypeError),ta("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ta("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),ta("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ta("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),ta("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ta("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ta("ERR_STREAM_WRITE_AFTER_END","write after end"),ta("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ta("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),ta("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tt.exports.q=ti},403:function(tt,ti,ta){"use strict";var ts=Object.keys||function(tt){var ti=[];for(var ta in tt)ti.push(ta);return ti};tt.exports=tg;var tu=ta(709),td=ta(337);ta(782)(tg,tu);for(var tp=ts(td.prototype),tv=0;tv0){if("string"==typeof ti||tp.objectMode||Object.getPrototypeOf(ti)===tE.prototype||(ti=tA(ti)),ts)tp.endEmitted?tL(tt,new tB):tH(tt,tp,ti,!0);else if(tp.ended)tL(tt,new tO);else{if(tp.destroyed)return!1;tp.reading=!1,tp.decoder&&!ta?(ti=tp.decoder.write(ti),tp.objectMode||0!==ti.length?tH(tt,tp,ti,!1):tK(tt,tp)):tH(tt,tp,ti,!1)}}else ts||(tp.reading=!1,tK(tt,tp));return!tp.ended&&(tp.length=tV?tt=tV:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function tW(tt,ti){return tt<=0||0===ti.length&&ti.ended?0:ti.objectMode?1:tt!=tt?ti.flowing&&ti.length?ti.buffer.head.data.length:ti.length:(tt>ti.highWaterMark&&(ti.highWaterMark=tq(tt)),tt<=ti.length)?tt:ti.ended?ti.length:(ti.needReadable=!0,0)}function tY(tt,ti){if(td("onEofChunk"),!ti.ended){if(ti.decoder){var ta=ti.decoder.end();ta&&ta.length&&(ti.buffer.push(ta),ti.length+=ti.objectMode?1:ta.length)}ti.ended=!0,ti.sync?tX(tt):(ti.needReadable=!1,ti.emittedReadable||(ti.emittedReadable=!0,tQ(tt)))}}function tX(tt){var ti=tt._readableState;td("emitReadable",ti.needReadable,ti.emittedReadable),ti.needReadable=!1,ti.emittedReadable||(td("emitReadable",ti.flowing),ti.emittedReadable=!0,tc.nextTick(tQ,tt))}function tQ(tt){var ti=tt._readableState;td("emitReadable_",ti.destroyed,ti.length,ti.ended),!ti.destroyed&&(ti.length||ti.ended)&&(tt.emit("readable"),ti.emittedReadable=!1),ti.needReadable=!ti.flowing&&!ti.ended&&ti.length<=ti.highWaterMark,t3(tt)}function tK(tt,ti){ti.readingMore||(ti.readingMore=!0,tc.nextTick(tZ,tt,ti))}function tZ(tt,ti){for(;!ti.reading&&!ti.ended&&(ti.length0,ti.resumeScheduled&&!ti.paused?ti.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function t0(tt){td("readable nexttick read 0"),tt.read(0)}function t1(tt,ti){ti.resumeScheduled||(ti.resumeScheduled=!0,tc.nextTick(t2,tt,ti))}function t2(tt,ti){td("resume",ti.reading),ti.reading||tt.read(0),ti.resumeScheduled=!1,tt.emit("resume"),t3(tt),ti.flowing&&!ti.reading&&tt.read(0)}function t3(tt){var ti=tt._readableState;for(td("flow",ti.flowing);ti.flowing&&null!==tt.read(););}function t8(tt,ti){var ta;return 0===ti.length?null:(ti.objectMode?ta=ti.buffer.shift():!tt||tt>=ti.length?(ta=ti.decoder?ti.buffer.join(""):1===ti.buffer.length?ti.buffer.first():ti.buffer.concat(ti.length),ti.buffer.clear()):ta=ti.buffer.consume(tt,ti.decoder),ta)}function t5(tt){var ti=tt._readableState;td("endReadable",ti.endEmitted),ti.endEmitted||(ti.ended=!0,tc.nextTick(t4,ti,tt))}function t4(tt,ti){if(td("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&0===tt.length&&(tt.endEmitted=!0,ti.readable=!1,ti.emit("end"),tt.autoDestroy)){var ta=ti._writableState;(!ta||ta.autoDestroy&&ta.finished)&&ti.destroy()}}function t6(tt,ti){for(var ta=0,ts=tt.length;ta=ta.highWaterMark:ta.length>0)||ta.ended))return td("read: emitReadable",ta.length,ta.ended),0===ta.length&&ta.ended?t5(this):tX(this),null;if(0===(tt=tW(tt,ta))&&ta.ended)return 0===ta.length&&t5(this),null;var tc=ta.needReadable;return td("need readable",tc),(0===ta.length||ta.length-tt0?t8(tt,ta):null)?(ta.needReadable=ta.length<=ta.highWaterMark,tt=0):(ta.length-=tt,ta.awaitDrain=0),0===ta.length&&(ta.ended||(ta.needReadable=!0),ts!==tt&&ta.ended&&t5(this)),null!==ti&&this.emit("data",ti),ti},tF.prototype._read=function(tt){tL(this,new tN("_read()"))},tF.prototype.pipe=function(tt,ti){var ta=this,ts=this._readableState;switch(ts.pipesCount){case 0:ts.pipes=tt;break;case 1:ts.pipes=[ts.pipes,tt];break;default:ts.pipes.push(tt)}ts.pipesCount+=1,td("pipe count=%d opts=%j",ts.pipesCount,ti);var tu=ti&&!1===ti.end||tt===tc.stdout||tt===tc.stderr?tk:tv;function tp(tt,ti){td("onunpipe"),tt===ta&&ti&&!1===ti.hasUnpiped&&(ti.hasUnpiped=!0,tE())}function tv(){td("onend"),tt.end()}ts.endEmitted?tc.nextTick(tu):ta.once("end",tu),tt.on("unpipe",tp);var tb=tJ(ta);tt.on("drain",tb);var t_=!1;function tE(){td("cleanup"),tt.removeListener("close",tT),tt.removeListener("finish",tM),tt.removeListener("drain",tb),tt.removeListener("error",tA),tt.removeListener("unpipe",tp),ta.removeListener("end",tv),ta.removeListener("end",tk),ta.removeListener("data",tS),t_=!0,ts.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&tb()}function tS(ti){td("ondata");var tc=tt.write(ti);td("dest.write",tc),!1===tc&&((1===ts.pipesCount&&ts.pipes===tt||ts.pipesCount>1&&-1!==t6(ts.pipes,tt))&&!t_&&(td("false write response, pause",ts.awaitDrain),ts.awaitDrain++),ta.pause())}function tA(ti){td("onerror",ti),tk(),tt.removeListener("error",tA),0===tg(tt,"error")&&tL(tt,ti)}function tT(){tt.removeListener("finish",tM),tk()}function tM(){td("onfinish"),tt.removeListener("close",tT),tk()}function tk(){td("unpipe"),ta.unpipe(tt)}return ta.on("data",tS),tj(tt,"error",tA),tt.once("close",tT),tt.once("finish",tM),tt.emit("pipe",ta),ts.flowing||(td("pipe resume"),ta.resume()),tt},tF.prototype.unpipe=function(tt){var ti=this._readableState,ta={hasUnpiped:!1};if(0===ti.pipesCount)return this;if(1===ti.pipesCount)return tt&&tt!==ti.pipes||(tt||(tt=ti.pipes),ti.pipes=null,ti.pipesCount=0,ti.flowing=!1,tt&&tt.emit("unpipe",this,ta)),this;if(!tt){var ts=ti.pipes,tc=ti.pipesCount;ti.pipes=null,ti.pipesCount=0,ti.flowing=!1;for(var tu=0;tu0,!1!==ts.flowing&&this.resume()):"readable"!==tt||ts.endEmitted||ts.readableListening||(ts.readableListening=ts.needReadable=!0,ts.flowing=!1,ts.emittedReadable=!1,td("on readable",ts.length,ts.reading),ts.length?tX(this):ts.reading||tc.nextTick(t0,this)),ta},tF.prototype.addListener=tF.prototype.on,tF.prototype.removeListener=function(tt,ti){var ta=t_.prototype.removeListener.call(this,tt,ti);return"readable"===tt&&tc.nextTick(t$,this),ta},tF.prototype.removeAllListeners=function(tt){var ti=t_.prototype.removeAllListeners.apply(this,arguments);return("readable"===tt||void 0===tt)&&tc.nextTick(t$,this),ti},tF.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(td("resume"),tt.flowing=!tt.readableListening,t1(this,tt)),tt.paused=!1,this},tF.prototype.pause=function(){return td("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(td("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},tF.prototype.wrap=function(tt){var ti=this,ta=this._readableState,ts=!1;for(var tc in tt.on("end",function(){if(td("wrapped end"),ta.decoder&&!ta.ended){var tt=ta.decoder.end();tt&&tt.length&&ti.push(tt)}ti.push(null)}),tt.on("data",function(tc){td("wrapped data"),ta.decoder&&(tc=ta.decoder.write(tc)),(!ta.objectMode||null!=tc)&&(ta.objectMode||tc&&tc.length)&&(ti.push(tc)||(ts=!0,tt.pause()))}),tt)void 0===this[tc]&&"function"==typeof tt[tc]&&(this[tc]=function(ti){return function(){return tt[ti].apply(tt,arguments)}}(tc));for(var tu=0;tu-1))throw new tB(tt);return this._writableState.defaultEncoding=tt,this},Object.defineProperty(tU.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tU.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),tU.prototype._write=function(tt,ti,ta){ta(new tR("_write()"))},tU.prototype._writev=null,tU.prototype.end=function(tt,ti,ta){var ts=this._writableState;return"function"==typeof tt?(ta=tt,tt=null,ti=null):"function"==typeof ti&&(ta=ti,ti=null),null!=tt&&this.write(tt,ti),ts.corked&&(ts.corked=1,this.uncork()),ts.ending||t1(this,ts,ta),this},Object.defineProperty(tU.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tU.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(tt){this._writableState&&(this._writableState.destroyed=tt)}}),tU.prototype.destroy=tA.destroy,tU.prototype._undestroy=tA.undestroy,tU.prototype._destroy=function(tt,ti){ti(tt)}},871:function(tt,ti,ta){"use strict";function ts(tt,ti,ta){return ti in tt?Object.defineProperty(tt,ti,{value:ta,enumerable:!0,configurable:!0,writable:!0}):tt[ti]=ta,tt}var tu,td=ta(698),tp=Symbol("lastResolve"),tv=Symbol("lastReject"),tb=Symbol("error"),tg=Symbol("ended"),t_=Symbol("lastPromise"),tE=Symbol("handlePromise"),tS=Symbol("stream");function tA(tt,ti){return{value:tt,done:ti}}function tT(tt){var ti=tt[tp];if(null!==ti){var ta=tt[tS].read();null!==ta&&(tt[t_]=null,tt[tp]=null,tt[tv]=null,ti(tA(ta,!1)))}}function tM(tt){tc.nextTick(tT,tt)}function tk(tt,ti){return function(ta,ts){tt.then(function(){if(ti[tg]){ta(tA(void 0,!0));return}ti[tE](ta,ts)},ts)}}var tR=Object.getPrototypeOf(function(){}),tC=Object.setPrototypeOf((ts(tu={get stream(){return this[tS]},next:function(){var tt,ti=this,ta=this[tb];if(null!==ta)return Promise.reject(ta);if(this[tg])return Promise.resolve(tA(void 0,!0));if(this[tS].destroyed)return new Promise(function(tt,ta){tc.nextTick(function(){ti[tb]?ta(ti[tb]):tt(tA(void 0,!0))})});var ts=this[t_];if(ts)tt=new Promise(tk(ts,this));else{var tu=this[tS].read();if(null!==tu)return Promise.resolve(tA(tu,!1));tt=new Promise(this[tE])}return this[t_]=tt,tt}},Symbol.asyncIterator,function(){return this}),ts(tu,"return",function(){var tt=this;return new Promise(function(ti,ta){tt[tS].destroy(null,function(tt){if(tt){ta(tt);return}ti(tA(void 0,!0))})})}),tu),tR),tI=function(tt){var ti,ta=Object.create(tC,(ts(ti={},tS,{value:tt,writable:!0}),ts(ti,tp,{value:null,writable:!0}),ts(ti,tv,{value:null,writable:!0}),ts(ti,tb,{value:null,writable:!0}),ts(ti,tg,{value:tt._readableState.endEmitted,writable:!0}),ts(ti,tE,{value:function(tt,ti){var ts=ta[tS].read();ts?(ta[t_]=null,ta[tp]=null,ta[tv]=null,tt(tA(ts,!1))):(ta[tp]=tt,ta[tv]=ti)},writable:!0}),ti));return ta[t_]=null,td(tt,function(tt){if(tt&&"ERR_STREAM_PREMATURE_CLOSE"!==tt.code){var ti=ta[tv];null!==ti&&(ta[t_]=null,ta[tp]=null,ta[tv]=null,ti(tt)),ta[tb]=tt;return}var ts=ta[tp];null!==ts&&(ta[t_]=null,ta[tp]=null,ta[tv]=null,ts(tA(void 0,!0))),ta[tg]=!0}),tt.on("readable",tM.bind(null,ta)),ta};tt.exports=tI},379:function(tt,ti,ta){"use strict";function ts(tt,ti){var ta=Object.keys(tt);if(Object.getOwnPropertySymbols){var ts=Object.getOwnPropertySymbols(tt);ti&&(ts=ts.filter(function(ti){return Object.getOwnPropertyDescriptor(tt,ti).enumerable})),ta.push.apply(ta,ts)}return ta}function tc(tt){for(var ti=1;ti0?this.tail.next=ti:this.head=ti,this.tail=ti,++this.length}},{key:"unshift",value:function(tt){var ti={data:tt,next:this.head};0===this.length&&(this.tail=ti),this.head=ti,++this.length}},{key:"shift",value:function(){if(0!==this.length){var tt=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,tt}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(tt){if(0===this.length)return"";for(var ti=this.head,ta=""+ti.data;ti=ti.next;)ta+=tt+ti.data;return ta}},{key:"concat",value:function(tt){if(0===this.length)return tb.alloc(0);for(var ti=tb.allocUnsafe(tt>>>0),ta=this.head,ts=0;ta;)tE(ta.data,ti,ts),ts+=ta.data.length,ta=ta.next;return ti}},{key:"consume",value:function(tt,ti){var ta;return tttc.length?tc.length:tt;if(tu===tc.length?ts+=tc:ts+=tc.slice(0,tt),0==(tt-=tu)){tu===tc.length?(++ta,ti.next?this.head=ti.next:this.head=this.tail=null):(this.head=ti,ti.data=tc.slice(tu));break}++ta}return this.length-=ta,ts}},{key:"_getBuffer",value:function(tt){var ti=tb.allocUnsafe(tt),ta=this.head,ts=1;for(ta.data.copy(ti),tt-=ta.data.length;ta=ta.next;){var tc=ta.data,tu=tt>tc.length?tc.length:tt;if(tc.copy(ti,ti.length-tt,0,tu),0==(tt-=tu)){tu===tc.length?(++ts,ta.next?this.head=ta.next:this.head=this.tail=null):(this.head=ta,ta.data=tc.slice(tu));break}++ts}return this.length-=ts,ti}},{key:t_,value:function(tt,ti){return tg(this,tc({},ti,{depth:0,customInspect:!1}))}}]),tt}()},25:function(tt){"use strict";function ti(tt,ti){var tu=this,tp=this._readableState&&this._readableState.destroyed,tv=this._writableState&&this._writableState.destroyed;return tp||tv?(ti?ti(tt):tt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,tc.nextTick(td,this,tt)):tc.nextTick(td,this,tt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(tt||null,function(tt){!ti&&tt?tu._writableState?tu._writableState.errorEmitted?tc.nextTick(ts,tu):(tu._writableState.errorEmitted=!0,tc.nextTick(ta,tu,tt)):tc.nextTick(ta,tu,tt):ti?(tc.nextTick(ts,tu),ti(tt)):tc.nextTick(ts,tu)}),this)}function ta(tt,ti){td(tt,ti),ts(tt)}function ts(tt){(!tt._writableState||tt._writableState.emitClose)&&(!tt._readableState||tt._readableState.emitClose)&&tt.emit("close")}function tu(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function td(tt,ti){tt.emit("error",ti)}function tp(tt,ti){var ta=tt._readableState,ts=tt._writableState;ta&&ta.autoDestroy||ts&&ts.autoDestroy?tt.destroy(ti):tt.emit("error",ti)}tt.exports={destroy:ti,undestroy:tu,errorOrDestroy:tp}},698:function(tt,ti,ta){"use strict";var ts=ta(646).q.ERR_STREAM_PREMATURE_CLOSE;function tc(tt){var ti=!1;return function(){if(!ti){ti=!0;for(var ta=arguments.length,ts=Array(ta),tc=0;tc0,function(ti){tt||(tt=ti),ti&&tu.forEach(t_),td||(tu.forEach(t_),tc(tt))})});return ta.reduce(tE)}tt.exports=tA},776:function(tt,ti,ta){"use strict";var ts=ta(646).q.ERR_INVALID_OPT_VALUE;function tc(tt,ti,ta){return null!=tt.highWaterMark?tt.highWaterMark:ti?tt[ta]:null}function tu(tt,ti,ta,tu){var td=tc(ti,tu,ta);if(null!=td){if(!(isFinite(td)&&Math.floor(td)===td)||td<0){var tp=tu?ta:"highWaterMark";throw new ts(tp,td)}return Math.floor(td)}return tt.objectMode?16:16384}tt.exports={getHighWaterMark:tu}},678:function(tt,ti,ta){tt.exports=ta(781)},55:function(tt,ti,ta){var ts=ta(300),tc=ts.Buffer;function tu(tt,ti){for(var ta in tt)ti[ta]=tt[ta]}function td(tt,ti,ta){return tc(tt,ti,ta)}tc.from&&tc.alloc&&tc.allocUnsafe&&tc.allocUnsafeSlow?tt.exports=ts:(tu(ts,ti),ti.Buffer=td),td.prototype=Object.create(tc.prototype),tu(tc,td),td.from=function(tt,ti,ta){if("number"==typeof tt)throw TypeError("Argument must not be a number");return tc(tt,ti,ta)},td.alloc=function(tt,ti,ta){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ts=tc(tt);return void 0!==ti?"string"==typeof ta?ts.fill(ti,ta):ts.fill(ti):ts.fill(0),ts},td.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return tc(tt)},td.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts.SlowBuffer(tt)}},173:function(tt,ti,ta){tt.exports=tc;var ts=ta(361).EventEmitter;function tc(){ts.call(this)}ta(782)(tc,ts),tc.Readable=ta(709),tc.Writable=ta(337),tc.Duplex=ta(403),tc.Transform=ta(170),tc.PassThrough=ta(889),tc.finished=ta(698),tc.pipeline=ta(442),tc.Stream=tc,tc.prototype.pipe=function(tt,ti){var ta=this;function tc(ti){tt.writable&&!1===tt.write(ti)&&ta.pause&&ta.pause()}function tu(){ta.readable&&ta.resume&&ta.resume()}ta.on("data",tc),tt.on("drain",tu),tt._isStdio||ti&&!1===ti.end||(ta.on("end",tp),ta.on("close",tv));var td=!1;function tp(){td||(td=!0,tt.end())}function tv(){td||(td=!0,"function"==typeof tt.destroy&&tt.destroy())}function tb(tt){if(tg(),0===ts.listenerCount(this,"error"))throw tt}function tg(){ta.removeListener("data",tc),tt.removeListener("drain",tu),ta.removeListener("end",tp),ta.removeListener("close",tv),ta.removeListener("error",tb),tt.removeListener("error",tb),ta.removeListener("end",tg),ta.removeListener("close",tg),tt.removeListener("close",tg)}return ta.on("error",tb),tt.on("error",tb),ta.on("end",tg),ta.on("close",tg),tt.on("close",tg),tt.emit("pipe",ta),tt}},704:function(tt,ti,ta){"use strict";var ts=ta(55).Buffer,tc=ts.isEncoding||function(tt){switch((tt=""+tt)&&tt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function tu(tt){var ti;if(!tt)return"utf8";for(;;)switch(tt){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return tt;default:if(ti)return;tt=(""+tt).toLowerCase(),ti=!0}}function td(tt){var ti=tu(tt);if("string"!=typeof ti&&(ts.isEncoding===tc||!tc(tt)))throw Error("Unknown encoding: "+tt);return ti||tt}function tp(tt){var ti;switch(this.encoding=td(tt),this.encoding){case"utf16le":this.text=tA,this.end=tT,ti=4;break;case"utf8":this.fillLast=t_,ti=4;break;case"base64":this.text=tM,this.end=tk,ti=3;break;default:this.write=tR,this.end=tC;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ts.allocUnsafe(ti)}function tv(tt){return tt<=127?0:tt>>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tb(tt,ti,ta){var ts=ti.length-1;if(ts=0?(tc>0&&(tt.lastNeed=tc-1),tc):--ts=0?(tc>0&&(tt.lastNeed=tc-2),tc):--ts=0?(tc>0&&(2===tc?tc=0:tt.lastNeed=tc-3),tc):0}function tg(tt,ti,ta){if((192&ti[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&ti.length>1){if((192&ti[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&ti.length>2&&(192&ti[2])!=128)return tt.lastNeed=2,"�"}}function t_(tt){var ti=this.lastTotal-this.lastNeed,ta=tg(this,tt,ti);return void 0!==ta?ta:this.lastNeed<=tt.length?(tt.copy(this.lastChar,ti,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,ti,0,tt.length),this.lastNeed-=tt.length)}function tE(tt,ti){var ta=tb(this,tt,ti);if(!this.lastNeed)return tt.toString("utf8",ti);this.lastTotal=ta;var ts=tt.length-(ta-this.lastNeed);return tt.copy(this.lastChar,0,ts),tt.toString("utf8",ti,ts)}function tS(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+"�":ti}function tA(tt,ti){if((tt.length-ti)%2==0){var ta=tt.toString("utf16le",ti);if(ta){var ts=ta.charCodeAt(ta.length-1);if(ts>=55296&&ts<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ta.slice(0,-1)}return ta}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",ti,tt.length-1)}function tT(tt){var ti=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ta=this.lastTotal-this.lastNeed;return ti+this.lastChar.toString("utf16le",0,ta)}return ti}function tM(tt,ti){var ta=(tt.length-ti)%3;return 0===ta?tt.toString("base64",ti):(this.lastNeed=3-ta,this.lastTotal=3,1===ta?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",ti,tt.length-ta))}function tk(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+this.lastChar.toString("base64",0,3-this.lastNeed):ti}function tR(tt){return tt.toString(this.encoding)}function tC(tt){return tt&&tt.length?this.write(tt):""}ti.s=tp,tp.prototype.write=function(tt){var ti,ta;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(ti=this.fillLast(tt)))return"";ta=this.lastNeed,this.lastNeed=0}else ta=0;return ta-1?tc(ta):ta}},139:function(tt,ti,ta){"use strict";var ts=ta(174),tc=ta(500),tu=tc("%Function.prototype.apply%"),td=tc("%Function.prototype.call%"),tp=tc("%Reflect.apply%",!0)||ts.call(td,tu),tv=tc("%Object.getOwnPropertyDescriptor%",!0),tb=tc("%Object.defineProperty%",!0),tg=tc("%Math.max%");if(tb)try{tb({},"a",{value:1})}catch(tt){tb=null}tt.exports=function(tt){var ti=tp(ts,td,arguments);return tv&&tb&&tv(ti,"length").configurable&&tb(ti,"length",{value:1+tg(0,tt.length-(arguments.length-1))}),ti};var t_=function(){return tp(ts,tu,arguments)};tb?tb(tt.exports,"apply",{value:t_}):tt.exports.apply=t_},144:function(tt){var ti=Object.prototype.hasOwnProperty,ta=Object.prototype.toString;tt.exports=function(tt,ts,tc){if("[object Function]"!==ta.call(ts))throw TypeError("iterator must be a function");var tu=tt.length;if(tu===+tu)for(var td=0;td1&&"boolean"!=typeof ti)throw new td('"allowMissing" argument must be a boolean');if(null===tB(/^%?[^%]*%?$/g,tt))throw new tc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ta=tj(tt),ts=ta.length>0?ta[0]:"",tu=tU("%"+ts+"%",ti),tp=tu.name,tb=tu.value,tg=!1,t_=tu.alias;t_&&(ts=t_[0],tP(ta,tI([0,1],t_)));for(var tE=1,tS=!0;tE=ta.length){var tR=tv(tb,tA);tb=(tS=!!tR)&&"get"in tR&&!("originalValue"in tR.get)?tR.get:tb[tA]}else tS=tC(tb,tA),tb=tb[tA];tS&&!tg&&(tT[tp]=tb)}}return tb}},942:function(tt,ti,ta){"use strict";var ts="undefined"!=typeof Symbol&&Symbol,tc=ta(773);tt.exports=function(){return"function"==typeof ts&&"function"==typeof Symbol&&"symbol"==typeof ts("foo")&&"symbol"==typeof Symbol("bar")&&tc()}},773:function(tt){"use strict";tt.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var tt={},ti=Symbol("test"),ta=Object(ti);if("string"==typeof ti||"[object Symbol]"!==Object.prototype.toString.call(ti)||"[object Symbol]"!==Object.prototype.toString.call(ta))return!1;var ts=42;for(ti in tt[ti]=ts,tt)return!1;if("function"==typeof Object.keys&&0!==Object.keys(tt).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(tt).length)return!1;var tc=Object.getOwnPropertySymbols(tt);if(1!==tc.length||tc[0]!==ti||!Object.prototype.propertyIsEnumerable.call(tt,ti))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var tu=Object.getOwnPropertyDescriptor(tt,ti);if(tu.value!==ts||!0!==tu.enumerable)return!1}return!0}},115:function(tt,ti,ta){"use strict";var ts="undefined"!=typeof Symbol&&Symbol,tc=ta(832);tt.exports=function(){return"function"==typeof ts&&"function"==typeof Symbol&&"symbol"==typeof ts("foo")&&"symbol"==typeof Symbol("bar")&&tc()}},832:function(tt){"use strict";tt.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var tt={},ti=Symbol("test"),ta=Object(ti);if("string"==typeof ti||"[object Symbol]"!==Object.prototype.toString.call(ti)||"[object Symbol]"!==Object.prototype.toString.call(ta))return!1;var ts=42;for(ti in tt[ti]=ts,tt)return!1;if("function"==typeof Object.keys&&0!==Object.keys(tt).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(tt).length)return!1;var tc=Object.getOwnPropertySymbols(tt);if(1!==tc.length||tc[0]!==ti||!Object.prototype.propertyIsEnumerable.call(tt,ti))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var tu=Object.getOwnPropertyDescriptor(tt,ti);if(tu.value!==ts||!0!==tu.enumerable)return!1}return!0}},101:function(tt,ti,ta){"use strict";var ts=ta(174);tt.exports=ts.call(Function.call,Object.prototype.hasOwnProperty)},782:function(tt){"function"==typeof Object.create?tt.exports=function(tt,ti){ti&&(tt.super_=ti,tt.prototype=Object.create(ti.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(tt,ti){if(ti){tt.super_=ti;var ta=function(){};ta.prototype=ti.prototype,tt.prototype=new ta,tt.prototype.constructor=tt}}},157:function(tt){"use strict";var ti="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ta=Object.prototype.toString,ts=function(tt){return(!ti||!tt||"object"!=typeof tt||!(Symbol.toStringTag in tt))&&"[object Arguments]"===ta.call(tt)},tc=function(tt){return!!ts(tt)||null!==tt&&"object"==typeof tt&&"number"==typeof tt.length&&tt.length>=0&&"[object Array]"!==ta.call(tt)&&"[object Function]"===ta.call(tt.callee)},tu=function(){return ts(arguments)}();ts.isLegacyArguments=tc,tt.exports=tu?ts:tc},391:function(tt){"use strict";var ti=Object.prototype.toString,ta=Function.prototype.toString,ts=/^\s*(?:function)?\*/,tc="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,tu=Object.getPrototypeOf,td=function(){if(!tc)return!1;try{return Function("return function*() {}")()}catch(tt){}}(),tp=td?tu(td):{};tt.exports=function(tt){return"function"==typeof tt&&(!!ts.test(ta.call(tt))||(tc?tu(tt)===tp:"[object GeneratorFunction]"===ti.call(tt)))}},994:function(tt,ti,ts){"use strict";var tc=ts(144),tu=ts(349),td=ts(256),tp=td("Object.prototype.toString"),tv=ts(942)()&&"symbol"==typeof Symbol.toStringTag,tb=tu(),tg=td("Array.prototype.indexOf",!0)||function(tt,ti){for(var ta=0;ta-1)}},369:function(tt){tt.exports=function(tt){return tt instanceof tc}},584:function(tt,ti,ta){"use strict";var ts=ta(157),tc=ta(391),tu=ta(490),td=ta(994);function tp(tt){return tt.call.bind(tt)}var tv="undefined"!=typeof BigInt,tb="undefined"!=typeof Symbol,tg=tp(Object.prototype.toString),t_=tp(Number.prototype.valueOf),tE=tp(String.prototype.valueOf),tS=tp(Boolean.prototype.valueOf);if(tv)var tA=tp(BigInt.prototype.valueOf);if(tb)var tT=tp(Symbol.prototype.valueOf);function tM(tt,ti){if("object"!=typeof tt)return!1;try{return ti(tt),!0}catch(tt){return!1}}function tk(tt){return"undefined"!=typeof Promise&&tt instanceof Promise||null!==tt&&"object"==typeof tt&&"function"==typeof tt.then&&"function"==typeof tt.catch}function tR(tt){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(tt):td(tt)||tJ(tt)}function tC(tt){return"Uint8Array"===tu(tt)}function tI(tt){return"Uint8ClampedArray"===tu(tt)}function tP(tt){return"Uint16Array"===tu(tt)}function tO(tt){return"Uint32Array"===tu(tt)}function tN(tt){return"Int8Array"===tu(tt)}function tB(tt){return"Int16Array"===tu(tt)}function tL(tt){return"Int32Array"===tu(tt)}function tD(tt){return"Float32Array"===tu(tt)}function tj(tt){return"Float64Array"===tu(tt)}function tU(tt){return"BigInt64Array"===tu(tt)}function tF(tt){return"BigUint64Array"===tu(tt)}function tG(tt){return"[object Map]"===tg(tt)}function tH(tt){return"undefined"!=typeof Map&&(tG.working?tG(tt):tt instanceof Map)}function tz(tt){return"[object Set]"===tg(tt)}function tV(tt){return"undefined"!=typeof Set&&(tz.working?tz(tt):tt instanceof Set)}function tq(tt){return"[object WeakMap]"===tg(tt)}function tW(tt){return"undefined"!=typeof WeakMap&&(tq.working?tq(tt):tt instanceof WeakMap)}function tY(tt){return"[object WeakSet]"===tg(tt)}function tX(tt){return tY(tt)}function tQ(tt){return"[object ArrayBuffer]"===tg(tt)}function tK(tt){return"undefined"!=typeof ArrayBuffer&&(tQ.working?tQ(tt):tt instanceof ArrayBuffer)}function tZ(tt){return"[object DataView]"===tg(tt)}function tJ(tt){return"undefined"!=typeof DataView&&(tZ.working?tZ(tt):tt instanceof DataView)}ti.isArgumentsObject=ts,ti.isGeneratorFunction=tc,ti.isTypedArray=td,ti.isPromise=tk,ti.isArrayBufferView=tR,ti.isUint8Array=tC,ti.isUint8ClampedArray=tI,ti.isUint16Array=tP,ti.isUint32Array=tO,ti.isInt8Array=tN,ti.isInt16Array=tB,ti.isInt32Array=tL,ti.isFloat32Array=tD,ti.isFloat64Array=tj,ti.isBigInt64Array=tU,ti.isBigUint64Array=tF,tG.working="undefined"!=typeof Map&&tG(new Map),ti.isMap=tH,tz.working="undefined"!=typeof Set&&tz(new Set),ti.isSet=tV,tq.working="undefined"!=typeof WeakMap&&tq(new WeakMap),ti.isWeakMap=tW,tY.working="undefined"!=typeof WeakSet&&tY(new WeakSet),ti.isWeakSet=tX,tQ.working="undefined"!=typeof ArrayBuffer&&tQ(new ArrayBuffer),ti.isArrayBuffer=tK,tZ.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&tZ(new DataView(new ArrayBuffer(1),0,1)),ti.isDataView=tJ;var t$="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function t0(tt){return"[object SharedArrayBuffer]"===tg(tt)}function t1(tt){return void 0!==t$&&(void 0===t0.working&&(t0.working=t0(new t$)),t0.working?t0(tt):tt instanceof t$)}function t2(tt){return"[object AsyncFunction]"===tg(tt)}function t3(tt){return"[object Map Iterator]"===tg(tt)}function t8(tt){return"[object Set Iterator]"===tg(tt)}function t5(tt){return"[object Generator]"===tg(tt)}function t4(tt){return"[object WebAssembly.Module]"===tg(tt)}function t6(tt){return tM(tt,t_)}function t7(tt){return tM(tt,tE)}function t9(tt){return tM(tt,tS)}function et(tt){return tv&&tM(tt,tA)}function er(tt){return tb&&tM(tt,tT)}function ei(tt){return t6(tt)||t7(tt)||t9(tt)||et(tt)||er(tt)}function ea(tt){return"undefined"!=typeof Uint8Array&&(tK(tt)||t1(tt))}ti.isSharedArrayBuffer=t1,ti.isAsyncFunction=t2,ti.isMapIterator=t3,ti.isSetIterator=t8,ti.isGeneratorObject=t5,ti.isWebAssemblyCompiledModule=t4,ti.isNumberObject=t6,ti.isStringObject=t7,ti.isBooleanObject=t9,ti.isBigIntObject=et,ti.isSymbolObject=er,ti.isBoxedPrimitive=ei,ti.isAnyArrayBuffer=ea,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(ti,tt,{enumerable:!1,value:function(){throw Error(tt+" is not supported in userland")}})})},177:function(tt,ti,ta){var ts=Object.getOwnPropertyDescriptors||function(tt){for(var ti=Object.keys(tt),ta={},ts=0;ts=tu)return tt;switch(tt){case"%s":return String(ts[ta++]);case"%d":return Number(ts[ta++]);case"%j":try{return JSON.stringify(ts[ta++])}catch(tt){return"[Circular]"}default:return tt}}),tp=ts[ta];ta=3&&(ts.depth=arguments[2]),arguments.length>=4&&(ts.colors=arguments[3]),tI(ta)?ts.showHidden=ta:ta&&ti._extend(ts,ta),tD(ts.showHidden)&&(ts.showHidden=!1),tD(ts.depth)&&(ts.depth=2),tD(ts.colors)&&(ts.colors=!1),tD(ts.customInspect)&&(ts.customInspect=!0),ts.colors&&(ts.stylize=tg),tS(ts,tt,ts.depth)}function tg(tt,ti){var ta=tb.styles[ti];return ta?"\x1b["+tb.colors[ta][0]+"m"+tt+"\x1b["+tb.colors[ta][1]+"m":tt}function t_(tt,ti){return tt}function tE(tt){var ti={};return tt.forEach(function(tt,ta){ti[tt]=!0}),ti}function tS(tt,ta,ts){if(tt.customInspect&&ta&&tH(ta.inspect)&&ta.inspect!==ti.inspect&&!(ta.constructor&&ta.constructor.prototype===ta)){var tc,tu=ta.inspect(ts,tt);return tB(tu)||(tu=tS(tt,tu,ts)),tu}var td=tA(tt,ta);if(td)return td;var tp=Object.keys(ta),tv=tE(tp);if(tt.showHidden&&(tp=Object.getOwnPropertyNames(ta)),tG(ta)&&(tp.indexOf("message")>=0||tp.indexOf("description")>=0))return tT(ta);if(0===tp.length){if(tH(ta)){var tb=ta.name?": "+ta.name:"";return tt.stylize("[Function"+tb+"]","special")}if(tj(ta))return tt.stylize(RegExp.prototype.toString.call(ta),"regexp");if(tF(ta))return tt.stylize(Date.prototype.toString.call(ta),"date");if(tG(ta))return tT(ta)}var tg="",t_=!1,tI=["{","}"];return(tC(ta)&&(t_=!0,tI=["[","]"]),tH(ta)&&(tg=" [Function"+(ta.name?": "+ta.name:"")+"]"),tj(ta)&&(tg=" "+RegExp.prototype.toString.call(ta)),tF(ta)&&(tg=" "+Date.prototype.toUTCString.call(ta)),tG(ta)&&(tg=" "+tT(ta)),0!==tp.length||t_&&0!=ta.length)?ts<0?tj(ta)?tt.stylize(RegExp.prototype.toString.call(ta),"regexp"):tt.stylize("[Object]","special"):(tt.seen.push(ta),tc=t_?tM(tt,ta,ts,tv,tp):tp.map(function(ti){return tk(tt,ta,ts,tv,ti,t_)}),tt.seen.pop(),tR(tc,tg,tI)):tI[0]+tg+tI[1]}function tA(tt,ti){if(tD(ti))return tt.stylize("undefined","undefined");if(tB(ti)){var ta="'"+JSON.stringify(ti).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return tt.stylize(ta,"string")}return tN(ti)?tt.stylize(""+ti,"number"):tI(ti)?tt.stylize(""+ti,"boolean"):tP(ti)?tt.stylize("null","null"):void 0}function tT(tt){return"["+Error.prototype.toString.call(tt)+"]"}function tM(tt,ti,ta,ts,tc){for(var tu=[],td=0,tp=ti.length;tdtt.seen.indexOf(tv.value)?(tp=tP(ta)?tS(tt,tv.value,null):tS(tt,tv.value,ta-1)).indexOf("\n")>-1&&(tp=tu?tp.split("\n").map(function(tt){return" "+tt}).join("\n").substr(2):"\n"+tp.split("\n").map(function(tt){return" "+tt}).join("\n")):tp=tt.stylize("[Circular]","special")),tD(td)){if(tu&&tc.match(/^\d+$/))return tp;(td=JSON.stringify(""+tc)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(td=td.substr(1,td.length-2),td=tt.stylize(td,"name")):(td=td.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),td=tt.stylize(td,"string"))}return td+": "+tp}function tR(tt,ti,ta){var ts=0;return tt.reduce(function(tt,ti){return ts++,ti.indexOf("\n")>=0&&ts++,tt+ti.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ta[0]+(""===ti?"":ti+"\n ")+" "+tt.join(",\n ")+" "+ta[1]:ta[0]+ti+" "+tt.join(", ")+" "+ta[1]}function tC(tt){return Array.isArray(tt)}function tI(tt){return"boolean"==typeof tt}function tP(tt){return null===tt}function tO(tt){return null==tt}function tN(tt){return"number"==typeof tt}function tB(tt){return"string"==typeof tt}function tL(tt){return"symbol"==typeof tt}function tD(tt){return void 0===tt}function tj(tt){return tU(tt)&&"[object RegExp]"===tV(tt)}function tU(tt){return"object"==typeof tt&&null!==tt}function tF(tt){return tU(tt)&&"[object Date]"===tV(tt)}function tG(tt){return tU(tt)&&("[object Error]"===tV(tt)||tt instanceof Error)}function tH(tt){return"function"==typeof tt}function tz(tt){return null===tt||"boolean"==typeof tt||"number"==typeof tt||"string"==typeof tt||"symbol"==typeof tt||void 0===tt}function tV(tt){return Object.prototype.toString.call(tt)}function tq(tt){return tt<10?"0"+tt.toString(10):tt.toString(10)}ti.debuglog=function(tt){if(!td[tt=tt.toUpperCase()]){if(tp.test(tt)){var ta=tu.pid;td[tt]=function(){var ts=ti.format.apply(ti,arguments);console.error("%s %d: %s",tt,ta,ts)}}else td[tt]=function(){}}return td[tt]},ti.inspect=tb,tb.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},tb.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ti.types=ta(584),ti.isArray=tC,ti.isBoolean=tI,ti.isNull=tP,ti.isNullOrUndefined=tO,ti.isNumber=tN,ti.isString=tB,ti.isSymbol=tL,ti.isUndefined=tD,ti.isRegExp=tj,ti.types.isRegExp=tj,ti.isObject=tU,ti.isDate=tF,ti.types.isDate=tF,ti.isError=tG,ti.types.isNativeError=tG,ti.isFunction=tH,ti.isPrimitive=tz,ti.isBuffer=ta(369);var tW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tY(){var tt=new Date,ti=[tq(tt.getHours()),tq(tt.getMinutes()),tq(tt.getSeconds())].join(":");return[tt.getDate(),tW[tt.getMonth()],ti].join(" ")}function tX(tt,ti){return Object.prototype.hasOwnProperty.call(tt,ti)}ti.log=function(){console.log("%s - %s",tY(),ti.format.apply(ti,arguments))},ti.inherits=ta(782),ti._extend=function(tt,ti){if(!ti||!tU(ti))return tt;for(var ta=Object.keys(ti),ts=ta.length;ts--;)tt[ta[ts]]=ti[ta[ts]];return tt};var tQ="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function tK(tt,ti){if(!tt){var ta=Error("Promise was rejected with a falsy value");ta.reason=tt,tt=ta}return ti(tt)}function tZ(tt){if("function"!=typeof tt)throw TypeError('The "original" argument must be of type Function');function ti(){for(var ti=[],ta=0;tati.indexOf(ts)&&(ta[ts]=tt[ts]);if(null!=tt&&"function"==typeof Object.getOwnPropertySymbols)for(var tc=0,ts=Object.getOwnPropertySymbols(tt);tcti.indexOf(ts[tc])&&Object.prototype.propertyIsEnumerable.call(tt,ts[tc])&&(ta[ts[tc]]=tt[ts[tc]]);return ta},td=!1;function tp(){var tt=(0,ts.useState)(tv),ti=tt[0],ta=tt[1],tc=tb();return(0,ts.useEffect)(function(){if(tc)return window.addEventListener("resize",tt),function(){return window.removeEventListener("resize",tt)};function tt(){ta(tv())}},[tc]),tc?ti:null}function tv(){var tt;return tg()?(null===(tt=document.documentElement)||void 0===tt?void 0:tt.clientHeight)||window.innerHeight:null}function tb(){var tt=(0,ts.useState)(!1),ti=tt[0],ta=tt[1];return(0,ts.useEffect)(function(){tg()&&ta(!0)},[]),ti}function tg(){return"undefined"!=typeof window&&"undefined"!=typeof document}(0,ts.forwardRef)(function(tt,ti){var ta=tt.style,tv=tu(tt,["style"]),tb=tp();!td&&(null==ta?void 0:ta.height)&&(td=!0,console.warn(" overrides the height property of the style prop"));var tg=tc(tc({},ta),{height:tb?tb+"px":"100vh"});return ts.createElement("div",tc({ref:ti,style:tg},tv))}).displayName="Div100vh"},41646:function(tt,ti,ta){"use strict";ta.d(ti,{AW:function(){return t2},F0:function(){return t3},TH:function(){return tX},WU:function(){return tJ},Z5:function(){return t8},j3:function(){return t1},oQ:function(){return tW},s0:function(){return tQ}});var ts=ta(9747),tc=ta(30573),tu=ta(51387),td=(0,tu.createContext)(null),tp=(0,tu.createContext)(null),tv=(0,tu.createContext)({outlet:null,matches:[]});function tb(tt,ti){if(!tt)throw Error(ti)}function tg(tt,ti,ta){void 0===ta&&(ta="/");var ts=tG(("string"==typeof ti?(0,tc.cP)(ti):ti).pathname||"/",ta);if(null==ts)return null;var tu=t_(tt);tE(tu);for(var td=null,tp=0;null==td&&tp0&&(!0!==tt.index||tb(!1),t_(tt.children,ti,tp,td)),(null!=tt.path||tt.index)&&ti.push({path:td,score:tI(td,tt.index),routesMeta:tp})}),ti}function tE(tt){tt.sort(function(tt,ti){return tt.score!==ti.score?ti.score-tt.score:tP(tt.routesMeta.map(function(tt){return tt.childrenIndex}),ti.routesMeta.map(function(tt){return tt.childrenIndex}))})}var tS=/^:\w+$/,tA=3,tT=2,tM=1,tk=10,tR=-2,tC=function(tt){return"*"===tt};function tI(tt,ti){var ta=tt.split("/"),ts=ta.length;return ta.some(tC)&&(ts+=tR),ti&&(ts+=tT),ta.filter(function(tt){return!tC(tt)}).reduce(function(tt,ti){return tt+(tS.test(ti)?tA:""===ti?tM:tk)},ts)}function tP(tt,ti){return tt.length===ti.length&&tt.slice(0,-1).every(function(tt,ta){return tt===ti[ta]})?tt[tt.length-1]-ti[ti.length-1]:0}function tO(tt,ti){for(var ta=tt.routesMeta,ts={},tc="/",tu=[],td=0;td1&&ta.pop():"."!==tt&&ta.push(tt)}),ta.length>1?ta.join("/"):"/"}function tU(tt,ti,ta){var ts,tu="string"==typeof tt?(0,tc.cP)(tt):tt,td=""===tt||""===tu.pathname?"/":tu.pathname;if(null==td)ts=ta;else{var tp=ti.length-1;if(td.startsWith("..")){for(var tv=td.split("/");".."===tv[0];)tv.shift(),tp-=1;tu.pathname=tv.join("/")}ts=tp>=0?ti[tp]:"/"}var tb=tD(tu,ts);return td&&"/"!==td&&td.endsWith("/")&&!tb.pathname.endsWith("/")&&(tb.pathname+="/"),tb}function tF(tt){return""===tt||""===tt.pathname?"/":"string"==typeof tt?(0,tc.cP)(tt).pathname:tt.pathname}function tG(tt,ti){if("/"===ti)return tt;if(!tt.toLowerCase().startsWith(ti.toLowerCase()))return null;var ta=tt.charAt(ti.length);return ta&&"/"!==ta?null:tt.slice(ti.length)||"/"}var tH=function(tt){return tt.join("/").replace(/\/\/+/g,"/")},tz=function(tt){return tt.replace(/\/+$/,"").replace(/^\/*/,"/")},tV=function(tt){return tt&&"?"!==tt?tt.startsWith("?")?tt:"?"+tt:""},tq=function(tt){return tt&&"#"!==tt?tt.startsWith("#")?tt:"#"+tt:""};function tW(tt){tY()||tb(!1);var ti=(0,tu.useContext)(td),ta=ti.basename,ts=ti.navigator,tc=tJ(tt),tp=tc.hash,tv=tc.pathname,tg=tc.search,t_=tv;if("/"!==ta){var tE=tF(tt),tS=null!=tE&&tE.endsWith("/");t_="/"===tv?ta+(tS?"/":""):tH([ta,tv])}return ts.createHref({pathname:t_,search:tg,hash:tp})}function tY(){return null!=(0,tu.useContext)(tp)}function tX(){return tY()||tb(!1),(0,tu.useContext)(tp).location}function tQ(){tY()||tb(!1);var tt=(0,tu.useContext)(td),ti=tt.basename,ta=tt.navigator,ts=(0,tu.useContext)(tv).matches,tc=tX().pathname,tp=JSON.stringify(ts.map(function(tt){return tt.pathnameBase})),tg=(0,tu.useRef)(!1);return(0,tu.useEffect)(function(){tg.current=!0}),(0,tu.useCallback)(function(tt,ts){if(void 0===ts&&(ts={}),tg.current){if("number"==typeof tt){ta.go(tt);return}var tu=tU(tt,JSON.parse(tp),tc);"/"!==ti&&(tu.pathname=tH([ti,tu.pathname])),(ts.replace?ta.replace:ta.push)(tu,ts.state)}},[ti,ta,tp,tc])}var tK=(0,tu.createContext)(null);function tZ(tt){var ti=(0,tu.useContext)(tv).outlet;return ti?(0,tu.createElement)(tK.Provider,{value:tt},ti):ti}function tJ(tt){var ti=(0,tu.useContext)(tv).matches,ta=tX().pathname,ts=JSON.stringify(ti.map(function(tt){return tt.pathnameBase}));return(0,tu.useMemo)(function(){return tU(tt,JSON.parse(ts),ta)},[tt,ts,ta])}function t$(tt,ti){tY()||tb(!1);var ta=(0,tu.useContext)(tv).matches,ts=ta[ta.length-1],td=ts?ts.params:{};ts&&ts.pathname;var tp=ts?ts.pathnameBase:"/";ts&&ts.route;var t_=tX();if(ti){var tE,tS,tA="string"==typeof ti?(0,tc.cP)(ti):ti;"/"===tp||(null==(tS=tA.pathname)?void 0:tS.startsWith(tp))||tb(!1),tE=tA}else tE=t_;var tT=tE.pathname||"/",tM=tg(tt,{pathname:"/"===tp?tT:tT.slice(tp.length)||"/"});return t0(tM&&tM.map(function(tt){return Object.assign({},tt,{params:Object.assign({},td,tt.params),pathname:tH([tp,tt.pathname]),pathnameBase:"/"===tt.pathnameBase?tp:tH([tp,tt.pathnameBase])})}),ta)}function t0(tt,ti){return(void 0===ti&&(ti=[]),null==tt)?null:tt.reduceRight(function(ta,ts,tc){return(0,tu.createElement)(tv.Provider,{children:void 0!==ts.route.element?ts.route.element:ta,value:{outlet:ta,matches:ti.concat(tt.slice(0,tc+1))}})},null)}function t1(tt){return tZ(tt.context)}function t2(tt){tb(!1)}function t3(tt){var ti=tt.basename,ta=void 0===ti?"/":ti,ts=tt.children,tv=void 0===ts?null:ts,tg=tt.location,t_=tt.navigationType,tE=void 0===t_?tc.aU.Pop:t_,tS=tt.navigator,tA=tt.static,tT=void 0!==tA&&tA;tY()&&tb(!1);var tM=tz(ta),tk=(0,tu.useMemo)(function(){return{basename:tM,navigator:tS,static:tT}},[tM,tS,tT]);"string"==typeof tg&&(tg=(0,tc.cP)(tg));var tR=tg,tC=tR.pathname,tI=void 0===tC?"/":tC,tP=tR.search,tO=void 0===tP?"":tP,tN=tR.hash,tB=void 0===tN?"":tN,tL=tR.state,tD=void 0===tL?null:tL,tj=tR.key,tU=void 0===tj?"default":tj,tF=(0,tu.useMemo)(function(){var tt=tG(tI,tM);return null==tt?null:{pathname:tt,search:tO,hash:tB,state:tD,key:tU}},[tM,tI,tO,tB,tD,tU]);return null==tF?null:(0,tu.createElement)(td.Provider,{value:tk},(0,tu.createElement)(tp.Provider,{children:tv,value:{location:tF,navigationType:tE}}))}function t8(tt){var ti=tt.children,ta=tt.location;return t$(t5(ti),ta)}function t5(tt){var ti=[];return tu.Children.forEach(tt,function(tt){if((0,tu.isValidElement)(tt)){if(tt.type===tu.Fragment){ti.push.apply(ti,t5(tt.props.children));return}tt.type!==t2&&tb(!1);var ta={caseSensitive:tt.props.caseSensitive,element:tt.props.element,index:tt.props.index,path:tt.props.path};tt.props.children&&(ta.children=t5(tt.props.children)),ti.push(ta)}}),ti}},44836:function(tt,ti,ta){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var ts=ta(35713),tc=ts.Buffer;function tu(tt,ti){for(var ta in tt)ti[ta]=tt[ta]}function td(tt,ti,ta){return tc(tt,ti,ta)}tc.from&&tc.alloc&&tc.allocUnsafe&&tc.allocUnsafeSlow?tt.exports=ts:(tu(ts,ti),ti.Buffer=td),td.prototype=Object.create(tc.prototype),tu(tc,td),td.from=function(tt,ti,ta){if("number"==typeof tt)throw TypeError("Argument must not be a number");return tc(tt,ti,ta)},td.alloc=function(tt,ti,ta){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ts=tc(tt);return void 0!==ti?"string"==typeof ta?ts.fill(ti,ta):ts.fill(ti):ts.fill(0),ts},td.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return tc(tt)},td.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts.SlowBuffer(tt)}},18675:function(tt){!function(){"use strict";function ti(){var tt=window,ti=document;if(!("scrollBehavior"in ti.documentElement.style)||!0===tt.__forceSmoothScrollPolyfill__){var ta=tt.HTMLElement||tt.Element,ts=468,tc={scroll:tt.scroll||tt.scrollTo,scrollBy:tt.scrollBy,elementScroll:ta.prototype.scroll||tp,scrollIntoView:ta.prototype.scrollIntoView},tu=tt.performance&&tt.performance.now?tt.performance.now.bind(tt.performance):Date.now,td=!function(tt){var ti=["MSIE ","Trident/","Edge/"];return new RegExp(ti.join("|")).test(tt)}(tt.navigator.userAgent)?0:1;tt.scroll=tt.scrollTo=function(){if(void 0!==arguments[0]){if(!0===tb(arguments[0])){tc.scroll.call(tt,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:tt.scrollX||tt.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:tt.scrollY||tt.pageYOffset);return}tT.call(tt,ti.body,void 0!==arguments[0].left?~~arguments[0].left:tt.scrollX||tt.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:tt.scrollY||tt.pageYOffset)}},tt.scrollBy=function(){if(void 0!==arguments[0]){if(tb(arguments[0])){tc.scrollBy.call(tt,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);return}tT.call(tt,ti.body,~~arguments[0].left+(tt.scrollX||tt.pageXOffset),~~arguments[0].top+(tt.scrollY||tt.pageYOffset))}},ta.prototype.scroll=ta.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===tb(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");tc.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var tt=arguments[0].left,ti=arguments[0].top;tT.call(this,this,void 0===tt?this.scrollLeft:~~tt,void 0===ti?this.scrollTop:~~ti)}},ta.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===tb(arguments[0])){tc.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},ta.prototype.scrollIntoView=function(){if(!0===tb(arguments[0])){tc.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}var ta=tS(this),ts=ta.getBoundingClientRect(),tu=this.getBoundingClientRect();ta!==ti.body?(tT.call(this,ta,ta.scrollLeft+tu.left-ts.left,ta.scrollTop+tu.top-ts.top),"fixed"!==tt.getComputedStyle(ta).position&&tt.scrollBy({left:ts.left,top:ts.top,behavior:"smooth"})):tt.scrollBy({left:tu.left,top:tu.top,behavior:"smooth"})}}function tp(tt,ti){this.scrollLeft=tt,this.scrollTop=ti}function tv(tt){return .5*(1-Math.cos(Math.PI*tt))}function tb(tt){if(null===tt||"object"!=typeof tt||void 0===tt.behavior||"auto"===tt.behavior||"instant"===tt.behavior)return!0;if("object"==typeof tt&&"smooth"===tt.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+tt.behavior+" is not a valid value for enumeration ScrollBehavior.")}function tg(tt,ti){return"Y"===ti?tt.clientHeight+td1?1:tp),tc=ti.startX+(ti.x-ti.startX)*ta,td=ti.startY+(ti.y-ti.startY)*ta,ti.method.call(ti.scrollable,tc,td),(tc!==ti.x||td!==ti.y)&&tt.requestAnimationFrame(tA.bind(tt,ti))}function tT(ta,ts,td){var tv,tb,tg,t_,tE=tu();ta===ti.body?(tv=tt,tb=tt.scrollX||tt.pageXOffset,tg=tt.scrollY||tt.pageYOffset,t_=tc.scroll):(tv=ta,tb=ta.scrollLeft,tg=ta.scrollTop,t_=tp),tA({scrollable:tv,method:t_,startTime:tE,startX:tb,startY:tg,x:ts,y:td})}}tt.exports={polyfill:ti}}()},87966:function(tt){!function(ti){tt.exports=ti()}(function(tt){"use strict";var ti=function(tt,ti){return tt+ti&4294967295},ta=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function ts(tt,ti){var ta=tt[0],ts=tt[1],tc=tt[2],tu=tt[3];ta+=(ts&tc|~ts&tu)+ti[0]-680876936|0,tu+=((ta=(ta<<7|ta>>>25)+ts|0)&ts|~ta&tc)+ti[1]-389564586|0,tc+=((tu=(tu<<12|tu>>>20)+ta|0)&ta|~tu&ts)+ti[2]+606105819|0,ts+=((tc=(tc<<17|tc>>>15)+tu|0)&tu|~tc&ta)+ti[3]-1044525330|0,ta+=((ts=(ts<<22|ts>>>10)+tc|0)&tc|~ts&tu)+ti[4]-176418897|0,tu+=((ta=(ta<<7|ta>>>25)+ts|0)&ts|~ta&tc)+ti[5]+1200080426|0,tc+=((tu=(tu<<12|tu>>>20)+ta|0)&ta|~tu&ts)+ti[6]-1473231341|0,ts+=((tc=(tc<<17|tc>>>15)+tu|0)&tu|~tc&ta)+ti[7]-45705983|0,ta+=((ts=(ts<<22|ts>>>10)+tc|0)&tc|~ts&tu)+ti[8]+1770035416|0,tu+=((ta=(ta<<7|ta>>>25)+ts|0)&ts|~ta&tc)+ti[9]-1958414417|0,tc+=((tu=(tu<<12|tu>>>20)+ta|0)&ta|~tu&ts)+ti[10]-42063|0,ts+=((tc=(tc<<17|tc>>>15)+tu|0)&tu|~tc&ta)+ti[11]-1990404162|0,ta+=((ts=(ts<<22|ts>>>10)+tc|0)&tc|~ts&tu)+ti[12]+1804603682|0,tu+=((ta=(ta<<7|ta>>>25)+ts|0)&ts|~ta&tc)+ti[13]-40341101|0,tc+=((tu=(tu<<12|tu>>>20)+ta|0)&ta|~tu&ts)+ti[14]-1502002290|0,ts+=((tc=(tc<<17|tc>>>15)+tu|0)&tu|~tc&ta)+ti[15]+1236535329|0,ta+=((ts=(ts<<22|ts>>>10)+tc|0)&tu|tc&~tu)+ti[1]-165796510|0,tu+=((ta=(ta<<5|ta>>>27)+ts|0)&tc|ts&~tc)+ti[6]-1069501632|0,tc+=((tu=(tu<<9|tu>>>23)+ta|0)&ts|ta&~ts)+ti[11]+643717713|0,ts+=((tc=(tc<<14|tc>>>18)+tu|0)&ta|tu&~ta)+ti[0]-373897302|0,ta+=((ts=(ts<<20|ts>>>12)+tc|0)&tu|tc&~tu)+ti[5]-701558691|0,tu+=((ta=(ta<<5|ta>>>27)+ts|0)&tc|ts&~tc)+ti[10]+38016083|0,tc+=((tu=(tu<<9|tu>>>23)+ta|0)&ts|ta&~ts)+ti[15]-660478335|0,ts+=((tc=(tc<<14|tc>>>18)+tu|0)&ta|tu&~ta)+ti[4]-405537848|0,ta+=((ts=(ts<<20|ts>>>12)+tc|0)&tu|tc&~tu)+ti[9]+568446438|0,tu+=((ta=(ta<<5|ta>>>27)+ts|0)&tc|ts&~tc)+ti[14]-1019803690|0,tc+=((tu=(tu<<9|tu>>>23)+ta|0)&ts|ta&~ts)+ti[3]-187363961|0,ts+=((tc=(tc<<14|tc>>>18)+tu|0)&ta|tu&~ta)+ti[8]+1163531501|0,ta+=((ts=(ts<<20|ts>>>12)+tc|0)&tu|tc&~tu)+ti[13]-1444681467|0,tu+=((ta=(ta<<5|ta>>>27)+ts|0)&tc|ts&~tc)+ti[2]-51403784|0,tc+=((tu=(tu<<9|tu>>>23)+ta|0)&ts|ta&~ts)+ti[7]+1735328473|0,ts+=((tc=(tc<<14|tc>>>18)+tu|0)&ta|tu&~ta)+ti[12]-1926607734|0,ta+=((ts=(ts<<20|ts>>>12)+tc|0)^tc^tu)+ti[5]-378558|0,tu+=((ta=(ta<<4|ta>>>28)+ts|0)^ts^tc)+ti[8]-2022574463|0,tc+=((tu=(tu<<11|tu>>>21)+ta|0)^ta^ts)+ti[11]+1839030562|0,ts+=((tc=(tc<<16|tc>>>16)+tu|0)^tu^ta)+ti[14]-35309556|0,ta+=((ts=(ts<<23|ts>>>9)+tc|0)^tc^tu)+ti[1]-1530992060|0,tu+=((ta=(ta<<4|ta>>>28)+ts|0)^ts^tc)+ti[4]+1272893353|0,tc+=((tu=(tu<<11|tu>>>21)+ta|0)^ta^ts)+ti[7]-155497632|0,ts+=((tc=(tc<<16|tc>>>16)+tu|0)^tu^ta)+ti[10]-1094730640|0,ta+=((ts=(ts<<23|ts>>>9)+tc|0)^tc^tu)+ti[13]+681279174|0,tu+=((ta=(ta<<4|ta>>>28)+ts|0)^ts^tc)+ti[0]-358537222|0,tc+=((tu=(tu<<11|tu>>>21)+ta|0)^ta^ts)+ti[3]-722521979|0,ts+=((tc=(tc<<16|tc>>>16)+tu|0)^tu^ta)+ti[6]+76029189|0,ta+=((ts=(ts<<23|ts>>>9)+tc|0)^tc^tu)+ti[9]-640364487|0,tu+=((ta=(ta<<4|ta>>>28)+ts|0)^ts^tc)+ti[12]-421815835|0,tc+=((tu=(tu<<11|tu>>>21)+ta|0)^ta^ts)+ti[15]+530742520|0,ts+=((tc=(tc<<16|tc>>>16)+tu|0)^tu^ta)+ti[2]-995338651|0,ts=(ts<<23|ts>>>9)+tc|0,ta+=(tc^(ts|~tu))+ti[0]-198630844|0,ta=(ta<<6|ta>>>26)+ts|0,tu+=(ts^(ta|~tc))+ti[7]+1126891415|0,tu=(tu<<10|tu>>>22)+ta|0,tc+=(ta^(tu|~ts))+ti[14]-1416354905|0,tc=(tc<<15|tc>>>17)+tu|0,ts+=(tu^(tc|~ta))+ti[5]-57434055|0,ts=(ts<<21|ts>>>11)+tc|0,ta+=(tc^(ts|~tu))+ti[12]+1700485571|0,ta=(ta<<6|ta>>>26)+ts|0,tu+=(ts^(ta|~tc))+ti[3]-1894986606|0,tu=(tu<<10|tu>>>22)+ta|0,tc+=(ta^(tu|~ts))+ti[10]-1051523|0,tc=(tc<<15|tc>>>17)+tu|0,ts+=(tu^(tc|~ta))+ti[1]-2054922799|0,ts=(ts<<21|ts>>>11)+tc|0,ta+=(tc^(ts|~tu))+ti[8]+1873313359|0,ta=(ta<<6|ta>>>26)+ts|0,tu+=(ts^(ta|~tc))+ti[15]-30611744|0,tu=(tu<<10|tu>>>22)+ta|0,tc+=(ta^(tu|~ts))+ti[6]-1560198380|0,tc=(tc<<15|tc>>>17)+tu|0,ts+=(tu^(tc|~ta))+ti[13]+1309151649|0,ts=(ts<<21|ts>>>11)+tc|0,ta+=(tc^(ts|~tu))+ti[4]-145523070|0,ta=(ta<<6|ta>>>26)+ts|0,tu+=(ts^(ta|~tc))+ti[11]-1120210379|0,tu=(tu<<10|tu>>>22)+ta|0,tc+=(ta^(tu|~ts))+ti[2]+718787259|0,tc=(tc<<15|tc>>>17)+tu|0,ts+=(tu^(tc|~ta))+ti[9]-343485551|0,ts=(ts<<21|ts>>>11)+tc|0,tt[0]=ta+tt[0]|0,tt[1]=ts+tt[1]|0,tt[2]=tc+tt[2]|0,tt[3]=tu+tt[3]|0}function tc(tt){var ti,ta=[];for(ti=0;ti<64;ti+=4)ta[ti>>2]=tt.charCodeAt(ti)+(tt.charCodeAt(ti+1)<<8)+(tt.charCodeAt(ti+2)<<16)+(tt.charCodeAt(ti+3)<<24);return ta}function tu(tt){var ti,ta=[];for(ti=0;ti<64;ti+=4)ta[ti>>2]=tt[ti]+(tt[ti+1]<<8)+(tt[ti+2]<<16)+(tt[ti+3]<<24);return ta}function td(tt){var ti,ta,tu,td,tp,tv,tb=tt.length,tg=[1732584193,-271733879,-1732584194,271733878];for(ti=64;ti<=tb;ti+=64)ts(tg,tc(tt.substring(ti-64,ti)));for(ta=(tt=tt.substring(ti-64)).length,tu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ti=0;ti>2]|=tt.charCodeAt(ti)<<(ti%4<<3);if(tu[ti>>2]|=128<<(ti%4<<3),ti>55)for(ts(tg,tu),ti=0;ti<16;ti+=1)tu[ti]=0;return tp=parseInt((td=(td=8*tb).toString(16).match(/(.*?)(.{0,8})$/))[2],16),tv=parseInt(td[1],16)||0,tu[14]=tp,tu[15]=tv,ts(tg,tu),tg}function tp(tt){var ti,ta,tc,td,tp,tv,tb=tt.length,tg=[1732584193,-271733879,-1732584194,271733878];for(ti=64;ti<=tb;ti+=64)ts(tg,tu(tt.subarray(ti-64,ti)));for(ta=(tt=ti-64>2]|=tt[ti]<<(ti%4<<3);if(tc[ti>>2]|=128<<(ti%4<<3),ti>55)for(ts(tg,tc),ti=0;ti<16;ti+=1)tc[ti]=0;return tp=parseInt((td=(td=8*tb).toString(16).match(/(.*?)(.{0,8})$/))[2],16),tv=parseInt(td[1],16)||0,tc[14]=tp,tc[15]=tv,ts(tg,tc),tg}function tv(tt){var ti,ts="";for(ti=0;ti<4;ti+=1)ts+=ta[tt>>8*ti+4&15]+ta[tt>>8*ti&15];return ts}function tb(tt){var ti;for(ti=0;ti>16)+(ti>>16)+(ta>>16)<<16|65535&ta}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function ti(tt,ti){return(tt=0|tt||0)<0?Math.max(tt+ti,0):Math.min(tt,ti)}ArrayBuffer.prototype.slice=function(ta,ts){var tc,tu,td,tp,tv=this.byteLength,tb=ti(ta,tv),tg=tv;return(tt!==ts&&(tg=ti(ts,tv)),tb>tg)?new ArrayBuffer(0):(tc=tg-tb,tu=new ArrayBuffer(tc),td=new Uint8Array(tu),tp=new Uint8Array(this,tb,tc),td.set(tp),tu)}}(),tT.prototype.append=function(tt){return this.appendBinary(tg(tt)),this},tT.prototype.appendBinary=function(tt){this._buff+=tt,this._length+=tt.length;var ti,ta=this._buff.length;for(ti=64;ti<=ta;ti+=64)ts(this._hash,tc(this._buff.substring(ti-64,ti)));return this._buff=this._buff.substring(ti-64),this},tT.prototype.end=function(tt){var ti,ta,ts=this._buff,tc=ts.length,tu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(ti=0;ti>2]|=ts.charCodeAt(ti)<<(ti%4<<3);return this._finish(tu,tc),ta=tb(this._hash),tt&&(ta=tA(ta)),this.reset(),ta},tT.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},tT.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},tT.prototype.setState=function(tt){return this._buff=tt.buff,this._length=tt.length,this._hash=tt.hash,this},tT.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},tT.prototype._finish=function(tt,ti){var ta,tc,tu,td=ti;if(tt[td>>2]|=128<<(td%4<<3),td>55)for(ts(this._hash,tt),td=0;td<16;td+=1)tt[td]=0;tc=parseInt((ta=(ta=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),tu=parseInt(ta[1],16)||0,tt[14]=tc,tt[15]=tu,ts(this._hash,tt)},tT.hash=function(tt,ti){return tT.hashBinary(tg(tt),ti)},tT.hashBinary=function(tt,ti){var ta=tb(td(tt));return ti?tA(ta):ta},tT.ArrayBuffer=function(){this.reset()},tT.ArrayBuffer.prototype.append=function(tt){var ti,ta=tS(this._buff.buffer,tt,!0),tc=ta.length;for(this._length+=tt.byteLength,ti=64;ti<=tc;ti+=64)ts(this._hash,tu(ta.subarray(ti-64,ti)));return this._buff=new Uint8Array(ti-64>2]|=ts[ti]<<(ti%4<<3);return this._finish(tu,tc),ta=tb(this._hash),tt&&(ta=tA(ta)),this.reset(),ta},tT.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},tT.ArrayBuffer.prototype.getState=function(){var tt=tT.prototype.getState.call(this);return tt.buff=tE(tt.buff),tt},tT.ArrayBuffer.prototype.setState=function(tt){return tt.buff=t_(tt.buff,!0),tT.prototype.setState.call(this,tt)},tT.ArrayBuffer.prototype.destroy=tT.prototype.destroy,tT.ArrayBuffer.prototype._finish=tT.prototype._finish,tT.ArrayBuffer.hash=function(tt,ti){var ta=tb(tp(new Uint8Array(tt)));return ti?tA(ta):ta},tT})},45738:function(tt,ti,ta){"use strict";ta.r(ti),ta.d(ti,{assoc:function(){return t_},deepMerge:function(){return tP},dissoc:function(){return tT},get:function(){return tv},merge:function(){return tC},update:function(){return tR}});var ts=Array.prototype.slice;function tc(tt){return"object"==typeof tt}function tu(tt){if(Array.isArray(tt))return tt.slice();var ti={};for(var ta in tt)ti[ta]=tt[ta];return ti}function td(tt,ti,ta){return tc(tt)&&null!==tt&&ti in tt?tt[ti]:ta}function tp(tt,ti,ta){var ts=ti[0],tc=ti.slice(1);return td(tt,ts)&&tc.length?tp(tt[ts],tc,ta):td(tt,ts,ta)}function tv(tt,ti,ta){return Array.isArray(ti)?tp(tt,ti,ta):td(tt,ti,ta)}function tb(tt,ti,ta){if(tt[ti]===ta)return tt;var ts=tu(tt);return ts[ti]=ta,ts}function tg(tt,ti,ta){if(tp(tt,ti)===ta)return tt;var ts=ti[0],tc=ti.slice(1),td=tu(tt);return tc.length?td[ts]=ts in td?tg(td[ts],tc,ta):tg({},tc,ta):td[ts]=ta,td}function t_(tt){for(var ti,ta,ts=arguments,tc=arguments.length,tu=tt,td=1;td>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tb(tt,ti,ta){var ts=ti.length-1;if(ts=0?(tc>0&&(tt.lastNeed=tc-1),tc):--ts=0?(tc>0&&(tt.lastNeed=tc-2),tc):--ts=0?(tc>0&&(2===tc?tc=0:tt.lastNeed=tc-3),tc):0}function tg(tt,ti,ta){if((192&ti[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&ti.length>1){if((192&ti[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&ti.length>2&&(192&ti[2])!=128)return tt.lastNeed=2,"�"}}function t_(tt){var ti=this.lastTotal-this.lastNeed,ta=tg(this,tt,ti);return void 0!==ta?ta:this.lastNeed<=tt.length?(tt.copy(this.lastChar,ti,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,ti,0,tt.length),this.lastNeed-=tt.length)}function tE(tt,ti){var ta=tb(this,tt,ti);if(!this.lastNeed)return tt.toString("utf8",ti);this.lastTotal=ta;var ts=tt.length-(ta-this.lastNeed);return tt.copy(this.lastChar,0,ts),tt.toString("utf8",ti,ts)}function tS(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+"�":ti}function tA(tt,ti){if((tt.length-ti)%2==0){var ta=tt.toString("utf16le",ti);if(ta){var ts=ta.charCodeAt(ta.length-1);if(ts>=55296&&ts<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ta.slice(0,-1)}return ta}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",ti,tt.length-1)}function tT(tt){var ti=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ta=this.lastTotal-this.lastNeed;return ti+this.lastChar.toString("utf16le",0,ta)}return ti}function tM(tt,ti){var ta=(tt.length-ti)%3;return 0===ta?tt.toString("base64",ti):(this.lastNeed=3-ta,this.lastTotal=3,1===ta?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",ti,tt.length-ta))}function tk(tt){var ti=tt&&tt.length?this.write(tt):"";return this.lastNeed?ti+this.lastChar.toString("base64",0,3-this.lastNeed):ti}function tR(tt){return tt.toString(this.encoding)}function tC(tt){return tt&&tt.length?this.write(tt):""}ti.StringDecoder=tp,tp.prototype.write=function(tt){var ti,ta;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(ti=this.fillLast(tt)))return"";ta=this.lastNeed,this.lastNeed=0}else ta=0;return ta{var tt;return new tN.eN((tt="https://events.tbank.ru","https://events.tbank.ru"))}).inSingletonScope(),tt.bind(tO.V.prizeApi).toInstance(()=>new tN.GF(tt.get(tO.V.prizeApiClient),"v2")).inSingletonScope(),tt.bind(tO.V.prizeService).toInstance(()=>new tN.O4(tt.get(tO.V.prizeApi))).inSingletonScope()}var tL=ta(14322),tD=ta(12781),tj=ta(93319),tU=ta(27091);class tF extends tU.l{isAuthStateLoggedIn(tt){return tt.status===tD.ProjectUserAuthStatus.LoggedIn}isAuthStateLoading(tt){return tt.status===tD.ProjectUserAuthStatus.Loading}isAuthStateError(tt){return tt.status===tD.ProjectUserAuthStatus.Error}isAuthStateGuest(tt){return tt.status===tD.ProjectUserAuthStatus.Guest}auth(){this.projectUserAuth.auth()}constructor(tt,ti,ta,ts){super({status:tD.ProjectUserAuthStatus.Loading,error:void 0}),this.configService=tt,this.projectUserAuthCreator=ti,this.projectAuthApi=ta,this.window=ts,this.getProjectUserAuth=()=>this.projectUserAuth,this.simulateUserError=tt=>{var{errorCode:ti=tj.S.UnknownError,httpCode:ta}=tt;if(ta===tD.HttpStatus.SERVICE_UNAVAILABLE){var ts=new tD.HttpErrorBackend("Service Unavailable",{httpCode:Number(ta)});this.setState({status:tD.ProjectUserAuthStatus.Error,error:ts});return}var tc=new tD.HttpErrorProject("Ошибка",{httpCode:Number(ta),errorCode:ti,errorMessage:"Error",timestamp:new this.window.Date().toISOString(),requestId:"jnjnf-sdfef33-fdfdfewf33-dvdfvdfv"});this.setState({status:tD.ProjectUserAuthStatus.Error,error:tc})};var{APP_SSO_API_URL:tc,APP_SSO_CLIENT_URL:tu,APP_PROJECT_URL:td}=tt.getEnvs();this.projectUserAuth=this.projectUserAuthCreator.create({ssoApi:tc,ssoClientApi:tu,projectApi:this.projectAuthApi,srcOrigin:td})}}function tG(tt){tt.bind(tO.V.projectUserAuthCreator).toConstant(tD.ProjectUserAuthCreator);var ti=ta(48568).T;(0,tL.Lj)(ti,tO.V.httpClientProjectApi,tO.V.queryString,tO.V.window,tO.V.projectApiHeaders),tt.bind(tO.V.projectAuthApi).toInstance(ti).inSingletonScope(),(0,tL.Lj)(tF,tO.V.configService,tO.V.projectUserAuthCreator,tO.V.projectAuthApi,tO.V.window),tt.bind(tO.V.projectAuthModel).toInstance(tF).inSingletonScope()}var tH=ta(92293),tz=ta(31193),tV={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},tq={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},tW=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],tY={CSS:{},springs:{}};function tX(tt,ti,ta){return Math.min(Math.max(tt,ti),ta)}function tQ(tt,ti){return tt.indexOf(ti)>-1}function tK(tt,ti){return tt.apply(null,ti)}var tZ={arr:function(tt){return Array.isArray(tt)},obj:function(tt){return tQ(Object.prototype.toString.call(tt),"Object")},pth:function(tt){return tZ.obj(tt)&&tt.hasOwnProperty("totalLength")},svg:function(tt){return tt instanceof SVGElement},inp:function(tt){return tt instanceof HTMLInputElement},dom:function(tt){return tt.nodeType||tZ.svg(tt)},str:function(tt){return"string"==typeof tt},fnc:function(tt){return"function"==typeof tt},und:function(tt){return void 0===tt},nil:function(tt){return tZ.und(tt)||null===tt},hex:function(tt){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(tt)},rgb:function(tt){return/^rgb/.test(tt)},hsl:function(tt){return/^hsl/.test(tt)},col:function(tt){return tZ.hex(tt)||tZ.rgb(tt)||tZ.hsl(tt)},key:function(tt){return!tV.hasOwnProperty(tt)&&!tq.hasOwnProperty(tt)&&"targets"!==tt&&"keyframes"!==tt}};function tJ(tt){var ti=/\(([^)]+)\)/.exec(tt);return ti?ti[1].split(",").map(function(tt){return parseFloat(tt)}):[]}function t$(tt,ti){var ta=tJ(tt),ts=tX(tZ.und(ta[0])?1:ta[0],.1,100),tc=tX(tZ.und(ta[1])?100:ta[1],.1,100),tu=tX(tZ.und(ta[2])?10:ta[2],.1,100),td=tX(tZ.und(ta[3])?0:ta[3],.1,100),tp=Math.sqrt(tc/ts),tv=tu/(2*Math.sqrt(tc*ts)),tb=tv<1?tp*Math.sqrt(1-tv*tv):0,tg=1,t_=tv<1?(tv*tp+-td)/tb:-td+tp;function tE(tt){var ta=ti?ti*tt/1e3:tt;return(ta=tv<1?Math.exp(-ta*tv*tp)*(tg*Math.cos(tb*ta)+t_*Math.sin(tb*ta)):(tg+t_*ta)*Math.exp(-ta*tp),0===tt||1===tt)?tt:1-ta}function tS(){var ti=tY.springs[tt];if(ti)return ti;for(var ta=1/6,ts=0,tc=0;;)if(1===tE(ts+=ta)){if(++tc>=16)break}else tc=0;var tu=ts*ta*1e3;return tY.springs[tt]=tu,tu}return ti?tE:tS}function t0(tt){return void 0===tt&&(tt=10),function(ti){return Math.ceil(tX(ti,1e-6,1)*tt)*(1/tt)}}var t1=function(){var tt=11,ti=.1;function ta(tt,ti){return 1-3*ti+3*tt}function ts(tt,ti){return 3*ti-6*tt}function tc(tt){return 3*tt}function tu(tt,ti,tu){return((ta(ti,tu)*tt+ts(ti,tu))*tt+tc(ti))*tt}function td(tt,ti,tu){return 3*ta(ti,tu)*tt*tt+2*ts(ti,tu)*tt+tc(ti)}function tp(tt,ti,ta,ts,tc){var td,tp,tv=0;do(td=tu(tp=ti+(ta-ti)/2,ts,tc)-tt)>0?ta=tp:ti=tp;while(Math.abs(td)>1e-7&&++tv<10);return tp}function tv(tt,ti,ta,ts){for(var tc=0;tc<4;++tc){var tp=td(ti,ta,ts);if(0===tp)break;var tv=tu(ti,ta,ts)-tt;ti-=tv/tp}return ti}return function(ta,ts,tc,tb){if(0<=ta&&ta<=1&&0<=tc&&tc<=1){var tg=new Float32Array(tt);if(ta!==ts||tc!==tb)for(var t_=0;t_=.001?tv(ts,tE,ta,tc):0===tS?tE:tp(ts,tu,tu+ti,ta,tc)}}}(),t2=function(){var tt={linear:function(){return function(tt){return tt}}},ti={Sine:function(){return function(tt){return 1-Math.cos(tt*Math.PI/2)}},Circ:function(){return function(tt){return 1-Math.sqrt(1-tt*tt)}},Back:function(){return function(tt){return tt*tt*(3*tt-2)}},Bounce:function(){return function(tt){for(var ti,ta=4;tt<((ti=Math.pow(2,--ta))-1)/11;);return 1/Math.pow(4,3-ta)-7.5625*Math.pow((3*ti-2)/22-tt,2)}},Elastic:function(tt,ti){void 0===tt&&(tt=1),void 0===ti&&(ti=.5);var ta=tX(tt,1,10),ts=tX(ti,.1,2);return function(tt){return 0===tt||1===tt?tt:-ta*Math.pow(2,10*(tt-1))*Math.sin((tt-1-ts/(2*Math.PI)*Math.asin(1/ta))*(2*Math.PI)/ts)}}};return["Quad","Cubic","Quart","Quint","Expo"].forEach(function(tt,ta){ti[tt]=function(){return function(tt){return Math.pow(tt,ta+2)}}}),Object.keys(ti).forEach(function(ta){var ts=ti[ta];tt["easeIn"+ta]=ts,tt["easeOut"+ta]=function(tt,ti){return function(ta){return 1-ts(tt,ti)(1-ta)}},tt["easeInOut"+ta]=function(tt,ti){return function(ta){return ta<.5?ts(tt,ti)(2*ta)/2:1-ts(tt,ti)(-2*ta+2)/2}},tt["easeOutIn"+ta]=function(tt,ti){return function(ta){return ta<.5?(1-ts(tt,ti)(1-2*ta))/2:(ts(tt,ti)(2*ta-1)+1)/2}}}),tt}();function t3(tt,ti){if(tZ.fnc(tt))return tt;var ta=tt.split("(")[0],ts=t2[ta],tc=tJ(tt);switch(ta){case"spring":return t$(tt,ti);case"cubicBezier":return tK(t1,tc);case"steps":return tK(t0,tc);default:return tK(ts,tc)}}function t8(tt){try{return document.querySelectorAll(tt)}catch(tt){return}}function t5(tt,ti){for(var ta=tt.length,ts=arguments.length>=2?arguments[1]:void 0,tc=[],tu=0;tu1&&(ta-=1),ta<1/6)?tt+(ti-tt)*6*ta:ta<.5?ti:ta<2/3?tt+(ti-tt)*(2/3-ta)*6:tt}if(0==td)ti=ta=ts=tp;else{var tg=tp<.5?tp*(1+td):tp+td-tp*td,t_=2*tp-tg;ti=tb(t_,tg,tu+1/3),ta=tb(t_,tg,tu),ts=tb(t_,tg,tu-1/3)}return"rgba("+255*ti+","+255*ta+","+255*ts+","+tv+")"}function es(tt){return tZ.rgb(tt)?ei(tt):tZ.hex(tt)?ea(tt):tZ.hsl(tt)?eo(tt):void 0}function ec(tt){var ti=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(tt);if(ti)return ti[1]}function eu(tt){return tQ(tt,"translate")||"perspective"===tt?"px":tQ(tt,"rotate")||tQ(tt,"skew")?"deg":void 0}function eh(tt,ti){return tZ.fnc(tt)?tt(ti.target,ti.id,ti.total):tt}function ed(tt,ti){return tt.getAttribute(ti)}function ef(tt,ti,ta){if(t7([ta,"deg","rad","turn"],ec(ti)))return ti;var ts=tY.CSS[ti+ta];if(!tZ.und(ts))return ts;var tc=100,tu=document.createElement(tt.tagName),td=tt.parentNode&&tt.parentNode!==document?tt.parentNode:document.body;td.appendChild(tu),tu.style.position="absolute",tu.style.width=tc+ta;var tp=tc/tu.offsetWidth;td.removeChild(tu);var tv=tp*parseFloat(ti);return tY.CSS[ti+ta]=tv,tv}function ep(tt,ti,ta){if(ti in tt.style){var ts=ti.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),tc=tt.style[ti]||getComputedStyle(tt).getPropertyValue(ts)||"0";return ta?ef(tt,tc,ta):tc}}function ev(tt,ti){return tZ.dom(tt)&&!tZ.inp(tt)&&(!tZ.nil(ed(tt,ti))||tZ.svg(tt)&&tt[ti])?"attribute":tZ.dom(tt)&&t7(tW,ti)?"transform":tZ.dom(tt)&&"transform"!==ti&&ep(tt,ti)?"css":null!=tt[ti]?"object":void 0}function eb(tt){if(tZ.dom(tt)){for(var ti,ta=tt.style.transform||"",ts=/(\w+)\(([^)]*)\)/g,tc=new Map;ti=ts.exec(ta);)tc.set(ti[1],ti[2]);return tc}}function eg(tt,ti,ta,ts){var tc=tQ(ti,"scale")?1:0+eu(ti),tu=eb(tt).get(ti)||tc;return ta&&(ta.transforms.list.set(ti,tu),ta.transforms.last=ti),ts?ef(tt,tu,ts):tu}function ey(tt,ti,ta,ts){switch(ev(tt,ti)){case"transform":return eg(tt,ti,ts,ta);case"css":return ep(tt,ti,ta);case"attribute":return ed(tt,ti);default:return tt[ti]||0}}function em(tt,ti){var ta=/^(\*=|\+=|-=)/.exec(tt);if(!ta)return tt;var ts=ec(tt)||0,tc=parseFloat(ti),tu=parseFloat(tt.replace(ta[0],""));switch(ta[0][0]){case"+":return tc+tu+ts;case"-":return tc-tu+ts;case"*":return tc*tu+ts}}function e_(tt,ti){if(tZ.col(tt))return es(tt);if(/\s/g.test(tt))return tt;var ta=ec(tt),ts=ta?tt.substr(0,tt.length-ta.length):tt;return ti?ts+ti:ts}function ew(tt,ti){return Math.sqrt(Math.pow(ti.x-tt.x,2)+Math.pow(ti.y-tt.y,2))}function ex(tt){return 2*Math.PI*ed(tt,"r")}function eE(tt){return 2*ed(tt,"width")+2*ed(tt,"height")}function eS(tt){return ew({x:ed(tt,"x1"),y:ed(tt,"y1")},{x:ed(tt,"x2"),y:ed(tt,"y2")})}function eA(tt){for(var ti,ta=tt.points,ts=0,tc=0;tc0&&(ts+=ew(ti,tu)),ti=tu}return ts}function eT(tt){var ti=tt.points;return eA(tt)+ew(ti.getItem(ti.numberOfItems-1),ti.getItem(0))}function eM(tt){if(tt.getTotalLength)return tt.getTotalLength();switch(tt.tagName.toLowerCase()){case"circle":return ex(tt);case"rect":return eE(tt);case"line":return eS(tt);case"polyline":return eA(tt);case"polygon":return eT(tt)}}function ek(tt){var ti=eM(tt);return tt.setAttribute("stroke-dasharray",ti),ti}function eR(tt){for(var ti=tt.parentNode;tZ.svg(ti)&&tZ.svg(ti.parentNode);)ti=ti.parentNode;return ti}function eC(tt,ti){var ta=ti||{},ts=ta.el||eR(tt),tc=ts.getBoundingClientRect(),tu=ed(ts,"viewBox"),td=tc.width,tp=tc.height,tv=ta.viewBox||(tu?tu.split(" "):[0,0,td,tp]);return{el:ts,viewBox:tv,x:tv[0]/1,y:tv[1]/1,w:td,h:tp,vW:tv[2],vH:tv[3]}}function eI(tt,ti){var ta=tZ.str(tt)?t8(tt)[0]:tt,ts=ti||100;return function(tt){return{property:tt,el:ta,svg:eC(ta),totalLength:eM(ta)*(ts/100)}}}function eP(tt,ti,ta){function ts(ta){void 0===ta&&(ta=0);var ts=ti+ta>=1?ti+ta:0;return tt.el.getPointAtLength(ts)}var tc=eC(tt.el,tt.svg),tu=ts(),td=ts(-1),tp=ts(1),tv=ta?1:tc.w/tc.vW,tb=ta?1:tc.h/tc.vH;switch(tt.property){case"x":return(tu.x-tc.x)*tv;case"y":return(tu.y-tc.y)*tb;case"angle":return 180*Math.atan2(tp.y-td.y,tp.x-td.x)/Math.PI}}function eO(tt,ti){var ta=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,ts=e_(tZ.pth(tt)?tt.totalLength:tt,ti)+"";return{original:ts,numbers:ts.match(ta)?ts.match(ta).map(Number):[0],strings:tZ.str(tt)||ti?ts.split(ta):[]}}function eN(tt){return t5(tt?t4(tZ.arr(tt)?tt.map(t6):t6(tt)):[],function(tt,ti,ta){return ta.indexOf(tt)===ti})}function eB(tt){var ti=eN(tt);return ti.map(function(tt,ta){return{target:tt,id:ta,total:ti.length,transforms:{list:eb(tt)}}})}function eL(tt,ti){var ta=t9(ti);if(/^spring/.test(ta.easing)&&(ta.duration=t$(ta.easing)),tZ.arr(tt)){var ts=tt.length;2!==ts||tZ.obj(tt[0])?tZ.fnc(ti.duration)||(ta.duration=ti.duration/ts):tt={value:tt}}var tc=tZ.arr(tt)?tt:[tt];return tc.map(function(tt,ta){var ts=tZ.obj(tt)&&!tZ.pth(tt)?tt:{value:tt};return tZ.und(ts.delay)&&(ts.delay=ta?0:ti.delay),tZ.und(ts.endDelay)&&(ts.endDelay=ta===tc.length-1?ti.endDelay:0),ts}).map(function(tt){return er(tt,ta)})}function eD(tt){for(var ti=t5(t4(tt.map(function(tt){return Object.keys(tt)})),function(tt){return tZ.key(tt)}).reduce(function(tt,ti){return 0>tt.indexOf(ti)&&tt.push(ti),tt},[]),ta={},ts=function(ts){var tc=ti[ts];ta[tc]=tt.map(function(tt){var ti={};for(var ta in tt)tZ.key(ta)?ta==tc&&(ti.value=tt[ta]):ti[ta]=tt[ta];return ti})},tc=0;tc0)||(tt=requestAnimationFrame(ta))}function ta(ti){for(var ts=eQ.length,tc=0;tc0?requestAnimationFrame(ta):void 0}function ts(){eJ.suspendWhenDocumentHidden&&(eZ()?tt=cancelAnimationFrame(tt):(eQ.forEach(function(tt){return tt._onDocumentVisibility()}),eK()))}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",ts),ti}();function eZ(){return!!document&&document.hidden}function eJ(tt){void 0===tt&&(tt={});var ti,ta=0,ts=0,tc=0,tu=0,td=null;function tp(tt){var ti=window.Promise&&new Promise(function(tt){return td=tt});return tt.finished=ti,ti}var tv=eX(tt),tb=tp(tv);function tg(){var tt=tv.direction;"alternate"!==tt&&(tv.direction="normal"!==tt?"normal":"reverse"),tv.reversed=!tv.reversed,ti.forEach(function(tt){return tt.reversed=tv.reversed})}function t_(tt){return tv.reversed?tv.duration-tt:tt}function tE(){ta=0,ts=t_(tv.currentTime)*(1/eJ.speed)}function tS(tt,ti){ti&&ti.seek(tt-ti.timelineOffset)}function tA(tt){if(tv.reversePlayback)for(var ta=tu;ta--;)tS(tt,ti[ta]);else for(var ts=0;ts2)&&(tR=Math.round(tR*tS)/tS),tA.push(tR)}var tP=tE.length;if(tP){tM=tE[0];for(var tO=0;tO0&&(tv.began=!0,tM("begin")),!tv.loopBegan&&tv.currentTime>0&&(tv.loopBegan=!0,tM("loopBegin")),tR<=tE&&0!==tv.currentTime&&tT(0),(tR>=tS&&tv.currentTime!==tu||!tu)&&tT(tu),tR>tE&&tR=tu&&(ts=0,tk(),tv.remaining?(ta=tc,tM("loopComplete"),tv.loopBegan=!1,"alternate"===tv.direction&&tg()):(tv.paused=!0,!tv.completed&&(tv.completed=!0,tM("loopComplete"),tM("complete"),!tv.passThrough&&"Promise"in window&&(td(),tb=tp(tv)))))}return tv.reset=function(){var tt=tv.direction;tv.passThrough=!1,tv.currentTime=0,tv.progress=0,tv.paused=!0,tv.began=!1,tv.loopBegan=!1,tv.changeBegan=!1,tv.completed=!1,tv.changeCompleted=!1,tv.reversePlayback=!1,tv.reversed="reverse"===tt,tv.remaining=tv.loop,tu=(ti=tv.children).length;for(var ta=tu;ta--;)tv.children[ta].reset();(tv.reversed&&!0!==tv.loop||"alternate"===tt&&1===tv.loop)&&tv.remaining++,tT(tv.reversed?tv.duration:0)},tv._onDocumentVisibility=tE,tv.set=function(tt,ti){return eH(tt,ti),tv},tv.tick=function(tt){tc=tt,ta||(ta=tc),tR((tc+(ts-ta))*eJ.speed)},tv.seek=function(tt){tR(t_(tt))},tv.pause=function(){tv.paused=!0,tE()},tv.play=function(){tv.paused&&(tv.completed&&tv.reset(),tv.paused=!1,eQ.push(tv),tE(),eK())},tv.reverse=function(){tg(),tv.completed=!tv.reversed,tE()},tv.restart=function(){tv.reset(),tv.play()},tv.remove=function(tt){e0(eN(tt),tv)},tv.reset(),tv.autoplay&&tv.play(),tv}function e$(tt,ti){for(var ta=ti.length;ta--;)t7(tt,ti[ta].animatable.target)&&ti.splice(ta,1)}function e0(tt,ti){var ta=ti.animations,ts=ti.children;e$(tt,ta);for(var tc=ts.length;tc--;){var tu=ts[tc],td=tu.animations;e$(tt,td),td.length||tu.children.length||ts.splice(tc,1)}ta.length||ts.length||ti.pause()}function e1(tt){for(var ti=eN(tt),ta=eQ.length;ta--;)e0(ti,eQ[ta])}function e2(tt,ti){void 0===ti&&(ti={});var ta=ti.direction||"normal",ts=ti.easing?t3(ti.easing):null,tc=ti.grid,tu=ti.axis,td=ti.from||0,tp="first"===td,tv="center"===td,tb="last"===td,tg=tZ.arr(tt),t_=tg?parseFloat(tt[0]):parseFloat(tt),tE=tg?parseFloat(tt[1]):0,tS=ec(tg?tt[1]:tt)||0,tA=ti.start||0+(tg?t_:0),tT=[],tM=0;return function(tt,ti,tk){if(tp&&(td=0),tv&&(td=(tk-1)/2),tb&&(td=tk-1),!tT.length){for(var tR=0;tR-1&&eQ.splice(tc,1);for(var tp=0;tp{var ta=document.createElement("canvas");return ta.width=tt,ta.height=ti,ta},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>null!==(cM=document.baseURI)&&void 0!==cM?cM:window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,ti)=>fetch(tt,ti),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},e4=/iPhone/i,e6=/iPod/i,e7=/iPad/i,e9=/\biOS-universal(?:.+)Mac\b/i,ri=/\bAndroid(?:.+)Mobile\b/i,ra=/Android/i,ro=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,rs=/Silk/i,rc=/Windows Phone/i,ru=/\bWindows(?:.+)ARM\b/i,rh=/BlackBerry/i,rl=/BB10/i,rd=/Opera Mini/i,rf=/\b(CriOS|Chrome)(?:.+)Mobile/i,rp=/Mobile(?:.+)Firefox\b/i,rv=function(tt){return void 0!==tt&&"MacIntel"===tt.platform&&"number"==typeof tt.maxTouchPoints&&tt.maxTouchPoints>1&&"undefined"==typeof MSStream};function rg(tt){return function(ti){return ti.test(tt)}}function ry(tt){var ti={userAgent:"",platform:"",maxTouchPoints:0};tt||"undefined"==typeof navigator?"string"==typeof tt?ti.userAgent=tt:tt&&tt.userAgent&&(ti={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0}):ti={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var ta=ti.userAgent,ts=ta.split("[FBAN");void 0!==ts[1]&&(ta=ts[0]),void 0!==(ts=ta.split("Twitter"))[1]&&(ta=ts[0]);var tc=rg(ta),tu={apple:{phone:tc(e4)&&!tc(rc),ipod:tc(e6),tablet:!tc(e4)&&(tc(e7)||rv(ti))&&!tc(rc),universal:tc(e9),device:(tc(e4)||tc(e6)||tc(e7)||tc(e9)||rv(ti))&&!tc(rc)},amazon:{phone:tc(ro),tablet:!tc(ro)&&tc(rs),device:tc(ro)||tc(rs)},android:{phone:!tc(rc)&&tc(ro)||!tc(rc)&&tc(ri),tablet:!tc(rc)&&!tc(ro)&&!tc(ri)&&(tc(rs)||tc(ra)),device:!tc(rc)&&(tc(ro)||tc(rs)||tc(ri)||tc(ra))||tc(/\bokhttp\b/i)},windows:{phone:tc(rc),tablet:tc(ru),device:tc(rc)||tc(ru)},other:{blackberry:tc(rh),blackberry10:tc(rl),opera:tc(rd),firefox:tc(rp),chrome:tc(rf),device:tc(rh)||tc(rl)||tc(rd)||tc(rp)||tc(rf)},any:!1,phone:!1,tablet:!1};return tu.any=tu.apple.device||tu.android.device||tu.windows.device||tu.other.device,tu.phone=tu.apple.phone||tu.android.phone||tu.windows.phone,tu.tablet=tu.apple.tablet||tu.android.tablet||tu.windows.tablet,tu}var rm=(null!==(ck=ry.default)&&void 0!==ck?ck:ry)(globalThis.navigator);e5.RETINA_PREFIX=/@([0-9\.]+)x/,e5.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var r_=ta(75022),rw=ta.n(r_);ta(70270),ta(71888);var rx={};function rE(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!rx[ti]){var ts=Error().stack;typeof ts>"u"?console.warn("PixiJS Deprecation Warning: ","".concat(ti,"\nDeprecated since v").concat(tt)):(ts=ts.split("\n").splice(ta).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6","".concat(ti,"\nDeprecated since v").concat(tt)),console.warn(ts),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ","".concat(ti,"\nDeprecated since v").concat(tt)),console.warn(ts))),rx[ti]=!0}}function rS(tt){if("string"!=typeof tt)throw TypeError("Path must be a string. Received ".concat(JSON.stringify(tt)))}function rA(tt){return tt.split("?")[0].split("#")[0]}function rT(tt){return tt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function rM(tt,ti,ta){return tt.replace(RegExp(rT(ti),"g"),ta)}function rk(tt,ti){for(var ta="",ts=0,tc=-1,tu=0,td=-1,tp=0;tp<=tt.length;++tp){if(tp2){var tv=ta.lastIndexOf("/");if(tv!==ta.length-1){-1===tv?(ta="",ts=0):ts=(ta=ta.slice(0,tv)).length-1-ta.lastIndexOf("/"),tc=tp,tu=0;continue}}else if(2===ta.length||1===ta.length){ta="",ts=0,tc=tp,tu=0;continue}}ti&&(ta.length>0?ta+="/..":ta="..",ts=2)}else ta.length>0?ta+="/".concat(tt.slice(tc+1,tp)):ta=tt.slice(tc+1,tp),ts=tp-tc-1}tc=tp,tu=0}else 46===td&&-1!==tu?++tu:tu=-1}return ta}var rR={toPosix:tt=>rM(tt,"\\","/"),isUrl(tt){return/^https?:/.test(this.toPosix(tt))},isDataUrl:tt=>/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(tt),isBlobUrl:tt=>tt.startsWith("blob:"),hasProtocol(tt){return/^[^/:]+:/.test(this.toPosix(tt))},getProtocol(tt){rS(tt),tt=this.toPosix(tt);var ti=/^file:\/\/\//.exec(tt);if(ti)return ti[0];var ta=/^[^/:]+:\/{0,2}/.exec(tt);return ta?ta[0]:""},toAbsolute(tt,ti,ta){if(rS(tt),this.isDataUrl(tt)||this.isBlobUrl(tt))return tt;var ts=rA(this.toPosix(null!=ti?ti:e5.ADAPTER.getBaseUrl())),tc=rA(this.toPosix(null!=ta?ta:this.rootname(ts)));return(tt=this.toPosix(tt)).startsWith("/")?rR.join(tc,tt.slice(1)):this.isAbsolute(tt)?tt:this.join(ts,tt)},normalize(tt){if(rS(tt),0===tt.length)return".";if(this.isDataUrl(tt)||this.isBlobUrl(tt))return tt;tt=this.toPosix(tt);var ti="",ta=tt.startsWith("/");this.hasProtocol(tt)&&(ti=this.rootname(tt),tt=tt.slice(ti.length));var ts=tt.endsWith("/");return(tt=rk(tt,!1)).length>0&&ts&&(tt+="/"),ta?"/".concat(tt):ti+tt},isAbsolute(tt){return rS(tt),tt=this.toPosix(tt),!!this.hasProtocol(tt)||tt.startsWith("/")},join(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta0){if(void 0===tu)tu=tc;else{var tu,td,tp=null!==(td=ti[ts-1])&&void 0!==td?td:"";this.extname(tp)?tu+="/../".concat(tc):tu+="/".concat(tc)}}}return void 0===tu?".":this.normalize(tu)},dirname(tt){if(rS(tt),0===tt.length)return".";var ti=(tt=this.toPosix(tt)).charCodeAt(0),ta=47===ti,ts=-1,tc=!0,tu=this.getProtocol(tt),td=tt;tt=tt.slice(tu.length);for(var tp=tt.length-1;tp>=1;--tp)if(47===(ti=tt.charCodeAt(tp))){if(!tc){ts=tp;break}}else tc=!1;return -1===ts?ta?"/":this.isUrl(td)?tu+tt:tu:ta&&1===ts?"//":tu+tt.slice(0,ts)},rootname(tt){rS(tt);var ti="";if(ti=(tt=this.toPosix(tt)).startsWith("/")?"/":this.getProtocol(tt),this.isUrl(tt)){var ta=tt.indexOf("/",ti.length);(ti=-1!==ta?tt.slice(0,ta):tt).endsWith("/")||(ti+="/")}return ti},basename(tt,ti){rS(tt),ti&&rS(ti),tt=rA(this.toPosix(tt));var ta,ts=0,tc=-1,tu=!0;if(void 0!==ti&&ti.length>0&&ti.length<=tt.length){if(ti.length===tt.length&&ti===tt)return"";var td=ti.length-1,tp=-1;for(ta=tt.length-1;ta>=0;--ta){var tv=tt.charCodeAt(ta);if(47===tv){if(!tu){ts=ta+1;break}}else -1===tp&&(tu=!1,tp=ta+1),td>=0&&(tv===ti.charCodeAt(td)?-1==--td&&(tc=ta):(td=-1,tc=tp))}return ts===tc?tc=tp:-1===tc&&(tc=tt.length),tt.slice(ts,tc)}for(ta=tt.length-1;ta>=0;--ta)if(47===tt.charCodeAt(ta)){if(!tu){ts=ta+1;break}}else -1===tc&&(tu=!1,tc=ta+1);return -1===tc?"":tt.slice(ts,tc)},extname(tt){rS(tt),tt=rA(this.toPosix(tt));for(var ti=-1,ta=0,ts=-1,tc=!0,tu=0,td=tt.length-1;td>=0;--td){var tp=tt.charCodeAt(td);if(47===tp){if(!tc){ta=td+1;break}continue}-1===ts&&(tc=!1,ts=td+1),46===tp?-1===ti?ti=td:1!==tu&&(tu=1):-1!==ti&&(tu=-1)}return -1===ti||-1===ts||0===tu||1===tu&&ti===ts-1&&ti===ta+1?"":tt.slice(ti,ts)},parse(tt){rS(tt);var ti,ta={root:"",dir:"",base:"",ext:"",name:""};if(0===tt.length)return ta;var ts=(tt=rA(this.toPosix(tt))).charCodeAt(0),tc=this.isAbsolute(tt),tu="";ta.root=this.rootname(tt),ti=tc||this.hasProtocol(tt)?1:0;for(var td=-1,tp=0,tv=-1,tb=!0,tg=tt.length-1,t_=0;tg>=ti;--tg){if(47===(ts=tt.charCodeAt(tg))){if(!tb){tp=tg+1;break}continue}-1===tv&&(tb=!1,tv=tg+1),46===ts?-1===td?td=tg:1!==t_&&(t_=1):-1!==td&&(t_=-1)}return -1===td||-1===tv||0===t_||1===t_&&td===tv-1&&td===tp+1?-1!==tv&&(0===tp&&tc?ta.base=ta.name=tt.slice(1,tv):ta.base=ta.name=tt.slice(tp,tv)):(0===tp&&tc?(ta.name=tt.slice(1,td),ta.base=tt.slice(1,tv)):(ta.name=tt.slice(tp,td),ta.base=tt.slice(tp,tv)),ta.ext=tt.slice(td,tv)),ta.dir=this.dirname(tt),tu&&(ta.dir=tu+ta.dir),ta},sep:"/",delimiter:":"},rC=((s4=rC||{})[s4.WEBGL_LEGACY=0]="WEBGL_LEGACY",s4[s4.WEBGL=1]="WEBGL",s4[s4.WEBGL2=2]="WEBGL2",s4),rI=((s6=rI||{})[s6.UNKNOWN=0]="UNKNOWN",s6[s6.WEBGL=1]="WEBGL",s6[s6.CANVAS=2]="CANVAS",s6),rP=((s7=rP||{})[s7.COLOR=16384]="COLOR",s7[s7.DEPTH=256]="DEPTH",s7[s7.STENCIL=1024]="STENCIL",s7),rO=((s9=rO||{})[s9.NORMAL=0]="NORMAL",s9[s9.ADD=1]="ADD",s9[s9.MULTIPLY=2]="MULTIPLY",s9[s9.SCREEN=3]="SCREEN",s9[s9.OVERLAY=4]="OVERLAY",s9[s9.DARKEN=5]="DARKEN",s9[s9.LIGHTEN=6]="LIGHTEN",s9[s9.COLOR_DODGE=7]="COLOR_DODGE",s9[s9.COLOR_BURN=8]="COLOR_BURN",s9[s9.HARD_LIGHT=9]="HARD_LIGHT",s9[s9.SOFT_LIGHT=10]="SOFT_LIGHT",s9[s9.DIFFERENCE=11]="DIFFERENCE",s9[s9.EXCLUSION=12]="EXCLUSION",s9[s9.HUE=13]="HUE",s9[s9.SATURATION=14]="SATURATION",s9[s9.COLOR=15]="COLOR",s9[s9.LUMINOSITY=16]="LUMINOSITY",s9[s9.NORMAL_NPM=17]="NORMAL_NPM",s9[s9.ADD_NPM=18]="ADD_NPM",s9[s9.SCREEN_NPM=19]="SCREEN_NPM",s9[s9.NONE=20]="NONE",s9[s9.SRC_OVER=0]="SRC_OVER",s9[s9.SRC_IN=21]="SRC_IN",s9[s9.SRC_OUT=22]="SRC_OUT",s9[s9.SRC_ATOP=23]="SRC_ATOP",s9[s9.DST_OVER=24]="DST_OVER",s9[s9.DST_IN=25]="DST_IN",s9[s9.DST_OUT=26]="DST_OUT",s9[s9.DST_ATOP=27]="DST_ATOP",s9[s9.ERASE=26]="ERASE",s9[s9.SUBTRACT=28]="SUBTRACT",s9[s9.XOR=29]="XOR",s9),rN=((ct=rN||{})[ct.POINTS=0]="POINTS",ct[ct.LINES=1]="LINES",ct[ct.LINE_LOOP=2]="LINE_LOOP",ct[ct.LINE_STRIP=3]="LINE_STRIP",ct[ct.TRIANGLES=4]="TRIANGLES",ct[ct.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",ct[ct.TRIANGLE_FAN=6]="TRIANGLE_FAN",ct),rB=((ci=rB||{})[ci.RGBA=6408]="RGBA",ci[ci.RGB=6407]="RGB",ci[ci.RG=33319]="RG",ci[ci.RED=6403]="RED",ci[ci.RGBA_INTEGER=36249]="RGBA_INTEGER",ci[ci.RGB_INTEGER=36248]="RGB_INTEGER",ci[ci.RG_INTEGER=33320]="RG_INTEGER",ci[ci.RED_INTEGER=36244]="RED_INTEGER",ci[ci.ALPHA=6406]="ALPHA",ci[ci.LUMINANCE=6409]="LUMINANCE",ci[ci.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",ci[ci.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",ci[ci.DEPTH_STENCIL=34041]="DEPTH_STENCIL",ci),rL=((ca=rL||{})[ca.TEXTURE_2D=3553]="TEXTURE_2D",ca[ca.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",ca[ca.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",ca[ca.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",ca[ca.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",ca[ca.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",ca[ca.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",ca[ca.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",ca[ca.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",ca),rD=((co=rD||{})[co.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",co[co.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",co[co.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",co[co.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",co[co.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",co[co.UNSIGNED_INT=5125]="UNSIGNED_INT",co[co.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",co[co.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",co[co.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",co[co.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",co[co.BYTE=5120]="BYTE",co[co.SHORT=5122]="SHORT",co[co.INT=5124]="INT",co[co.FLOAT=5126]="FLOAT",co[co.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",co[co.HALF_FLOAT=36193]="HALF_FLOAT",co),rj=((cs=rj||{})[cs.FLOAT=0]="FLOAT",cs[cs.INT=1]="INT",cs[cs.UINT=2]="UINT",cs),rU=((cc=rU||{})[cc.NEAREST=0]="NEAREST",cc[cc.LINEAR=1]="LINEAR",cc),rF=((cu=rF||{})[cu.CLAMP=33071]="CLAMP",cu[cu.REPEAT=10497]="REPEAT",cu[cu.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",cu),rG=((cl=rG||{})[cl.OFF=0]="OFF",cl[cl.POW2=1]="POW2",cl[cl.ON=2]="ON",cl[cl.ON_MANUAL=3]="ON_MANUAL",cl),rH=((cd=rH||{})[cd.NPM=0]="NPM",cd[cd.UNPACK=1]="UNPACK",cd[cd.PMA=2]="PMA",cd[cd.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",cd[cd.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",cd[cd.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",cd),rz=((cf=rz||{})[cf.NO=0]="NO",cf[cf.YES=1]="YES",cf[cf.AUTO=2]="AUTO",cf[cf.BLEND=0]="BLEND",cf[cf.CLEAR=1]="CLEAR",cf[cf.BLIT=2]="BLIT",cf),rV=((cp=rV||{})[cp.AUTO=0]="AUTO",cp[cp.MANUAL=1]="MANUAL",cp),rq=((cv=rq||{}).LOW="lowp",cv.MEDIUM="mediump",cv.HIGH="highp",cv),rW=((cg=rW||{})[cg.NONE=0]="NONE",cg[cg.SCISSOR=1]="SCISSOR",cg[cg.STENCIL=2]="STENCIL",cg[cg.SPRITE=3]="SPRITE",cg[cg.COLOR=4]="COLOR",cg),rY=((cm=rY||{})[cm.RED=1]="RED",cm[cm.GREEN=2]="GREEN",cm[cm.BLUE=4]="BLUE",cm[cm.ALPHA=8]="ALPHA",cm),rX=((c_=rX||{})[c_.NONE=0]="NONE",c_[c_.LOW=2]="LOW",c_[c_.MEDIUM=4]="MEDIUM",c_[c_.HIGH=8]="HIGH",c_),rQ=((cw=rQ||{})[cw.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",cw[cw.ARRAY_BUFFER=34962]="ARRAY_BUFFER",cw[cw.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",cw);function rK(){return rZ.apply(this,arguments)}function rZ(){return(rZ=(0,tH._)(function*(){return null!=cR||(cR=(0,tH._)(function*(){var tt,ti=document.createElement("canvas").getContext("webgl");if(!ti)return rH.UNPACK;var ta=yield new Promise(tt=>{var ti=document.createElement("video");ti.onloadeddata=()=>tt(ti),ti.onerror=()=>tt(null),ti.autoplay=!1,ti.crossOrigin="anonymous",ti.preload="auto",ti.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",ti.load()});if(!ta)return rH.UNPACK;var ts=ti.createTexture();ti.bindTexture(ti.TEXTURE_2D,ts);var tc=ti.createFramebuffer();ti.bindFramebuffer(ti.FRAMEBUFFER,tc),ti.framebufferTexture2D(ti.FRAMEBUFFER,ti.COLOR_ATTACHMENT0,ti.TEXTURE_2D,ts,0),ti.pixelStorei(ti.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),ti.pixelStorei(ti.UNPACK_COLORSPACE_CONVERSION_WEBGL,ti.NONE),ti.texImage2D(ti.TEXTURE_2D,0,ti.RGBA,ti.RGBA,ti.UNSIGNED_BYTE,ta);var tu=new Uint8Array(4);return ti.readPixels(0,0,1,1,ti.RGBA,ti.UNSIGNED_BYTE,tu),ti.deleteFramebuffer(tc),ti.deleteTexture(ts),null===(tt=ti.getExtension("WEBGL_lose_context"))||void 0===tt||tt.loseContext(),tu[0]<=tu[3]?rH.PMA:rH.UNPACK})()),cR})).apply(this,arguments)}function rJ(){return typeof cC>"u"&&(cC=function(){var tt={stencil:!0,failIfMajorPerformanceCaveat:e5.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e5.ADAPTER.getWebGLRenderingContext())return!1;var ti,ta=e5.ADAPTER.createCanvas(),ts=ta.getContext("webgl",tt)||ta.getContext("experimental-webgl",tt),tc=!!(null===(ti=null==ts?void 0:ts.getContextAttributes())||void 0===ti?void 0:ti.stencil);if(ts){var tu=ts.getExtension("WEBGL_lose_context");tu&&tu.loseContext()}return ts=null,tc}catch(tt){return!1}}()),cC}var r$={grad:.9,turn:360,rad:360/(2*Math.PI)},r0=function(tt){return"string"==typeof tt?tt.length>0:"number"==typeof tt},r1=function(tt,ti,ta){return void 0===ti&&(ti=0),void 0===ta&&(ta=Math.pow(10,ti)),Math.round(ta*tt)/ta+0},r3=function(tt,ti,ta){return void 0===ti&&(ti=0),void 0===ta&&(ta=1),tt>ta?ta:tt>ti?tt:ti},r8=function(tt){return(tt=isFinite(tt)?tt%360:0)>0?tt:tt+360},r5=function(tt){return{r:r3(tt.r,0,255),g:r3(tt.g,0,255),b:r3(tt.b,0,255),a:r3(tt.a)}},r4=function(tt){return{r:r1(tt.r),g:r1(tt.g),b:r1(tt.b),a:r1(tt.a,3)}},r6=/^#([0-9a-f]{3,8})$/i,r7=function(tt){var ti=tt.toString(16);return ti.length<2?"0"+ti:ti},r9=function(tt){var ti=tt.r,ta=tt.g,ts=tt.b,tc=tt.a,tu=Math.max(ti,ta,ts),td=tu-Math.min(ti,ta,ts),tp=td?tu===ti?(ta-ts)/td:tu===ta?2+(ts-ti)/td:4+(ti-ta)/td:0;return{h:60*(tp<0?tp+6:tp),s:tu?td/tu*100:0,v:tu/255*100,a:tc}},ii=function(tt){var ti=tt.h,ta=tt.s,ts=tt.v,tc=tt.a;ti=ti/360*6,ta/=100,ts/=100;var tu=Math.floor(ti),td=ts*(1-ta),tp=ts*(1-(ti-tu)*ta),tv=ts*(1-(1-ti+tu)*ta),tb=tu%6;return{r:255*[ts,tp,td,td,tv,ts][tb],g:255*[tv,ts,ts,tp,td,td][tb],b:255*[td,td,tv,ts,ts,tp][tb],a:tc}},ia=function(tt){return{h:r8(tt.h),s:r3(tt.s,0,100),l:r3(tt.l,0,100),a:r3(tt.a)}},io=function(tt){return{h:r1(tt.h),s:r1(tt.s),l:r1(tt.l),a:r1(tt.a,3)}},ic=function(tt){var ti,ta,ts;return ii((ta=(ti=tt).s,{h:ti.h,s:(ta*=((ts=ti.l)<50?ts:100-ts)/100)>0?2*ta/(ts+ta)*100:0,v:ts+ta,a:ti.a}))},iu=function(tt){var ti,ta,ts,tc;return{h:(ti=r9(tt)).h,s:(tc=(200-(ta=ti.s))*(ts=ti.v)/100)>0&&tc<200?ta*ts/100/(tc<=100?tc:200-tc)*100:0,l:tc/2,a:ti.a}},ih=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ip=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,iv=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ib=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ig={string:[[function(tt){var ti=r6.exec(tt);return ti?(tt=ti[1]).length<=4?{r:parseInt(tt[0]+tt[0],16),g:parseInt(tt[1]+tt[1],16),b:parseInt(tt[2]+tt[2],16),a:4===tt.length?r1(parseInt(tt[3]+tt[3],16)/255,2):1}:6===tt.length||8===tt.length?{r:parseInt(tt.substr(0,2),16),g:parseInt(tt.substr(2,2),16),b:parseInt(tt.substr(4,2),16),a:8===tt.length?r1(parseInt(tt.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(tt){var ti=iv.exec(tt)||ib.exec(tt);return ti?ti[2]!==ti[4]||ti[4]!==ti[6]?null:r5({r:Number(ti[1])/(ti[2]?100/255:1),g:Number(ti[3])/(ti[4]?100/255:1),b:Number(ti[5])/(ti[6]?100/255:1),a:void 0===ti[7]?1:Number(ti[7])/(ti[8]?100:1)}):null},"rgb"],[function(tt){var ti,ta,ts=ih.exec(tt)||ip.exec(tt);return ts?ic(ia({h:(ti=ts[1],void 0===(ta=ts[2])&&(ta="deg"),Number(ti)*(r$[ta]||1)),s:Number(ts[3]),l:Number(ts[4]),a:void 0===ts[5]?1:Number(ts[5])/(ts[6]?100:1)})):null},"hsl"]],object:[[function(tt){var ti=tt.r,ta=tt.g,ts=tt.b,tc=tt.a,tu=void 0===tc?1:tc;return r0(ti)&&r0(ta)&&r0(ts)?r5({r:Number(ti),g:Number(ta),b:Number(ts),a:Number(tu)}):null},"rgb"],[function(tt){var ti=tt.h,ta=tt.s,ts=tt.l,tc=tt.a,tu=void 0===tc?1:tc;return r0(ti)&&r0(ta)&&r0(ts)?ic(ia({h:Number(ti),s:Number(ta),l:Number(ts),a:Number(tu)})):null},"hsl"],[function(tt){var ti=tt.h,ta=tt.s,ts=tt.v,tc=tt.a,tu=void 0===tc?1:tc;return r0(ti)&&r0(ta)&&r0(ts)?ii(function(tt){return{h:r8(tt.h),s:r3(tt.s,0,100),v:r3(tt.v,0,100),a:r3(tt.a)}}({h:Number(ti),s:Number(ta),v:Number(ts),a:Number(tu)})):null},"hsv"]]},iy=function(tt,ti){for(var ta=0;taiw(this.rgba)},tt.prototype.isLight=function(){return iw(this.rgba)>=.5},tt.prototype.toHex=function(){var tt,ti,ta,ts,tc,tu;return ti=(tt=r4(this.rgba)).r,ta=tt.g,ts=tt.b,tu=(tc=tt.a)<1?r7(r1(255*tc)):"","#"+r7(ti)+r7(ta)+r7(ts)+tu},tt.prototype.toRgb=function(){return r4(this.rgba)},tt.prototype.toRgbString=function(){var tt,ti,ta,ts,tc;return ti=(tt=r4(this.rgba)).r,ta=tt.g,ts=tt.b,(tc=tt.a)<1?"rgba("+ti+", "+ta+", "+ts+", "+tc+")":"rgb("+ti+", "+ta+", "+ts+")"},tt.prototype.toHsl=function(){return io(iu(this.rgba))},tt.prototype.toHslString=function(){var tt,ti,ta,ts,tc;return ti=(tt=io(iu(this.rgba))).h,ta=tt.s,ts=tt.l,(tc=tt.a)<1?"hsla("+ti+", "+ta+"%, "+ts+"%, "+tc+")":"hsl("+ti+", "+ta+"%, "+ts+"%)"},tt.prototype.toHsv=function(){var tt;return{h:r1((tt=r9(this.rgba)).h),s:r1(tt.s),v:r1(tt.v),a:r1(tt.a,3)}},tt.prototype.invert=function(){var tt;return iS({r:255-(tt=this.rgba).r,g:255-tt.g,b:255-tt.b,a:tt.a})},tt.prototype.saturate=function(tt){return void 0===tt&&(tt=.1),iS(i_(this.rgba,tt))},tt.prototype.desaturate=function(tt){return void 0===tt&&(tt=.1),iS(i_(this.rgba,-tt))},tt.prototype.grayscale=function(){return iS(i_(this.rgba,-1))},tt.prototype.lighten=function(tt){return void 0===tt&&(tt=.1),iS(ix(this.rgba,tt))},tt.prototype.darken=function(tt){return void 0===tt&&(tt=.1),iS(ix(this.rgba,-tt))},tt.prototype.rotate=function(tt){return void 0===tt&&(tt=15),this.hue(this.hue()+tt)},tt.prototype.alpha=function(tt){var ti;return"number"==typeof tt?iS({r:(ti=this.rgba).r,g:ti.g,b:ti.b,a:tt}):r1(this.rgba.a,3)},tt.prototype.hue=function(tt){var ti=iu(this.rgba);return"number"==typeof tt?iS({h:tt,s:ti.s,l:ti.l,a:ti.a}):r1(ti.h)},tt.prototype.isEqual=function(tt){return this.toHex()===iS(tt).toHex()},tt}(),iS=function(tt){return tt instanceof iE?tt:new iE(tt)},iA=[];!function(tt){tt.forEach(function(tt){0>iA.indexOf(tt)&&(tt(iE,ig),iA.push(tt))})}([function(tt,ti){var ta={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},ts={};for(var tc in ta)ts[ta[tc]]=tc;var tu={};tt.prototype.toName=function(ti){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var tc,td,tp=ts[this.toHex()];if(tp)return tp;if(null==ti?void 0:ti.closest){var tv=this.toRgb(),tb=1/0,tg="black";if(!tu.length)for(var t_ in ta)tu[t_]=new tt(ta[t_]).toRgb();for(var tE in ta){var tS=(tc=tv,td=tu[tE],Math.pow(tc.r-td.r,2)+Math.pow(tc.g-td.g,2)+Math.pow(tc.b-td.b,2));tStt===ti[ta]);if(null!==tt&&null!==ti){var ts=Object.keys(tt),tc=Object.keys(ti);return ts.length===tc.length&&ts.every(ta=>tt[ta]===ti[ta])}return tt===ti}toRgba(){var[tt,ti,ta,ts]=this._components;return{r:tt,g:ti,b:ta,a:ts}}toRgb(){var[tt,ti,ta]=this._components;return{r:tt,g:ti,b:ta}}toRgbaString(){var[tt,ti,ta]=this.toUint8RgbArray();return"rgba(".concat(tt,",").concat(ti,",").concat(ta,",").concat(this.alpha,")")}toUint8RgbArray(tt){var[ti,ta,ts]=this._components;return(tt=null!=tt?tt:[])[0]=Math.round(255*ti),tt[1]=Math.round(255*ta),tt[2]=Math.round(255*ts),tt}toRgbArray(tt){tt=null!=tt?tt:[];var[ti,ta,ts]=this._components;return tt[0]=ti,tt[1]=ta,tt[2]=ts,tt}toNumber(){return this._int}toLittleEndianNumber(){var tt=this._int;return(tt>>16)+(65280&tt)+((255&tt)<<16)}multiply(ti){var[ta,ts,tc,tu]=tt.temp.setValue(ti)._components;return this._components[0]*=ta,this._components[1]*=ts,this._components[2]*=tc,this._components[3]*=tu,this.refreshInt(),this._value=null,this}premultiply(tt){var ti=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return ti&&(this._components[0]*=tt,this._components[1]*=tt,this._components[2]*=tt),this._components[3]=tt,this.refreshInt(),this._value=null,this}toPremultiplied(tt){var ti=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(1===tt)return -16777216+this._int;if(0===tt)return ti?0:this._int;var ta=this._int>>16&255,ts=this._int>>8&255,tc=255&this._int;return ti&&(ta=ta*tt+.5|0,ts=ts*tt+.5|0,tc=tc*tt+.5|0),(255*tt<<24)+(ta<<16)+(ts<<8)+tc}toHex(){var tt=this._int.toString(16);return"#".concat("000000".substring(0,6-tt.length)+tt)}toHexa(){var tt=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-tt.length)+tt}setAlpha(tt){return this._components[3]=this._clamp(tt),this}round(tt){var[ti,ta,ts]=this._components;return this._components[0]=Math.round(ti*tt)/tt,this._components[1]=Math.round(ta*tt)/tt,this._components[2]=Math.round(ts*tt)/tt,this.refreshInt(),this._value=null,this}toArray(tt){tt=null!=tt?tt:[];var[ti,ta,ts,tc]=this._components;return tt[0]=ti,tt[1]=ta,tt[2]=ts,tt[3]=tc,tt}normalize(ti){var ta,ts,tc,tu;if(("number"==typeof ti||ti instanceof Number)&&ti>=0&&ti<=16777215){var td=ti;ta=(td>>16&255)/255,ts=(td>>8&255)/255,tc=(255&td)/255,tu=1}else if((Array.isArray(ti)||ti instanceof Float32Array)&&ti.length>=3&&ti.length<=4)ti=this._clamp(ti),[ta,ts,tc,tu=1]=ti;else if((ti instanceof Uint8Array||ti instanceof Uint8ClampedArray)&&ti.length>=3&&ti.length<=4)ti=this._clamp(ti,0,255),[ta,ts,tc,tu=255]=ti,ta/=255,ts/=255,tc/=255,tu/=255;else if("string"==typeof ti||"object"==typeof ti){if("string"==typeof ti){var tp=tt.HEX_PATTERN.exec(ti);tp&&(ti="#".concat(tp[2]))}var tv=iS(ti);tv.isValid()&&({r:ta,g:ts,b:tc,a:tu}=tv.rgba,ta/=255,ts/=255,tc/=255)}if(void 0!==ta)this._components[0]=ta,this._components[1]=ts,this._components[2]=tc,this._components[3]=tu,this.refreshInt();else throw Error("Unable to convert color ".concat(ti))}refreshInt(){this._clamp(this._components);var[tt,ti,ta]=this._components;this._int=(255*tt<<16)+(255*ti<<8)+(255*ta|0)}_clamp(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return"number"==typeof tt?Math.min(Math.max(tt,ti),ta):(tt.forEach((ts,tc)=>{tt[tc]=Math.min(Math.max(ts,ti),ta)}),tt)}constructor(tt=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=tt}};iT.shared=new iT,iT.temp=new iT,iT.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;var iM=iT,ik=function(){for(var tt=[],ti=[],ta=0;ta<32;ta++)tt[ta]=ta,ti[ta]=ta;tt[rO.NORMAL_NPM]=rO.NORMAL,tt[rO.ADD_NPM]=rO.ADD,tt[rO.SCREEN_NPM]=rO.SCREEN,ti[rO.NORMAL]=rO.NORMAL_NPM,ti[rO.ADD]=rO.ADD_NPM,ti[rO.SCREEN]=rO.SCREEN_NPM;var ts=[];return ts.push(ti),ts.push(tt),ts}();function iR(tt){if(4===tt.BYTES_PER_ELEMENT)return tt instanceof Float32Array?"Float32Array":tt instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===tt.BYTES_PER_ELEMENT){if(tt instanceof Uint16Array)return"Uint16Array"}else if(1===tt.BYTES_PER_ELEMENT&&tt instanceof Uint8Array)return"Uint8Array";return null}function iC(tt){return tt+=0===tt?1:0,--tt,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,(tt|=tt>>>16)+1}function iI(tt){return!(tt&tt-1)&&!!tt}function iP(tt){var ti=(tt>65535?1:0)<<4,ta=((tt>>>=ti)>255?1:0)<<3;return tt>>>=ta,ti|=ta,ta=(tt>15?1:0)<<2,tt>>>=ta,ti|=ta,ta=(tt>3?1:0)<<1,tt>>>=ta,(ti|=ta)|tt>>1}function iO(tt,ti,ta){var ts,tc=tt.length;if(!(ti>=tc)&&0!==ta){ta=ti+ta>tc?tc-ti:ta;var tu=tc-ta;for(ts=ti;ts1&&void 0!==arguments[1]?arguments[1]:globalThis.location;if(tt.startsWith("data:"))return"";ti=ti||globalThis.location;var ta=new URL(tt,document.baseURI);return ta.hostname!==ti.hostname||ta.port!==ti.port||ta.protocol!==ti.protocol?"anonymous":""}function iH(tt){var ti,ta=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,ts=null===(ti=e5.RETINA_PREFIX)||void 0===ti?void 0:ti.exec(tt);return ts?parseFloat(ts[1]):ta}var iz=((cE=iz||{}).Renderer="renderer",cE.Application="application",cE.RendererSystem="renderer-webgl-system",cE.RendererPlugin="renderer-webgl-plugin",cE.CanvasRendererSystem="renderer-canvas-system",cE.CanvasRendererPlugin="renderer-canvas-plugin",cE.Asset="asset",cE.LoadParser="load-parser",cE.ResolveParser="resolve-parser",cE.CacheParser="cache-parser",cE.DetectionParser="detection-parser",cE),iV=tt=>{if("function"==typeof tt||"object"==typeof tt&&tt.extension){if(!tt.extension)throw Error("Extension class must have an extension object");tt=(0,tb._)((0,tv._)({},"object"!=typeof tt.extension?{type:tt.extension}:tt.extension),{ref:tt})}if("object"==typeof tt)tt=(0,tv._)({},tt);else throw Error("Invalid extension type");return"string"==typeof tt.type&&(tt.type=[tt.type]),tt},iq=(tt,ti)=>null!==(cI=iV(tt).priority)&&void 0!==cI?cI:ti,iW={_addHandlers:{},_removeHandlers:{},_queue:{},remove(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta{tt.type.forEach(ti=>{var ta,ts;return null===(ts=(ta=this._removeHandlers)[ti])||void 0===ts?void 0:ts.call(ta,tt)})}),this},add(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta{tt.type.forEach(ti=>{var ta=this._addHandlers,ts=this._queue;ta[ti]?ta[ti](tt):(ts[ti]=ts[ti]||[],ts[ti].push(tt))})}),this},handle(tt,ti,ta){var ts=this._addHandlers,tc=this._removeHandlers;if(ts[tt]||tc[tt])throw Error("Extension type ".concat(tt," already has a handler"));ts[tt]=ti,tc[tt]=ta;var tu=this._queue;return tu[tt]&&(tu[tt].forEach(tt=>ti(tt)),delete tu[tt]),this},handleByMap(tt,ti){return this.handle(tt,tt=>{ti[tt.name]=tt.ref},tt=>{delete ti[tt.name]})},handleByList(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return this.handle(tt,tt=>{ti.includes(tt.ref)||(ti.push(tt.ref),ti.sort((tt,ti)=>iq(ti,ta)-iq(tt,ta)))},tt=>{var ta=ti.indexOf(tt.ref);-1!==ta&&ti.splice(ta,1)})}};class iY{get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(tt){return this["".concat(tt,"View")]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(tt){switch(tt){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw Error("".concat(tt," isn't a valid view type"))}}constructor(tt){"number"==typeof tt?this.rawBinaryData=new ArrayBuffer(tt):tt instanceof Uint8Array?this.rawBinaryData=tt.buffer:this.rawBinaryData=tt,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}}var iX="precision mediump float;\nvoid main(void){\nfloat test = 0.1;\n%forloop%\ngl_FragColor = vec4(0.0);\n}";function iQ(tt){for(var ti="",ta=0;ta0&&(ti+="\nelse "),ta=0;--tc){var tu=i9[tc];if(tu.test&&tu.test(tt,ta))return new tu(tt,ti)}throw Error("Unrecognized source type to auto-detect Resource")}class ni{emit(tt,ti,ta,ts,tc,tu,td,tp){if(arguments.length>8)throw Error("max arguments reached");var{name:tv,items:tb}=this;this._aliasCount++;for(var tg=0,t_=tb.length;tg0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(tt){return tt[this._name]&&(this.ensureNonAliasedItems(),this.remove(tt),this.items.push(tt)),this}remove(tt){var ti=this.items.indexOf(tt);return -1!==ti&&(this.ensureNonAliasedItems(),this.items.splice(ti,1)),this}contains(tt){return this.items.includes(tt)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return 0===this.items.length}get name(){return this._name}constructor(tt){this.items=[],this._name=tt,this._aliasCount=0}}Object.defineProperties(ni.prototype,{dispatch:{value:ni.prototype.emit},run:{value:ni.prototype.emit}});class na{bind(tt){this.onResize.add(tt),this.onUpdate.add(tt),this.onError.add(tt),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(tt){this.onResize.remove(tt),this.onUpdate.remove(tt),this.onError.remove(tt)}resize(tt,ti){(tt!==this._width||ti!==this._height)&&(this._width=tt,this._height=ti,this.onResize.emit(tt,ti))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(tt,ti,ta){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(tt,ti){return!1}constructor(tt=0,ti=0){this._width=tt,this._height=ti,this.destroyed=!1,this.internal=!1,this.onResize=new ni("setRealSize"),this.onUpdate=new ni("update"),this.onError=new ni("onError")}}class no extends na{upload(tt,ti,ta){var ts=tt.gl;ts.pixelStorei(ts.UNPACK_ALIGNMENT,this.unpackAlignment),ts.pixelStorei(ts.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ti.alphaMode===rH.UNPACK);var tc=ti.realWidth,tu=ti.realHeight;return ta.width===tc&&ta.height===tu?ts.texSubImage2D(ti.target,0,0,0,tc,tu,ti.format,ta.type,this.data):(ta.width=tc,ta.height=tu,ts.texImage2D(ti.target,0,ta.internalFormat,tc,tu,0,ti.format,ta.type,this.data)),!0}dispose(){this.data=null}static test(tt){return null===tt||tt instanceof Int8Array||tt instanceof Uint8Array||tt instanceof Uint8ClampedArray||tt instanceof Int16Array||tt instanceof Uint16Array||tt instanceof Int32Array||tt instanceof Uint32Array||tt instanceof Float32Array}constructor(tt,ti){var ta,{width:ts,height:tc}=ti||{};if(!ts||!tc)throw Error("BufferResource width or height invalid");super(ts,tc),this.data=tt,this.unpackAlignment=null!==(ta=ti.unpackAlignment)&&void 0!==ta?ta:4}}var ns={scaleMode:rU.NEAREST,alphaMode:rH.NPM},nc=class tt extends rw(){get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(tt){this._mipmap!==tt&&(this._mipmap=tt,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(tt){this._scaleMode!==tt&&(this._scaleMode=tt,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(tt){this._wrapMode!==tt&&(this._wrapMode=tt,this.dirtyStyleId++)}setStyle(tt,ti){var ta;return void 0!==tt&&tt!==this.scaleMode&&(this.scaleMode=tt,ta=!0),void 0!==ti&&ti!==this.mipmap&&(this.mipmap=ti,ta=!0),ta&&this.dirtyStyleId++,this}setSize(tt,ti,ta){return ta=ta||this.resolution,this.setRealSize(tt*ta,ti*ta,ta)}setRealSize(tt,ti,ta){return this.resolution=ta||this.resolution,this.width=Math.round(tt)/this.resolution,this.height=Math.round(ti)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=iI(this.realWidth)&&iI(this.realHeight)}setResolution(tt){var ti=this.resolution;return ti===tt||(this.resolution=tt,this.valid&&(this.width=Math.round(this.width*ti)/tt,this.height=Math.round(this.height*ti)/tt,this.emit("update",this)),this._refreshPOT()),this}setResource(tt){if(this.resource===tt)return this;if(this.resource)throw Error("Resource can be set only once");return tt.bind(this),this.resource=tt,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(tt){this.emit("error",this,tt)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete iF[this.cacheId],delete iU[this.cacheId],this.cacheId=null),this.valid=!1,this.dispose(),tt.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(ti,ta){var ts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e5.STRICT_TEXTURE_CACHE,tc="string"==typeof ti,tu=null;if(tc)tu=ti;else{if(!ti._pixiId){var td=(null==ta?void 0:ta.pixiIdPrefix)||"pixiid";ti._pixiId="".concat(td,"_").concat(iL())}tu=ti._pixiId}var tp=iF[tu];if(tc&&ts&&!tp)throw Error('The cacheId "'.concat(tu,'" does not exist in BaseTextureCache.'));return tp||((tp=new tt(ti,ta)).cacheId=tu,tt.addToCache(tp,tu)),tp}static fromBuffer(ti,ta,ts,tc){ti=ti||new Float32Array(ta*ts*4);var tu,td,tp=new no(ti,(0,tv._)({width:ta,height:ts},null==tc?void 0:tc.resourceOptions));return ti instanceof Float32Array?(tu=rB.RGBA,td=rD.FLOAT):ti instanceof Int32Array?(tu=rB.RGBA_INTEGER,td=rD.INT):ti instanceof Uint32Array?(tu=rB.RGBA_INTEGER,td=rD.UNSIGNED_INT):ti instanceof Int16Array?(tu=rB.RGBA_INTEGER,td=rD.SHORT):ti instanceof Uint16Array?(tu=rB.RGBA_INTEGER,td=rD.UNSIGNED_SHORT):ti instanceof Int8Array?(tu=rB.RGBA,td=rD.BYTE):(tu=rB.RGBA,td=rD.UNSIGNED_BYTE),tp.internal=!0,new tt(tp,Object.assign({},ns,{type:td,format:tu},tc))}static addToCache(tt,ti){ti&&(tt.textureCacheIds.includes(ti)||tt.textureCacheIds.push(ti),iF[ti]&&iF[ti]!==tt&&console.warn("BaseTexture added to the cache with an id [".concat(ti,"] that already had an entry")),iF[ti]=tt)}static removeFromCache(tt){if("string"==typeof tt){var ti=iF[tt];if(ti){var ta=ti.textureCacheIds.indexOf(tt);return ta>-1&&ti.textureCacheIds.splice(ta,1),delete iF[tt],ti}}else if(null==tt?void 0:tt.textureCacheIds){for(var ts=0;ts0&&tv>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(ti)}};nc.defaultOptions={mipmap:rG.POW2,anisotropicLevel:0,scaleMode:rU.LINEAR,wrapMode:rF.CLAMP,alphaMode:rH.UNPACK,target:rL.TEXTURE_2D,format:rB.RGBA,type:rD.UNSIGNED_BYTE},nc._globalBatch=0;var nu=nc;class nh{constructor(){this.texArray=null,this.blend=0,this.type=rN.TRIANGLES,this.start=0,this.size=0,this.data=null}}var nl=0;class nd{update(tt){tt instanceof Array&&(tt=new Float32Array(tt)),this.data=tt||this.data,this._updateID++}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.data=null}set index(tt){this.type=tt?rQ.ELEMENT_ARRAY_BUFFER:rQ.ARRAY_BUFFER}get index(){return this.type===rQ.ELEMENT_ARRAY_BUFFER}static from(tt){return tt instanceof Array&&(tt=new Float32Array(tt)),new nd(tt)}constructor(tt,ti=!0,ta=!1){this.data=tt||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=ta,this.static=ti,this.id=nl++,this.disposeRunner=new ni("disposeBuffer")}}class nf{destroy(){this.buffer=null}static from(tt,ti,ta,ts,tc){return new nf(tt,ti,ta,ts,tc)}constructor(tt,ti=0,ta=!1,ts=rD.FLOAT,tc,tu,td,tp=1){this.buffer=tt,this.size=ti,this.normalized=ta,this.type=ts,this.stride=tc,this.start=tu,this.instance=td,this.divisor=tp}}var np={Float32Array,Uint32Array,Int32Array,Uint8Array};function nv(tt,ti){for(var ta=0,ts=0,tc={},tu=0;tu2&&void 0!==arguments[2]?arguments[2]:0,ts=arguments.length>3&&void 0!==arguments[3]&&arguments[3],tc=arguments.length>4?arguments[4]:void 0,tu=arguments.length>5?arguments[5]:void 0,td=arguments.length>6?arguments[6]:void 0,tp=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(!ti)throw Error("You must pass a buffer when creating an attribute");ti instanceof nd||(ti instanceof Array&&(ti=new Float32Array(ti)),ti=new nd(ti));var tv=tt.split("|");if(tv.length>1){for(var tb=0;tb0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return this.x=tt,this.y=ti,this}constructor(tt=0,ti=0){this.x=0,this.y=0,this.x=tt,this.y=ti}}nk.prototype.toString=function(){return"[@pixi/math:Point x=".concat(this.x," y=").concat(this.y,"]")};var nR=[new nk,new nk,new nk,new nk];class nC{get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new nC(0,0,0,0)}clone(){return new nC(this.x,this.y,this.width,this.height)}copyFrom(tt){return this.x=tt.x,this.y=tt.y,this.width=tt.width,this.height=tt.height,this}copyTo(tt){return tt.x=this.x,tt.y=this.y,tt.width=this.width,tt.height=this.height,tt}contains(tt,ti){return!(this.width<=0)&&!(this.height<=0)&&tt>=this.x&&tt=this.y&&titt.right?tt.right:this.right)<=ta)return!1;var ts=this.ytt.bottom?tt.bottom:this.bottom)>ts}var tc=this.left,tu=this.right,td=this.top,tp=this.bottom;if(tu<=tc||tp<=td)return!1;var tv=nR[0].set(tt.left,tt.top),tb=nR[1].set(tt.left,tt.bottom),tg=nR[2].set(tt.right,tt.top),t_=nR[3].set(tt.right,tt.bottom);if(tg.x<=tv.x||tb.y<=tv.y)return!1;var tE=Math.sign(ti.a*ti.d-ti.b*ti.c);if(0===tE||(ti.apply(tv,tv),ti.apply(tb,tb),ti.apply(tg,tg),ti.apply(t_,t_),Math.max(tv.x,tb.x,tg.x,t_.x)<=tc||Math.min(tv.x,tb.x,tg.x,t_.x)>=tu||Math.max(tv.y,tb.y,tg.y,t_.y)<=td||Math.min(tv.y,tb.y,tg.y,t_.y)>=tp))return!1;var tS=tE*(tb.y-tv.y),tA=tE*(tv.x-tb.x),tT=tS*tc+tA*td,tM=tS*tu+tA*td,tk=tS*tc+tA*tp,tR=tS*tu+tA*tp;if(Math.max(tT,tM,tk,tR)<=tS*tv.x+tA*tv.y||Math.min(tT,tM,tk,tR)>=tS*t_.x+tA*t_.y)return!1;var tC=tE*(tv.y-tg.y),tI=tE*(tg.x-tv.x),tP=tC*tc+tI*td,tO=tC*tu+tI*td,tN=tC*tc+tI*tp,tB=tC*tu+tI*tp;return!(Math.max(tP,tO,tN,tB)<=tC*tv.x+tI*tv.y||Math.min(tP,tO,tN,tB)>=tC*t_.x+tI*t_.y)}pad(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return this.x-=tt,this.y-=ti,this.width+=2*tt,this.height+=2*ti,this}fit(tt){var ti=Math.max(this.x,tt.x),ta=Math.min(this.x+this.width,tt.x+tt.width),ts=Math.max(this.y,tt.y),tc=Math.min(this.y+this.height,tt.y+tt.height);return this.x=ti,this.width=Math.max(ta-ti,0),this.y=ts,this.height=Math.max(tc-ts,0),this}ceil(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.001,ta=Math.ceil((this.x+this.width-ti)*tt)/tt,ts=Math.ceil((this.y+this.height-ti)*tt)/tt;return this.x=Math.floor((this.x+ti)*tt)/tt,this.y=Math.floor((this.y+ti)*tt)/tt,this.width=ta-this.x,this.height=ts-this.y,this}enlarge(tt){var ti=Math.min(this.x,tt.x),ta=Math.max(this.x+this.width,tt.x+tt.width),ts=Math.min(this.y,tt.y),tc=Math.max(this.y+this.height,tt.y+tt.height);return this.x=ti,this.width=ta-ti,this.y=ts,this.height=tc-ts,this}constructor(tt=0,ti=0,ta=0,ts=0){this.x=Number(tt),this.y=Number(ti),this.width=Number(ta),this.height=Number(ts),this.type=nM.RECT}}nC.prototype.toString=function(){return"[@pixi/math:Rectangle x=".concat(this.x," y=").concat(this.y," width=").concat(this.width," height=").concat(this.height,"]")};class nI{clone(){return new nI(this.x,this.y,this.radius)}contains(tt,ti){if(this.radius<=0)return!1;var ta=this.radius*this.radius,ts=this.x-tt,tc=this.y-ti;return ts*=ts,tc*=tc,ts+tc<=ta}getBounds(){return new nC(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}constructor(tt=0,ti=0,ta=0){this.x=tt,this.y=ti,this.radius=ta,this.type=nM.CIRC}}nI.prototype.toString=function(){return"[@pixi/math:Circle x=".concat(this.x," y=").concat(this.y," radius=").concat(this.radius,"]")};class nP{clone(){return new nP(this.x,this.y,this.width,this.height)}contains(tt,ti){if(this.width<=0||this.height<=0)return!1;var ta=(tt-this.x)/this.width,ts=(ti-this.y)/this.height;return ta*=ta,ts*=ts,ta+ts<=1}getBounds(){return new nC(this.x-this.width,this.y-this.height,this.width,this.height)}constructor(tt=0,ti=0,ta=0,ts=0){this.x=tt,this.y=ti,this.width=ta,this.height=ts,this.type=nM.ELIP}}nP.prototype.toString=function(){return"[@pixi/math:Ellipse x=".concat(this.x," y=").concat(this.y," width=").concat(this.width," height=").concat(this.height,"]")};class nO{clone(){var tt=this.points.slice(),ti=new nO(tt);return ti.closeStroke=this.closeStroke,ti}contains(tt,ti){for(var ta=!1,ts=this.points.length/2,tc=0,tu=ts-1;tcti!=tb>ti&&tt<(tv-td)*((ti-tp)/(tb-tp))+td&&(ta=!ta)}return ta}constructor(...tt){var ti=Array.isArray(tt[0])?tt[0]:tt;if("number"!=typeof ti[0]){for(var ta=[],ts=0,tc=ti.length;ts=this.x&&tt<=this.x+this.width&&ti>=this.y&&ti<=this.y+this.height){var ta=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(ti>=this.y+ta&&ti<=this.y+this.height-ta||tt>=this.x+ta&&tt<=this.x+this.width-ta)return!0;var ts=tt-(this.x+ta),tc=ti-(this.y+ta),tu=ta*ta;if(ts*ts+tc*tc<=tu||(ts=tt-(this.x+this.width-ta))*ts+tc*tc<=tu||ts*ts+(tc=ti-(this.y+this.height-ta))*tc<=tu||(ts=tt-(this.x+ta))*ts+tc*tc<=tu)return!0}return!1}constructor(tt=0,ti=0,ta=0,ts=0,tc=20){this.x=tt,this.y=ti,this.width=ta,this.height=ts,this.radius=tc,this.type=nM.RREC}}nN.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x=".concat(this.x," y=").concat(this.y,"width=").concat(this.width," height=").concat(this.height," radius=").concat(this.radius,"]")};class nB{fromArray(tt){this.a=tt[0],this.b=tt[1],this.c=tt[3],this.d=tt[4],this.tx=tt[2],this.ty=tt[5]}set(tt,ti,ta,ts,tc,tu){return this.a=tt,this.b=ti,this.c=ta,this.d=ts,this.tx=tc,this.ty=tu,this}toArray(tt,ti){this.array||(this.array=new Float32Array(9));var ta=ti||this.array;return tt?(ta[0]=this.a,ta[1]=this.b,ta[2]=0,ta[3]=this.c,ta[4]=this.d,ta[5]=0,ta[6]=this.tx,ta[7]=this.ty,ta[8]=1):(ta[0]=this.a,ta[1]=this.c,ta[2]=this.tx,ta[3]=this.b,ta[4]=this.d,ta[5]=this.ty,ta[6]=0,ta[7]=0,ta[8]=1),ta}apply(tt,ti){ti=ti||new nk;var ta=tt.x,ts=tt.y;return ti.x=this.a*ta+this.c*ts+this.tx,ti.y=this.b*ta+this.d*ts+this.ty,ti}applyInverse(tt,ti){ti=ti||new nk;var ta=1/(this.a*this.d+-(this.c*this.b)),ts=tt.x,tc=tt.y;return ti.x=this.d*ta*ts+-this.c*ta*tc+(this.ty*this.c-this.tx*this.d)*ta,ti.y=this.a*ta*tc+-this.b*ta*ts+(-this.ty*this.a+this.tx*this.b)*ta,ti}translate(tt,ti){return this.tx+=tt,this.ty+=ti,this}scale(tt,ti){return this.a*=tt,this.d*=ti,this.c*=tt,this.b*=ti,this.tx*=tt,this.ty*=ti,this}rotate(tt){var ti=Math.cos(tt),ta=Math.sin(tt),ts=this.a,tc=this.c,tu=this.tx;return this.a=ts*ti-this.b*ta,this.b=ts*ta+this.b*ti,this.c=tc*ti-this.d*ta,this.d=tc*ta+this.d*ti,this.tx=tu*ti-this.ty*ta,this.ty=tu*ta+this.ty*ti,this}append(tt){var ti=this.a,ta=this.b,ts=this.c,tc=this.d;return this.a=tt.a*ti+tt.b*ts,this.b=tt.a*ta+tt.b*tc,this.c=tt.c*ti+tt.d*ts,this.d=tt.c*ta+tt.d*tc,this.tx=tt.tx*ti+tt.ty*ts+this.tx,this.ty=tt.tx*ta+tt.ty*tc+this.ty,this}setTransform(tt,ti,ta,ts,tc,tu,td,tp,tv){return this.a=Math.cos(td+tv)*tc,this.b=Math.sin(td+tv)*tc,this.c=-Math.sin(td-tp)*tu,this.d=Math.cos(td-tp)*tu,this.tx=tt-(ta*this.a+ts*this.c),this.ty=ti-(ta*this.b+ts*this.d),this}prepend(tt){var ti=this.tx;if(1!==tt.a||0!==tt.b||0!==tt.c||1!==tt.d){var ta=this.a,ts=this.c;this.a=ta*tt.a+this.b*tt.c,this.b=ta*tt.b+this.b*tt.d,this.c=ts*tt.a+this.d*tt.c,this.d=ts*tt.b+this.d*tt.d}return this.tx=ti*tt.a+this.ty*tt.c+tt.tx,this.ty=ti*tt.b+this.ty*tt.d+tt.ty,this}decompose(tt){var ti=this.a,ta=this.b,ts=this.c,tc=this.d,tu=tt.pivot,td=-Math.atan2(-ts,tc),tp=Math.atan2(ta,ti),tv=Math.abs(td+tp);return tv<1e-5||1e-5>Math.abs(nS-tv)?(tt.rotation=tp,tt.skew.x=tt.skew.y=0):(tt.rotation=0,tt.skew.x=td,tt.skew.y=tp),tt.scale.x=Math.sqrt(ti*ti+ta*ta),tt.scale.y=Math.sqrt(ts*ts+tc*tc),tt.position.x=this.tx+(tu.x*ti+tu.y*ts),tt.position.y=this.ty+(tu.x*ta+tu.y*tc),tt}invert(){var tt=this.a,ti=this.b,ta=this.c,ts=this.d,tc=this.tx,tu=tt*ts-ti*ta;return this.a=ts/tu,this.b=-ti/tu,this.c=-ta/tu,this.d=tt/tu,this.tx=(ta*this.ty-ts*tc)/tu,this.ty=-(tt*this.ty-ti*tc)/tu,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){var tt=new nB;return tt.a=this.a,tt.b=this.b,tt.c=this.c,tt.d=this.d,tt.tx=this.tx,tt.ty=this.ty,tt}copyTo(tt){return tt.a=this.a,tt.b=this.b,tt.c=this.c,tt.d=this.d,tt.tx=this.tx,tt.ty=this.ty,tt}copyFrom(tt){return this.a=tt.a,this.b=tt.b,this.c=tt.c,this.d=tt.d,this.tx=tt.tx,this.ty=tt.ty,this}static get IDENTITY(){return new nB}static get TEMP_MATRIX(){return new nB}constructor(tt=1,ti=0,ta=0,ts=1,tc=0,tu=0){this.array=null,this.a=tt,this.b=ti,this.c=ta,this.d=ts,this.tx=tc,this.ty=tu}}nB.prototype.toString=function(){return"[@pixi/math:Matrix a=".concat(this.a," b=").concat(this.b," c=").concat(this.c," d=").concat(this.d," tx=").concat(this.tx," ty=").concat(this.ty,"]")};var nL=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],nD=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],nj=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],nU=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],nF=[],nG=[],nH=Math.sign;!function(){for(var tt=0;tt<16;tt++){var ti=[];nF.push(ti);for(var ta=0;ta<16;ta++)for(var ts=nH(nL[tt]*nL[ta]+nj[tt]*nD[ta]),tc=nH(nD[tt]*nL[ta]+nU[tt]*nD[ta]),tu=nH(nL[tt]*nj[ta]+nj[tt]*nU[ta]),td=nH(nD[tt]*nj[ta]+nU[tt]*nU[ta]),tp=0;tp<16;tp++)if(nL[tp]===ts&&nD[tp]===tc&&nj[tp]===tu&&nU[tp]===td){ti.push(tp);break}}for(var tv=0;tv<16;tv++){var tb=new nB;tb.set(nL[tv],nD[tv],nj[tv],nU[tv],0,0),nG.push(tb)}}();var nz={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:tt=>nL[tt],uY:tt=>nD[tt],vX:tt=>nj[tt],vY:tt=>nU[tt],inv:tt=>8&tt?15&tt:7&-tt,add:(tt,ti)=>nF[tt][ti],sub:(tt,ti)=>nF[tt][nz.inv(ti)],rotate180:tt=>4^tt,isVertical:tt=>(3&tt)==2,byDirection:(tt,ti)=>2*Math.abs(tt)<=Math.abs(ti)?ti>=0?nz.S:nz.N:2*Math.abs(ti)<=Math.abs(tt)?tt>0?nz.E:nz.W:ti>0?tt>0?nz.SE:nz.SW:tt>0?nz.NE:nz.NW,matrixAppendRotationInv:function(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,ts=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,tc=nG[nz.inv(ti)];tc.tx=ta,tc.ty=ts,tt.append(tc)}};class nV{clone(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.cb,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scope;return new nV(tt,ti,this._x,this._y)}set(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return(this._x!==tt||this._y!==ti)&&(this._x=tt,this._y=ti,this.cb.call(this.scope)),this}copyFrom(tt){return(this._x!==tt.x||this._y!==tt.y)&&(this._x=tt.x,this._y=tt.y,this.cb.call(this.scope)),this}copyTo(tt){return tt.set(this._x,this._y),tt}equals(tt){return tt.x===this._x&&tt.y===this._y}get x(){return this._x}set x(tt){this._x!==tt&&(this._x=tt,this.cb.call(this.scope))}get y(){return this._y}set y(tt){this._y!==tt&&(this._y=tt,this.cb.call(this.scope))}constructor(tt,ti,ta=0,ts=0){this._x=ta,this._y=ts,this.cb=tt,this.scope=ti}}nV.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=".concat(this.x," y=").concat(this.y," scope=").concat(this.scope,"]")};var nq=class{onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){var tt=this.localTransform;this._localID!==this._currentLocalID&&(tt.a=this._cx*this.scale.x,tt.b=this._sx*this.scale.x,tt.c=this._cy*this.scale.y,tt.d=this._sy*this.scale.y,tt.tx=this.position.x-(this.pivot.x*tt.a+this.pivot.y*tt.c),tt.ty=this.position.y-(this.pivot.x*tt.b+this.pivot.y*tt.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(tt){var ti=this.localTransform;if(this._localID!==this._currentLocalID&&(ti.a=this._cx*this.scale.x,ti.b=this._sx*this.scale.x,ti.c=this._cy*this.scale.y,ti.d=this._sy*this.scale.y,ti.tx=this.position.x-(this.pivot.x*ti.a+this.pivot.y*ti.c),ti.ty=this.position.y-(this.pivot.x*ti.b+this.pivot.y*ti.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==tt._worldID){var ta=tt.worldTransform,ts=this.worldTransform;ts.a=ti.a*ta.a+ti.b*ta.c,ts.b=ti.a*ta.b+ti.b*ta.d,ts.c=ti.c*ta.a+ti.d*ta.c,ts.d=ti.c*ta.b+ti.d*ta.d,ts.tx=ti.tx*ta.a+ti.ty*ta.c+ta.tx,ts.ty=ti.tx*ta.b+ti.ty*ta.d+ta.ty,this._parentID=tt._worldID,this._worldID++}}setFromMatrix(tt){tt.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(tt){this._rotation!==tt&&(this._rotation=tt,this.updateSkew())}constructor(){this.worldTransform=new nB,this.localTransform=new nB,this.position=new nV(this.onChange,this,0,0),this.scale=new nV(this.onChange,this,1,1),this.pivot=new nV(this.onChange,this,0,0),this.skew=new nV(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}};nq.IDENTITY=new nq;var nW=nq;nW.prototype.toString=function(){return"[@pixi/math:Transform position=(".concat(this.position.x,", ").concat(this.position.y,") rotation=").concat(this.rotation," scale=(").concat(this.scale.x,", ").concat(this.scale.y,") skew=(").concat(this.skew.x,", ").concat(this.skew.y,") ]")};var nY="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}",nX="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n",nQ=[{test:tt=>"float"===tt.type&&1===tt.size&&!tt.isArray,code:tt=>'\n if(uv["'.concat(tt,'"] !== ud["').concat(tt,'"].value)\n {\n ud["').concat(tt,'"].value = uv["').concat(tt,'"]\n gl.uniform1f(ud["').concat(tt,'"].location, uv["').concat(tt,'"])\n }\n ')},{test:(tt,ti)=>("sampler2D"===tt.type||"samplerCube"===tt.type||"sampler2DArray"===tt.type)&&1===tt.size&&!tt.isArray&&(null==ti||void 0!==ti.castToBaseTexture),code:tt=>'t = syncData.textureCount++;\n\n renderer.texture.bind(uv["'.concat(tt,'"], t);\n\n if(ud["').concat(tt,'"].value !== t)\n {\n ud["').concat(tt,'"].value = t;\n gl.uniform1i(ud["').concat(tt,'"].location, t);\n; // eslint-disable-line max-len\n }')},{test:(tt,ti)=>"mat3"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==ti.a,code:tt=>'\n gl.uniformMatrix3fv(ud["'.concat(tt,'"].location, false, uv["').concat(tt,'"].toArray(true));\n '),codeUbo:tt=>"\n var ".concat(tt,"_matrix = uv.").concat(tt,".toArray(true);\n\n data[offset] = ").concat(tt,"_matrix[0];\n data[offset+1] = ").concat(tt,"_matrix[1];\n data[offset+2] = ").concat(tt,"_matrix[2];\n \n data[offset + 4] = ").concat(tt,"_matrix[3];\n data[offset + 5] = ").concat(tt,"_matrix[4];\n data[offset + 6] = ").concat(tt,"_matrix[5];\n \n data[offset + 8] = ").concat(tt,"_matrix[6];\n data[offset + 9] = ").concat(tt,"_matrix[7];\n data[offset + 10] = ").concat(tt,"_matrix[8];\n ")},{test:(tt,ti)=>"vec2"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==ti.x,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud["').concat(tt,'"].location, v.x, v.y);\n }'),codeUbo:tt=>"\n v = uv.".concat(tt,";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n ")},{test:tt=>"vec2"===tt.type&&1===tt.size&&!tt.isArray,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud["').concat(tt,'"].location, v[0], v[1]);\n }\n ')},{test:(tt,ti)=>"vec4"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==ti.width,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud["').concat(tt,'"].location, v.x, v.y, v.width, v.height)\n }'),codeUbo:tt=>"\n v = uv.".concat(tt,";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n data[offset+2] = v.width;\n data[offset+3] = v.height;\n ")},{test:(tt,ti)=>"vec4"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==ti.red,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha)\n {\n cv[0] = v.red;\n cv[1] = v.green;\n cv[2] = v.blue;\n cv[3] = v.alpha;\n gl.uniform4f(ud["').concat(tt,'"].location, v.red, v.green, v.blue, v.alpha)\n }'),codeUbo:tt=>"\n v = uv.".concat(tt,";\n\n data[offset] = v.red;\n data[offset+1] = v.green;\n data[offset+2] = v.blue;\n data[offset+3] = v.alpha;\n ")},{test:(tt,ti)=>"vec3"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==ti.red,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.a)\n {\n cv[0] = v.red;\n cv[1] = v.green;\n cv[2] = v.blue;\n \n gl.uniform3f(ud["').concat(tt,'"].location, v.red, v.green, v.blue)\n }'),codeUbo:tt=>"\n v = uv.".concat(tt,";\n\n data[offset] = v.red;\n data[offset+1] = v.green;\n data[offset+2] = v.blue;\n ")},{test:tt=>"vec4"===tt.type&&1===tt.size&&!tt.isArray,code:tt=>'\n cv = ud["'.concat(tt,'"].value;\n v = uv["').concat(tt,'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["').concat(tt,'"].location, v[0], v[1], v[2], v[3])\n }')}],nK={float:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }",vec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }",vec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }",vec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }",int:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",ivec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",ivec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",ivec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",uint:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }",uvec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }",uvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }",uvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }",bool:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }",bvec2:"\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",bvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",bvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",samplerCube:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",sampler2DArray:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }"},nZ={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function nJ(tt,ti){var ta=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n "];for(var ts in tt.uniforms){var tc,tu=ti[ts];if(!tu){(null===(tc=tt.uniforms[ts])||void 0===tc?void 0:tc.group)===!0&&(tt.uniforms[ts].ubo?ta.push("\n renderer.shader.syncUniformBufferGroup(uv.".concat(ts,", '").concat(ts,"');\n ")):ta.push("\n renderer.shader.syncUniformGroup(uv.".concat(ts,", syncData);\n ")));continue}for(var td=tt.uniforms[ts],tp=!1,tv=0;tv=rC.WEBGL2&&(tt=ti.getContext("webgl2",{})),tt||((tt=ti.getContext("webgl",{})||ti.getContext("experimental-webgl",{}))?tt.getExtension("WEBGL_draw_buffers"):tt=null),n0=tt}return n0}function n2(){if(!cP){cP=rq.MEDIUM;var tt=n1();tt&&tt.getShaderPrecisionFormat&&(cP=tt.getShaderPrecisionFormat(tt.FRAGMENT_SHADER,tt.HIGH_FLOAT).precision?rq.HIGH:rq.MEDIUM)}return cP}var n3={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function n8(tt){return n3[tt]}var n5=null,n4={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function n6(tt,ti){if(!n5){var ta=Object.keys(n4);n5={};for(var ts=0;ts0&&(ti+="\nelse "),taparseInt(ts[1],10)&&(ti=!1)}if(rm.android.device){var tc=ta.userAgent.match(/Android\s([0-9.]*)/);tc&&7>parseInt(tc[1],10)&&(ti=!1)}}return ti?tt:4}class af{flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(tt){}constructor(tt){this.renderer=tt}}var ap="varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n",av="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n",ab=class tt extends af{static get defaultMaxTextures(){var tt;return this._defaultMaxTextures=null!==(tt=this._defaultMaxTextures)&&void 0!==tt?tt:ad(32),this._defaultMaxTextures}static set defaultMaxTextures(tt){this._defaultMaxTextures=tt}static get canUploadSameBuffer(){var tt;return this._canUploadSameBuffer=null!==(tt=this._canUploadSameBuffer)&&void 0!==tt?tt:al(),this._canUploadSameBuffer}static set canUploadSameBuffer(tt){this._canUploadSameBuffer=tt}get MAX_TEXTURES(){return rE("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return av}static get defaultFragmentTemplate(){return ap}setShaderGenerator(){var{vertex:ti=tt.defaultVertexSrc,fragment:ta=tt.defaultFragmentTemplate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.shaderGenerator=new au(ti,ta)}contextChange(){var ti=this.renderer.gl;e5.PREFER_ENV===rC.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(ti.getParameter(ti.MAX_TEXTURE_IMAGE_UNITS),tt.defaultMaxTextures),this.maxTextures=iK(this.maxTextures,ti)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(var ta=0;tathis.size&&this.flush(),this._vertexCount+=tt.vertexData.length/2,this._indexCount+=tt.indices.length,this._bufferedTextures[this._bufferSize]=tt._texture.baseTexture,this._bufferedElements[this._bufferSize++]=tt)}buildTexturesAndDrawCalls(){var{_bufferedTextures:ti,maxTextures:ta}=this,ts=tt._textureArrayPool,tc=this.renderer.batch,tu=this._tempBoundTextures,td=this.renderer.textureGC.count,tp=++nu._globalBatch,tv=0,tb=ts[0],tg=0;tc.copyBoundTextures(tu,ta);for(var t_=0;t_=ta&&(tc.boundArray(tb,tu,tp,ta),this.buildDrawCalls(tb,tg,t_),tg=t_,tb=ts[++tv],++tp),tE._batchEnabled=tp,tE.touched=td,tb.elements[tb.count++]=tE)}tb.count>0&&(tc.boundArray(tb,tu,tp,ta),this.buildDrawCalls(tb,tg,this._bufferSize),++tv,++tp);for(var tS=0;tS0),tA=0;tA=0;--ts)tt[ts]=ta[ts]||null,tt[ts]&&(tt[ts]._batchLocation=ts)}boundArray(tt,ti,ta,ts){for(var{elements:tc,ids:tu,count:td}=tt,tp=0,tv=0;tv=0&&tg=rC.WEBGL2&&(ta=tt.getContext("webgl2",ti)),ta)this.webGLVersion=2;else if(this.webGLVersion=1,!(ta=tt.getContext("webgl",ti)||tt.getContext("experimental-webgl",ti)))throw Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=ta,this.getExtensions(),this.gl}getExtensions(){var{gl:tt}=this,ti={loseContext:tt.getExtension("WEBGL_lose_context"),anisotropicFiltering:tt.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:tt.getExtension("OES_texture_float_linear"),s3tc:tt.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:tt.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:tt.getExtension("WEBGL_compressed_texture_etc"),etc1:tt.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:tt.getExtension("WEBGL_compressed_texture_pvrtc")||tt.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:tt.getExtension("WEBGL_compressed_texture_atc"),astc:tt.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,ti,{drawBuffers:tt.getExtension("WEBGL_draw_buffers"),depthTexture:tt.getExtension("WEBGL_depth_texture"),vertexArrayObject:tt.getExtension("OES_vertex_array_object")||tt.getExtension("MOZ_OES_vertex_array_object")||tt.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:tt.getExtension("OES_element_index_uint"),floatTexture:tt.getExtension("OES_texture_float"),floatTextureLinear:tt.getExtension("OES_texture_float_linear"),textureHalfFloat:tt.getExtension("OES_texture_half_float"),textureHalfFloatLinear:tt.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,ti,{colorBufferFloat:tt.getExtension("EXT_color_buffer_float")})}handleContextLost(tt){tt.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){var tt=this.renderer.view;this.renderer=null,void 0!==tt.removeEventListener&&(tt.removeEventListener("webglcontextlost",this.handleContextLost),tt.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(tt){var ti=tt.getContextAttributes(),ta="WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext;ta&&(this.webGLVersion=2),ti&&!ti.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var ts=ta||!!tt.getExtension("OES_element_index_uint");this.supports.uint32Indices=ts,ts||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}constructor(tt){this.renderer=tt,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}}aR.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"},aR.extension={type:iz.RendererSystem,name:"context"},iW.add(aR);class aC{get colorTexture(){return this.colorTextures[0]}addColorTexture(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1?arguments[1]:void 0;return this.colorTextures[tt]=ti||new nu(null,{scaleMode:rU.NEAREST,resolution:1,mipmap:rG.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(tt){return this.depthTexture=tt||new nu(null,{scaleMode:rU.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:rG.OFF,format:rB.DEPTH_COMPONENT,type:rD.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(tt,ti){if(tt=Math.round(tt),ti=Math.round(ti),!tt||!ti)throw Error("Framebuffer width and height must not be zero");if(!(tt===this.width&&ti===this.height)){this.width=tt,this.height=ti,this.dirtyId++,this.dirtySize++;for(var ta=0;tatypeof HTMLImageElement&&ts instanceof HTMLImageElement){if(!ts.complete||0===ts.naturalWidth)return!1}else if("u">typeof HTMLVideoElement&&ts instanceof HTMLVideoElement&&ts.readyState<=1)return!1;return tc.pixelStorei(tc.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ti.alphaMode===rH.UNPACK),this.noSubImage||ti.target!==tc.TEXTURE_2D||ta.width!==tu||ta.height!==td?(ta.width=tu,ta.height=td,tc.texImage2D(ti.target,0,ta.internalFormat,ti.format,ta.type,ts)):tc.texSubImage2D(tc.TEXTURE_2D,0,0,0,ti.format,ta.type,ts),!0}update(){if(!this.destroyed){var tt=this.source,ti=tt.naturalWidth||tt.videoWidth||tt.width,ta=tt.naturalHeight||tt.videoHeight||tt.height;this.resize(ti,ta),super.update()}}dispose(){this.source=null}constructor(tt){var ti=tt;super(ti.naturalWidth||ti.videoWidth||ti.width,ti.naturalHeight||ti.videoHeight||ti.height),this.source=tt,this.noSubImage=!1}}class aO extends aP{load(tt){return this._load||(void 0!==tt&&(this.createBitmap=tt),this._load=new Promise((tt,ti)=>{var ta=this.source;this.url=ta.src;var ts=()=>{this.destroyed||(ta.onload=null,ta.onerror=null,this.update(),this._load=null,this.createBitmap?tt(this.process()):tt(this))};ta.complete&&ta.src?ts():(ta.onload=ts,ta.onerror=tt=>{ti(tt),this.onError.emit(tt)})})),this._load}process(){var tt=this.source;if(null!==this._process)return this._process;if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);var ti=globalThis.createImageBitmap,ta=!tt.crossOrigin||"anonymous"===tt.crossOrigin;return this._process=fetch(tt.src,{mode:ta?"cors":"no-cors"}).then(tt=>tt.blob()).then(ta=>ti(ta,0,0,tt.width,tt.height,{premultiplyAlpha:null===this.alphaMode||this.alphaMode===rH.UNPACK?"premultiply":"none"})).then(tt=>this.destroyed?Promise.reject():(this.bitmap=tt,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(tt,ti,ta){if("number"==typeof this.alphaMode&&(ti.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(tt,ti,ta);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(tt,ti,ta,this.bitmap),!this.preserveBitmap){var ts=!0,tc=ti._glTextures;for(var tu in tc){var td=tc[tu];if(td!==ta&&td.dirtyId!==ti.dirtyId){ts=!1;break}}ts&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(tt){return"u">typeof HTMLImageElement&&("string"==typeof tt||tt instanceof HTMLImageElement)}constructor(tt,ti){if(ti=ti||{},"string"==typeof tt){var ta,ts=new Image;aP.crossOrigin(ts,tt,ti.crossorigin),ts.src=tt,tt=ts}super(tt),!tt.complete&&this._width&&this._height&&(this._width=0,this._height=0),this.url=tt.src,this._process=null,this.preserveBitmap=!1,this.createBitmap=(null!==(ta=ti.createBitmap)&&void 0!==ta?ta:e5.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,this.alphaMode="number"==typeof ti.alphaMode?ti.alphaMode:null,this.bitmap=null,this._load=null,!1!==ti.autoLoad&&this.load()}}class aN{set(tt,ti,ta){var ts=ti.width,tc=ti.height;if(ta){var tu=tt.width/2/ts,td=tt.height/2/tc,tp=tt.x/ts+tu,tv=tt.y/tc+td;ta=nz.add(ta,nz.NW),this.x0=tp+tu*nz.uX(ta),this.y0=tv+td*nz.uY(ta),ta=nz.add(ta,2),this.x1=tp+tu*nz.uX(ta),this.y1=tv+td*nz.uY(ta),ta=nz.add(ta,2),this.x2=tp+tu*nz.uX(ta),this.y2=tv+td*nz.uY(ta),ta=nz.add(ta,2),this.x3=tp+tu*nz.uX(ta),this.y3=tv+td*nz.uY(ta)}else this.x0=tt.x/ts,this.y0=tt.y/tc,this.x1=(tt.x+tt.width)/ts,this.y1=tt.y/tc,this.x2=(tt.x+tt.width)/ts,this.y2=(tt.y+tt.height)/tc,this.x3=tt.x/ts,this.y3=(tt.y+tt.height)/tc;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}}aN.prototype.toString=function(){return"[@pixi/core:TextureUvs x0=".concat(this.x0," y0=").concat(this.y0," x1=").concat(this.x1," y1=").concat(this.y1," x2=").concat(this.x2," y2=").concat(this.y2," x3=").concat(this.x3," y3=").concat(this.y3,"]")};var aL=new aN;function aD(tt){tt.destroy=function(){},tt.on=function(){},tt.once=function(){},tt.emit=function(){}}class aj extends rw(){update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(tt){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=tt.width,this._frame.height=tt.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(tt){if(this.baseTexture){if(tt){var{resource:ti}=this.baseTexture;(null==ti?void 0:ti.url)&&iU[ti.url]&&aj.removeFromCache(ti.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,aj.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}clone(){var tt,ti=this._frame.clone(),ta=this._frame===this.orig?ti:this.orig.clone(),ts=new aj(this.baseTexture,!this.noFrame&&ti,ta,null===(tt=this.trim)||void 0===tt?void 0:tt.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(ts._frame=ti),ts}updateUvs(){this._uvs===aL&&(this._uvs=new aN),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e5.STRICT_TEXTURE_CACHE,ts="string"==typeof tt,tc=null;if(ts)tc=tt;else if(tt instanceof nu){if(!tt.cacheId){var tu=(null==ti?void 0:ti.pixiIdPrefix)||"pixiid";tt.cacheId="".concat(tu,"-").concat(iL()),nu.addToCache(tt,tt.cacheId)}tc=tt.cacheId}else{if(!tt._pixiId){var td=(null==ti?void 0:ti.pixiIdPrefix)||"pixiid";tt._pixiId="".concat(td,"_").concat(iL())}tc=tt._pixiId}var tp=iU[tc];if(ts&&ta&&!tp)throw Error('The cacheId "'.concat(tc,'" does not exist in TextureCache.'));return tp||tt instanceof nu?!tp&&tt instanceof nu&&(tp=new aj(tt),aj.addToCache(tp,tc)):(ti.resolution||(ti.resolution=iH(tt)),(tp=new aj(new nu(tt,ti))).baseTexture.cacheId=tc,nu.addToCache(tp.baseTexture,tc),aj.addToCache(tp,tc)),tp}static fromURL(tt,ti){var ta=Object.assign({autoLoad:!1},null==ti?void 0:ti.resourceOptions),ts=aj.from(tt,Object.assign({resourceOptions:ta},ti),!1),tc=ts.baseTexture.resource;return ts.baseTexture.valid?Promise.resolve(ts):tc.load().then(()=>Promise.resolve(ts))}static fromBuffer(tt,ti,ta,ts){return new aj(nu.fromBuffer(tt,ti,ta,ts))}static fromLoader(tt,ti,ta,ts){var tc=new nu(tt,Object.assign({scaleMode:nu.defaultOptions.scaleMode,resolution:iH(ti)},ts)),{resource:tu}=tc;tu instanceof aO&&(tu.url=ti);var td=new aj(tc);return ta||(ta=ti),nu.addToCache(td.baseTexture,ta),aj.addToCache(td,ta),ta!==ti&&(nu.addToCache(td.baseTexture,ti),aj.addToCache(td,ti)),td.baseTexture.valid?Promise.resolve(td):new Promise(tt=>{td.baseTexture.once("loaded",()=>tt(td))})}static addToCache(tt,ti){ti&&(tt.textureCacheIds.includes(ti)||tt.textureCacheIds.push(ti),iU[ti]&&iU[ti]!==tt&&console.warn("Texture added to the cache with an id [".concat(ti,"] that already had an entry")),iU[ti]=tt)}static removeFromCache(tt){if("string"==typeof tt){var ti=iU[tt];if(ti){var ta=ti.textureCacheIds.indexOf(tt);return ta>-1&&ti.textureCacheIds.splice(ta,1),delete iU[tt],ti}}else if(null==tt?void 0:tt.textureCacheIds){for(var ts=0;tsthis.baseTexture.width,td=ta+tc>this.baseTexture.height;if(tu||td){var tp=tu&&td?"and":"or",tv="X: ".concat(ti," + ").concat(ts," = ").concat(ti+ts," > ").concat(this.baseTexture.width),tb="Y: ".concat(ta," + ").concat(tc," = ").concat(ta+tc," > ").concat(this.baseTexture.height);throw Error("Texture Error: frame does not fit inside the base Texture dimensions: ".concat(tv," ").concat(tp," ").concat(tb))}this.valid=ts&&tc&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=tt),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(tt){this._rotate=tt,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return aj._EMPTY||(aj._EMPTY=new aj(new nu),aD(aj._EMPTY),aD(aj._EMPTY.baseTexture)),aj._EMPTY}static get WHITE(){if(!aj._WHITE){var tt=e5.ADAPTER.createCanvas(16,16),ti=tt.getContext("2d");tt.width=16,tt.height=16,ti.fillStyle="white",ti.fillRect(0,0,16,16),aj._WHITE=new aj(nu.from(tt)),aD(aj._WHITE),aD(aj._WHITE.baseTexture)}return aj._WHITE}constructor(tt,ti,ta,ts,tc,tu,td){if(super(),this.noFrame=!1,ti||(this.noFrame=!0,ti=new nC(0,0,1,1)),tt instanceof aj&&(tt=tt.baseTexture),this.baseTexture=tt,this._frame=ti,this.trim=ts,this.valid=!1,this.destroyed=!1,this._uvs=aL,this.uvMatrix=null,this.orig=ta||ti,this._rotate=Number(tc||0),!0===tc)this._rotate=2;else if(this._rotate%2!=0)throw Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=tu?new nk(tu.x,tu.y):new nk(0,0),this.defaultBorders=td,this._updateID=0,this.textureCacheIds=[],tt.valid?this.noFrame?tt.valid&&this.onBaseTextureUpdated(tt):this.frame=ti:tt.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&tt.on("update",this.onBaseTextureUpdated,this)}}class aU extends aj{get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(tt){this.framebuffer.multisample=tt}resize(tt,ti){var ta=!(arguments.length>2)||void 0===arguments[2]||arguments[2],ts=this.baseTexture.resolution,tc=Math.round(tt*ts)/ts,tu=Math.round(ti*ts)/ts;this.valid=tc>0&&tu>0,this._frame.width=this.orig.width=tc,this._frame.height=this.orig.height=tu,ta&&this.baseTexture.resize(tc,tu),this.updateUvs()}setResolution(tt){var{baseTexture:ti}=this;ti.resolution!==tt&&(ti.setResolution(tt),this.resize(ti.width,ti.height,!1))}static create(tt){return new aU(new aI(tt))}constructor(tt,ti){super(tt,ti),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}}class aF{createTexture(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rX.NONE,ts=new aI(Object.assign({width:tt,height:ti,resolution:1,multisample:ta},this.textureOptions));return new aU(ts)}getOptimalTexture(tt,ti){var ta,ts=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,tc=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rX.NONE;tt=Math.max(Math.ceil(tt*ts-1e-6),1),ti=Math.max(Math.ceil(ti*ts-1e-6),1),this.enableFullScreen&&tt===this._pixelsWidth&&ti===this._pixelsHeight?ta=tc>1?-tc:-1:(ta=((65535&(tt=iC(tt)))<<16|65535&(ti=iC(ti)))>>>0,tc>1&&(ta+=4294967296*tc)),this.texturePool[ta]||(this.texturePool[ta]=[]);var tu=this.texturePool[ta].pop();return tu||(tu=this.createTexture(tt,ti,tc)),tu.filterPoolKey=ta,tu.setResolution(ts),tu}getFilterTexture(tt,ti,ta){var ts=this.getOptimalTexture(tt.width,tt.height,ti||tt.resolution,ta||rX.NONE);return ts.filterFrame=tt.filterFrame,ts}returnTexture(tt){var ti=tt.filterPoolKey;tt.filterFrame=null,this.texturePool[ti].push(tt)}returnFilterTexture(tt){this.returnTexture(tt)}clear(tt){if(tt=!1!==tt)for(var ti in this.texturePool){var ta=this.texturePool[ti];if(ta)for(var ts=0;ts0&&tt.height>0,this.texturePool)if(0>Number(ti)){var ta=this.texturePool[ti];if(ta)for(var ts=0;ts1&&((tg=this.getOptimalFilterTexture(tb.width,tb.height,ti.resolution)).filterFrame=tb.filterFrame),ta[t_].apply(this,tb,tg,rz.CLEAR,ti);var tE=tb;tb=tg,tg=tE}ta[t_].apply(this,tb,tv.renderTexture,rz.BLEND,ti),t_>1&&ti.multisample>1&&this.returnFilterTexture(ti.renderTexture),this.returnFilterTexture(tb),this.returnFilterTexture(tg)}ti.clear(),this.statePool.push(ti)}bindAndClear(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rz.CLEAR,{renderTexture:ta,state:ts}=this.renderer;if(tt===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,null==tt?void 0:tt.filterFrame){var tc=this.tempRect;tc.x=0,tc.y=0,tc.width=tt.filterFrame.width,tc.height=tt.filterFrame.height,ta.bind(tt,tt.filterFrame,tc)}else tt!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?ta.bind(tt):this.renderer.renderTexture.bind(tt,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var tu=1&ts.stateId||this.forceClear;(ti===rz.CLEAR||ti===rz.BLIT&&tu)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(tt,ti,ta,ts){var tc=this.renderer;tc.state.set(tt.state),this.bindAndClear(ta,ts),tt.uniforms.uSampler=ti,tt.uniforms.filterGlobals=this.globalUniforms,tc.shader.bind(tt),tt.legacy=!!tt.program.attributeData.aTextureCoord,tt.legacy?(this.quadUv.map(ti._frame,ti.filterFrame),tc.geometry.bind(this.quadUv),tc.geometry.draw(rN.TRIANGLES)):(tc.geometry.bind(this.quad),tc.geometry.draw(rN.TRIANGLE_STRIP))}calculateSpriteMatrix(tt,ti){var{sourceFrame:ta,destinationFrame:ts}=this.activeState,{orig:tc}=ti._texture,tu=tt.set(ts.width,0,0,ts.height,ta.x,ta.y),td=ti.worldTransform.copyTo(nB.TEMP_MATRIX);return td.invert(),tu.prepend(td),tu.scale(1/tc.width,1/tc.height),tu.translate(ti.anchor.x,ti.anchor.y),tu}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,ts=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rX.NONE;return this.texturePool.getOptimalTexture(tt,ti,ta,ts)}getFilterTexture(tt,ti,ta){if("number"==typeof tt){var ts=tt;tt=ti,ti=ts}tt=tt||this.activeState.renderTexture;var tc=this.texturePool.getOptimalTexture(tt.width,tt.height,ti||tt.resolution,ta||rX.NONE);return tc.filterFrame=tt.filterFrame,tc}returnFilterTexture(tt){this.texturePool.returnTexture(tt)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(tt,ti){var ta=aV[0],ts=aV[1],tc=aV[2],tu=aV[3];ta.set(ti.left,ti.top),ts.set(ti.left,ti.bottom),tc.set(ti.right,ti.top),tu.set(ti.right,ti.bottom),tt.apply(ta,ta),tt.apply(ts,ts),tt.apply(tc,tc),tt.apply(tu,tu);var td=Math.min(ta.x,ts.x,tc.x,tu.x),tp=Math.min(ta.y,ts.y,tc.y,tu.y),tv=Math.max(ta.x,ts.x,tc.x,tu.x),tb=Math.max(ta.y,ts.y,tc.y,tu.y);ti.x=td,ti.y=tp,ti.width=tv-td,ti.height=tb-tp}roundFrame(tt,ti,ta,ts,tc){if(!(tt.width<=0||tt.height<=0||ta.width<=0||ta.height<=0)){if(tc){var{a:tu,b:td,c:tp,d:tv}=tc;if((Math.abs(td)>1e-4||Math.abs(tp)>1e-4)&&(Math.abs(tu)>1e-4||Math.abs(tv)>1e-4))return}(tc=tc?aq.copyFrom(tc):aq.identity()).translate(-ta.x,-ta.y).scale(ts.width/ta.width,ts.height/ta.height).translate(ts.x,ts.y),this.transformAABB(tc,tt),tt.ceil(ti),this.transformAABB(tc.invert(),tt)}}constructor(tt){this.renderer=tt,this.defaultFilterStack=[{}],this.texturePool=new aF,this.statePool=[],this.quad=new aG,this.quadUv=new aH,this.tempRect=new nC,this.activeState={},this.globalUniforms=new as({outputFrame:new nC,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}}aW.extension={type:iz.RendererSystem,name:"filter"},iW.add(aW);class aY{constructor(tt){this.framebuffer=tt,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=rX.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}var aQ=new nC;class aK{contextChange(){this.disposeAll(!0);var tt=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new nC,this.hasMRT=!0,this.writeDepthTexture=!0,1===this.renderer.context.webGLVersion){var ti=this.renderer.context.extensions.drawBuffers,ta=this.renderer.context.extensions.depthTexture;e5.PREFER_ENV===rC.WEBGL_LEGACY&&(ti=null,ta=null),ti?tt.drawBuffers=tt=>ti.drawBuffersWEBGL(tt):(this.hasMRT=!1,tt.drawBuffers=()=>{}),ta||(this.writeDepthTexture=!1)}else this.msaaSamples=tt.getInternalformatParameter(tt.RENDERBUFFER,tt.RGBA8,tt.SAMPLES)}bind(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{gl:ts}=this;if(tt){var tc=tt.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(tt);this.current!==tt&&(this.current=tt,ts.bindFramebuffer(ts.FRAMEBUFFER,tc.framebuffer)),tc.mipLevel!==ta&&(tt.dirtyId++,tt.dirtyFormat++,tc.mipLevel=ta),tc.dirtyId!==tt.dirtyId&&(tc.dirtyId=tt.dirtyId,tc.dirtyFormat!==tt.dirtyFormat?(tc.dirtyFormat=tt.dirtyFormat,tc.dirtySize=tt.dirtySize,this.updateFramebuffer(tt,ta)):tc.dirtySize!==tt.dirtySize&&(tc.dirtySize=tt.dirtySize,this.resizeFramebuffer(tt)));for(var tu=0;tu>ta,tv=ti.height>>ta,tb=tp/ti.width;this.setViewport(ti.x*tb,ti.y*tb,tp,tv)}else{var tg=tt.width>>ta,t_=tt.height>>ta;this.setViewport(0,0,tg,t_)}}else this.current&&(this.current=null,ts.bindFramebuffer(ts.FRAMEBUFFER,null)),ti?this.setViewport(ti.x,ti.y,ti.width,ti.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(tt,ti,ta,ts){var tc=this.viewport;tt=Math.round(tt),ti=Math.round(ti),ta=Math.round(ta),ts=Math.round(ts),(tc.width!==ta||tc.height!==ts||tc.x!==tt||tc.y!==ti)&&(tc.x=tt,tc.y=ti,tc.width=ta,tc.height=ts,this.gl.viewport(tt,ti,ta,ts))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(tt,ti,ta,ts){var tc=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rP.COLOR|rP.DEPTH,{gl:tu}=this;tu.clearColor(tt,ti,ta,ts),tu.clear(tc)}initFramebuffer(tt){var{gl:ti}=this,ta=new aY(ti.createFramebuffer());return ta.multisample=this.detectSamples(tt.multisample),tt.glFramebuffers[this.CONTEXT_UID]=ta,this.managedFramebuffers.push(tt),tt.disposeRunner.add(this),ta}resizeFramebuffer(tt){var ti,{gl:ta}=this,ts=tt.glFramebuffers[this.CONTEXT_UID];ts.stencil&&(ta.bindRenderbuffer(ta.RENDERBUFFER,ts.stencil),ti=1===this.renderer.context.webGLVersion?ta.DEPTH_STENCIL:tt.depth&&tt.stencil?ta.DEPTH24_STENCIL8:tt.depth?ta.DEPTH_COMPONENT24:ta.STENCIL_INDEX8,ts.msaaBuffer?ta.renderbufferStorageMultisample(ta.RENDERBUFFER,ts.multisample,ti,tt.width,tt.height):ta.renderbufferStorage(ta.RENDERBUFFER,ti,tt.width,tt.height));var tc=tt.colorTextures,tu=tc.length;ta.drawBuffers||(tu=Math.min(tu,1));for(var td=0;td1&&this.canMultisampleFramebuffer(tt)?tu.msaaBuffer=tu.msaaBuffer||tc.createRenderbuffer():tu.msaaBuffer&&(tc.deleteRenderbuffer(tu.msaaBuffer),tu.msaaBuffer=null,tu.blitFramebuffer&&(tu.blitFramebuffer.dispose(),tu.blitFramebuffer=null));for(var tv=[],tb=0;tb1&&tc.drawBuffers(tv),tt.depthTexture&&this.writeDepthTexture){var tE=tt.depthTexture;this.renderer.texture.bind(tE,0),tc.framebufferTexture2D(tc.FRAMEBUFFER,tc.DEPTH_ATTACHMENT,tc.TEXTURE_2D,tE._glTextures[this.CONTEXT_UID].texture,ti)}(tt.stencil||tt.depth)&&!(tt.depthTexture&&this.writeDepthTexture)?(tu.stencil=tu.stencil||tc.createRenderbuffer(),1===this.renderer.context.webGLVersion?(ta=tc.DEPTH_STENCIL_ATTACHMENT,ts=tc.DEPTH_STENCIL):tt.depth&&tt.stencil?(ta=tc.DEPTH_STENCIL_ATTACHMENT,ts=tc.DEPTH24_STENCIL8):tt.depth?(ta=tc.DEPTH_ATTACHMENT,ts=tc.DEPTH_COMPONENT24):(ta=tc.STENCIL_ATTACHMENT,ts=tc.STENCIL_INDEX8),tc.bindRenderbuffer(tc.RENDERBUFFER,tu.stencil),tu.msaaBuffer?tc.renderbufferStorageMultisample(tc.RENDERBUFFER,tu.multisample,ts,tt.width,tt.height):tc.renderbufferStorage(tc.RENDERBUFFER,ts,tt.width,tt.height),tc.framebufferRenderbuffer(tc.FRAMEBUFFER,ta,tc.RENDERBUFFER,tu.stencil)):tu.stencil&&(tc.deleteRenderbuffer(tu.stencil),tu.stencil=null)}canMultisampleFramebuffer(tt){return 1!==this.renderer.context.webGLVersion&&tt.colorTextures.length<=1&&!tt.depthTexture}detectSamples(tt){var{msaaSamples:ti}=this,ta=rX.NONE;if(tt<=1||null===ti)return ta;for(var ts=0;ts=0&&this.managedFramebuffers.splice(tc,1),tt.disposeRunner.remove(this),ti||(ts.deleteFramebuffer(ta.framebuffer),ta.msaaBuffer&&ts.deleteRenderbuffer(ta.msaaBuffer),ta.stencil&&ts.deleteRenderbuffer(ta.stencil)),ta.blitFramebuffer&&this.disposeFramebuffer(ta.blitFramebuffer,ti)}}disposeAll(tt){var ti=this.managedFramebuffers;this.managedFramebuffers=[];for(var ta=0;tata.createVertexArrayOES(),tt.bindVertexArray=tt=>ta.bindVertexArrayOES(tt),tt.deleteVertexArray=tt=>ta.deleteVertexArrayOES(tt)):(this.hasVao=!1,tt.createVertexArray=()=>null,tt.bindVertexArray=()=>null,tt.deleteVertexArray=()=>null)}if(2!==ti.webGLVersion){var ts=tt.getExtension("ANGLE_instanced_arrays");ts?(tt.vertexAttribDivisor=(tt,ti)=>ts.vertexAttribDivisorANGLE(tt,ti),tt.drawElementsInstanced=(tt,ti,ta,tc,tu)=>ts.drawElementsInstancedANGLE(tt,ti,ta,tc,tu),tt.drawArraysInstanced=(tt,ti,ta,tc)=>ts.drawArraysInstancedANGLE(tt,ti,ta,tc)):this.hasInstance=!1}this.canUseUInt32ElementIndex=2===ti.webGLVersion||!!ti.extensions.uint32ElementIndex}bind(tt,ti){ti=ti||this.renderer.shader.shader;var{gl:ta}=this,ts=tt.glVertexArrayObjects[this.CONTEXT_UID],tc=!1;ts||(this.managedGeometries[tt.id]=tt,tt.disposeRunner.add(this),tt.glVertexArrayObjects[this.CONTEXT_UID]=ts={},tc=!0);var tu=ts[ti.program.id]||this.initGeometryVao(tt,ti,tc);this._activeGeometry=tt,this._activeVao!==tu&&(this._activeVao=tu,this.hasVao?ta.bindVertexArray(tu):this.activateVao(tt,ti.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){for(var tt=this._activeGeometry,ti=this.renderer.buffer,ta=0;ta2)||void 0===arguments[2]||arguments[2],ts=this.gl,tc=this.CONTEXT_UID,tu=this.renderer.buffer,td=ti.program;td.glPrograms[tc]||this.renderer.shader.generateProgram(ti),this.checkCompatibility(tt,td);var tp=this.getSignature(tt,td),tv=tt.glVertexArrayObjects[this.CONTEXT_UID],tb=tv[tp];if(tb)return tv[td.id]=tb,tb;var tg=tt.buffers,t_=tt.attributes,tE={},tS={};for(var tA in tg)tE[tA]=0,tS[tA]=0;for(var tT in t_)!t_[tT].size&&td.attributeData[tT]?t_[tT].size=td.attributeData[tT].size:t_[tT].size||console.warn("PIXI Geometry attribute '".concat(tT,"' size cannot be determined (likely the bound shader does not have the attribute)")),tE[t_[tT].buffer]+=t_[tT].size*aZ[t_[tT].type];for(var tM in t_){var tk=t_[tM],tR=tk.size;void 0===tk.stride&&(tE[tk.buffer]===tR*aZ[tk.type]?tk.stride=0:tk.stride=tE[tk.buffer]),void 0===tk.start&&(tk.start=tS[tk.buffer],tS[tk.buffer]+=tR*aZ[tk.type])}tb=ts.createVertexArray(),ts.bindVertexArray(tb);for(var tC=0;tC"u"?.5:ti,this.isSimple=!1}}var a9="varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n",ot="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n";class oi extends aE{get maskSprite(){return this._maskSprite}set maskSprite(tt){this._maskSprite=tt,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(tt,ti,ta,ts){var tc=this._maskSprite,tu=tc._texture;tu.valid&&(tu.uvMatrix||(tu.uvMatrix=new a8(tu,0)),tu.uvMatrix.update(),this.uniforms.npmAlpha=tu.baseTexture.alphaMode?0:1,this.uniforms.mask=tu,this.uniforms.otherMatrix=tt.calculateSpriteMatrix(this.maskMatrix,tc).prepend(tu.uvMatrix.mapCoord),this.uniforms.alpha=tc.worldAlpha,this.uniforms.maskClamp=tu.uvMatrix.uClampFrame,tt.applyFilter(this,ti,ta,ts))}constructor(tt,ti,ta){var ts=null;"string"!=typeof tt&&void 0===ti&&void 0===ta&&(ts=tt,tt=void 0,ti=void 0,ta=void 0),super(tt||ot,ti||a9,ta),this.maskSprite=ts,this.maskMatrix=new nB}}class oa{get filter(){return this._filters?this._filters[0]:null}set filter(tt){tt?this._filters?this._filters[0]=tt:this._filters=[tt]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=rW.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(tt){tt?(this._stencilCounter=tt._stencilCounter,this._scissorCounter=tt._scissorCounter,this._scissorRect=tt._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}constructor(tt=null){this.type=rW.NONE,this.autoDetect=!0,this.maskObject=tt||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=aE.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}}class oo{setMaskStack(tt){this.maskStack=tt,this.renderer.scissor.setMaskStack(tt),this.renderer.stencil.setMaskStack(tt)}push(tt,ti){var ta=ti;if(!ta.isMaskData){var ts=this.maskDataPool.pop()||new oa;ts.pooled=!0,ts.maskObject=ti,ta=ts}var tc=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null;if(ta.copyCountersOrReset(tc),ta._colorMask=tc?tc._colorMask:15,ta.autoDetect&&this.detect(ta),ta._target=tt,ta.type!==rW.SPRITE&&this.maskStack.push(ta),ta.enabled)switch(ta.type){case rW.SCISSOR:this.renderer.scissor.push(ta);break;case rW.STENCIL:this.renderer.stencil.push(ta);break;case rW.SPRITE:ta.copyCountersOrReset(null),this.pushSpriteMask(ta);break;case rW.COLOR:this.pushColorMask(ta)}ta.type===rW.SPRITE&&this.maskStack.push(ta)}pop(tt){var ti=this.maskStack.pop();if(!(!ti||ti._target!==tt)){if(ti.enabled)switch(ti.type){case rW.SCISSOR:this.renderer.scissor.pop(ti);break;case rW.STENCIL:this.renderer.stencil.pop(ti.maskObject);break;case rW.SPRITE:this.popSpriteMask(ti);break;case rW.COLOR:this.popColorMask(ti)}if(ti.reset(),ti.pooled&&this.maskDataPool.push(ti),0!==this.maskStack.length){var ta=this.maskStack[this.maskStack.length-1];ta.type===rW.SPRITE&&ta._filters&&(ta._filters[0].maskSprite=ta.maskObject)}}}detect(tt){var ti=tt.maskObject;ti?ti.isSprite?tt.type=rW.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(tt)?tt.type=rW.SCISSOR:tt.type=rW.STENCIL:tt.type=rW.COLOR}pushSpriteMask(tt){var{maskObject:ti}=tt,ta=tt._target,ts=tt._filters;ts||(ts=this.alphaMaskPool[this.alphaMaskIndex])||(ts=this.alphaMaskPool[this.alphaMaskIndex]=[new oi]),ts[0].resolution=tt.resolution,ts[0].multisample=tt.multisample,ts[0].maskSprite=ti;var tc=ta.filterArea;ta.filterArea=ti.getBounds(!0),this.renderer.filter.push(ta,ts),ta.filterArea=tc,tt._filters||this.alphaMaskIndex++}popSpriteMask(tt){this.renderer.filter.pop(),tt._filters?tt._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(tt){var ti=tt._colorMask,ta=tt._colorMask=ti&tt.colorMask;ta!==ti&&this.renderer.gl.colorMask((1&ta)!=0,(2&ta)!=0,(4&ta)!=0,(8&ta)!=0)}popColorMask(tt){var ti=tt._colorMask,ta=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;ta!==ti&&this.renderer.gl.colorMask((1&ta)!=0,(2&ta)!=0,(4&ta)!=0,(8&ta)!=0)}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}}oo.extension={type:iz.RendererSystem,name:"mask"},iW.add(oo);class os{getStackLength(){return this.maskStack.length}setMaskStack(tt){var{gl:ti}=this.renderer,ta=this.getStackLength();this.maskStack=tt;var ts=this.getStackLength();ts!==ta&&(0===ts?ti.disable(this.glConst):(ti.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}constructor(tt){this.renderer=tt,this.maskStack=[],this.glConst=0}}var oc=new nB,ou=[],oh=class tt extends os{getStackLength(){var tt=this.maskStack[this.maskStack.length-1];return tt?tt._scissorCounter:0}calcScissorRect(tt){if(!tt._scissorRectLocal){var ti,ta=tt._scissorRect,{maskObject:ts}=tt,{renderer:tc}=this,tu=tc.renderTexture,td=ts.getBounds(!0,null!==(ti=ou.pop())&&void 0!==ti?ti:new nC);this.roundFrameToPixels(td,tu.current?tu.current.resolution:tc.resolution,tu.sourceFrame,tu.destinationFrame,tc.projection.transform),ta&&td.fit(ta),tt._scissorRectLocal=td}}static isMatrixRotated(tt){if(!tt)return!1;var{a:ti,b:ta,c:ts,d:tc}=tt;return(Math.abs(ta)>1e-4||Math.abs(ts)>1e-4)&&(Math.abs(ti)>1e-4||Math.abs(tc)>1e-4)}testScissor(ti){var{maskObject:ta}=ti;if(!ta.isFastRect||!ta.isFastRect()||tt.isMatrixRotated(ta.worldTransform)||tt.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(ti);var ts=ti._scissorRectLocal;return ts.width>0&&ts.height>0}roundFrameToPixels(ti,ta,ts,tc,tu){tt.isMatrixRotated(tu)||((tu=tu?oc.copyFrom(tu):oc.identity()).translate(-ts.x,-ts.y).scale(tc.width/ts.width,tc.height/ts.height).translate(tc.x,tc.y),this.renderer.filter.transformAABB(tu,ti),ti.fit(tc),ti.x=Math.round(ti.x*ta),ti.y=Math.round(ti.y*ta),ti.width=Math.round(ti.width*ta),ti.height=Math.round(ti.height*ta))}push(tt){tt._scissorRectLocal||this.calcScissorRect(tt);var{gl:ti}=this.renderer;tt._scissorRect||ti.enable(ti.SCISSOR_TEST),tt._scissorCounter++,tt._scissorRect=tt._scissorRectLocal,this._useCurrent()}pop(tt){var{gl:ti}=this.renderer;tt&&ou.push(tt._scissorRectLocal),this.getStackLength()>0?this._useCurrent():ti.disable(ti.SCISSOR_TEST)}_useCurrent(){var tt,ti=this.maskStack[this.maskStack.length-1]._scissorRect;tt=this.renderer.renderTexture.current?ti.y:this.renderer.height-ti.height-ti.y,this.renderer.gl.scissor(ti.x,tt,ti.width,ti.height)}constructor(tt){super(tt),this.glConst=e5.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}};oh.extension={type:iz.RendererSystem,name:"scissor"};var ol=oh;iW.add(ol);class od extends os{getStackLength(){var tt=this.maskStack[this.maskStack.length-1];return tt?tt._stencilCounter:0}push(tt){var ti=tt.maskObject,{gl:ta}=this.renderer,ts=tt._stencilCounter;0===ts&&(this.renderer.framebuffer.forceStencil(),ta.clearStencil(0),ta.clear(ta.STENCIL_BUFFER_BIT),ta.enable(ta.STENCIL_TEST)),tt._stencilCounter++;var tc=tt._colorMask;0!==tc&&(tt._colorMask=0,ta.colorMask(!1,!1,!1,!1)),ta.stencilFunc(ta.EQUAL,ts,4294967295),ta.stencilOp(ta.KEEP,ta.KEEP,ta.INCR),ti.renderable=!0,ti.render(this.renderer),this.renderer.batch.flush(),ti.renderable=!1,0!==tc&&(tt._colorMask=tc,ta.colorMask((1&tc)!=0,(2&tc)!=0,(4&tc)!=0,(8&tc)!=0)),this._useCurrent()}pop(tt){var ti=this.renderer.gl;if(0===this.getStackLength())ti.disable(ti.STENCIL_TEST);else{var ta=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null,ts=ta?ta._colorMask:15;0!==ts&&(ta._colorMask=0,ti.colorMask(!1,!1,!1,!1)),ti.stencilOp(ti.KEEP,ti.KEEP,ti.DECR),tt.renderable=!0,tt.render(this.renderer),this.renderer.batch.flush(),tt.renderable=!1,0!==ts&&(ta._colorMask=ts,ti.colorMask((1&ts)!=0,(2&ts)!=0,(4&ts)!=0,(8&ts)!=0)),this._useCurrent()}}_useCurrent(){var tt=this.renderer.gl;tt.stencilFunc(tt.EQUAL,this.getStackLength(),4294967295),tt.stencilOp(tt.KEEP,tt.KEEP,tt.KEEP)}constructor(tt){super(tt),this.glConst=e5.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}}od.extension={type:iz.RendererSystem,name:"stencil"},iW.add(od);class of{init(){var tt=this.rendererPlugins;for(var ti in tt)this.plugins[ti]=new tt[ti](this.renderer)}destroy(){for(var tt in this.plugins)this.plugins[tt].destroy(),this.plugins[tt]=null}constructor(tt){this.renderer=tt,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get:()=>(rE("7.0.0","renderer.plugins.extract has moved to renderer.extract"),tt.extract)},prepare:{enumerable:!1,get:()=>(rE("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),tt.prepare)},interaction:{enumerable:!1,get:()=>(rE("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),tt.events)}})}}of.extension={type:[iz.RendererSystem,iz.CanvasRendererSystem],name:"_plugin"},iW.add(of);class op{update(tt,ti,ta,ts){this.destinationFrame=tt||this.destinationFrame||this.defaultFrame,this.sourceFrame=ti||this.sourceFrame||tt,this.calculateProjection(this.destinationFrame,this.sourceFrame,ta,ts),this.transform&&this.projectionMatrix.append(this.transform);var tc=this.renderer;tc.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,tc.globalUniforms.update(),tc.shader.shader&&tc.shader.syncUniformGroup(tc.shader.shader.uniforms.globals)}calculateProjection(tt,ti,ta,ts){var tc=this.projectionMatrix,tu=ts?-1:1;tc.identity(),tc.a=1/ti.width*2,tc.d=tu*(1/ti.height*2),tc.tx=-1-ti.x*tc.a,tc.ty=-tu-ti.y*tc.d}setTransform(tt){}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new nB,this.transform=null}}op.extension={type:iz.RendererSystem,name:"projection"},iW.add(op);var ov=new nW,ob=new nC;class og{generateTexture(tt,ti){var ta,ts=ti||{},{region:tc}=ts,tu=(0,tz._)(ts,["region"]),td=(null==tc?void 0:tc.copyTo(ob))||tt.getLocalBounds(ob,!0),tp=tu.resolution||this.renderer.resolution;td.width=Math.max(td.width,1/tp),td.height=Math.max(td.height,1/tp),tu.width=td.width,tu.height=td.height,tu.resolution=tp,null!==(ta=tu.multisample)&&void 0!==ta||(tu.multisample=this.renderer.multisample);var tv=aU.create(tu);this._tempMatrix.tx=-td.x,this._tempMatrix.ty=-td.y;var tb=tt.transform;return tt.transform=ov,this.renderer.render(tt,{renderTexture:tv,transform:this._tempMatrix,skipUpdateTransform:!!tt.parent,blit:!0}),tt.transform=tb,tv}destroy(){}constructor(tt){this.renderer=tt,this._tempMatrix=new nB}}og.extension={type:[iz.RendererSystem,iz.CanvasRendererSystem],name:"textureGenerator"},iW.add(og);var oy=new nC,om=new nC;class o_{contextChange(){var tt,ti=null===(tt=this.renderer)||void 0===tt?void 0:tt.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(ti&&ti.alpha&&ti.premultipliedAlpha)}bind(){var tt,ti,ta,ts=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,tc=arguments.length>1?arguments[1]:void 0,tu=arguments.length>2?arguments[2]:void 0,td=this.renderer;this.current=ts,ts?(ta=(tt=ts.baseTexture).resolution,tc||(oy.width=ts.frame.width,oy.height=ts.frame.height,tc=oy),tu||(om.x=ts.frame.x,om.y=ts.frame.y,om.width=tc.width,om.height=tc.height,tu=om),ti=tt.framebuffer):(ta=td.resolution,tc||(oy.width=td._view.screen.width,oy.height=td._view.screen.height,tc=oy),tu||((tu=oy).width=tc.width,tu.height=tc.height));var tp=this.viewportFrame;tp.x=tu.x*ta,tp.y=tu.y*ta,tp.width=tu.width*ta,tp.height=tu.height*ta,ts||(tp.y=td.view.height-(tp.y+tp.height)),tp.ceil(),this.renderer.framebuffer.bind(ti,tp),this.renderer.projection.update(tu,tc,ta,!ti),ts?this.renderer.mask.setMaskStack(tt.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(tc),this.destinationFrame.copyFrom(tu)}clear(tt,ti){var ta=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,ts=iM.shared.setValue(tt||ta);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&ts.premultiply(ts.alpha);var tc=this.destinationFrame,tu=this.current?this.current.baseTexture:this.renderer._view.screen,td=tc.width!==tu.width||tc.height!==tu.height;if(td){var{x:tp,y:tv,width:tb,height:tg}=this.viewportFrame;tp=Math.round(tp),tv=Math.round(tv),tb=Math.round(tb),tg=Math.round(tg),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(tp,tv,tb,tg)}this.renderer.framebuffer.clear(ts.red,ts.green,ts.blue,ts.alpha,ti),td&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new nC,this.destinationFrame=new nC,this.viewportFrame=new nC}}o_.extension={type:iz.RendererSystem,name:"renderTexture"},iW.add(o_);class ow{destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}constructor(tt,ti){this.program=tt,this.uniformData=ti,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}}function ox(tt,ti,ta){var ts=tt.createShader(ti);return tt.shaderSource(ts,ta),tt.compileShader(ts),ts}function oE(tt){for(var ti=Array(tt),ta=0;ta"".concat(ti,": ").concat(tt)),ts=tt.getShaderInfoLog(ti),tc=ts.split("\n"),tu={},td=tc.map(tt=>parseFloat(tt.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(tt=>!!tt&&!tu[tt]&&(tu[tt]=!0,!0)),tp=[""];td.forEach(tt=>{ta[tt-1]="%c".concat(ta[tt-1],"%c"),tp.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var tv=ta.join("\n");tp[0]=tv,console.error(ts),console.groupCollapsed("click to view full shader code"),console.warn(...tp),console.groupEnd()}function ok(tt,ti,ta,ts){tt.getProgramParameter(ti,tt.LINK_STATUS)||(tt.getShaderParameter(ta,tt.COMPILE_STATUS)||oM(tt,ta),tt.getShaderParameter(ts,tt.COMPILE_STATUS)||oM(tt,ts),console.error("PixiJS Error: Could not initialize shader."),""!==tt.getProgramInfoLog(ti)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",tt.getProgramInfoLog(ti)))}function oR(tt,ti){var ta,ts=ox(tt,tt.VERTEX_SHADER,ti.vertexSrc),tc=ox(tt,tt.FRAGMENT_SHADER,ti.fragmentSrc),tu=tt.createProgram();tt.attachShader(tu,ts),tt.attachShader(tu,tc);var td=null===(ta=ti.extra)||void 0===ta?void 0:ta.transformFeedbackVaryings;if(td&&("function"!=typeof tt.transformFeedbackVaryings?console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given."):tt.transformFeedbackVaryings(tu,td.names,"separate"===td.bufferMode?tt.SEPARATE_ATTRIBS:tt.INTERLEAVED_ATTRIBS)),tt.linkProgram(tu),tt.getProgramParameter(tu,tt.LINK_STATUS)||ok(tt,tu,ts,tc),ti.attributeData=oA(tu,tt),ti.uniformData=oT(tu,tt),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(ti.vertexSrc)){var tp=Object.keys(ti.attributeData);tp.sort((tt,ti)=>tt>ti?1:-1);for(var tv=0;tv({data:tt,offset:0,dataLen:0,dirty:0})),ta=0,ts=0,tc=0,tu=0;tu1&&(ta=Math.max(ta,16)*td.data.size),td.dataLen=ta,ts%ta!=0&&ts<16){var tp=ts%ta%16;ts+=tp,tc+=tp}ts+ta>16?(tc=16*Math.ceil(tc/16),td.offset=tc,tc+=ta,ts=ta):(td.offset=tc,ts+=ta,tc+=ta)}return{uboElements:ti,size:tc=16*Math.ceil(tc/16)}}function oN(tt,ti){var ta=[];for(var ts in tt)ti[ts]&&ta.push(ti[ts]);return ta.sort((tt,ti)=>tt.index-ti.index),ta}function oB(tt,ti){if(!tt.autoManage)return{size:0,syncFunc:oC};for(var{uboElements:ta,size:ts}=oO(oN(tt.uniforms,ti)),tc=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],tu=0;tu1){var tE=n8(td.data.type),tS=Math.max(oP[td.data.type]/16,1),tA=tE/tS,tT=(4-tA%4)%4;tc.push("\n cv = ud.".concat(tv,".value;\n v = uv.").concat(tv,";\n offset = ").concat(td.offset/4,";\n\n t = 0;\n\n for(var i=0; i < ").concat(td.data.size*tS,"; i++)\n {\n for(var j = 0; j < ").concat(tA,"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += ").concat(tT,";\n }\n\n "))}else{var tM=oI[td.data.type];tc.push("\n cv = ud.".concat(tv,".value;\n v = uv.").concat(tv,";\n offset = ").concat(td.offset/4,";\n ").concat(tM,";\n "))}}}return tc.push("\n renderer.buffer.update(buffer);\n "),{size:ts,syncFunc:Function("ud","uv","renderer","syncData","buffer",tc.join("\n"))}}function oL(){if("boolean"==typeof cO)return cO;try{cO=!0===Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")}catch(tt){cO=!1}return cO}var oD=0,oj={textureCount:0,uboCount:0};class oU{systemCheck(){if(!oL())throw Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(tt){this.gl=tt,this.reset()}bind(tt,ti){tt.disposeRunner.add(this),tt.uniforms.globals=this.renderer.globalUniforms;var ta=tt.program,ts=ta.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(tt);return this.shader=tt,this.program!==ta&&(this.program=ta,this.gl.useProgram(ts.program)),ti||(oj.textureCount=0,oj.uboCount=0,this.syncUniformGroup(tt.uniformGroup,oj)),ts}setUniforms(tt){var ti=this.shader.program,ta=ti.glPrograms[this.renderer.CONTEXT_UID];ti.syncUniforms(ta.uniformData,tt,this.renderer)}syncUniformGroup(tt,ti){var ta=this.getGlProgram();tt.static&&tt.dirtyId===ta.uniformDirtyGroups[tt.id]||(ta.uniformDirtyGroups[tt.id]=tt.dirtyId,this.syncUniforms(tt,ta,ti))}syncUniforms(tt,ti,ta){(tt.syncUniforms[this.shader.program.id]||this.createSyncGroups(tt))(ti.uniformData,tt.uniforms,this.renderer,ta)}createSyncGroups(tt){var ti=this.getSignature(tt,this.shader.program.uniformData,"u");return this.cache[ti]||(this.cache[ti]=nJ(tt,this.shader.program.uniformData)),tt.syncUniforms[this.shader.program.id]=this.cache[ti],tt.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(tt,ti){var ta=this.getGlProgram();if(!tt.static||0!==tt.dirtyId||!ta.uniformGroups[tt.id]){tt.dirtyId=0;var ts=ta.uniformGroups[tt.id]||this.createSyncBufferGroup(tt,ta,ti);tt.buffer.update(),ts(ta.uniformData,tt.uniforms,this.renderer,oj,tt.buffer)}this.renderer.buffer.bindBufferBase(tt.buffer,ta.uniformBufferBindings[ti])}createSyncBufferGroup(tt,ti,ta){var{gl:ts}=this.renderer;this.renderer.buffer.bind(tt.buffer);var tc=this.gl.getUniformBlockIndex(ti.program,ta);ti.uniformBufferBindings[ta]=this.shader.uniformBindCount,ts.uniformBlockBinding(ti.program,tc,this.shader.uniformBindCount),this.shader.uniformBindCount++;var tu=this.getSignature(tt,this.shader.program.uniformData,"ubo"),td=this._uboCache[tu];if(td||(td=this._uboCache[tu]=oB(tt,this.shader.program.uniformData)),tt.autoManage){var tp=new Float32Array(td.size/4);tt.buffer.update(tp)}return ti.uniformGroups[tt.id]=td.syncFunc,ti.uniformGroups[tt.id]}getSignature(tt,ti,ta){var ts=tt.uniforms,tc=["".concat(ta,"-")];for(var tu in ts)tc.push(tu),ti[tu]&&tc.push(ti[tu].type);return tc.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(tt){var ti=this.gl,ta=tt.program,ts=oR(ti,ta);return ta.glPrograms[this.renderer.CONTEXT_UID]=ts,ts}reset(){this.program=null,this.shader=null}disposeShader(tt){this.shader===tt&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}constructor(tt){this.destroyed=!1,this.renderer=tt,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=oD++}}oU.extension={type:iz.RendererSystem,name:"shader"},iW.add(oU);class oF{run(tt){var{renderer:ti}=this;ti.runners.init.emit(ti.options),tt.hello&&console.log("PixiJS 7.3.0 - ".concat(ti.rendererLogId," - https://pixijs.com")),ti.resize(ti.screen.width,ti.screen.height)}destroy(){}constructor(tt){this.renderer=tt}}function oG(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return ti[rO.NORMAL]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.ADD]=[tt.ONE,tt.ONE],ti[rO.MULTIPLY]=[tt.DST_COLOR,tt.ONE_MINUS_SRC_ALPHA,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.SCREEN]=[tt.ONE,tt.ONE_MINUS_SRC_COLOR,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.OVERLAY]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.DARKEN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.LIGHTEN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.COLOR_DODGE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.COLOR_BURN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.HARD_LIGHT]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.SOFT_LIGHT]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.DIFFERENCE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.EXCLUSION]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.HUE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.SATURATION]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.COLOR]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.LUMINOSITY]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.NONE]=[0,0],ti[rO.NORMAL_NPM]=[tt.SRC_ALPHA,tt.ONE_MINUS_SRC_ALPHA,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.ADD_NPM]=[tt.SRC_ALPHA,tt.ONE,tt.ONE,tt.ONE],ti[rO.SCREEN_NPM]=[tt.SRC_ALPHA,tt.ONE_MINUS_SRC_COLOR,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],ti[rO.SRC_IN]=[tt.DST_ALPHA,tt.ZERO],ti[rO.SRC_OUT]=[tt.ONE_MINUS_DST_ALPHA,tt.ZERO],ti[rO.SRC_ATOP]=[tt.DST_ALPHA,tt.ONE_MINUS_SRC_ALPHA],ti[rO.DST_OVER]=[tt.ONE_MINUS_DST_ALPHA,tt.ONE],ti[rO.DST_IN]=[tt.ZERO,tt.SRC_ALPHA],ti[rO.DST_OUT]=[tt.ZERO,tt.ONE_MINUS_SRC_ALPHA],ti[rO.DST_ATOP]=[tt.ONE_MINUS_DST_ALPHA,tt.SRC_ALPHA],ti[rO.XOR]=[tt.ONE_MINUS_DST_ALPHA,tt.ONE_MINUS_SRC_ALPHA],ti[rO.SUBTRACT]=[tt.ONE,tt.ONE,tt.ONE,tt.ONE,tt.FUNC_REVERSE_SUBTRACT,tt.FUNC_ADD],ti}oF.defaultOptions={hello:!1},oF.extension={type:[iz.RendererSystem,iz.CanvasRendererSystem],name:"startup"},iW.add(oF);var oH=0,oz=1,oV=2,oq=3,oW=4,oY=5,oX=class tt{contextChange(tt){this.gl=tt,this.blendModes=oG(tt),this.set(this.defaultState),this.reset()}set(tt){if(tt=tt||this.defaultState,this.stateId!==tt.data){for(var ti=this.stateId^tt.data,ta=0;ti;)1&ti&&this.map[ta].call(this,!!(tt.data&1<>=1,ta++;this.stateId=tt.data}for(var ts=0;tstt.systems[ti]);for(var ts of[...ta,...Object.keys(tt.systems).filter(tt=>!ta.includes(tt))])this.addSystem(tt.systems[ts],ts)}addRunners(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta{this.runners[tt]=new ni(tt)})}addSystem(tt,ti){var ta=new tt(this);if(this[ti])throw Error('Whoops! The name "'.concat(ti,'" is already in use'));for(var ts in this[ti]=ta,this._systemsHash[ti]=ta,this.runners)this.runners[ts].add(ta);return this}emitWithCustomOptions(tt,ti){var ta=Object.keys(this._systemsHash);tt.items.forEach(ts=>{var tc=ta.find(tt=>this._systemsHash[tt]===ts);ts[tt.name](ti[tc])})}destroy(){Object.values(this.runners).forEach(tt=>{tt.destroy()}),this._systemsHash={}}constructor(){super(...arguments),this.runners={},this._systemsHash={}}}var oZ=class tt{postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==rV.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){for(var tt=this.renderer.texture,ti=tt.managedTextures,ta=!1,ts=0;tsthis.maxIdle&&(tt.destroyTexture(tc,!0),ti[ts]=null,ta=!0)}if(ta){for(var tu=0,td=0;td=0;ts--)this.unload(tt.children[ts])}destroy(){this.renderer=null}constructor(ti){this.renderer=ti,this.count=0,this.checkCount=0,this.maxIdle=tt.defaultMaxIdle,this.checkCountMax=tt.defaultCheckCountMax,this.mode=tt.defaultMode}};oZ.defaultMode=rV.AUTO,oZ.defaultMaxIdle=3600,oZ.defaultCheckCountMax=600,oZ.extension={type:iz.RendererSystem,name:"textureGC"};var oJ=oZ;iW.add(oJ);class o${constructor(tt){this.texture=tt,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=rD.UNSIGNED_BYTE,this.internalFormat=rB.RGBA,this.samplerType=0}}function o0(tt){return"WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext?{[tt.RGB]:rj.FLOAT,[tt.RGBA]:rj.FLOAT,[tt.ALPHA]:rj.FLOAT,[tt.LUMINANCE]:rj.FLOAT,[tt.LUMINANCE_ALPHA]:rj.FLOAT,[tt.R8]:rj.FLOAT,[tt.R8_SNORM]:rj.FLOAT,[tt.RG8]:rj.FLOAT,[tt.RG8_SNORM]:rj.FLOAT,[tt.RGB8]:rj.FLOAT,[tt.RGB8_SNORM]:rj.FLOAT,[tt.RGB565]:rj.FLOAT,[tt.RGBA4]:rj.FLOAT,[tt.RGB5_A1]:rj.FLOAT,[tt.RGBA8]:rj.FLOAT,[tt.RGBA8_SNORM]:rj.FLOAT,[tt.RGB10_A2]:rj.FLOAT,[tt.RGB10_A2UI]:rj.FLOAT,[tt.SRGB8]:rj.FLOAT,[tt.SRGB8_ALPHA8]:rj.FLOAT,[tt.R16F]:rj.FLOAT,[tt.RG16F]:rj.FLOAT,[tt.RGB16F]:rj.FLOAT,[tt.RGBA16F]:rj.FLOAT,[tt.R32F]:rj.FLOAT,[tt.RG32F]:rj.FLOAT,[tt.RGB32F]:rj.FLOAT,[tt.RGBA32F]:rj.FLOAT,[tt.R11F_G11F_B10F]:rj.FLOAT,[tt.RGB9_E5]:rj.FLOAT,[tt.R8I]:rj.INT,[tt.R8UI]:rj.UINT,[tt.R16I]:rj.INT,[tt.R16UI]:rj.UINT,[tt.R32I]:rj.INT,[tt.R32UI]:rj.UINT,[tt.RG8I]:rj.INT,[tt.RG8UI]:rj.UINT,[tt.RG16I]:rj.INT,[tt.RG16UI]:rj.UINT,[tt.RG32I]:rj.INT,[tt.RG32UI]:rj.UINT,[tt.RGB8I]:rj.INT,[tt.RGB8UI]:rj.UINT,[tt.RGB16I]:rj.INT,[tt.RGB16UI]:rj.UINT,[tt.RGB32I]:rj.INT,[tt.RGB32UI]:rj.UINT,[tt.RGBA8I]:rj.INT,[tt.RGBA8UI]:rj.UINT,[tt.RGBA16I]:rj.INT,[tt.RGBA16UI]:rj.UINT,[tt.RGBA32I]:rj.INT,[tt.RGBA32UI]:rj.UINT,[tt.DEPTH_COMPONENT16]:rj.FLOAT,[tt.DEPTH_COMPONENT24]:rj.FLOAT,[tt.DEPTH_COMPONENT32F]:rj.FLOAT,[tt.DEPTH_STENCIL]:rj.FLOAT,[tt.DEPTH24_STENCIL8]:rj.FLOAT,[tt.DEPTH32F_STENCIL8]:rj.FLOAT}:{[tt.RGB]:rj.FLOAT,[tt.RGBA]:rj.FLOAT,[tt.ALPHA]:rj.FLOAT,[tt.LUMINANCE]:rj.FLOAT,[tt.LUMINANCE_ALPHA]:rj.FLOAT,[tt.DEPTH_STENCIL]:rj.FLOAT}}function o8(tt){return"WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext?{[rD.UNSIGNED_BYTE]:{[rB.RGBA]:tt.RGBA8,[rB.RGB]:tt.RGB8,[rB.RG]:tt.RG8,[rB.RED]:tt.R8,[rB.RGBA_INTEGER]:tt.RGBA8UI,[rB.RGB_INTEGER]:tt.RGB8UI,[rB.RG_INTEGER]:tt.RG8UI,[rB.RED_INTEGER]:tt.R8UI,[rB.ALPHA]:tt.ALPHA,[rB.LUMINANCE]:tt.LUMINANCE,[rB.LUMINANCE_ALPHA]:tt.LUMINANCE_ALPHA},[rD.BYTE]:{[rB.RGBA]:tt.RGBA8_SNORM,[rB.RGB]:tt.RGB8_SNORM,[rB.RG]:tt.RG8_SNORM,[rB.RED]:tt.R8_SNORM,[rB.RGBA_INTEGER]:tt.RGBA8I,[rB.RGB_INTEGER]:tt.RGB8I,[rB.RG_INTEGER]:tt.RG8I,[rB.RED_INTEGER]:tt.R8I},[rD.UNSIGNED_SHORT]:{[rB.RGBA_INTEGER]:tt.RGBA16UI,[rB.RGB_INTEGER]:tt.RGB16UI,[rB.RG_INTEGER]:tt.RG16UI,[rB.RED_INTEGER]:tt.R16UI,[rB.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT16},[rD.SHORT]:{[rB.RGBA_INTEGER]:tt.RGBA16I,[rB.RGB_INTEGER]:tt.RGB16I,[rB.RG_INTEGER]:tt.RG16I,[rB.RED_INTEGER]:tt.R16I},[rD.UNSIGNED_INT]:{[rB.RGBA_INTEGER]:tt.RGBA32UI,[rB.RGB_INTEGER]:tt.RGB32UI,[rB.RG_INTEGER]:tt.RG32UI,[rB.RED_INTEGER]:tt.R32UI,[rB.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT24},[rD.INT]:{[rB.RGBA_INTEGER]:tt.RGBA32I,[rB.RGB_INTEGER]:tt.RGB32I,[rB.RG_INTEGER]:tt.RG32I,[rB.RED_INTEGER]:tt.R32I},[rD.FLOAT]:{[rB.RGBA]:tt.RGBA32F,[rB.RGB]:tt.RGB32F,[rB.RG]:tt.RG32F,[rB.RED]:tt.R32F,[rB.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT32F},[rD.HALF_FLOAT]:{[rB.RGBA]:tt.RGBA16F,[rB.RGB]:tt.RGB16F,[rB.RG]:tt.RG16F,[rB.RED]:tt.R16F},[rD.UNSIGNED_SHORT_5_6_5]:{[rB.RGB]:tt.RGB565},[rD.UNSIGNED_SHORT_4_4_4_4]:{[rB.RGBA]:tt.RGBA4},[rD.UNSIGNED_SHORT_5_5_5_1]:{[rB.RGBA]:tt.RGB5_A1},[rD.UNSIGNED_INT_2_10_10_10_REV]:{[rB.RGBA]:tt.RGB10_A2,[rB.RGBA_INTEGER]:tt.RGB10_A2UI},[rD.UNSIGNED_INT_10F_11F_11F_REV]:{[rB.RGB]:tt.R11F_G11F_B10F},[rD.UNSIGNED_INT_5_9_9_9_REV]:{[rB.RGB]:tt.RGB9_E5},[rD.UNSIGNED_INT_24_8]:{[rB.DEPTH_STENCIL]:tt.DEPTH24_STENCIL8},[rD.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[rB.DEPTH_STENCIL]:tt.DEPTH32F_STENCIL8}}:{[rD.UNSIGNED_BYTE]:{[rB.RGBA]:tt.RGBA,[rB.RGB]:tt.RGB,[rB.ALPHA]:tt.ALPHA,[rB.LUMINANCE]:tt.LUMINANCE,[rB.LUMINANCE_ALPHA]:tt.LUMINANCE_ALPHA},[rD.UNSIGNED_SHORT_5_6_5]:{[rB.RGB]:tt.RGB},[rD.UNSIGNED_SHORT_4_4_4_4]:{[rB.RGBA]:tt.RGBA},[rD.UNSIGNED_SHORT_5_5_5_1]:{[rB.RGBA]:tt.RGBA}}}class o5{contextChange(){var tt=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=o8(tt),this.samplerTypes=o0(tt);var ti=tt.getParameter(tt.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=ti;for(var ta=0;ta1&&void 0!==arguments[1]?arguments[1]:0,{gl:ta}=this;if((null==(tt=null==tt?void 0:tt.castToBaseTexture())?void 0:tt.valid)&&!tt.parentTextureArray){tt.touched=this.renderer.textureGC.count;var ts=tt._glTextures[this.CONTEXT_UID]||this.initTexture(tt);this.boundTextures[ti]!==tt&&(this.currentLocation!==ti&&(this.currentLocation=ti,ta.activeTexture(ta.TEXTURE0+ti)),ta.bindTexture(tt.target,ts.texture)),ts.dirtyId!==tt.dirtyId?(this.currentLocation!==ti&&(this.currentLocation=ti,ta.activeTexture(ta.TEXTURE0+ti)),this.updateTexture(tt)):ts.dirtyStyleId!==tt.dirtyStyleId&&this.updateTextureStyle(tt),this.boundTextures[ti]=tt}else this.currentLocation!==ti&&(this.currentLocation=ti,ta.activeTexture(ta.TEXTURE0+ti)),ta.bindTexture(ta.TEXTURE_2D,this.emptyTextures[ta.TEXTURE_2D].texture),this.boundTextures[ti]=null}reset(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var tt=0;tt=0;--tc){var tu=ti[tc];tu&&tu._glTextures[ts].samplerType!==rj.FLOAT&&this.renderer.texture.unbind(tu)}}initTexture(tt){var ti=new o$(this.gl.createTexture());return ti.dirtyId=-1,tt._glTextures[this.CONTEXT_UID]=ti,this.managedTextures.push(tt),tt.on("dispose",this.destroyTexture,this),ti}initTextureType(tt,ti){var ta,ts,tc;ti.internalFormat=null!==(ts=null===(ta=this.internalFormats[tt.type])||void 0===ta?void 0:ta[tt.format])&&void 0!==ts?ts:tt.format,ti.samplerType=null!==(tc=this.samplerTypes[ti.internalFormat])&&void 0!==tc?tc:rj.FLOAT,2===this.webGLVersion&&tt.type===rD.HALF_FLOAT?ti.type=this.gl.HALF_FLOAT:ti.type=tt.type}updateTexture(tt){var ti,ta=tt._glTextures[this.CONTEXT_UID];if(ta){var ts=this.renderer;if(this.initTextureType(tt,ta),null===(ti=tt.resource)||void 0===ti?void 0:ti.upload(ts,tt,ta))ta.samplerType!==rj.FLOAT&&(this.hasIntegerTextures=!0);else{var tc=tt.realWidth,tu=tt.realHeight,td=ts.gl;(ta.width!==tc||ta.height!==tu||ta.dirtyId<0)&&(ta.width=tc,ta.height=tu,td.texImage2D(tt.target,0,ta.internalFormat,tc,tu,0,tt.format,ta.type,null))}tt.dirtyStyleId!==ta.dirtyStyleId&&this.updateTextureStyle(tt),ta.dirtyId=tt.dirtyId}}destroyTexture(tt,ti){var{gl:ta}=this;if((tt=tt.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(tt),ta.deleteTexture(tt._glTextures[this.CONTEXT_UID].texture),tt.off("dispose",this.destroyTexture,this),delete tt._glTextures[this.CONTEXT_UID],!ti)){var ts=this.managedTextures.indexOf(tt);-1!==ts&&iO(this.managedTextures,ts,1)}}updateTextureStyle(tt){var ti,ta=tt._glTextures[this.CONTEXT_UID];ta&&(tt.mipmap!==rG.POW2&&2===this.webGLVersion||tt.isPowerOfTwo?ta.mipmap=tt.mipmap>=1:ta.mipmap=!1,2===this.webGLVersion||tt.isPowerOfTwo?ta.wrapMode=tt.wrapMode:ta.wrapMode=rF.CLAMP,(null===(ti=tt.resource)||void 0===ti?void 0:ti.style(this.renderer,tt,ta))||this.setStyle(tt,ta),ta.dirtyStyleId=tt.dirtyStyleId)}setStyle(tt,ti){var ta=this.gl;if(ti.mipmap&&tt.mipmap!==rG.ON_MANUAL&&ta.generateMipmap(tt.target),ta.texParameteri(tt.target,ta.TEXTURE_WRAP_S,ti.wrapMode),ta.texParameteri(tt.target,ta.TEXTURE_WRAP_T,ti.wrapMode),ti.mipmap){ta.texParameteri(tt.target,ta.TEXTURE_MIN_FILTER,tt.scaleMode===rU.LINEAR?ta.LINEAR_MIPMAP_LINEAR:ta.NEAREST_MIPMAP_NEAREST);var ts=this.renderer.context.extensions.anisotropicFiltering;if(ts&&tt.anisotropicLevel>0&&tt.scaleMode===rU.LINEAR){var tc=Math.min(tt.anisotropicLevel,ta.getParameter(ts.MAX_TEXTURE_MAX_ANISOTROPY_EXT));ta.texParameterf(tt.target,ts.TEXTURE_MAX_ANISOTROPY_EXT,tc)}}else ta.texParameteri(tt.target,ta.TEXTURE_MIN_FILTER,tt.scaleMode===rU.LINEAR?ta.LINEAR:ta.NEAREST);ta.texParameteri(tt.target,ta.TEXTURE_MAG_FILTER,tt.scaleMode===rU.LINEAR?ta.LINEAR:ta.NEAREST)}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new nu,this.hasIntegerTextures=!1}}o5.extension={type:iz.RendererSystem,name:"texture"},iW.add(o5);class o6{contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(tt){var{gl:ti,CONTEXT_UID:ta}=this,ts=tt._glTransformFeedbacks[ta]||this.createGLTransformFeedback(tt);ti.bindTransformFeedback(ti.TRANSFORM_FEEDBACK,ts)}unbind(){var{gl:tt}=this;tt.bindTransformFeedback(tt.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(tt,ti){var{gl:ta,renderer:ts}=this;ti&&ts.shader.bind(ti),ta.beginTransformFeedback(tt)}endTransformFeedback(){var{gl:tt}=this;tt.endTransformFeedback()}createGLTransformFeedback(tt){var{gl:ti,renderer:ta,CONTEXT_UID:ts}=this,tc=ti.createTransformFeedback();tt._glTransformFeedbacks[ts]=tc,ti.bindTransformFeedback(ti.TRANSFORM_FEEDBACK,tc);for(var tu=0;tunu.defaultOptions.wrapMode,set(tt){rE("7.1.0","settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),nu.defaultOptions.wrapMode=tt}},SCALE_MODE:{get:()=>nu.defaultOptions.scaleMode,set(tt){rE("7.1.0","settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),nu.defaultOptions.scaleMode=tt}},MIPMAP_TEXTURES:{get:()=>nu.defaultOptions.mipmap,set(tt){rE("7.1.0","settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),nu.defaultOptions.mipmap=tt}},ANISOTROPIC_LEVEL:{get:()=>nu.defaultOptions.anisotropicLevel,set(tt){rE("7.1.0","settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),nu.defaultOptions.anisotropicLevel=tt}},FILTER_RESOLUTION:{get:()=>(rE("7.1.0","settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"),aE.defaultResolution),set(tt){aE.defaultResolution=tt}},FILTER_MULTISAMPLE:{get:()=>(rE("7.1.0","settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"),aE.defaultMultisample),set(tt){aE.defaultMultisample=tt}},SPRITE_MAX_TEXTURES:{get:()=>ag.defaultMaxTextures,set(tt){rE("7.1.0","settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"),ag.defaultMaxTextures=tt}},SPRITE_BATCH_SIZE:{get:()=>ag.defaultBatchSize,set(tt){rE("7.1.0","settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"),ag.defaultBatchSize=tt}},CAN_UPLOAD_SAME_BUFFER:{get:()=>ag.canUploadSameBuffer,set(tt){rE("7.1.0","settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"),ag.canUploadSameBuffer=tt}},GC_MODE:{get:()=>oJ.defaultMode,set(tt){rE("7.1.0","settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"),oJ.defaultMode=tt}},GC_MAX_IDLE:{get:()=>oJ.defaultMaxIdle,set(tt){rE("7.1.0","settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"),oJ.defaultMaxIdle=tt}},GC_MAX_CHECK_COUNT:{get:()=>oJ.defaultCheckCountMax,set(tt){rE("7.1.0","settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"),oJ.defaultCheckCountMax=tt}},PRECISION_VERTEX:{get:()=>aa.defaultVertexPrecision,set(tt){rE("7.1.0","settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"),aa.defaultVertexPrecision=tt}},PRECISION_FRAGMENT:{get:()=>aa.defaultFragmentPrecision,set(tt){rE("7.1.0","settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"),aa.defaultFragmentPrecision=tt}}});var o9=((cA=o9||{})[cA.INTERACTION=50]="INTERACTION",cA[cA.HIGH=25]="HIGH",cA[cA.NORMAL=0]="NORMAL",cA[cA.LOW=-25]="LOW",cA[cA.UTILITY=-50]="UTILITY",cA);class st{match(tt){var ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.fn===tt&&this.context===ti}emit(tt){this.fn&&(this.context?this.fn.call(this.context,tt):this.fn(tt));var ti=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),ti}connect(tt){this.previous=tt,tt.next&&(tt.next.previous=this),this.next=tt.next,tt.next=this}destroy(){var tt=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var ti=this.next;return this.next=tt?null:ti,this.previous=null,ti}constructor(tt,ti=null,ta=0,ts=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=tt,this.context=ti,this.priority=ta,this.once=ts}}var si=class tt{_requestIfNeeded(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o9.NORMAL;return this._addListener(new st(tt,ti,ta))}addOnce(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o9.NORMAL;return this._addListener(new st(tt,ti,ta,!0))}_addListener(tt){var ti=this._head.next,ta=this._head;if(ti){for(;ti;){if(tt.priority>ti.priority){tt.connect(ta);break}ta=ti,ti=ti.next}tt.previous||tt.connect(ta)}else tt.connect(ta);return this._startIfPossible(),this}remove(tt,ti){for(var ta=this._head.next;ta;)ta=ta.match(tt,ti)?ta.destroy():ta.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;for(var tt=0,ti=this._head;ti=ti.next;)tt++;return tt}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();for(var tt=this._head.next;tt;)tt=tt.destroy(!0);this._head.destroy(),this._head=null}}update(){var ti,ta=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now();if(ta>this.lastTime){if((ti=this.elapsedMS=ta-this.lastTime)>this._maxElapsedMS&&(ti=this._maxElapsedMS),ti*=this.speed,this._minElapsedMS){var ts=ta-this._lastFrame|0;if(ts{this._requestId=null,this.started&&(this.update(tt),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}};si.targetFPMS=.06;var sa=si;Object.defineProperties(e5,{TARGET_FPMS:{get:()=>sa.targetFPMS,set(tt){rE("7.1.0","settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"),sa.targetFPMS=tt}}});class so{static init(tt){tt=Object.assign({autoStart:!0,sharedTicker:!1},tt),Object.defineProperty(this,"ticker",{set(tt){this._ticker&&this._ticker.remove(this.render,this),this._ticker=tt,tt&&tt.add(this.render,this,o9.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=tt.sharedTicker?sa.shared:new sa,tt.autoStart&&this.start()}static destroy(){if(this._ticker){var tt=this._ticker;this.ticker=null,tt.destroy()}}}so.extension=iz.Application,iW.add(so);var ss=[];function sc(tt){for(var ti of ss)if(ti.test(tt))return new ti(tt);throw Error("Unable to auto-detect a suitable renderer.")}iW.handleByList(iz.Renderer,ss);class su{contextChange(tt){var ti;if(1===this.renderer.context.webGLVersion){var ta=tt.getParameter(tt.FRAMEBUFFER_BINDING);tt.bindFramebuffer(tt.FRAMEBUFFER,null),ti=tt.getParameter(tt.SAMPLES),tt.bindFramebuffer(tt.FRAMEBUFFER,ta)}else{var ts=tt.getParameter(tt.DRAW_FRAMEBUFFER_BINDING);tt.bindFramebuffer(tt.DRAW_FRAMEBUFFER,null),ti=tt.getParameter(tt.SAMPLES),tt.bindFramebuffer(tt.DRAW_FRAMEBUFFER,ts)}ti>=rX.HIGH?this.multisample=rX.HIGH:ti>=rX.MEDIUM?this.multisample=rX.MEDIUM:ti>=rX.LOW?this.multisample=rX.LOW:this.multisample=rX.NONE}destroy(){}constructor(tt){this.renderer=tt}}su.extension={type:iz.RendererSystem,name:"_multisample"},iW.add(su);class sh{constructor(tt){this.buffer=tt||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class sl{destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(tt){var{gl:ti,CONTEXT_UID:ta}=this,ts=tt._glBuffers[ta]||this.createGLBuffer(tt);ti.bindBuffer(tt.type,ts.buffer)}unbind(tt){var{gl:ti}=this;ti.bindBuffer(tt,null)}bindBufferBase(tt,ti){var{gl:ta,CONTEXT_UID:ts}=this;if(this.boundBufferBases[ti]!==tt){var tc=tt._glBuffers[ts]||this.createGLBuffer(tt);this.boundBufferBases[ti]=tt,ta.bindBufferBase(ta.UNIFORM_BUFFER,ti,tc.buffer)}}bindBufferRange(tt,ti,ta){var{gl:ts,CONTEXT_UID:tc}=this;ta=ta||0;var tu=tt._glBuffers[tc]||this.createGLBuffer(tt);ts.bindBufferRange(ts.UNIFORM_BUFFER,ti||0,tu.buffer,256*ta,256)}update(tt){var{gl:ti,CONTEXT_UID:ta}=this,ts=tt._glBuffers[ta]||this.createGLBuffer(tt);if(tt._updateID!==ts.updateID){if(ts.updateID=tt._updateID,ti.bindBuffer(tt.type,ts.buffer),ts.byteLength>=tt.data.byteLength)ti.bufferSubData(tt.type,0,tt.data);else{var tc=tt.static?ti.STATIC_DRAW:ti.DYNAMIC_DRAW;ts.byteLength=tt.data.byteLength,ti.bufferData(tt.type,tt.data,tc)}}}dispose(tt,ti){if(this.managedBuffers[tt.id]){delete this.managedBuffers[tt.id];var ta=tt._glBuffers[this.CONTEXT_UID],ts=this.gl;tt.disposeRunner.remove(this),ta&&(ti||ts.deleteBuffer(ta.buffer),delete tt._glBuffers[this.CONTEXT_UID])}}disposeAll(tt){for(var ti=Object.keys(this.managedBuffers),ta=0;ta0&&void 0!==arguments[0]&&arguments[0];this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:tt}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(tt){this._view.resolution=tt,this.runners.resolutionChange.emit(tt)}get autoDensity(){return this._view.autoDensity}get view(){return this._view.element}get screen(){return this._view.screen}get lastObjectRendered(){return this.objectRenderer.lastObjectRendered}get renderingToScreen(){return this.objectRenderer.renderingToScreen}get rendererLogId(){return"WebGL ".concat(this.context.webGLVersion)}get clearBeforeRender(){return rE("7.0.0","renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."),this.background.clearBeforeRender}get useContextAlpha(){return rE("7.0.0","renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."),this.context.useContextAlpha}get preserveDrawingBuffer(){return rE("7.0.0","renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"),this.context.preserveDrawingBuffer}get backgroundColor(){return rE("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color}set backgroundColor(tt){rE("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color=tt}get backgroundAlpha(){return rE("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha}set backgroundAlpha(tt){rE("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha=tt}get powerPreference(){return rE("7.0.0","renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"),this.context.powerPreference}generateTexture(tt,ti){return this.textureGenerator.generateTexture(tt,ti)}constructor(ti){super(),this.type=rI.WEBGL,ti=Object.assign({},e5.RENDER_OPTIONS,ti),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new as({projectionMatrix:new nB},!0);var ta={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:tt.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(ta),"useContextAlpha"in ti&&(rE("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),ti.premultipliedAlpha=ti.useContextAlpha&&"notMultiplied"!==ti.useContextAlpha,ti.backgroundAlpha=!1===ti.useContextAlpha?1:ti.backgroundAlpha),this._plugin.rendererPlugins=tt.__plugins,this.options=ti,this.startup.run(this.options)}};sf.extension={type:iz.Renderer,priority:1},sf.__plugins={},sf.__systems={};var sp=sf;iW.handleByMap(iz.RendererPlugin,sp.__plugins),iW.handleByMap(iz.RendererSystem,sp.__systems),iW.add(sp);class sv extends na{initFromArray(tt,ti){for(var ta=0;tatt.resource).filter(tt=>tt).map(tt=>tt.load());return this._load=Promise.all(tt).then(()=>{var{realWidth:tt,realHeight:ti}=this.items[0];return this.resize(tt,ti),this.update(),Promise.resolve(this)}),this._load}constructor(tt,ti){var{width:ta,height:ts}=ti||{};super(ta,ts),this.items=[],this.itemDirtyIds=[];for(var tc=0;tc0){if(tt.resource)this.addResourceAt(tt.resource,ti);else throw Error("CubeResource does not support copying of renderTexture.")}else tt.target=rL.TEXTURE_CUBE_MAP_POSITIVE_X+ti,tt.parentTextureArray=this.baseTexture,this.items[ti]=tt;return tt.valid&&!this.valid&&this.resize(tt.realWidth,tt.realHeight),this.items[ti]=tt,this}upload(ti,ta,ts){for(var tc=this.itemDirtyIds,tu=0;tutypeof ImageBitmap&&("string"==typeof tt||tt instanceof ImageBitmap)}static get EMPTY(){var tt;return s_._EMPTY=null!==(tt=s_._EMPTY)&&void 0!==tt?tt:e5.ADAPTER.createCanvas(0,0),s_._EMPTY}constructor(tt,ti){var ta,ts,tc,tu,td;ti=ti||{},"string"==typeof tt?(ta=s_.EMPTY,ts=tt,tc=!0):(ta=tt,ts=null,tc=!1),super(ta),this.url=ts,this.crossOrigin=null===(tu=ti.crossOrigin)||void 0===tu||tu,this.alphaMode="number"==typeof ti.alphaMode?ti.alphaMode:null,this.ownsImageBitmap=null!==(td=ti.ownsImageBitmap)&&void 0!==td?td:tc,this._load=null,!1!==ti.autoLoad&&this.load()}}var sw=class tt extends aP{load(){return this._load||(this._load=new Promise(ti=>{if(this._resolve=()=>{this.update(),ti(this)},tt.SVG_XML.test(this.svg.trim())){if(!btoa)throw Error("Your browser doesn't support base64 conversions.");this.svg="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(this.svg))))}this._loadSvg()})),this._load}_loadSvg(){var tt=new Image;aP.crossOrigin(tt,this.svg,this._crossorigin),tt.src=this.svg,tt.onerror=ti=>{this._resolve&&(tt.onerror=null,this.onError.emit(ti))},tt.onload=()=>{if(this._resolve){var ti=tt.width,ta=tt.height;if(!ti||!ta)throw Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var ts=ti*this.scale,tc=ta*this.scale;(this._overrideWidth||this._overrideHeight)&&(ts=this._overrideWidth||this._overrideHeight/ta*ti,tc=this._overrideHeight||this._overrideWidth/ti*ta),ts=Math.round(ts),tc=Math.round(tc);var tu=this.source;tu.width=ts,tu.height=tc,tu._pixiId="canvas_".concat(iL()),tu.getContext("2d").drawImage(tt,0,0,ti,ta,0,0,ts,tc),this._resolve(),this._resolve=null}}}static getSize(ti){var ta=tt.SVG_SIZE.exec(ti),ts={};return ta&&(ts[ta[1]]=Math.round(parseFloat(ta[3])),ts[ta[5]]=Math.round(parseFloat(ta[7]))),ts}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(ti,ta){return"svg"===ta||"string"==typeof ti&&ti.startsWith("data:image/svg+xml")||"string"==typeof ti&&tt.SVG_XML.test(ti)}constructor(tt,ti){ti=ti||{},super(e5.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=tt,this.scale=ti.scale||1,this._overrideWidth=ti.width,this._overrideHeight=ti.height,this._resolve=null,this._crossorigin=ti.crossorigin,this._load=null,!1!==ti.autoLoad&&this.load()}};sw.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var sx=sw,sE=class tt extends aP{update(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0],!this.destroyed){if(this._updateFPS){var tt=sa.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-tt)}(!this._updateFPS||this._msToNextUpdate<=0)&&(super.update(),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}}_videoFrameRequestCallback(){this.update(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback)}load(){if(this._load)return this._load;var tt=this.source;return(tt.readyState===tt.HAVE_ENOUGH_DATA||tt.readyState===tt.HAVE_FUTURE_DATA)&&tt.width&&tt.height&&(tt.complete=!0),tt.addEventListener("play",this._onPlayStart),tt.addEventListener("pause",this._onPlayStop),tt.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._onCanPlay():(tt.addEventListener("canplay",this._onCanPlay),tt.addEventListener("canplaythrough",this._onCanPlay),tt.addEventListener("error",this._onError,!0)),this._load=new Promise((ti,ta)=>{this.valid?ti(this):(this._resolve=ti,this._reject=ta,tt.load())}),this._load}_onError(tt){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(tt),this._reject&&(this._reject(tt),this._reject=null,this._resolve=null)}_isSourcePlaying(){var tt=this.source;return!tt.paused&&!tt.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0)}_onCanPlay(){var tt=this.source;tt.removeEventListener("canplay",this._onCanPlay),tt.removeEventListener("canplaythrough",this._onCanPlay);var ti=this.valid;this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0,!ti&&this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&tt.play()}dispose(){this._configureAutoUpdate();var tt=this.source;tt&&(tt.removeEventListener("play",this._onPlayStart),tt.removeEventListener("pause",this._onPlayStop),tt.removeEventListener("seeked",this._onSeeked),tt.removeEventListener("canplay",this._onCanPlay),tt.removeEventListener("canplaythrough",this._onCanPlay),tt.removeEventListener("error",this._onError,!0),tt.pause(),tt.src="",tt.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(tt){tt!==this._autoUpdate&&(this._autoUpdate=tt,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(tt){tt!==this._updateFPS&&(this._updateFPS=tt,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.source.requestVideoFrameCallback?(this._isConnectedToTicker&&(sa.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(sa.shared.add(this.update,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(sa.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(ti,ta){return globalThis.HTMLVideoElement&&ti instanceof HTMLVideoElement||tt.TYPES.includes(ta)}constructor(ti,ta){if(ta=ta||{},!(ti instanceof HTMLVideoElement)){var ts=document.createElement("video");!1!==ta.autoLoad&&ts.setAttribute("preload","auto"),!1!==ta.playsinline&&(ts.setAttribute("webkit-playsinline",""),ts.setAttribute("playsinline","")),!0===ta.muted&&(ts.setAttribute("muted",""),ts.muted=!0),!0===ta.loop&&ts.setAttribute("loop",""),!1!==ta.autoPlay&&ts.setAttribute("autoplay",""),"string"==typeof ti&&(ti=[ti]);var tc=ti[0].src||ti[0];aP.crossOrigin(ts,tc,ta.crossorigin);for(var tu=0;tuthis.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(tt){return this.minX>this.maxX||this.minY>this.maxY?nC.EMPTY:((tt=tt||new nC(0,0,1,1)).x=this.minX,tt.y=this.minY,tt.width=this.maxX-this.minX,tt.height=this.maxY-this.minY,tt)}addPoint(tt){this.minX=Math.min(this.minX,tt.x),this.maxX=Math.max(this.maxX,tt.x),this.minY=Math.min(this.minY,tt.y),this.maxY=Math.max(this.maxY,tt.y)}addPointMatrix(tt,ti){var{a:ta,b:ts,c:tc,d:tu,tx:td,ty:tp}=tt,tv=ta*ti.x+tc*ti.y+td,tb=ts*ti.x+tu*ti.y+tp;this.minX=Math.min(this.minX,tv),this.maxX=Math.max(this.maxX,tv),this.minY=Math.min(this.minY,tb),this.maxY=Math.max(this.maxY,tb)}addQuad(tt){var ti=this.minX,ta=this.minY,ts=this.maxX,tc=this.maxY,tu=tt[0],td=tt[1];ti=tuts?tu:ts,tc=td>tc?td:tc,tu=tt[2],td=tt[3],ti=tuts?tu:ts,tc=td>tc?td:tc,tu=tt[4],td=tt[5],ti=tuts?tu:ts,tc=td>tc?td:tc,tu=tt[6],td=tt[7],ti=tuts?tu:ts,tc=td>tc?td:tc,this.minX=ti,this.minY=ta,this.maxX=ts,this.maxY=tc}addFrame(tt,ti,ta,ts,tc){this.addFrameMatrix(tt.worldTransform,ti,ta,ts,tc)}addFrameMatrix(tt,ti,ta,ts,tc){var tu=tt.a,td=tt.b,tp=tt.c,tv=tt.d,tb=tt.tx,tg=tt.ty,t_=this.minX,tE=this.minY,tS=this.maxX,tA=this.maxY,tT=tu*ti+tp*ta+tb,tM=td*ti+tv*ta+tg;t_=tTtS?tT:tS,tA=tM>tA?tM:tA,tT=tu*ts+tp*ta+tb,tM=td*ts+tv*ta+tg,t_=tTtS?tT:tS,tA=tM>tA?tM:tA,tT=tu*ti+tp*tc+tb,tM=td*ti+tv*tc+tg,t_=tTtS?tT:tS,tA=tM>tA?tM:tA,tT=tu*ts+tp*tc+tb,tM=td*ts+tv*tc+tg,t_=tTtS?tT:tS,tA=tM>tA?tM:tA,this.minX=t_,this.minY=tE,this.maxX=tS,this.maxY=tA}addVertexData(tt,ti,ta){for(var ts=this.minX,tc=this.minY,tu=this.maxX,td=this.maxY,tp=ti;tptu?tv:tu,td=tb>td?tb:td}this.minX=ts,this.minY=tc,this.maxX=tu,this.maxY=td}addVertices(tt,ti,ta,ts){this.addVerticesMatrix(tt.worldTransform,ti,ta,ts)}addVerticesMatrix(tt,ti,ta,ts){for(var tc=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,tu=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tc,td=tt.a,tp=tt.b,tv=tt.c,tb=tt.d,tg=tt.tx,t_=tt.ty,tE=this.minX,tS=this.minY,tA=this.maxX,tT=this.maxY,tM=ta;tMts?tt.maxX:ts,this.maxY=tt.maxY>tc?tt.maxY:tc}addBoundsMask(tt,ti){var ta=tt.minX>ti.minX?tt.minX:ti.minX,ts=tt.minY>ti.minY?tt.minY:ti.minY,tc=tt.maxXtv?tc:tv,this.maxY=tu>tb?tu:tb}}addBoundsMatrix(tt,ti){this.addFrameMatrix(ti,tt.minX,tt.minY,tt.maxX,tt.maxY)}addBoundsArea(tt,ti){var ta=tt.minX>ti.x?tt.minX:ti.x,ts=tt.minY>ti.y?tt.minY:ti.y,tc=tt.maxXtv?tc:tv,this.maxY=tu>tb?tu:tb}}pad(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;this.isEmpty()||(this.minX-=tt,this.maxX+=tt,this.minY-=ti,this.maxY+=ti)}addFramePad(tt,ti,ta,ts,tc,tu){tt-=tc,ti-=tu,ta+=tc,ts+=tu,this.minX=this.minXta?this.maxX:ta,this.minY=this.minYts?this.maxY:ts}constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}}class sT extends rw(){static mixin(tt){for(var ti=Object.keys(tt),ta=0;ta2&&void 0!==arguments[2]&&arguments[2];return ta||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(tt,ti)}toLocal(tt,ti,ta,ts){return ti&&(tt=ti.toGlobal(tt,ta,ts)),ts||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(tt,ta)}setParent(tt){if(!tt||!tt.addChild)throw Error("setParent: Argument must be a Container");return tt.addChild(this),tt}removeFromParent(){var tt;null===(tt=this.parent)||void 0===tt||tt.removeChild(this)}setTransform(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,ts=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,tc=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,tu=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,td=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,tp=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,tv=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=tt,this.position.y=ti,this.scale.x=ta||1,this.scale.y=ts||1,this.rotation=tc,this.skew.x=tu,this.skew.y=td,this.pivot.x=tp,this.pivot.y=tv,this}destroy(tt){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new sM),this.tempDisplayObjectParent}enableTempParent(){var tt=this.parent;return this.parent=this._tempDisplayObjectParent,tt}disableTempParent(tt){this.parent=tt}get x(){return this.position.x}set x(tt){this.transform.position.x=tt}get y(){return this.position.y}set y(tt){this.transform.position.y=tt}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(tt){this.transform.position.copyFrom(tt)}get scale(){return this.transform.scale}set scale(tt){this.transform.scale.copyFrom(tt)}get pivot(){return this.transform.pivot}set pivot(tt){this.transform.pivot.copyFrom(tt)}get skew(){return this.transform.skew}set skew(tt){this.transform.skew.copyFrom(tt)}get rotation(){return this.transform.rotation}set rotation(tt){this.transform.rotation=tt}get angle(){return this.transform.rotation*nA}set angle(tt){this.transform.rotation=tt*nT}get zIndex(){return this._zIndex}set zIndex(tt){this._zIndex=tt,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){var tt=this;do{if(!tt.visible)return!1;tt=tt.parent}while(tt);return!0}get mask(){return this._mask}set mask(tt){if(this._mask!==tt){if(this._mask){var ti=this._mask.isMaskData?this._mask.maskObject:this._mask;ti&&(ti._maskRefCount--,0===ti._maskRefCount&&(ti.renderable=!0,ti.isMask=!1))}if(this._mask=tt,this._mask){var ta=this._mask.isMaskData?this._mask.maskObject:this._mask;ta&&(0===ta._maskRefCount&&(ta.renderable=!1,ta.isMask=!0),ta._maskRefCount++)}}}constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new nW,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new sA,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}}class sM extends sT{constructor(){super(...arguments),this.sortDirty=null}}sT.prototype.displayObjectUpdateTransform=sT.prototype.updateTransform;var sk=new nB;function sR(tt,ti){return tt.zIndex===ti.zIndex?tt._lastSortedIndex-ti._lastSortedIndex:tt.zIndex-ti.zIndex}var sC=class tt extends sT{onChildrenChange(tt){}addChild(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta1)for(var ts=0;tsthis.children.length)throw Error("".concat(tt,"addChildAt: The index ").concat(ti," supplied is out of bounds ").concat(this.children.length));return tt.parent&&tt.parent.removeChild(tt),tt.parent=this,this.sortDirty=!0,tt.transform._parentID=-1,this.children.splice(ti,0,tt),this._boundsID++,this.onChildrenChange(ti),tt.emit("added",this),this.emit("childAdded",tt,this,ti),tt}swapChildren(tt,ti){if(tt!==ti){var ta=this.getChildIndex(tt),ts=this.getChildIndex(ti);this.children[ta]=ti,this.children[ts]=tt,this.onChildrenChange(ta=this.children.length)throw Error("The index ".concat(ti," supplied is out of bounds ").concat(this.children.length));var ta=this.getChildIndex(tt);iO(this.children,ta,1),this.children.splice(ti,0,tt),this.onChildrenChange(ti)}getChildAt(tt){if(tt<0||tt>=this.children.length)throw Error("getChildAt: Index (".concat(tt,") does not exist."));return this.children[tt]}removeChild(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta1)for(var ts=0;ts0&&void 0!==arguments[0]?arguments[0]:0,ta=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.children.length,ts=ti,tc=ta,tu=tc-ts;if(tu>0&&tu<=tc){tt=this.children.splice(ts,tu);for(var td=0;td1&&this.children.sort(sR),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var tt=0,ti=this.children.length;tt1&&void 0!==arguments[1]&&arguments[1],ta=super.getLocalBounds(tt);if(!ti)for(var ts=0,tc=this.children.length;ts0&&tc.height>0){this.cullArea?(ta=this.cullArea,ts=this.worldTransform):this._render!==tt.prototype._render&&(ta=this.getBounds(!0));var tu=ti.projection.transform;if(tu&&(ts?(ts=sk.copyFrom(ts),ts.prepend(tu)):ts=tu),ta&&tc.intersects(ta,ts))this._render(ti);else if(this.cullArea)return;for(var td=0,tp=this.children.length;tdsI.defaultSortableChildren,set(tt){rE("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),sI.defaultSortableChildren=tt}}});var sP=class tt{render(){this.renderer.render(this.stage)}get view(){var tt;return null===(tt=this.renderer)||void 0===tt?void 0:tt.view}get screen(){var tt;return null===(tt=this.renderer)||void 0===tt?void 0:tt.screen}destroy(ti,ta){var ts=tt._plugins.slice(0);ts.reverse(),ts.forEach(tt=>{tt.destroy.call(this)}),this.stage.destroy(ta),this.stage=null,this.renderer.destroy(ti),this.renderer=null}constructor(ti){this.stage=new sI,ti=Object.assign({forceCanvas:!1},ti),this.renderer=sc(ti),tt._plugins.forEach(tt=>{tt.init.call(this,ti)})}};sP._plugins=[];var sO=sP;iW.handleByList(iz.Application,sO._plugins);class sN{static init(tt){Object.defineProperty(this,"resizeTo",{set(tt){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=tt,tt&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(this._resizeTo){if(this.cancelResize(),this._resizeTo===globalThis.window)tt=globalThis.innerWidth,ti=globalThis.innerHeight;else{var tt,ti,{clientWidth:ta,clientHeight:ts}=this._resizeTo;tt=ta,ti=ts}this.renderer.resize(tt,ti),this.render()}},this._resizeId=null,this._resizeTo=null,this.resizeTo=tt.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}sN.extension=iz.Application,iW.add(sN);var sB=new nk,sL=new Uint16Array([0,1,2,0,2,3]);class sD extends sI{_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=iN(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=iN(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){var tt=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==tt._updateID){this._textureID!==tt._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=tt._updateID;var ti=this.transform.worldTransform,ta=ti.a,ts=ti.b,tc=ti.c,tu=ti.d,td=ti.tx,tp=ti.ty,tv=this.vertexData,tb=tt.trim,tg=tt.orig,t_=this._anchor,tE=0,tS=0,tA=0,tT=0;if(tb?(tS=tb.x-t_._x*tg.width,tE=tS+tb.width,tT=tb.y-t_._y*tg.height,tA=tT+tb.height):(tS=-t_._x*tg.width,tE=tS+tg.width,tT=-t_._y*tg.height,tA=tT+tg.height),tv[0]=ta*tS+tc*tT+td,tv[1]=tu*tT+ts*tS+tp,tv[2]=ta*tE+tc*tT+td,tv[3]=tu*tT+ts*tE+tp,tv[4]=ta*tE+tc*tA+td,tv[5]=tu*tA+ts*tE+tp,tv[6]=ta*tS+tc*tA+td,tv[7]=tu*tA+ts*tS+tp,this._roundPixels)for(var tM=e5.RESOLUTION,tk=0;tk=ts&&sB.x=tc&&sB.y{var ti,ta=tt.ref;Object.entries(sj).filter(tt=>{var[ti]=tt;return!!ta[ti]}).forEach(tt=>{var[ts,tc]=tt;return iW.add(Object.assign(ta[ts],{extension:null!==(ti=ta[ts].extension)&&void 0!==ti?ti:tc}))})},tt=>{var ti=tt.ref;Object.keys(sj).filter(tt=>!!ti[tt]).forEach(tt=>iW.remove(ti[tt]))});class sU{add(tt){tt.forEach(tt=>{this._assetList.push(tt)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}_next(){var tt=this;return(0,tH._)(function*(){if(tt._assetList.length&&tt._isActive){tt._isLoading=!0;for(var ti=[],ta=Math.min(tt._assetList.length,tt._maxConcurrent),ts=0;ts(Array.isArray(tt)||(tt=[tt]),ti?tt.map(tt=>"string"==typeof tt?ti(tt):tt):tt);class sH{reset(){this._cacheMap.clear(),this._cache.clear()}has(tt){return this._cache.has(tt)}get(tt){var ti=this._cache.get(tt);return ti||console.warn("[Assets] Asset id ".concat(tt," was not found in the Cache")),ti}set(tt,ti){for(var ta,ts=sG(tt),tc=0;tc{ta[tt]=ti}));var td=Object.keys(ta),tp={cacheKeys:td,keys:ts};if(ts.forEach(tt=>{this._cacheMap.set(tt,tp)}),td.forEach(tt=>{this._cache.has(tt)&&this._cache.get(tt)!==ti&&console.warn("[Cache] already has key:",tt),this._cache.set(tt,ta[tt])}),ti instanceof aj){var tv=ti;ts.forEach(tt=>{tv.baseTexture!==aj.EMPTY.baseTexture&&nu.addToCache(tv.baseTexture,tt),aj.addToCache(tv,tt)})}}remove(tt){if(!this._cacheMap.has(tt)){console.warn("[Assets] Asset id ".concat(tt," was not found in the Cache"));return}var ti=this._cacheMap.get(tt);ti.cacheKeys.forEach(tt=>{this._cache.delete(tt)}),ti.keys.forEach(tt=>{this._cacheMap.delete(tt)})}get parsers(){return this._parsers}constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}}var sz=new sH,sV=tt=>!Array.isArray(tt);class sq{reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(tt,ti){var ta={promise:null,parser:null},ts=this;return ta.promise=(0,tH._)(function*(){var tc=null,tu=null;if(ti.loadParser&&((tu=ts._parserHash[ti.loadParser])||console.warn('[Assets] specified load parser "'.concat(ti.loadParser,'" not found while loading ').concat(tt))),!tu){for(var td=0;td({alias:[tt],src:tt})),tp=td.length,tv=td.map(function(){var tt=(0,tH._)(function*(tt){var tu=rR.toAbsolute(tt.src);if(!tc[tt.src])try{ta.promiseCache[tu]||(ta.promiseCache[tu]=ta._getLoadPromiseAndParser(tu,tt)),tc[tt.src]=yield ta.promiseCache[tu].promise,ti&&ti(++ts/tp)}catch(ti){throw delete ta.promiseCache[tu],delete tc[tt.src],Error("[Loader.load] Failed to load ".concat(tu,".\n").concat(ti))}});return function(ti){return tt.apply(this,arguments)}}());return yield Promise.all(tv),tu?tc[td[0].src]:tc})()}unload(tt){var ti=this;return(0,tH._)(function*(){var ta=sG(tt,tt=>({alias:[tt],src:tt})).map(function(){var tt=(0,tH._)(function*(tt){var ta=rR.toAbsolute(tt.src),ts=ti.promiseCache[ta];if(ts){var tc,tu,td=yield ts.promise;delete ti.promiseCache[ta],null===(tc=ts.parser)||void 0===tc||null===(tu=tc.unload)||void 0===tu||tu.call(tc,td,tt,ti)}});return function(ti){return tt.apply(this,arguments)}}());yield Promise.all(ta)})()}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(tt=>tt.name).reduce((tt,ti)=>(tt[ti.name]&&console.warn('[Assets] loadParser name conflict "'.concat(ti.name,'"')),(0,tb._)((0,tv._)({},tt),{[ti.name]:ti})),{})}constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(tt,ti,ta)=>(this._parsersValidated=!1,tt[ti]=ta,!0)}),this.promiseCache={}}}var sW=((cT=sW||{})[cT.Low=0]="Low",cT[cT.Normal=1]="Normal",cT[cT.High=2]="High",cT);function sY(tt,ti){if(Array.isArray(ti)){for(var ta of ti)if(tt.startsWith("data:".concat(ta)))return!0;return!1}return tt.startsWith("data:".concat(ti))}var sX=".json",sQ="application/json",sK={extension:{type:iz.LoadParser,priority:sW.Low},name:"loadJson",test:tt=>sY(tt,sQ)||sF(tt,sX),load:tt=>(0,tH._)(function*(){return yield(yield e5.ADAPTER.fetch(tt)).json()})()};iW.add(sK);var sZ=".txt",sJ="text/plain",s$={name:"loadTxt",extension:{type:iz.LoadParser,priority:sW.Low},test:tt=>sY(tt,sJ)||sF(tt,sZ),load:tt=>(0,tH._)(function*(){return yield(yield e5.ADAPTER.fetch(tt)).text()})()};iW.add(s$);var s0=["normal","bold","100","200","300","400","500","600","700","800","900"],s1=[".ttf",".otf",".woff",".woff2"],s2=["font/ttf","font/otf","font/woff","font/woff2"],s3=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function s8(tt){var ti=rR.extname(tt),ta=rR.basename(tt,ti).replace(/(-|_)/g," ").toLowerCase().split(" ").map(tt=>tt.charAt(0).toUpperCase()+tt.slice(1)),ts=ta.length>0;for(var tc of ta)if(!tc.match(s3)){ts=!1;break}var tu=ta.join(" ");return ts||(tu='"'.concat(tu.replace(/[\\"]/g,"\\$&"),'"')),tu}var s5={extension:{type:iz.LoadParser,priority:sW.Low},name:"loadWebFont",test:tt=>sY(tt,s2)||sF(tt,s1),load:(tt,ti)=>(0,tH._)(function*(){var ta=e5.ADAPTER.getFontFaceSet();if(ta){for(var ts,tc,tu,td,tp,tg,t_=[],tE=null!==(td=null===(ts=ti.data)||void 0===ts?void 0:ts.family)&&void 0!==td?td:s8(tt),tS=null!==(tp=null===(tc=ti.data)||void 0===tc?void 0:null===(tu=tc.weights)||void 0===tu?void 0:tu.filter(tt=>s0.includes(tt)))&&void 0!==tp?tp:["normal"],tA=null!==(tg=ti.data)&&void 0!==tg?tg:{},tT=0;tTe5.ADAPTER.getFontFaceSet().delete(tt))}};iW.add(s5);var s4,s6,s7,s9,ct,ci,ca,co,cs,cc,cu,cl,cd,cf,cp,cv,cg,cm,c_,cw,cE,cS,cA,cT,cM,ck,cR,cC,cI,cP,cO,cN,cB=0,cL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",cD={id:"checkImageBitmap",code:"\n async function checkImageBitmap()\n {\n try\n {\n if (typeof createImageBitmap !== 'function') return false;\n\n const response = await fetch('".concat(cL,"');\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n\n return imageBitmap.width === 1 && imageBitmap.height === 1;\n }\n catch (e)\n {\n return false;\n }\n }\n checkImageBitmap().then((result) => { self.postMessage(result); });\n ")},cj={id:"loadImageBitmap",code:"\n async function loadImageBitmap(url)\n {\n const response = await fetch(url);\n\n if (!response.ok)\n {\n throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: `\n + `${response.status} ${response.statusText}`);\n }\n\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n\n return imageBitmap;\n }\n self.onmessage = async (event) =>\n {\n try\n {\n const imageBitmap = await loadImageBitmap(event.data.data[0]);\n\n self.postMessage({\n data: imageBitmap,\n uuid: event.data.uuid,\n id: event.data.id,\n }, [imageBitmap]);\n }\n catch(e)\n {\n self.postMessage({\n error: e,\n uuid: event.data.uuid,\n id: event.data.id,\n });\n }\n };"};class cU{isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise(tt=>{var ti=URL.createObjectURL(new Blob([cD.code],{type:"application/javascript"})),ta=new Worker(ti);ta.addEventListener("message",ts=>{ta.terminate(),URL.revokeObjectURL(ti),tt(ts.data)})})),this._isImageBitmapSupported}loadImageBitmap(tt){return this._run("loadImageBitmap",[tt])}_initWorkers(){var tt=this;return(0,tH._)(function*(){tt._initialized||(tt._initialized=!0)})()}getWorker(){void 0===cN&&(cN=navigator.hardwareConcurrency||4);var tt=this.workerPool.pop();return!tt&&this._createdWorkers{this.complete(tt.data),this.returnWorker(tt.target),this.next()})),tt}returnWorker(tt){this.workerPool.push(tt)}complete(tt){void 0!==tt.error?this.resolveHash[tt.uuid].reject(tt.error):this.resolveHash[tt.uuid].resolve(tt.data),this.resolveHash[tt.uuid]=null}_run(tt,ti){var ta=this;return(0,tH._)(function*(){yield ta._initWorkers();var ts=new Promise((ts,tc)=>{ta.queue.push({id:tt,arguments:ti,resolve:ts,reject:tc})});return ta.next(),ts})()}next(){if(this.queue.length){var tt=this.getWorker();if(tt){var ti=this.queue.pop(),ta=ti.id;this.resolveHash[cB]={resolve:ti.resolve,reject:ti.reject},tt.postMessage({data:ti.arguments,uuid:cB++,id:ta})}}}constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}}var cF=new cU;function cG(tt,ti,ta){tt.resource.internal=!0;var ts=new aj(tt),tc=()=>{delete ti.promiseCache[ta],sz.has(ta)&&sz.remove(ta)};return ts.baseTexture.once("destroyed",()=>{ta in ti.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),tc())}),ts.once("destroyed",()=>{tt.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),tc())}),ts}var cH=[".jpeg",".jpg",".png",".webp",".avif"],cz=["image/jpeg","image/png","image/webp","image/avif"];function cV(tt){return cq.apply(this,arguments)}function cq(){return(cq=(0,tH._)(function*(tt){var ti=yield e5.ADAPTER.fetch(tt);if(!ti.ok)throw Error("[loadImageBitmap] Failed to fetch ".concat(tt,": ").concat(ti.status," ").concat(ti.statusText));var ta=yield ti.blob();return yield createImageBitmap(ta)})).apply(this,arguments)}var cW={name:"loadTextures",extension:{type:iz.LoadParser,priority:sW.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test:tt=>sY(tt,cz)||sF(tt,cH),load(tt,ti,ta){return(0,tH._)(function*(){var ts,tc,tu,td=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;tc=td?this.config.preferWorkers&&(yield cF.isImageBitmapSupported())?yield cF.loadImageBitmap(tt):yield cV(tt):yield new Promise((ti,ta)=>{var ts=new Image;ts.crossOrigin=this.config.crossOrigin,ts.src=tt,ts.complete?ti(ts):(ts.onload=()=>ti(ts),ts.onerror=tt=>ta(tt))});var tp=(0,tv._)({},ti.data);null!==(tu=tp.resolution)&&void 0!==tu||(tp.resolution=iH(tt)),td&&(null===(ts=tp.resourceOptions)||void 0===ts?void 0:ts.ownsImageBitmap)===void 0&&(tp.resourceOptions=(0,tv._)({},tp.resourceOptions),tp.resourceOptions.ownsImageBitmap=!0);var tb=new nu(tc,tp);return tb.resource.src=tt,cG(tb,ta,tt)}).apply(this)},unload(tt){tt.destroy(!0)}};iW.add(cW);var cQ=".svg",cK="image/svg+xml",cZ={extension:{type:iz.LoadParser,priority:sW.High},name:"loadSVG",test:tt=>sY(tt,cK)||sF(tt,cQ),testParse:tt=>(0,tH._)(function*(){return sx.test(tt)})(),parse:(tt,ti,ta)=>(0,tH._)(function*(){var ts,tc=new sx(tt,null==ti?void 0:null===(ts=ti.data)||void 0===ts?void 0:ts.resourceOptions);yield tc.load();var tu=new nu(tc,(0,tv._)({resolution:iH(tt)},null==ti?void 0:ti.data));return tu.resource.src=ti.src,cG(tu,ta,ti.src)})(),load:(tt,ti)=>(0,tH._)(function*(){return(yield e5.ADAPTER.fetch(tt)).text()})(),unload:cW.unload};iW.add(cZ);var cJ=[".mp4",".m4v",".webm",".ogv"],c$=["video/mp4","video/webm","video/ogg"],c0={name:"loadVideo",extension:{type:iz.LoadParser,priority:sW.High},config:{defaultAutoPlay:!0},test:tt=>sY(tt,c$)||sF(tt,cJ),load(tt,ti,ta){return(0,tH._)(function*(){var ts=yield(yield e5.ADAPTER.fetch(tt)).blob(),tc=URL.createObjectURL(ts);try{var tu,td,tp=(0,tv._)({autoPlay:this.config.defaultAutoPlay},null==ti?void 0:null===(td=ti.data)||void 0===td?void 0:td.resourceOptions),tb=new sS(tc,tp);yield tb.load();var tg=new nu(tb,(0,tv._)({alphaMode:yield rK(),resolution:iH(tt)},null==ti?void 0:ti.data));tg.resource.src=tt,(tu=cG(tg,ta,tt)).baseTexture.once("destroyed",()=>{URL.revokeObjectURL(tc)})}catch(tt){throw URL.revokeObjectURL(tc),tt}return tu}).apply(this)},unload(tt){tt.destroy(!0)}};function c2(tt){return tt&&"undefined"!=typeof Symbol&&tt.constructor===Symbol?"symbol":typeof tt}function c3(tt,ti,ta,ts,tc){for(var tu=ti[ta],td=0;td{var ti=tt.substring(1,tt.length-1).split(",");tc.push(ti)}),c3(tt,tc,0,ta,ts)}else ts.push(tt);return ts}iW.add(c0);class c5{setBundleIdentifier(tt){var ti,ta,ts;if(this._bundleIdConnector=null!==(ti=tt.connector)&&void 0!==ti?ti:this._bundleIdConnector,this._createBundleAssetId=null!==(ta=tt.createBundleAssetId)&&void 0!==ta?ta:this._createBundleAssetId,this._extractAssetIdFromBundle=null!==(ts=tt.extractAssetIdFromBundle)&&void 0!==ts?ts:this._extractAssetIdFromBundle,"bar"!==this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar")))throw Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta{this._preferredOrder.push(tt),tt.priority||(tt.priority=Object.keys(tt.params))}),this._resolverHash={}}set basePath(tt){this._basePath=tt}get basePath(){return this._basePath}set rootPath(tt){this._rootPath=tt}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(tt){if("string"==typeof tt)this._defaultSearchParams=tt;else{var ti=tt;this._defaultSearchParams=Object.keys(ti).map(tt=>"".concat(encodeURIComponent(tt),"=").concat(encodeURIComponent(ti[tt]))).join("&")}}addManifest(tt){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=tt,tt.bundles.forEach(tt=>{this.addBundle(tt.name,tt.assets)})}addBundle(tt,ti){var ta=[];Array.isArray(ti)?ti.forEach(ti=>{var ts,tc,tu,td=null!==(ts=ti.src)&&void 0!==ts?ts:ti.srcs,tp=null!==(tc=ti.alias)&&void 0!==tc?tc:ti.name;if("string"==typeof tp){var tg=this._createBundleAssetId(tt,tp);ta.push(tg),tu=[tp,tg]}else{var t_=tp.map(ti=>this._createBundleAssetId(tt,ti));ta.push(...t_),tu=[...tp,...t_]}this.add((0,tb._)((0,tv._)({},ti),{alias:tu,src:td}))}):Object.keys(ti).forEach(ts=>{var tc=[ts,this._createBundleAssetId(tt,ts)];if("string"==typeof ti[ts])this.add({alias:tc,src:ti[ts]});else if(Array.isArray(ti[ts]))this.add({alias:tc,src:ti[ts]});else{var tu,td=ti[ts],tp=null!==(tu=td.src)&&void 0!==tu?tu:td.srcs;this.add((0,tb._)((0,tv._)({},td),{alias:tc,src:Array.isArray(tp)?tp:[tp]}))}ta.push(...tc)}),this._bundles[tt]=ta}add(tt,ti,ta,ts,tc){var tu,td=[];"string"==typeof tt||Array.isArray(tt)&&"string"==typeof tt[0]?(rE("7.2.0","Assets.add now uses an object instead of individual parameters.\nPlease use Assets.add({ alias, src, data, format, loadParser }) instead."),td.push({alias:tt,src:ti,data:ta,format:ts,loadParser:tc})):Array.isArray(tt)?td.push(...tt):td.push(tt),tu=tt=>{this.hasKey(tt)&&console.warn("[Resolver] already has key: ".concat(tt," overwriting"))},sG(td).forEach(tt=>{var{alias:ti,name:ta,src:ts,srcs:tc}=tt,{data:td,format:tp,loadParser:tb}=tt,tg=sG(ts||tc).map(tt=>"string"==typeof tt?c8(tt):Array.isArray(tt)?tt:[tt]),t_=sG(ti||ta);Array.isArray(ti)?ti.forEach(tu):tu(ti);var tE=[];tg.forEach(tt=>{tt.forEach(tt=>{var ti,ta,ts,tc={};if("object"!=typeof tt){tc.src=tt;for(var tu=0;tu{this._assetMap[tt]=tE})})}resolveBundle(tt){var ti=sV(tt);tt=sG(tt);var ta={};return tt.forEach(tt=>{var ti=this._bundles[tt];if(ti){var ts=this.resolve(ti),tc={};for(var tu in ts){var td=ts[tu];tc[this._extractAssetIdFromBundle(tt,tu)]=td}ta[tt]=tc}}),ti?ta[tt[0]]:ta}resolveUrl(tt){var ti=this.resolve(tt);if("string"!=typeof tt){var ta={};for(var ts in ti)ta[ts]=ti[ts].src;return ta}return ti.src}resolve(tt){var ti=sV(tt);tt=sG(tt);var ta={};return tt.forEach(tt=>{if(!this._resolverHash[tt]){if(this._assetMap[tt]){var ti,ts=this._assetMap[tt],tc=ts[0],tu=this._getPreferredOrder(ts);null==tu||tu.priority.forEach(tt=>{tu.params[tt].forEach(ti=>{var ta=ts.filter(ta=>!!ta[tt]&&ta[tt]===ti);ta.length&&(ts=ta)})}),this._resolverHash[tt]=null!==(ti=ts[0])&&void 0!==ti?ti:tc}else this._resolverHash[tt]=this.buildResolvedAsset({alias:[tt],src:tt},{})}ta[tt]=this._resolverHash[tt]}),ti?ta[tt[0]]:ta}hasKey(tt){return!!this._assetMap[tt]}hasBundle(tt){return!!this._bundles[tt]}_getPreferredOrder(tt){for(var ti=this,ta=function(ta){var ts=tt[0],tc=ti._preferredOrder.find(tt=>tt.params.format.includes(ts.format));if(tc)return{v:tc}},ts=0;ts"".concat(tt).concat(this._bundleIdConnector).concat(ti),extractAssetIdFromBundle:(tt,ti)=>ti.replace("".concat(tt).concat(this._bundleIdConnector),"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}}class c4{init(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ti=this;return(0,tH._)(function*(){if(ti._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(ti._initialized=!0,tt.defaultSearchParams&&ti.resolver.setDefaultSearchParams(tt.defaultSearchParams),tt.basePath&&(ti.resolver.basePath=tt.basePath),tt.bundleIdentifier&&ti.resolver.setBundleIdentifier(tt.bundleIdentifier),tt.manifest){var ta,ts,tc,tu=tt.manifest;"string"==typeof tu&&(tu=yield ti.load(tu)),ti.resolver.addManifest(tu)}var td=null!==(tc=null===(ta=tt.texturePreference)||void 0===ta?void 0:ta.resolution)&&void 0!==tc?tc:1,tp="number"==typeof td?[td]:td,tv=yield ti._detectFormats({preferredFormats:null===(ts=tt.texturePreference)||void 0===ts?void 0:ts.format,skipDetections:tt.skipDetections,detections:ti._detections});ti.resolver.prefer({params:{format:tv,resolution:tp}}),tt.preferences&&ti.setPreferences(tt.preferences)})()}add(tt,ti,ta,ts,tc){this.resolver.add(tt,ti,ta,ts,tc)}load(tt,ti){var ta=this;return(0,tH._)(function*(){ta._initialized||(yield ta.init());var ts=sV(tt),tc=sG(tt).map(tt=>{if("string"!=typeof tt){ta.add(tt);var ti=tt.src||tt.srcs,ts=tt.alias||tt.name;return ts&&Array.isArray(ts)?ts[0]:ti&&Array.isArray(ti)?ti[0]:ts||ti}return ta.resolver.hasKey(tt)||ta.add({alias:tt,src:tt}),tt}),tu=ta.resolver.resolve(tc),td=yield ta._mapLoadToResolve(tu,ti);return ts?td[tc[0]]:td})()}addBundle(tt,ti){this.resolver.addBundle(tt,ti)}loadBundle(tt,ti){var ta=this;return(0,tH._)(function*(){ta._initialized||(yield ta.init());var ts=!1;"string"==typeof tt&&(ts=!0,tt=[tt]);var tc=ta.resolver.resolveBundle(tt),tu={},td=Object.keys(tc),tp=0,tv=0,tb=()=>{null==ti||ti(++tp/tv)},tg=td.map(tt=>{var ti=tc[tt];return tv+=Object.keys(ti).length,ta._mapLoadToResolve(ti,tb).then(ti=>{tu[tt]=ti})});return yield Promise.all(tg),ts?tu[tt[0]]:tu})()}backgroundLoad(tt){var ti=this;return(0,tH._)(function*(){ti._initialized||(yield ti.init()),"string"==typeof tt&&(tt=[tt]);var ta=ti.resolver.resolve(tt);ti._backgroundLoader.add(Object.values(ta))})()}backgroundLoadBundle(tt){var ti=this;return(0,tH._)(function*(){ti._initialized||(yield ti.init()),"string"==typeof tt&&(tt=[tt]),Object.values(ti.resolver.resolveBundle(tt)).forEach(tt=>{ti._backgroundLoader.add(Object.values(tt))})})()}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(tt){if("string"==typeof tt)return sz.get(tt);for(var ti={},ta=0;ta{var ta=tu[tt.src],ts=[tt.src];tt.alias&&ts.push(...tt.alias),td[tc[ti]]=ta,sz.set(ts,ta)}),td})()}unload(tt){var ti=this;return(0,tH._)(function*(){ti._initialized||(yield ti.init());var ta=sG(tt).map(tt=>"string"!=typeof tt?tt.src:tt),ts=ti.resolver.resolve(ta);yield ti._unloadFromResolved(ts)})()}unloadBundle(tt){var ti=this;return(0,tH._)(function*(){ti._initialized||(yield ti.init()),tt=sG(tt);var ta=ti.resolver.resolveBundle(tt),ts=Object.keys(ta).map(tt=>ti._unloadFromResolved(ta[tt]));yield Promise.all(ts)})()}_unloadFromResolved(tt){var ti=this;return(0,tH._)(function*(){var ta=Object.values(tt);ta.forEach(tt=>{sz.remove(tt.src)}),yield ti.loader.unload(ta)})()}_detectFormats(tt){return(0,tH._)(function*(){var ti=[];for(var ta of(tt.preferredFormats&&(ti=Array.isArray(tt.preferredFormats)?tt.preferredFormats:[tt.preferredFormats]),tt.detections))tt.skipDetections||(yield ta.test())?ti=yield ta.add(ti):tt.skipDetections||(ti=yield ta.remove(ti));return ti=ti.filter((tt,ta)=>ti.indexOf(tt)===ta)})()}get detections(){return this._detections}get preferWorkers(){return cW.config.preferWorkers}set preferWorkers(tt){rE("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:tt})}setPreferences(tt){this.loader.parsers.forEach(ti=>{ti.config&&Object.keys(ti.config).filter(ti=>ti in tt).forEach(ta=>{ti.config[ta]=tt[ta]})})}constructor(){this._detections=[],this._initialized=!1,this.resolver=new c5,this.loader=new sq,this.cache=sz,this._backgroundLoader=new sU(this.loader),this._backgroundLoader.active=!0,this.reset()}}var c6=new c4;iW.handleByList(iz.LoadParser,c6.loader.parsers).handleByList(iz.ResolveParser,c6.resolver.parsers).handleByList(iz.CacheParser,c6.cache.parsers).handleByList(iz.DetectionParser,c6.detections);var c7={extension:iz.CacheParser,test:tt=>Array.isArray(tt)&&tt.every(tt=>tt instanceof aj),getCacheableAssets:(tt,ti)=>{var ta={};return tt.forEach(tt=>{ti.forEach((ti,ts)=>{ta[tt+(0===ts?"":ts+1)]=ti})}),ta}};iW.add(c7);var c9={extension:{type:iz.DetectionParser,priority:1},test:(0,tH._)(function*(){var tt="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=";return new Promise(ti=>{var ta=new Image;ta.onload=()=>{ti(!0)},ta.onerror=()=>{ti(!1)},ta.src=tt})}),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,"avif"]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>"avif"!==tt)});return function(ti){return tt.apply(this,arguments)}}()};iW.add(c9);var ut={extension:{type:iz.DetectionParser,priority:0},test:(0,tH._)(function*(){var tt="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=";return new Promise(ti=>{var ta=new Image;ta.onload=()=>{ti(!0)},ta.onerror=()=>{ti(!1)},ta.src=tt})}),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,"webp"]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>"webp"!==tt)});return function(ti){return tt.apply(this,arguments)}}()};iW.add(ut);var ui=["png","jpg","jpeg"],ua={extension:{type:iz.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,...ui]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>!ui.includes(tt))});return function(ti){return tt.apply(this,arguments)}}()};iW.add(ua);var uo="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function us(tt){return!uo&&""!==document.createElement("video").canPlayType(tt)}var uc={extension:{type:iz.DetectionParser,priority:0},test:(0,tH._)(function*(){return us("video/webm")}),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,"webm"]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>"webm"!==tt)});return function(ti){return tt.apply(this,arguments)}}()};iW.add(uc);var uu={extension:{type:iz.DetectionParser,priority:0},test:(0,tH._)(function*(){return us("video/mp4")}),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,"mp4","m4v"]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>"mp4"!==tt&&"m4v"!==tt)});return function(ti){return tt.apply(this,arguments)}}()};iW.add(uu);var uh={extension:{type:iz.DetectionParser,priority:0},test:(0,tH._)(function*(){return us("video/ogg")}),add:function(){var tt=(0,tH._)(function*(tt){return[...tt,"ogv"]});return function(ti){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tH._)(function*(tt){return tt.filter(tt=>"ogv"!==tt)});return function(ti){return tt.apply(this,arguments)}}()};iW.add(uh);var ul={extension:iz.ResolveParser,test:cW.test,parse:tt=>{var ti;return{resolution:parseFloat(null!==(tc=null===(ti=e5.RETINA_PREFIX.exec(tt))||void 0===ti?void 0:ti[1])&&void 0!==tc?tc:"1"),format:tt.split(".").pop(),src:tt}}};iW.add(ul);class ud{setAnimationItemsPosition(tt){this.animationItems.length>0&&this.animationItems.forEach(ti=>{var{figure:ta}=ti,ts=(0,tz._)(ti,["figure"]),tc=sD.from(ta);tc.scale.set(.5*tt,.5*tt);var tu=this.calculatePositionFromPercent("width",ts.from.left),td=this.calculatePositionFromPercent("height",ts.from.top);tc.position={x:tu,y:td},tc.zIndex=ts.styles.zIndex,this.containerFigures.addChild(tc)})}init(tt){var{animationConfig:ti,items:ta}=tt;this.animationItems=ti.map(tt=>(0,tb._)((0,tv._)({},tt),{figure:ta[tt.key]}))}run(tt){var{rootContainerEl:ti,params:ta}=tt,ts=this;return(0,tH._)(function*(){ts.isRun||(ts.isRun=!0,ts.containerNode=ti,ts.app=new sO({backgroundAlpha:0,antialias:!0,width:ti.clientWidth,height:ti.clientHeight,resolution:uf(),resizeTo:ti,autoDensity:!0}),globalThis.__PIXI_APP__=ts.app,ti.appendChild(ts.app.view),ts.containerFigures=new sI,ts.containerFigures.sortableChildren=!0,ts.app.stage.addChild(ts.containerFigures),ts.setAnimationItemsPosition(ta.scale),ts.animate())})()}animate(){this.containerFigures.children.forEach((tt,ti)=>{var ta=this.animationItems[ti];if(0!==Object.keys(ta.to).length){var{x:ts,y:tc}=tt.position,tu=ta.to.left?this.calculatePositionFromPercent("width",ta.to.left):ts,td=ta.to.top?this.calculatePositionFromPercent("height",ta.to.top):tc;e8({targets:tt,angle:ta.to.rotate||0,x:tu,y:td,direction:"alternate",duration:(ta.animationTime||this.animationTime)/2,easing:"linear",loop:!0})}})}destroy(){this.containerNode.childNodes.forEach(tt=>tt.remove()),this.isRun=!1,this.animationItems=[]}constructor(){this.animationTime=12e3,this.calculatePositionFromPercent=(tt,ti)=>ti/100*this.app.screen[tt],this.animationItems=[],this.isRun=!1}}function uf(){var tt=window.devicePixelRatio||1;return tt>2?2:tt}var up=ta(38725),uv=ta(31306);uv.RU.Gift,uv.Wg.Yellow,uv.TY.Down,tP.vA.Alone,uv.RU.Gift,uv.Wg.Yellow,uv.TY.Creme,tP.vA.Alone,uv.RU.GiftWithPromoCode,uv.Wg.Green,uv.TY.Creme,tP.vA.Beauty,uv.RU.GiftWithPromoCode,uv.Wg.Blue,uv.TY.Boom,tP.vA.Restaurants,uv.RU.Gift,uv.Wg.DarkOrange,uv.TY.Popcorn,tP.vA.Restaurants,uv.RU.GiftWithPromoCode,uv.Wg.Black,uv.TY.Boom,tP.vA.Beauty,uv.RU.GiftWithModal,uv.Wg.DarkBlue,uv.TY.Grow,tP.vA.Friends,tP.vA.Adventures,uv.RU.GiftWithModalWithPromoCode,uv.Wg.Pink,uv.TY.Lent,tP.vA.Friends,uv.RU.Gift,uv.Wg.Purple,uv.TY.Popcorn,tP.vA.Friends,uv.RU.Gift,uv.Wg.Aqua,uv.TY.Down,tP.vA.Noisy,uv.RU.Gift,uv.Wg.Black,tP.vA.Noisy,uv.RU.Gift,uv.Wg.Yellow,uv.TY.Creme,tP.vA.Noisy,uv.RU.Gift,uv.Wg.Pink,uv.TY.Up,tP.vA.Noisy,uv.RU.GiftWithPromoCode,uv.Wg.Orange,uv.TY.Popcorn,tP.vA.Beauty,uv.RU.GiftWithModalWithPromoCode,uv.Wg.Purple,uv.TY.Boom,uv.RU.GiftWithModalWithPromoCode,uv.Wg.Red,uv.TY.Popcorn,uv.RU.GiftWithModalWithPromoCode,uv.Wg.Coffee,uv.TY.Popcorn,tP.vA.Business,uv.RU.GiftWithModalWithPromoCode,uv.Wg.Black,uv.TY.Popcorn;var ub={collection:{items:[{activeUntil:"2025-12-09",ctaLinkWeb:"https://www.google.com/",ctaLinkMobile:"https://www.google.com/",ctaTitle:"Получить подарок",description:"Хорошо проведите время с\xa0дополнительной выгодой",id:"bonus-123",title:"Кэшбэк +5% за\xa0билеты в\xa0театр или на\xa0концерт",type:tN.Do.CommonBonus,status:tN.I4.Issued,tags:[],visual:{backgroundColor:tN.$w.yellow,fontTextColor:null,font:null}},{activeUntil:"2026-02-01",ctaLinkWeb:"https://www.google.com/",ctaLinkMobile:"https://www.google.com/",ctaTitle:"Получить подарок",description:"Congratulations! You have unlocked a special bonus.",id:"bonus-123",title:"Special Bonus",type:tN.Do.CommonBonus,status:tN.I4.Issued,tags:[],visual:{backgroundColor:tN.$w.purple,fontTextColor:null,font:null}},{activeUntil:null,ctaLinkWeb:"https://www.example.com/",ctaLinkMobile:"https://www.example.com/",ctaTitle:"Получить бонус",description:"Получите эксклюзивный доступ к закрытым распродажам",id:"bonus-456",title:"Доступ к закрытой распродаже",type:tN.Do.CommonBonus,status:tN.I4.Issued,tags:[],visual:{backgroundColor:tN.$w.green,fontTextColor:null,font:null}},{activeUntil:"2026-03-15",ctaLinkWeb:"https://www.shop-example.com/",ctaLinkMobile:"https://www.shop-example.com/",ctaTitle:"Активировать предложение",description:"Особое предложение для постоянных клиентов",id:"bonus-789",title:"Специальное предложение для вас",type:tN.Do.CommonBonus,status:tN.I4.Pending,tags:[],visual:{backgroundColor:tN.$w.blue,fontTextColor:null,font:null}},{activeUntil:"2026-04-20",ctaLinkWeb:"https://www.special-offer.com/",ctaLinkMobile:"https://www.special-offer.com/",ctaTitle:"Активировать бонус",description:"Особое предложение для постоянных клиентов с дополнительными привилегиями",id:"bonus-101",title:"Эксклюзивный бонус для вас",type:tN.Do.CommonBonus,status:tN.I4.Inactive,tags:[],visual:{backgroundColor:tN.$w.red,fontTextColor:null,font:null}}],status:tN.Nb.Completed}},ug={collection:{items:[{activeUntil:"2026-12-09",ctaLinkWeb:"https://www.google.com/",ctaLinkMobile:"https://www.google.com/",ctaTitle:"Получить подарок",description:"Хорошо проведите время с\xa0дополнительной выгодой",id:"image-bonus-456",title:"Кэшбэк +5% за\xa0билеты в\xa0театр или на\xa0концерт",status:tN.I4.Issued,tags:[],type:tN.Do.ImageBonus,visual:{backgroundColor:tN.$w.aqua,fontTextColor:"#000000",font:null,imageSource:{png:"static/birthday/premium-320-2025-07-18-11-01-36.png 320w, static/birthday/premium-854-2025-07-18-11-01-36.png 854w, static/birthday/premium-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/premium-320-2025-07-18-11-01-36.avif 320w, static/birthday/premium-854-2025-07-18-11-01-36.avif 854w, static/birthday/premium-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/premium-320-2025-07-18-11-01-36.webp 320w, static/birthday/premium-854-2025-07-18-11-01-36.webp 854w, static/birthday/premium-920-2025-07-18-11-01-36.webp 1387w"}}},{activeUntil:null,ctaLinkWeb:"https://www.example.com/",ctaLinkMobile:"https://www.example.com/",ctaTitle:"Получить бонус",description:"Эксклюзивный подарок для ценителей стиля и комфорта",id:"image-bonus-789",title:"Скидка 15% на заказ одежды в\xa0онлайн-магазине",status:tN.I4.Issued,tags:[],type:tN.Do.ImageBonus,visual:{backgroundColor:tN.$w.orange,fontTextColor:"#FFFFFF",font:null,imageSource:{png:"static/birthday/premium-320-2025-07-18-11-01-36.png 320w, static/birthday/premium-854-2025-07-18-11-01-36.png 854w, static/birthday/premium-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/premium-320-2025-07-18-11-01-36.avif 320w, static/birthday/premium-854-2025-07-18-11-01-36.avif 854w, static/birthday/premium-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/premium-320-2025-07-18-11-01-36.webp 320w, static/birthday/premium-854-2025-07-18-11-01-36.webp 854w, static/birthday/premium-920-2025-07-18-11-01-36.webp 1387w"}}},{activeUntil:"2026-05-15",ctaLinkWeb:"https://www.example-shop.com/",ctaLinkMobile:"https://www.example-shop.com/",ctaTitle:"Активировать бонус",description:"Особенный подарок для любителей технологий и инноваций",id:"image-bonus-101",title:"Скидка 20% на смартфоны в\xa0официальном магазине",status:tN.I4.Inactive,tags:[],type:tN.Do.ImageBonus,visual:{backgroundColor:tN.$w.black,fontTextColor:"#FFFFFF",font:null,imageSource:{png:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.png 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.png 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.png 1387w",avif:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.avif 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.avif 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.avif 1387w",webp:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.webp 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.webp 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.webp 1387w"}}},{activeUntil:"2026-07-20",ctaLinkWeb:"https://www.tech-store.com/",ctaLinkMobile:"https://www.tech-store.com/",ctaTitle:"Получить скидку",description:"Эксклюзивная скидка на новейшие гаджеты и аксессуары",id:"image-bonus-202",title:"Скидка 25% на электронику",status:tN.I4.Pending,tags:[],type:tN.Do.ImageBonus,visual:{backgroundColor:tN.$w.pink,fontTextColor:"#000000",font:null,imageSource:{png:"static/birthday/sme-320-2025-07-18-11-04-11.png 320w, static/birthday/sme-854-2025-07-18-11-04-11.png 854w, static/birthday/sme-920-2025-07-18-11-04-11.png 1387w",avif:"static/birthday/sme-320-2025-07-18-11-04-11.avif 320w, static/birthday/sme-854-2025-07-18-11-04-11.avif 854w, static/birthday/sme-920-2025-07-18-11-04-11.avif 1387w",webp:"static/birthday/sme-320-2025-07-18-11-04-11.webp 320w, static/birthday/sme-854-2025-07-18-11-04-11.webp 854w, static/birthday/sme-920-2025-07-18-11-04-11.webp 1387w"}}}],status:tN.Nb.Completed}};class um{init(){var tt=this;return(0,tH._)(function*(){document.cookie="sso_cookies_migrated=true; domain=.tbank.ru";var{isLocal:ti,isIframe:ta,isProd:ts}=tt.configService.getConfigEnvironment();if(ta)return tt.projectAuthModel.auth();tt.pixiAssetsLoaderService.initBundles();var tc=tt.projectAuthModel.getProjectUserAuth();tt.isMb=null!==tt.queryString.getMobileVersion(),!ts&&tt.isDevToolsEnabled()||(tc.subscribe(ti=>{tt.tracking.updateClientParams(tt.isMb,null===(ta=ti.data)||void 0===ta?void 0:ta.userInfo.userInfo.analyticsId);var ta,{data:ts}=ti,tc=(0,tz._)(ti,["data"]);if(tt.projectAuthModel.setState(tc),tt.isAuthStateLoggedIn(ti)){tt.userModel.setUserState(ti.data.userInfo.userInfo);var tu=tt.sortService.sortData({data:ti.data.userInfo.gifts,sortParams:[{orderDirection:tP.As.DESC,orderBy:"weight"},{orderDirection:tP.As.DESC,orderBy:"isAvailable"}]});tt.promoCodesModel.setPromoCodes(ti.data.userInfo.promocodes),tt.giftListModel.setInitialGifts(tu,tt.promoCodesModel.getPromoCodes()),tt.giftListModel.setInitialFilters(tt.resources.content.MainPage.filters),"true"===up.p.APP_FEATURE_TOGGLE_EVENTS_INTEGRATION_ENABLED&&tt.getEventsData()}}),ti?tt.projectAuthModel.auth():tt.tracking.subscribeTrackingModuleLoad(()=>tt.projectAuthModel.auth()))})()}isAuthStateLoggedIn(tt){return this.projectAuthModel.isAuthStateLoggedIn(tt)}isAuthStateLoading(tt){return this.projectAuthModel.isAuthStateLoading(tt)}isAuthStateError(tt){return this.projectAuthModel.isAuthStateError(tt)}isAuthStateGuest(tt){return this.projectAuthModel.isAuthStateGuest(tt)}getEventsData(){var tt=this;return(0,tH._)(function*(){var ti=!1;if(up.p.APP_EVENTS_MOCK_DATA_COMMON_ENABLED&&(ti=!0,tt.giftListModel.setEventsGiftList(ub.collection.items)),up.p.APP_EVENTS_MOCK_DATA_IMAGE_ENABLED&&(ti=!0,tt.giftListModel.setEventsGiftList(ug.collection.items)),ti){tt.giftListModel.prepareGiftListData();return}yield tt.prizeService.waitForPrizeCollection({input:{customParams:{scope:tN.sX.Birthday}},onLateCompletion:ti=>{tt.giftListModel.setEventsGiftList(ti.collection.items),tt.giftListModel.prepareGiftListData(!0)}}).then(ti=>{tt.giftListModel.setEventsGiftList(ti.collection.items),tt.giftListModel.prepareGiftListData()}).catch(ti=>{tt.errorLoggerService.captureError(ti),tt.logger.log(ti),tt.giftListModel.prepareGiftListData()})})()}constructor(tt,ti,ta,ts,tc,tu,td,tp,tb,tg,t_,tE,tS,tA,tT,tM,tk,tR){this.resourcesLoaderModel=tt,this.userModel=ti,this.giftListModel=ta,this.promoCodesModel=ts,this.projectAuthModel=tc,this.configService=tu,this.pixiAssetsLoaderService=td,this.appNavigation=tp,this.tracking=tb,this.queryString=tg,this.authScenarios=t_,this.resources=tE,this.sortService=tS,this.window=tA,this.logger=tT,this.projectApi=tM,this.prizeService=tk,this.errorLoggerService=tR,this.canShowIframeSso=()=>{var{APP_PROJECT_URL:tt}=this.configService.getEnvs();return[tt].includes(this.window.location.origin)},this.getProjectUriForIframeSso=()=>{var{APP_PROJECT_URL:tt}=this.configService.getEnvs();return tt};var tC=this;this.loadAnimationBundle=(0,tH._)(function*(){tC.resourcesLoaderModel.setAnimationBundleLoadingRequestState();try{var tt=yield tC.resourcesLoaderModel.loadAnimationBundle();tC.resourcesLoaderModel.setAnimationBundleSuccessRequestState(tt)}catch(tt){tC.resourcesLoaderModel.setAnimationBundleErrorRequestState(tt)}});var tI=this;this.logout=(0,tH._)(function*(){tI.logger.log("logout"),yield tI.projectAuthModel.getProjectUserAuth().logout(),tI.giftListModel.resetState(),tI.userModel.resetState()}),this.logoutAndRedirectToMainPage=()=>{this.projectAuthModel.getProjectUserAuth().logout(),this.appNavigation.navigateToMainPage()},this.reloadPage=()=>{this.logger.log("reload"),this.appNavigation.pageReload()},this.navigateTo=(tt,ti)=>{this.logger.log("navigateTo: ".concat(tt)),this.appNavigation.navigateTo(tt,ti)},this.navigateToAuthPage=tt=>{this.appNavigation.navigateToAuthPage(tt)},this.getIsMb=()=>this.isMb,this.isFiltersVisible=tt=>this.giftListModel.isFiltersVisible(tt),this.getPromoCodeAdditionalData=(tt,ti)=>this.promoCodesModel.isPromoCodeMatchedToGift(tt)?this.promoCodesModel.getPromoCodeAdditionalData(ti):{},this.updateSelectedFiltersAndFilteredGifts=tt=>{this.giftListModel.setSelectedFilters(tt),this.giftListModel.filterGifts()},this.simulateUserError=tt=>{var{errorCode:ti,httpCode:ta,isMb:ts}=tt,tc=this.configService.getQueryKeys().mobileVersion,tu=ts?{[tc]:!0}:{};this.logger.log("simulateUserError: ".concat(ti," : ").concat(ta)),this.appNavigation.navigateToMainPageWithReload((0,tv._)({errorCode:ti,httpCode:ta},tu))};var tP=this;this.fetchPromoCode=function(){var tt=(0,tH._)(function*(tt){tP.promoCodesModel.setCurrentPromoCodeLoadingRequestState(tt);try{var ti=yield tP.projectApi.getPromoCode(tt);tP.promoCodesModel.setCurrentPromoCodeSuccessRequestState(ti),tP.promoCodesModel.updatePromoCodes(ti),tP.promoCodesModel.setCurrentPromoCodeIdleRequestState(),tP.giftListModel.updateAllGiftsWithPromoCodes(tP.promoCodesModel.getPromoCodes())}catch(tt){tP.promoCodesModel.setCurrentPromoCodeErrorRequestState(tt)}});return function(ti){return tt.apply(this,arguments)}}(),this.getGiftById=(tt,ti)=>ti?this.giftListModel.getGiftById(tt,ti):null,this.onLogoutButtonClick=()=>{this.tracking.trackLogout(),this.logout()},this.trackAuthError=tt=>{this.tracking.trackAuthError(tt)},this.onSuccessLoginAfterLinkAuth=()=>{switch(this.queryString.getAuthScenario()){case this.authScenarios.specEmail:this.tracking.trackAuthEmail();break;case this.authScenarios.specStories:this.tracking.trackAuthStories()}this.appNavigation.navigateToMainPage({replace:!0})},this.trackAuthAndRedirectToMainPage=()=>{this.tracking.trackAuthUserValid(),this.appNavigation.navigateToMainPage()},this.trackGiftClick=(tt,ti)=>{this.tracking.trackGiftClick(tt,ti)},this.trackGiftFilterClick=tt=>{this.tracking.trackGiftFilterClick(tt)},this.trackWithoutCardClick=()=>{this.tracking.trackWithoutCardClick()},this.trackGetGiftsClick=()=>{this.tracking.trackGetGiftsClick()},this.trackPageLoad=()=>{this.tracking.trackPageLoad()},this.logAuthErrorGuestMbData=()=>{this.logger.handleAuthErrorGuestMbData()},this.reloadInMbVersion=()=>{this.appNavigation.navigateToMbVersionWithFullReload()},this.isDevToolsEnabled=()=>{var tt=this.queryString.getErrorCode(),ti=this.queryString.getHttpCode();return(!!tt||!!ti)&&(this.projectAuthModel.simulateUserError({errorCode:tt,httpCode:ti}),!0)}}}var u_=ta(74493);!function(tt){tt.Idle="idle",tt.Success="success",tt.Loading="loading",tt.Error="error"}(tu||(tu={}));class uw{static createLoading(tt){return{data:tt,status:tu.Loading,error:void 0}}static createSuccess(tt){return{status:tu.Success,data:tt,error:void 0}}static createError(tt,ti){return{status:tu.Error,data:ti,error:tt}}static createIdle(){return{status:tu.Idle,data:void 0,error:void 0}}static isIdle(tt){return tt.status===tu.Idle}static isLoading(tt){return tt.status===tu.Loading}static isSuccess(tt){return tt.status===tu.Success}static isError(tt){return tt.status===tu.Error}}class uE extends tU.l{constructor(){super({promoCodes:[],currentPromoCode:uw.createIdle()}),this.getPromoCodeAdditionalData=tt=>({isLoading:uw.isLoading(tt),isError:uw.isError(tt)}),this.isPromoCodeMatchedToGift=tt=>{var ti,{currentPromoCode:ta}=this.getState();return(null===(ti=ta.data)||void 0===ti?void 0:ti.giftId)===tt},this.setPromoCodes=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{promoCodes:tt.filter(tt=>null!==tt.value)}))},this.setCurrentPromoCodeIdleRequestState=()=>{var tt=this.getState();this.setState((0,tb._)((0,tv._)({},tt),{currentPromoCode:uw.createIdle()}))},this.setCurrentPromoCodeLoadingRequestState=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{currentPromoCode:uw.createLoading({giftId:tt,value:"1"})}))},this.setCurrentPromoCodeSuccessRequestState=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{currentPromoCode:uw.createSuccess(tt)}))},this.setCurrentPromoCodeErrorRequestState=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{currentPromoCode:uw.createError(tt,ti.currentPromoCode.data)}))},this.getPromoCodes=()=>{var{promoCodes:tt}=this.getState();return tt},this.updatePromoCodes=tt=>{var ti=this.getState(),ta=[...ti.promoCodes,tt];this.setState((0,tb._)((0,tv._)({},ti),{promoCodes:ta}))}}}class uS extends tU.l{loadAnimationBundle(){var tt=this;return(0,tH._)(function*(){return yield tt.assetsLoader.loadBundle(tP.eT.AnimationScene)})()}constructor(tt){super({animation:uw.createLoading(null)}),this.assetsLoader=tt,this.setAnimationBundleIdleRequestState=()=>{var tt=this.getState();this.setState((0,tb._)((0,tv._)({},tt),{animation:uw.createIdle()}))},this.setAnimationBundleLoadingRequestState=()=>{var tt=this.getState();this.setState((0,tb._)((0,tv._)({},tt),{animation:uw.createLoading(null)}))},this.setAnimationBundleSuccessRequestState=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{animation:uw.createSuccess(tt)}))},this.setAnimationBundleErrorRequestState=tt=>{var ti=this.getState();this.setState((0,tb._)((0,tv._)({},ti),{animation:uw.createError(tt)}))},this.isLoadingAnimationBundle=tt=>uw.isLoading(tt)}}class uA extends tU.l{setUserState(tt){this.setState(tt)}getUser(){var tt=this.getState();if(!tt)throw Error("Пользователь не инициализирован");return tt}constructor(){super(null)}}function uT(tt){tt.bind(tO.V.userModel).toInstance(uA).inSingletonScope(),(0,tL.Lj)(uS,tO.V.pixiAssetsLoaderService),tt.bind(tO.V.resourcesLoaderModel).toInstance(uS).inSingletonScope(),(0,tL.Lj)(u_.Q,tO.V.dateTimeService,tO.V.resources),tt.bind(tO.V.giftListModel).toInstance(u_.Q).inSingletonScope(),tt.bind(tO.V.promoCodesModel).toInstance(uE).inSingletonScope(),(0,tL.Lj)(um,tO.V.resourcesLoaderModel,tO.V.userModel,tO.V.giftListModel,tO.V.promoCodesModel,tO.V.projectAuthModel,tO.V.configService,tO.V.pixiAssetsLoaderService,tO.V.appNavigation,tO.V.trackingService,tO.V.queryString,tO.V.authScenarios,tO.V.resources,tO.V.sortService,tO.V.window,tO.V.logger,tO.V.projectApi,tO.V.prizeService,tO.V.errorLoggerService),tt.bind(tO.V.manager).toInstance(um).inSingletonScope(),tt.bind(tO.V.animationManager).toInstance(ud).inSingletonScope()}var uM=ta(48247),uk=ta(48419),uR={config:ta(19732).Z,content:ta(94338).Z,errors:{webErrors:uk.Iv,webViewErrors:uk.VL}};class uC{navigateToMainPageWithReload(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ti=this.queryString.dataToSearchParams(tt),ta=this.routes.main+"?".concat(ti.toString());window.location.href=ta}navigateToMainPage(tt){this.appNavigate(this.routes.main,tt)}navigateToAuthPage(tt){this.appNavigate(this.routes.auth,tt)}navigateTo(tt,ti){this.appNavigate(tt,ti)}constructor(tt,ti,ta,ts){this.routes=tt,this.queryString=ti,this.globalWindow=ta,this.envs=ts,this.appNavigate=()=>{},this.initialized=!1,this.setAppNavigate=tt=>{this.initialized||(this.appNavigate=tt,this.initialized=!0)},this.pageReload=()=>{this.appNavigate(0)},this.navigateToMbVersionWithFullReload=()=>{var tt=this.envs.APP_PROJECT_URL;this.globalWindow.location.href=tt+"?auth=true&mbversion=".concat(this.queryString.getMobileVersion()||"undefined")}}}class uI{constructor(tt){this.envs=tt,this.getConfigEnvironment=()=>({isLocal:this.envs.APP_ENVIRONMENT===tP.qA.Local,isStage:this.envs.APP_ENVIRONMENT===tP.qA.Stage,isProd:this.envs.APP_ENVIRONMENT===tP.qA.Prod,isIframe:window.parent!==window}),this.getEnvs=()=>this.envs,this.getErrors=()=>({backend:{},frontend:{ErrorBoundaryError:"ErrorBoundaryError"}}),this.getQueryKeys=()=>({authScenario:"auth_scenario",mobileVersion:"mbversion",auth:"auth",httpCode:"httpCode",errorCode:"errorCode"})}}class uP{constructor(tt){this.window=tt,this.transformIsoDateToDate=tt=>new this.window.Date(tt)}}var uO=function(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(tt)).reduce(function(tt,ti){return(ti&=63)<36?tt+=ti.toString(36):ti<62?tt+=(ti-26).toString(36).toUpperCase():ti>62?tt+="-":tt+="_",tt},"")};function uN(){return uO()}!function(tt){tt.SSOTokenNotActive="B4100",tt.CampaignNameAlreadyExist="B4111",tt.InvalidAge="B4102",tt.InvalidCitizenship="B4103",tt.InvalidUserInfoError="B4109",tt.CampaignDoesNotExistError="B4110",tt.UserBanned="B4444",tt.SiebelIdIsNotDefined="B4104",tt.ProjectUserIsNotDefined="B4201",tt.UserIsNotClient="B4307",tt.ProductLoyalties="B5103",tt.Unauthorized="B4001",tt.BadRequest="B4002",tt.HeaderValidation="B4003",tt.NotFound="B4004",tt.RequestValidation="B4005",tt.InternalServer="B5001",tt.QueryFailed="B5002",tt.GetUserIdEmptyPayload="B4010",tt.GetPortalUserId="B5010",tt.SsoTokenIntrospect="B5020",tt.SsoUserInfo="B5021",tt.GetProductLoyaltiesV2="B5022",tt.TestError="F9999",tt.UnmatchedError="F2001",tt.BoundaryError="F2002",tt.JSDisabled="F2003",tt.UnknownError="U0001"}(td||(td={})),function(tt){tt.LogoutWithReload="LogoutWithReload",tt.Logout="Logout",tt.Reload="Reload"}(tp||(tp={}));var uB="Something went wrong in app",uL="FrontendError";class uD extends Error{constructor(tt){super(tt.message),this.errorCode=tt.errorCode,this.message=tt.message,this.requestId=tt.requestId,this.timestamp=tt.timestamp,this.error=tt.error,this.isFrontendError=!0,this.name=uL}}function uj(tt){if(uD.isFrontendError(tt))return{errorCode:tt.errorCode,errorMessage:tt.message,requestId:tt.requestId,timestamp:tt.timestamp,error:tt.error};var ti,ta,ts,tc,tu,tp="";return tt&&"object"==typeof tt&&("httpCode"in tt&&"number"==typeof tt.httpCode&&(ti=tt.httpCode),"errorCode"in tt&&"string"==typeof tt.errorCode&&(ta=tt.errorCode),"message"in tt&&"string"==typeof tt.message&&(tp=tt.message),"requestId"in tt&&"string"==typeof tt.requestId&&(ts=tt.requestId),"timestamp"in tt&&"string"==typeof tt.timestamp&&(tc=tt.timestamp),"error"in tt&&tt.error instanceof Error&&(tu=tt.error)),{httpCode:ti,errorCode:ta||(tt instanceof Error?td.UnknownError:td.UnmatchedError),errorMessage:tp,requestId:ts||uN(),timestamp:tc||new Date().toISOString(),error:tu||tt}}function uU(tt){tt&&"object"==typeof tt&&(tt.isCaptured=!0)}function uF(tt){return!!(tt&&"object"==typeof tt&&"isCaptured"in tt&&!0===tt.isCaptured)}(()=>{uD.isFrontendError=tt=>!!tt&&"object"==typeof tt&&"isFrontendError"in tt})(),(()=>{uD.createBoundaryError=tt=>new uD({errorCode:td.BoundaryError,message:uB,requestId:uN(),timestamp:new Date().toISOString(),error:tt})})();class uG{generateCaptureExceptionPayload(tt){var ti=(0,tv._)({networkStatus:(null==navigator?void 0:navigator.onLine)?"online":"offline"},tt);return this.errorLoggerPayloadExtension&&Object.assign(ti,this.errorLoggerPayloadExtension.getPayloadExtension()),ti}constructor(tt,ti){this.sentryBrowser=tt,this.loggerService=ti,this.captureError=(tt,ti)=>{if(!uF(tt)){this.loggerService.logError(tt);var ta=uj(tt),ts={message:ta.errorCode,payload:this.generateCaptureExceptionPayload((0,tv._)({breadcrumbs:ta},ti)),error:tt,trackingId:ta.requestId};this.sentryBrowser.captureException(ts),uU(tt)}},this.setErrorLoggerPayloadExtension=tt=>{this.errorLoggerPayloadExtension=tt}}}class uH{log(tt){console.log(tt)}warning(tt){console.warn(tt)}logError(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta{this.error(this.errorNames.AuthErrorGuestMb,void 0,{cookies:this.globalWindow.document.cookie,locationHref:this.globalWindow.location.href})}}}class uz{buildPathSprite(tt,ti){return"".concat(this.getImagesBaseUrl(),"/").concat(tt,".").concat(ti)}getImagesBaseUrl(){return"".concat(this.envs.APP_STATIC_BIRTHDAY_BASE_URL)}loadBundle(tt){return(0,tH._)(function*(){return yield c6.loadBundle(tt)})()}constructor(tt,ti){this.resources=tt,this.envs=ti,this.buildConfig=tt=>{var ti={};return Object.keys(tt).forEach(ta=>{var[ts,tc]=tt[ta].split(".");ti[ta]=this.buildPathSprite(ts,tc)}),ti},this.initBundles=()=>{c6.addBundle(tP.eT.AnimationScene,this.buildConfig(this.resources.content.MainPage.hero.animation.pixiAnimationItems))}}}class uV{constructor(){this.headersData={authToken:""},this.setAuthToken=tt=>{this.headersData.authToken=tt},this.getHeaders=()=>({"x-project-auth-token":this.getAuthToken()}),this.getAuthToken=()=>this.headersData.authToken}}var uq=ta(72342),uW=ta.n(uq);class uY{constructor(tt){this.configService=tt,this.getHttpClient=()=>this.httpClient;var{APP_PROJECT_API_URL:ti}=this.configService.getEnvs();this.httpClient=new tD.HttpClient(new tD.AxiosHttpAdapter(uW().create({baseURL:ti})),new tD.HttpRetry)}}class uX{getQueryValue(tt){return new this.window.URL(this.window.location.href).searchParams.get(tt)}dataToSearchParams(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ti=new URLSearchParams;return Object.entries(tt).forEach(tt=>{var[ta,ts]=tt;ts&&ti.append(ta,ts.toString())}),ti}getAuthScenario(){return this.getQueryValue(this.configService.getQueryKeys().authScenario)}getHttpCode(){return this.getQueryValue(this.configService.getQueryKeys().httpCode)}getErrorCode(){return this.getQueryValue(this.configService.getQueryKeys().errorCode)}getMobileVersion(){return this.getQueryValue(this.configService.getQueryKeys().mobileVersion)}getAuth(){return this.getQueryValue(this.configService.getQueryKeys().auth)}constructor(tt,ti){this.configService=tt,this.window=ti}}class uQ{sort(tt){var{orderDirection:ti,orderBy:ta,data:ts}=tt;return ts.sort((tt,ts)=>{var[tc,tu]=ti===tP.As.DESC?[ts,tt]:[tt,ts];return tc[ta]===tu[ta]?0:tc[ta]>tu[ta]?1:-1})}sortData(tt){var{data:ti,sortParams:ta}=tt,ts=ta.length;if(!ti)return[];var tc=[...ti];if(!ts)return tc;var tu=[];return ta.forEach(tt=>{var{orderBy:ti,orderDirection:ta}=tt;tu=this.sort({orderBy:ti,orderDirection:ta,data:tc})}),tu}}class uK{trackAuthError(tt){this.projectApi.isUserInvalidError(tt)?this.trackAuth("UserNotValid"):this.trackAuth("Common")}trackAuthEmail(){this.trackAuth("email")}trackAuthStories(){this.trackAuth("stories")}trackAuthUserValid(){this.trackAuth("UserValid")}constructor(tt,ti){this.tracking=tt,this.projectApi=ti,this.clientParams={specScreenType:void 0,specDbId:void 0},this.updateClientParams=(tt,ti)=>{this.clientParams={specDbId:ti||"",specScreenType:this.getSpecScreenType(tt)}},this.updateLocation=()=>{this.tracking.updateLocation()},this.subscribeTrackingModuleLoad=tt=>{var ti=()=>{this.tracking.saveTrackingStateToCookie(),tt()};this.tracking.subscribeTrackingPageLoad(ti),this.tracking.subscribeTrackingFailure(ti)},this.trackGiftClick=(tt,ti)=>{this.sendExtendedEvent("specAction1",{specVar4:tt+"_".concat(ti)})},this.trackGiftFilterClick=tt=>{this.sendExtendedEvent("specAction4",{specVar2:tt})},this.trackWithoutCardClick=()=>{this.sendExtendedEvent("specAction5")},this.trackGetGiftsClick=()=>{this.sendExtendedEvent("specAction6")},this.trackLogout=()=>{this.sendExtendedEvent("specAction7")},this.trackPageLoad=()=>{this.sendExtendedEvent("specAction8")},this.addClientParamsToEventData=tt=>{var ti=tt?(0,tv._)({},tt):{},{specScreenType:ta,specDbId:ts}=this.clientParams;return ti.specScreenType=ta,ts&&(ti.specDbId=ts),ti},this.sendExtendedEvent=(tt,ti)=>{this.tracking.sendEvent(tt,this.addClientParamsToEventData(ti))},this.getSpecScreenType=tt=>tt?"web view":"web",this.trackAuth=tt=>{this.sendExtendedEvent("specAuth",{specVar:tt})}}}class uZ{replaceDynamicParamsInUrl(tt,ti){return Object.entries(ti).forEach(ti=>{var[ta,ts]=ti;tt=tt.replace(":".concat(ta),"string"==typeof ts?ts:ts.toString())}),tt}createObjectURLFromFile(tt){return this.window.URL.createObjectURL(tt)}constructor(tt){var ti=this;this.window=tt,this.hasParamsInSearchString=function(){for(var tt=arguments.length,ta=Array(tt),ts=0;tstc.has(tt))},this.removeSearchParamsFromUrl=function(){for(var tt=arguments.length,ta=Array(tt),ts=0;ts{tc.searchParams.delete(tt)}),ti.window.history.replaceState(null,"",tc.toString())}}}function uJ(tt){tt.bind(tO.V.envs).toConstant(up.p),tt.bind(tO.V.resources).toConstant(uR),tt.bind(tO.V.clientRoutes).toConstant(up.i),tt.bind(tO.V.window).toConstant(globalThis.window),tt.bind(tO.V.authScenarios).toConstant(tP.HF),tt.bind(tO.V.apiRoutes).toConstant(tP.QP),tt.bind(tO.V.sortService).toInstance(uQ).inSingletonScope(),(0,tL.Lj)(uz,tO.V.resources,tO.V.envs),tt.bind(tO.V.pixiAssetsLoaderService).toInstance(uz).inSingletonScope(),(0,tL.Lj)(uY,tO.V.configService),tt.bind(tO.V.httpClientProjectApi).toInstance(uY).inSingletonScope(),(0,tL.Lj)(uI,tO.V.envs),tt.bind(tO.V.configService).toInstance(uI).inSingletonScope(),tt.bind(tO.V.sentryLogger).toInstance(()=>tC.SentryBrowser.getRealOrFake(tt.get(tO.V.window))).inSingletonScope(),(0,tL.Lj)(uH,tO.V.window,tO.V.configService,tO.V.sentryLogger),tt.bind(tO.V.logger).toInstance(uH).inSingletonScope(),(0,tL.Lj)(uZ,tO.V.window),tt.bind(tO.V.urlQueryService).toInstance(uZ).inSingletonScope(),(0,tL.Lj)(uP,tO.V.window),tt.bind(tO.V.dateTimeService).toInstance(uP).inSingletonScope(),tt.bind(tO.V.tinkoffWebTracking).toInstance(()=>(0,tI.createTracking)()).inSingletonScope(),tt.bind(tO.V.projectApiHeaders).toInstance(uV).inSingletonScope();var ti=ta(29124).U;(0,tL.Lj)(ti,tO.V.httpClientProjectApi,tO.V.apiRoutes,tO.V.urlQueryService,tO.V.projectApiHeaders),tt.bind(tO.V.projectApi).toInstance(ti).inSingletonScope(),(0,tL.Lj)(uK,tO.V.tinkoffWebTracking,tO.V.projectApi),tt.bind(tO.V.trackingService).toInstance(uK).inSingletonScope(),tt.bind(tO.V.localStorage).toInstance(()=>(0,uM.initLocalStorage)()).inSingletonScope(),(0,tL.Lj)(uX,tO.V.configService,tO.V.window),tt.bind(tO.V.queryString).toInstance(uX).inSingletonScope(),(0,tL.Lj)(uC,tO.V.clientRoutes,tO.V.queryString,tO.V.window,tO.V.envs),tt.bind(tO.V.appNavigation).toInstance(uC).inSingletonScope(),tt.bind(tO.V.errorLoggerService).toInstance(uG).inSingletonScope(),(0,tL.Lj)(uG,tO.V.sentryLogger,tO.V.logger)}function u$(){var tt=new tL.W2;return uJ(tt),tG(tt),uT(tt),tB(tt),tt}var u0=ta(38127);function u1(tt){var{children:ti}=tt,ta=(0,t_.useMemo)(u$,[]);return(0,tg.jsx)(u0.jm,{container:ta,children:ti})}var u2=ta(45932),u3=ta(69243),u8=ta(27977),u5=ta.n(u8),u4=()=>{var{title:tt,text:ti}=(0,u2.YS)().content.ErrorDefault;return(0,tg.jsxs)(u3.A,{classNameMain:u5().root,children:[(0,tg.jsx)("h2",{className:u5().title,children:tt}),(0,tg.jsx)("p",{className:u5().text,children:ti})]})},u6=tt=>{var{children:ti}=tt,ta=(0,u2.LB)(),ts=(0,u2.VU)().getErrors();return(0,tg.jsx)(u7,{message:ts.frontend.ErrorBoundaryError,sentryLogger:ta,children:ti})};class u7 extends t_.Component{static getDerivedStateFromError(tt){return{error:tt}}componentDidCatch(tt,ti){this.props.sentryLogger.captureException({error:tt,payload:(0,tv._)({},ti),message:this.props.message}),this.setState({error:tt,errorInfo:ti})}render(){return this.state.error?(0,tg.jsx)(u4,{}):this.props.children}constructor(tt){super(tt),this.state={error:null,errorInfo:null}}}function u9(tt){var{children:ti}=tt,[ta,ts]=(0,t_.useState)(!1);return(0,t_.useEffect)(()=>{ts(!0)},[]),ta?ti:null}var hr=ta(53128),hn=ta.n(hr),ha=ta(21994);function ho(tt){return hs.apply(this,arguments)}function hs(){return(hs=(0,tH._)(function*(tt){yield hn().replace(tt,void 0,{shallow:!0})})).apply(this,arguments)}function hc(tt){var{children:ti}=tt,ta=(0,u2.zY)(),ts=(0,u2._)(),tc=(0,u2.HS)(),{config:{secretCode:tu}}=(0,u2.YS)();function td(){return tc.APP_SECRET_CODE_ENABLED?(0,ha.createSecretCodePropsEnabled)(()=>({config:tu,deps:{shallowUrlReplace:ho,window:ta,localStorage:ts}})):(0,ha.createSecretCodePropsDisabled)()}return(0,tg.jsx)(ha.SecretCodeChecker,(0,tb._)((0,tv._)({},td()),{children:ti}))}var hu=ta(70718),hh=ta(74079).Z;function hl(tt){var{Component:ti,pageProps:ta}=tt,ts=[up.p.APP_STATIC_URL,up.p.APP_PROJECT_URL];return(0,t_.useEffect)(()=>{(0,tM.polyfill)()},[]),(0,tg.jsxs)(tg.Fragment,{children:[(0,tg.jsx)(tC.HeadScriptSentryBrowser,{wrapper:tS(),appStaticUrl:up.p.APP_STATIC_URL,sentryBrowserParams:{captureExceptionAsEvent:!1,formattersOptions:{breadcrumbsResponse:!0,extras:!0,breadcrumbs:!0,payloadPostfix:up.p.APP_SENTRY_PAYLOAD_POSTFIX},sentryOptions:{dsn:up.p.APP_SENTRY_DSN,environment:up.p.APP_ENVIRONMENT,enabled:up.p.APP_ENVIRONMENT!==tP.qA.Local,release:hu.env.ERRORHUB_RELEASE,allowUrls:ts}}}),(0,tg.jsx)(tk.HeadProject,(0,tv._)({wrapper:tS()},hh)),(0,tg.jsx)(tI.HeadScriptTracking,{head:tS(),productName:up.p.APP_ANALYTICS_PRODUCT_NAME}),(0,tg.jsx)(hd,{children:(0,tg.jsx)(u9,{children:(0,tg.jsx)(u1,{children:(0,tg.jsx)(hc,{children:(0,tg.jsx)(u6,{children:(0,tg.jsx)(ti,(0,tv._)({},ta))})})})})}),(0,tg.jsx)(tI.ScriptTracking,{script:tT()})]})}function hd(tt){var ti=()=>(0,tR.createLoaderPropsLocal)(uR,tt=>{});return(0,tg.jsx)(tR.ResourcesLoader,(0,tb._)((0,tv._)({},ti()),{children:tt.children}))}ta(59536);var hf=hl},38725:function(tt,ti,ta){"use strict";ta.d(ti,{i:function(){return tu},p:function(){return td}});var ts=ta(8638),tc=ta(86549),tu={main:"/",auth:"/auth/user",login:"/auth/login"},td=(0,ts.validateAndCreate)({APP_ENVIRONMENT:(0,ts.envEnum)("prod",tc.qA),APP_STATIC_URL:(0,ts.envString)("https://ps-events.t-static.ru/projects/birthday/prod/45dd6365b256174a768ed8d8d434f14dca1eeb2f"),APP_SENTRY_DSN:(0,ts.envString)("https://ded_ps@error-hub.tinkoff.ru/558"),APP_PROJECT_URL:(0,ts.envString)("https://events.tbank.ru"),APP_PROJECT_AUTH_API_MOCK_ENABLED:(0,ts.envBoolean)("false"),APP_PROJECT_API_URL:(0,ts.envString)("/api"),APP_POST_COMPLETE_REDIRECT_PATH:(0,ts.envString)("/auth/login"),APP_SSO_CLIENT_URL:(0,ts.envString)("/authorization"),APP_API_MOCK_ENABLED_PROJECT:(0,ts.envBoolean)("false"),APP_RESOURCES_USE_LOCAL:(0,ts.envBoolean)("true"),APP_RESOURCES_URL:(0,ts.envString)("TODO"),APP_SECRET_CODE_ENABLED:(0,ts.envBoolean)("false"),APP_SSO_API_URL:(0,ts.envString)("https://id.tbank.ru"),APP_SSO_API_MOCK_ENABLED:(0,ts.envBoolean)("false"),APP_SSO_CLIENT_API_MOCK_ENABLED:(0,ts.envBoolean)("false"),APP_STATIC_BASE_URL:(0,ts.envString)("https://ps-events.t-static.ru"),APP_ANALYTICS_PRODUCT_NAME:(0,ts.envString)("birthday"),APP_SENTRY_PAYLOAD_POSTFIX:(0,ts.envString)("events"),APP_FEATURE_TOGGLE_EVENTS_INTEGRATION_ENABLED:(0,ts.envString)("true"),APP_EVENTS_API_BASE_URL:(0,ts.envString)("https://events.tbank.ru"),APP_EVENTS_MOCK_DATA_COMMON_ENABLED:(0,ts.envBoolean)("false"),APP_EVENTS_MOCK_DATA_IMAGE_ENABLED:(0,ts.envBoolean)("false"),APP_STATIC_BIRTHDAY_BASE_URL:(0,ts.envString)("https://ded-ps-prod.t-static.ru")})},86549:function(tt,ti,ta){"use strict";ta.d(ti,{As:function(){return td},HF:function(){return tE},Hm:function(){return tg},K0:function(){return tv},QP:function(){return tS},aH:function(){return tb},eT:function(){return t_},qA:function(){return ts},sI:function(){return tA},vA:function(){return tp}}),function(tt){tt.Prod="prod",tt.Stage="stage",tt.Local="local"}(ts||(ts={})),function(tt){tt.InvalidLoyaltiesError="INVALID_LOYALTIES_ERROR",tt.InvalidAgeError="INVALID_AGE_ERROR"}(tc||(tc={})),function(tt){tt.ErrorBoundaryError="ERROR_BOUNDARY_ERROR"}(tu||(tu={})),function(tt){tt.ASC="ASC",tt.DESC="DESC"}(td||(td={}));var ts,tc,tu,td,tp,tv,tb,tg,t_,tE={specEmail:"spec-email",specStories:"spec-stories"};!function(tt){tt.All="all",tt.Aristocratic="aristocratic",tt.Friends="with-friends",tt.Alone="alone",tt.Adventures="adventures",tt.NewPlace="new-place",tt.Beauty="beauty",tt.TinkoffGorod="tinkoff-gorod",tt.Noisy="noisy",tt.Shopping="shopping",tt.Relax="relax",tt.Restaurants="restaurants",tt.Education="education",tt.Services="services",tt.Kids="kids",tt.Entertainment="entertainment",tt.Sport="sport",tt.Tech="tech",tt.Popular="popular",tt.Business="business"}(tp||(tp={})),function(tt){tt[tt.mobile=320]="mobile",tt[tt.mobileL=400]="mobileL",tt[tt.tablet=768]="tablet",tt[tt.tabletL=1024]="tabletL",tt[tt.desktop=1360]="desktop",tt[tt.desktopL=1920]="desktopL"}(tv||(tv={}));var tS={getPromoCode:"/v1/users/gifts/promo_codes/:id"};!function(tt){tt.Star="star",tt.BoxFront="boxFront",tt.BoxBack="boxBack",tt.Movie="movie",tt.Cake="cake",tt.Column="column",tt.Book="book",tt.Car="car",tt.Plane="plane",tt.Glass="glass",tt.NotkaFirst="notkaFirst",tt.NotkaSecond="notkaSecond",tt.YellowBaloon="yellowBaloon",tt.GreenBaloon="greenBaloon",tt.PinkBaloon="pinkBaloon",tt.PinkHeart="pinkHeart",tt.OrangeHeart="orangeHeart",tt.GreenHeart="greenHeart",tt.Tickets="tickets",tt.Item1="item1",tt.Item2="item2",tt.Item3="item3",tt.Item4="item4",tt.Item5="item5",tt.Item6="item6",tt.Item8="item8",tt.Item9="item9",tt.Item10="item10",tt.Item11="item11",tt.Item12="item12",tt.Item13="item13",tt.Item14="item14",tt.Item15="item15",tt.Item16="item16",tt.Item17="item17"}(tb||(tb={}));var tA="automation_id";!function(tt){tt.HttpErrorTitle="HttpErrorTitle",tt.HttpErrorSubtitle="HttpErrorSubtitle",tt.HttpErrorCode="HttpErrorCode",tt.HttpErrorIdentifier="HttpErrorIdentifier",tt.ButtonLink="ButtonLink"}(tg||(tg={})),function(tt){tt.AnimationScene="animation-scene"}(t_||(t_={}))},45932:function(tt,ti,ta){"use strict";ta.d(ti,{$R:function(){return tg},HS:function(){return tP},LB:function(){return tb},Pk:function(){return tk},Ry:function(){return tT},VU:function(){return tc},YS:function(){return tp},_:function(){return tv},bM:function(){return tS},ku:function(){return tE},lQ:function(){return tA},nD:function(){return t_},rS:function(){return td},u:function(){return tM},v1:function(){return tR},zY:function(){return tu}});var ts=ta(91502),[tc,tu,td,tp,tv,tb,tg,t_,tE,tS,tA,tT,tM,tk,tR,tC,tI,tP]=(0,ta(38127).D0)(ts.V.configService,ts.V.window,ts.V.trackingService,ts.V.resources,ts.V.localStorage,ts.V.sentryLogger,ts.V.clientRoutes,ts.V.appNavigation,ts.V.projectAuthModel,ts.V.userModel,ts.V.promoCodesModel,ts.V.giftListModel,ts.V.resourcesLoaderModel,ts.V.animationManager,ts.V.manager,ts.V.prizeService,ts.V.prizeApi,ts.V.envs)},91502:function(tt,ti,ta){"use strict";ta.d(ti,{V:function(){return tc}});var ts=ta(14322),tc={envs:(0,ts.r)("envs"),authScenarios:(0,ts.r)("authScenarios"),clientRoutes:(0,ts.r)("clientRoutes"),apiRoutes:(0,ts.r)("apiRoutes"),configService:(0,ts.r)("configService"),appNavigation:(0,ts.r)("appNavigation"),httpClientProjectApi:(0,ts.r)("httpClientProjectApi"),window:(0,ts.r)("window"),sentryLogger:(0,ts.r)("sentryLogger"),urlQueryService:(0,ts.r)("urlQueryService"),dateTimeService:(0,ts.r)("dateTimeService"),logger:(0,ts.r)("logger"),trackingService:(0,ts.r)("trackingService"),tinkoffWebTracking:(0,ts.r)("tinkoffWebTracking"),localStorage:(0,ts.r)("localStorage"),resources:(0,ts.r)("resources"),projectUserAuthCreator:(0,ts.r)("projectUserAuthCreator"),queryString:(0,ts.r)("queryString"),sortService:(0,ts.r)("sortService"),pixiAssetsLoaderService:(0,ts.r)("pixiAssetsLoaderService"),errorLoggerService:(0,ts.r)("errorLoggerService"),userModel:(0,ts.r)("userModel"),projectAuthModel:(0,ts.r)("projectAuthModel"),giftListModel:(0,ts.r)("giftListModel"),promoCodesModel:(0,ts.r)("promoCodesModel"),resourcesLoaderModel:(0,ts.r)("resourcesLoaderModel"),projectApiHeaders:(0,ts.r)("projectApiHeaders"),projectApi:(0,ts.r)("projectApi"),projectAuthApi:(0,ts.r)("projectAuthApi"),prizeApi:(0,ts.r)("prizeApi"),prizeApiClient:(0,ts.r)("prizeApiClient"),prizeService:(0,ts.r)("prizeService"),animationManager:(0,ts.r)("animationManager"),manager:(0,ts.r)("manager")}},74493:function(tt,ti,ta){"use strict";ta.d(ti,{G:function(){return ts},Q:function(){return tA}});var ts,tc=ta(46154),tu=ta(34600),td=ta(42202),tp=ta(33096),tv=ta.n(tp),tb=ta(60590),tg=ta.n(tb),t_=ta(86549),tE=ta(27091),tS=ta(31306);!function(tt){tt.Birthday="birthday",tt.Events="events"}(ts||(ts={}));class tA extends tE.l{constructor(tt,ti){var ta;super({giftList:[],eventsGiftList:[],preparedGiftList:[],filteredGiftList:[],selectedFilters:[],filters:[]}),ta=this,this.dateTimeService=tt,this.resources=ti,this.minLengthToShowFilters=4,this.getSelectedFilters=()=>this.getState().selectedFilters,this.getGifts=()=>this.getState().giftList,this.isFiltersVisible=tt=>null!=tt&&!!tt.length&&tt.length>this.minLengthToShowFilters,this.filterGifts=()=>{var tt=this.getState(),{giftList:ti,selectedFilters:ta}=tt,ts=[];if(0===ta.length){this.setState((0,tu._)((0,tc._)({},tt),{filteredGiftList:ti}));return}ts=ta.includes(t_.vA.All)?ti:ti.filter(tt=>ta.some(ti=>tt.filter.includes(ti))),this.setState((0,tu._)((0,tc._)({},tt),{filteredGiftList:ts}))},this.setGifts=tt=>{var ti=this.getState();this.setState((0,tu._)((0,tc._)({},ti),{giftList:tt}))},this.setInitialGifts=(tt,ti)=>{var ta=this.getState(),ts=tt.map(tt=>{var ta=this.dateTimeService.transformIsoDateToDate(tt.createdDateTime);if(tA.isPromoCodeGift(tt)){var ts=ti.find(ti=>ti.giftId===tt.id);return(0,tu._)((0,tc._)({},tt),{createdDateTime:ta,promoCode:(null==ts?void 0:ts.value)||null})}return(0,tu._)((0,tc._)({},tt),{createdDateTime:ta})});this.setState((0,tu._)((0,tc._)({},ta),{giftList:ts,filteredGiftList:ts}))},this.setInitialFilters=tt=>{var ti=this.getState(),ta=tg()(tv()(ti.giftList.map(tt=>tt.filter))),ts=tt.filter(tt=>ta.includes(tt.type));this.setState((0,tu._)((0,tc._)({},ti),{filters:ts}))},this.setSelectedFilters=tt=>{var ti=this.getState();this.setState((0,tu._)((0,tc._)({},ti),{selectedFilters:tt}))},this.updateAllGiftsWithPromoCodes=tt=>{var ti=this.getState();this.setState((0,tu._)((0,tc._)({},ti),{giftList:this.updateGiftsWithPromoCodes(ti.giftList,tt),filteredGiftList:this.updateGiftsWithPromoCodes(ti.filteredGiftList,tt)}))},this.prepareGiftListData=function(){var tt=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ti=ta.getState(),td=ti.giftList.filter(tA.isModalGift).map(tt=>({data:ta.transformBirthdayGift(tt),source:ts.Birthday,rawData:tt})),tp=ti.eventsGiftList.map(tt=>({data:tt,source:ts.Events})),tv=tt?[...td,...tp]:[...tp,...td];ta.setState((0,tu._)((0,tc._)({},ti),{preparedGiftList:tv}))},this.setEventsGiftList=tt=>{var ti=this.getState();this.setState((0,tu._)((0,tc._)({},ti),{eventsGiftList:[...ti.eventsGiftList,...tt]}))},this.transformBirthdayGift=tt=>{var ti=this.resources.content.MainPage.giftCard,ta=(tt,ti)=>!1===tt||!0===tt&&!1===ti?td.I4.Expired:td.I4.Issued;return{activeUntil:null,ctaLinkWeb:"empty.link",ctaLinkMobile:"empty.link",ctaTitle:this.resources.content.MainPage.giftCard.buttons.takeGift,id:tt.id,title:tt.name,description:tt.data.shortDescription||"",status:ta(tt.activity,tt.isAvailable),tags:[],type:td.Do.ImageBonus,visual:{fontTextColor:tt.cardType===tS.Wg.Black?"#FFFFFF":"#000000",backgroundColor:td.$w[tt.cardType],font:"",imageSource:ti.imagesBySlug[tt.slug]||ti.defaultImagePath}}},this.updateGiftsWithPromoCodes=(tt,ti)=>{var ta=ti.map(tt=>tt.giftId);return tt.map(tt=>tA.isPromoCodeGift(tt)&&ta.includes(tt.id)?(0,tu._)((0,tc._)({},tt),{promoCode:ti.find(ti=>ti.giftId===tt.id).value}):tt)},this.getGiftById=(tt,ti)=>tt.find(tt=>tt.id===ti)}}(()=>{tA.isPromoCodeGift=tt=>[tS.RU.GiftWithModalWithPromoCode,tS.RU.GiftWithPromoCode].includes(tt.type)})(),(()=>{tA.isModalGift=tt=>[tS.RU.GiftWithModal,tS.RU.GiftWithModalWithPromoCode].includes(tt.type)})()},31306:function(tt,ti,ta){"use strict";var ts,tc,tu;ta.d(ti,{RU:function(){return ts},TY:function(){return tu},Wg:function(){return tc}}),function(tt){tt.Gift="gift",tt.GiftWithPromoCode="gift-with-promocode",tt.GiftWithModal="gift-with-modal",tt.GiftWithModalWithPromoCode="gift-with-modal-with-promocode"}(ts||(ts={})),function(tt){tt.Pink="pink",tt.Yellow="yellow",tt.Orange="orange",tt.DarkOrange="darkOrange",tt.Blue="blue",tt.DarkBlue="darkBlue",tt.Purple="purple",tt.Aqua="aqua",tt.Green="green",tt.Red="red",tt.Black="black",tt.Coffee="coffee"}(tc||(tc={})),function(tt){tt.Boom="boom",tt.Creme="creme",tt.Popcorn="popcorn",tt.Lent="lent",tt.Up="up",tt.Grow="grow",tt.Right="right",tt.Down="down"}(tu||(tu={}))},19732:function(tt,ti){"use strict";ti.Z={iframe:{origin:{test:"https://www-test.tinkoff.ru/",prod:"https://www.tbank.ru/"},path:"cards/debit-cards/black/iframe/form/"},projectFinished:{isModalActive:!1},secretCode:{key:"secret",code:"9439hrlc8g"}}},94338:function(tt,ti,ta){"use strict";var ts=ta(67311),tc=ta(38725),tu=ta(86549),td=ta(80243),tp="get-card",tv={png:"static/birthday/universal_1-320-2025-07-18-11-08-55.png 320w, static/birthday/universal_1-854-2025-07-18-11-08-55.png 854w, static/birthday/universal_1-920-2025-07-18-11-08-55.png 1387w",avif:"static/birthday/universal_1-320-2025-07-18-11-08-55.avif 320w, static/birthday/universal_1-854-2025-07-18-11-08-55.avif 854w, static/birthday/universal_1-920-2025-07-18-11-08-55.avif 1387w",webp:"static/birthday/universal_1-320-2025-07-18-11-08-55.webp 320w, static/birthday/universal_1-854-2025-07-18-11-08-55.webp 854w, static/birthday/universal_1-920-2025-07-18-11-08-55.webp 1387w"},tb={excursion:{png:"static/birthday/excursion-320-2025-07-18-10-52-08.png 320w, static/birthday/excursion-854-2025-07-18-10-52-08.png 854w, static/birthday/excursion-920-2025-07-18-10-52-08.png 1387w",avif:"static/birthday/excursion-320-2025-07-18-10-52-08.avif 320w, static/birthday/excursion-854-2025-07-18-10-52-08.avif 854w, static/birthday/excursion-920-2025-07-18-10-52-08.avif 1387w",webp:"static/birthday/excursion-320-2025-07-18-10-52-08.webp 320w, static/birthday/excursion-854-2025-07-18-10-52-08.webp 854w, static/birthday/excursion-920-2025-07-18-10-52-08.webp 1387w"},paket:{png:"static/birthday/paket-320-2025-07-18-11-01-36.png 320w, static/birthday/paket-854-2025-07-18-11-01-36.png 854w, static/birthday/paket-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/paket-320-2025-07-18-11-01-36.avif 320w, static/birthday/paket-854-2025-07-18-11-01-36.avif 854w, static/birthday/paket-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/paket-320-2025-07-18-11-01-36.webp 320w, static/birthday/paket-854-2025-07-18-11-01-36.webp 854w, static/birthday/paket-920-2025-07-18-11-01-36.webp 1387w"},vkusnoitochka:{png:"static/birthday/vkusnoitochka-320-2025-07-18-11-40-28.png 320w, static/birthday/vkusnoitochka-854-2025-07-18-11-40-28.png 854w, static/birthday/vkusnoitochka-920-2025-07-18-11-40-28.png 1387w",avif:"static/birthday/vkusnoitochka-320-2025-07-18-11-40-28.avif 320w, static/birthday/vkusnoitochka-854-2025-07-18-11-40-28.avif 854w, static/birthday/vkusnoitochka-920-2025-07-18-11-40-28.avif 1387w",webp:"static/birthday/vkusnoitochka-320-2025-07-18-11-40-28.webp 320w, static/birthday/vkusnoitochka-854-2025-07-18-11-40-28.webp 854w, static/birthday/vkusnoitochka-920-2025-07-18-11-40-28.webp 1387w"},hoff:{png:"static/birthday/hoff-320-2025-07-18-10-56-32.png 320w, static/birthday/hoff-854-2025-07-18-10-56-32.png 854w, static/birthday/hoff-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/hoff-320-2025-07-18-10-56-32.avif 320w, static/birthday/hoff-854-2025-07-18-10-56-32.avif 854w, static/birthday/hoff-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/hoff-320-2025-07-18-10-56-32.webp 320w, static/birthday/hoff-854-2025-07-18-10-56-32.webp 854w, static/birthday/hoff-920-2025-07-18-10-56-32.webp 1387w"},yaplus:{png:"static/birthday/yaplus-320-2025-12-11-06-36-33.png 320w, static/birthday/yaplus-854-2025-12-11-06-36-33.png 854w, static/birthday/yaplus-920-2025-12-11-06-36-33.png 1387w",avif:"static/birthday/yaplus-320-2025-12-11-06-36-33.avif 320w, static/birthday/yaplus-854-2025-12-11-06-36-33.avif 854w, static/birthday/yaplus-920-2025-12-11-06-36-33.avif 1387w",webp:"static/birthday/yaplus-320-2025-12-11-06-36-33.webp 320w, static/birthday/yaplus-854-2025-12-11-06-36-33.webp 854w, static/birthday/yaplus-920-2025-12-11-06-36-33.webp 1387w"},yvesrocher:{png:"static/birthday/yvesrocher-320-2025-07-18-11-42-46.png 320w, static/birthday/yvesrocher-854-2025-07-18-11-42-46.png 854w, static/birthday/yvesrocher-920-2025-07-18-11-42-46.png 1387w",avif:"static/birthday/yvesrocher-320-2025-07-18-11-42-46.avif 320w, static/birthday/yvesrocher-854-2025-07-18-11-42-46.avif 854w, static/birthday/yvesrocher-920-2025-07-18-11-42-46.avif 1387w",webp:"static/birthday/yvesrocher-320-2025-07-18-11-42-46.webp 320w, static/birthday/yvesrocher-854-2025-07-18-11-42-46.webp 854w, static/birthday/yvesrocher-920-2025-07-18-11-42-46.webp 1920w"},vinlab:{png:"static/birthday/vinlab-320-2025-07-18-11-08-57.png 320w, static/birthday/vinlab-854-2025-07-18-11-08-57.png 854w, static/birthday/vinlab-920-2025-07-18-11-08-57.png 1387w",avif:"static/birthday/vinlab-320-2025-07-18-11-08-57.avif 320w, static/birthday/vinlab-854-2025-07-18-11-08-57.avif 854w, static/birthday/vinlab-920-2025-07-18-11-08-57.avif 1387w",webp:"static/birthday/vinlab-320-2025-07-18-11-08-57.webp 320w, static/birthday/vinlab-854-2025-07-18-11-08-57.webp 854w, static/birthday/vinlab-920-2025-07-18-11-08-57.webp 1387w"},ya360:{png:"static/birthday/ya360-320-2025-07-18-11-40-28.png 320w, static/birthday/ya360-854-2025-07-18-11-40-28.png 854w, static/birthday/ya360-920-2025-07-18-11-40-28.png 1387w",avif:"static/birthday/ya360-320-2025-07-18-11-40-28.avif 320w, static/birthday/ya360-854-2025-07-18-11-40-28.avif 854w, static/birthday/ya360-920-2025-07-18-11-40-28.avif 1387w",webp:"static/birthday/ya360-320-2025-07-18-11-40-28.webp 320w, static/birthday/ya360-854-2025-07-18-11-40-28.webp 854w, static/birthday/ya360-920-2025-07-18-11-40-28.webp 1920w"},tinkoff_shop:{png:"static/birthday/tshop-320-2025-07-18-11-08-55.png 320w, static/birthday/tshop-854-2025-07-18-11-08-55.png 854w, static/birthday/tshop-920-2025-07-18-11-08-55.png 1387w",avif:"static/birthday/tshop-320-2025-07-18-11-08-55.avif 320w, static/birthday/tshop-854-2025-07-18-11-08-55.avif 854w, static/birthday/tshop-920-2025-07-18-11-08-55.avif 1387w",webp:"static/birthday/tshop-320-2025-07-18-11-08-55.webp 320w, static/birthday/tshop-854-2025-07-18-11-08-55.webp 854w, static/birthday/tshop-920-2025-07-18-11-08-55.webp 1387w"},cinema:{png:"static/birthday/cinema-320-2025-07-18-10-48-56.png 320w, static/birthday/cinema-854-2025-07-18-10-48-56.png 854w, static/birthday/cinema-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/cinema-320-2025-07-18-10-48-56.avif 320w, static/birthday/cinema-854-2025-07-18-10-48-56.avif 854w, static/birthday/cinema-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/cinema-320-2025-07-18-10-48-56.webp 320w, static/birthday/cinema-854-2025-07-18-10-48-56.webp 854w, static/birthday/cinema-920-2025-07-18-10-48-56.webp 1387w"},concert_and_theatre:{png:"static/birthday/teaters-320-2025-07-18-11-06-58.png 320w, static/birthday/teaters-854-2025-07-18-11-06-58.png 854w, static/birthday/teaters-920-2025-07-18-11-06-58.png 1387w",avif:"static/birthday/teaters-320-2025-07-18-11-06-58.avif 320w, static/birthday/teaters-854-2025-07-18-11-06-58.avif 854w, static/birthday/teaters-920-2025-07-18-11-06-58.avif 1387w",webp:"static/birthday/teaters-320-2025-07-18-11-06-58.webp 320w, static/birthday/teaters-854-2025-07-18-11-06-58.webp 854w, static/birthday/teaters-920-2025-07-18-11-06-58.webp 1387w"},fuel:{png:"static/birthday/fuel-320-2025-07-18-10-54-26.png 320w, static/birthday/fuel-854-2025-07-18-10-54-26.png 854w, static/birthday/fuel-920-2025-07-18-10-54-26.png 1387w",avif:"static/birthday/fuel-320-2025-07-18-10-54-26.avif 320w, static/birthday/fuel-854-2025-07-18-10-54-26.avif 854w, static/birthday/fuel-920-2025-07-18-10-54-26.avif 1387w",webp:"static/birthday/fuel-320-2025-07-18-10-54-26.webp 320w, static/birthday/fuel-854-2025-07-18-10-54-26.webp 854w, static/birthday/fuel-920-2025-07-18-10-54-26.webp 1387w"},litres:{png:"static/birthday/booksLitres-320-2025-07-18-09-27-46.png 320w, static/birthday/booksLitres-854-2025-07-18-09-27-46.png 854w, static/birthday/booksLitres-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/booksLitres-320-2025-07-18-09-27-46.avif 320w, static/birthday/booksLitres-854-2025-07-18-09-27-46.avif 854w, static/birthday/booksLitres-920-2025-07-18-09-27-46.avif 1920w",webp:"static/birthday/booksLitres-320-2025-07-18-09-27-46.webp 320w, static/birthday/booksLitres-854-2025-07-18-09-27-46.webp 854w, static/birthday/booksLitres-920-2025-07-18-09-27-46.webp 1387w"},vkusvill:{png:"static/birthday/vkusvill-320-2025-07-18-11-40-28.png 320w, static/birthday/vkusvill-854-2025-07-18-11-40-28.png 854w, static/birthday/vkusvill-920-2025-07-18-11-40-28.png 1387w",avif:"static/birthday/vkusvill-320-2025-07-18-11-40-28.avif 320w, static/birthday/vkusvill-854-2025-07-18-11-40-28.avif 854w, static/birthday/vkusvill-920-2025-07-18-11-40-28.avif 1387w",webp:"static/birthday/vkusvill-320-2025-07-18-11-40-28.webp 320w, static/birthday/vkusvill-854-2025-07-18-11-40-28.webp 854w, static/birthday/vkusvill-920-2025-07-18-11-40-28.webp 1387w"},game:{png:"static/birthday/games-320-2025-07-18-10-54-28.png 320w, static/birthday/games-854-2025-07-18-10-54-28.png 854w, static/birthday/games-920-2025-07-18-10-54-28.png 1387w",avif:"static/birthday/games-320-2025-07-18-10-54-28.avif 320w, static/birthday/games-854-2025-07-18-10-54-28.avif 854w, static/birthday/games-920-2025-07-18-10-54-28.avif 1387w",webp:"static/birthday/games-320-2025-07-18-10-54-28.webp 320w, static/birthday/games-854-2025-07-18-10-54-28.webp 854w, static/birthday/games-920-2025-07-18-10-54-28.webp 1387w"},insurance:{png:"static/birthday/insurance-320-2025-07-18-10-56-32.png 320w, static/birthday/insurance-854-2025-07-18-10-56-32.png 854w, static/birthday/insurance-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/insurance-320-2025-07-18-10-56-32.avif 320w, static/birthday/insurance-854-2025-07-18-10-56-32.avif 854w, static/birthday/insurance-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/insurance-320-2025-07-18-10-56-32.webp 320w, static/birthday/insurance-854-2025-07-18-10-56-32.webp 854w, static/birthday/insurance-920-2025-07-18-10-56-32.webp 1387w"},mobile:{png:"static/birthday/mobile-320-2025-07-18-11-01-36.png 320w, static/birthday/mobile-854-2025-07-18-11-01-36.png 854w, static/birthday/mobile-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/mobile-320-2025-07-18-11-01-36.avif 320w, static/birthday/mobile-854-2025-07-18-11-01-36.avif 854w, static/birthday/mobile-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/mobile-320-2025-07-18-11-01-36.webp 320w, static/birthday/mobile-854-2025-07-18-11-01-36.webp 854w, static/birthday/mobile-920-2025-07-18-11-01-36.webp 1387w"},ivi_with_pro:{png:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.png 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.png 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.avif 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.avif 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.webp 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.webp 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.webp 1387w"},ivi:{png:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.png 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.png 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.avif 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.avif 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/cinemaIVI-320-2025-07-18-10-48-56.webp 320w, static/birthday/cinemaIVI-854-2025-07-18-10-48-56.webp 854w, static/birthday/cinemaIVI-920-2025-07-18-10-48-56.webp 1387w"},mybook_with_pro:{png:"static/birthday/booksMybook-320-2025-07-18-10-48-56.png 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.png 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/booksMybook-320-2025-07-18-10-48-56.avif 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.avif 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/booksMybook-320-2025-07-18-10-48-56.webp 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.webp 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.webp 1387w"},mybook:{png:"static/birthday/booksMybook-320-2025-07-18-10-48-56.png 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.png 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/booksMybook-320-2025-07-18-10-48-56.avif 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.avif 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/booksMybook-320-2025-07-18-10-48-56.webp 320w, static/birthday/booksMybook-854-2025-07-18-10-48-56.webp 854w, static/birthday/booksMybook-920-2025-07-18-10-48-56.webp 1387w"},vk_with_pro:{png:"static/birthday/vk-320-2025-07-18-11-08-55.png 320w, static/birthday/vk-854-2025-07-18-11-08-55.png 854w, static/birthday/vk-920-2025-07-18-11-08-55.png 1387w",avif:"static/birthday/vk-320-2025-07-18-11-08-55.avif 320w, static/birthday/vk-854-2025-07-18-11-08-55.avif 854w, static/birthday/vk-920-2025-07-18-11-08-55.avif 1387w",webp:"static/birthday/vk-320-2025-07-18-11-08-55.webp 320w, static/birthday/vk-854-2025-07-18-11-08-55.webp 854w, static/birthday/vk-920-2025-07-18-11-08-55.webp 1387w"},vkmusic:{png:"static/birthday/vk-320-2025-07-18-11-08-55.png 320w, static/birthday/vk-854-2025-07-18-11-08-55.png 854w, static/birthday/vk-920-2025-07-18-11-08-55.png 1387w",avif:"static/birthday/vk-320-2025-07-18-11-08-55.avif 320w, static/birthday/vk-854-2025-07-18-11-08-55.avif 854w, static/birthday/vk-920-2025-07-18-11-08-55.avif 1387w",webp:"static/birthday/vk-320-2025-07-18-11-08-55.webp 320w, static/birthday/vk-854-2025-07-18-11-08-55.webp 854w, static/birthday/vk-920-2025-07-18-11-08-55.webp 1387w"},kaspersky_with_pro:{png:"static/birthday/kaspersky-320-2025-07-18-10-59-09.png 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.png 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.png 1387w",avif:"static/birthday/kaspersky-320-2025-07-18-10-59-09.avif 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.avif 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.avif 1387w",webp:"static/birthday/kaspersky-320-2025-07-18-10-59-09.webp 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.webp 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.webp 1387w"},kaspersky_without_pro:{png:"static/birthday/kaspersky-320-2025-07-18-10-59-09.png 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.png 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.png 1387w",avif:"static/birthday/kaspersky-320-2025-07-18-10-59-09.avif 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.avif 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.avif 1387w",webp:"static/birthday/kaspersky-320-2025-07-18-10-59-09.webp 320w, static/birthday/kaspersky-854-2025-07-18-10-59-09.webp 854w, static/birthday/kaspersky-920-2025-07-18-10-59-09.webp 1387w"},tinkoff_pro:{png:"static/birthday/pro-320-2025-07-18-11-01-38.png 320w, static/birthday/pro-854-2025-07-18-11-01-38.png 854w, static/birthday/pro-920-2025-07-18-11-01-38.png 1387w",avif:"static/birthday/pro-320-2025-07-18-11-01-38.avif 320w, static/birthday/pro-854-2025-07-18-11-01-38.avif 854w, static/birthday/pro-920-2025-07-18-11-01-38.avif 1387w",webp:"static/birthday/pro-320-2025-07-18-11-01-38.webp 320w, static/birthday/pro-854-2025-07-18-11-01-38.webp 854w, static/birthday/pro-920-2025-07-18-11-01-38.webp 1387w"},dodo:{png:"static/birthday/dodo2-320-2025-07-18-10-52-09.png 320w, static/birthday/dodo2-854-2025-07-18-10-52-09.png 854w, static/birthday/dodo2-920-2025-07-18-10-52-09.png 1387w",avif:"static/birthday/dodo2-320-2025-07-18-10-52-09.avif 320w, static/birthday/dodo2-854-2025-07-18-10-52-09.avif 854w, static/birthday/dodo2-920-2025-07-18-10-52-09.avif 1387w",webp:"static/birthday/dodo2-320-2025-07-18-10-52-09.webp 320w, static/birthday/dodo2-854-2025-07-18-10-52-09.webp 854w, static/birthday/dodo2-920-2025-07-18-10-52-09.webp 1387w"},invest_first_category:{png:"static/birthday/invest-320-2025-07-18-10-56-32.png 320w, static/birthday/invest-854-2025-07-18-10-56-32.png 854w, static/birthday/invest-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/invest-320-2025-07-18-10-56-32.avif 320w, static/birthday/invest-854-2025-07-18-10-56-32.avif 854w, static/birthday/invest-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/invest-320-2025-07-18-10-56-32.webp 320w, static/birthday/invest-854-2025-07-18-10-56-32.webp 854w, static/birthday/invest-920-2025-07-18-10-56-32.webp 1387w"},invest_second_category:{png:"static/birthday/invest-320-2025-07-18-10-56-32.png 320w, static/birthday/invest-854-2025-07-18-10-56-32.png 854w, static/birthday/invest-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/invest-320-2025-07-18-10-56-32.avif 320w, static/birthday/invest-854-2025-07-18-10-56-32.avif 854w, static/birthday/invest-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/invest-320-2025-07-18-10-56-32.webp 320w, static/birthday/invest-854-2025-07-18-10-56-32.webp 854w, static/birthday/invest-920-2025-07-18-10-56-32.webp 1387w"},invest_third_category:{png:"static/birthday/invest-320-2025-07-18-10-56-32.png 320w, static/birthday/invest-854-2025-07-18-10-56-32.png 854w, static/birthday/invest-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/invest-320-2025-07-18-10-56-32.avif 320w, static/birthday/invest-854-2025-07-18-10-56-32.avif 854w, static/birthday/invest-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/invest-320-2025-07-18-10-56-32.webp 320w, static/birthday/invest-854-2025-07-18-10-56-32.webp 854w, static/birthday/invest-920-2025-07-18-10-56-32.webp 1387w"},tour:{png:"static/birthday/tour-320-2025-07-18-11-06-58.png 320w, static/birthday/tour-854-2025-07-18-11-06-58.png 854w, static/birthday/tour-920-2025-07-18-11-06-58.png 1920w",avif:"static/birthday/tour-320-2025-07-18-11-06-58.avif 320w, static/birthday/tour-854-2025-07-18-11-06-58.avif 854w, static/birthday/tour-920-2025-07-18-11-06-58.avif 1387w",webp:"static/birthday/tour-320-2025-07-18-11-06-58.webp 320w, static/birthday/tour-854-2025-07-18-11-06-58.webp 854w, static/birthday/tour-920-2025-07-18-11-06-58.webp 1387w"},hotel_current_buyers:{png:"static/birthday/hotel-320-2025-07-18-10-56-34.png 320w, static/birthday/hotel-854-2025-07-18-10-56-34.png 854w, static/birthday/hotel-920-2025-07-18-10-56-34.png 1387w",avif:"static/birthday/hotel-320-2025-07-18-10-56-34.avif 320w, static/birthday/hotel-854-2025-07-18-10-56-34.avif 854w, static/birthday/hotel-920-2025-07-18-10-56-34.avif 1387w",webp:"static/birthday/hotel-320-2025-07-18-10-56-34.webp 320w, static/birthday/hotel-854-2025-07-18-10-56-34.webp 854w, static/birthday/hotel-920-2025-07-18-10-56-34.webp 1387w"},hotel:{png:"static/birthday/hotel-320-2025-07-18-10-56-34.png 320w, static/birthday/hotel-854-2025-07-18-10-56-34.png 854w, static/birthday/hotel-920-2025-07-18-10-56-34.png 1387w",avif:"static/birthday/hotel-320-2025-07-18-10-56-34.avif 320w, static/birthday/hotel-854-2025-07-18-10-56-34.avif 854w, static/birthday/hotel-920-2025-07-18-10-56-34.avif 1387w",webp:"static/birthday/hotel-320-2025-07-18-10-56-34.webp 320w, static/birthday/hotel-854-2025-07-18-10-56-34.webp 854w, static/birthday/hotel-920-2025-07-18-10-56-34.webp 1387w"},avia:{png:"static/birthday/avia-320-2025-07-18-09-27-46.png 320w, static/birthday/avia-854-2025-07-18-09-27-46.png 854w, static/birthday/avia-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/avia-320-2025-07-18-09-27-46.avif 320w, static/birthday/avia-854-2025-07-18-09-27-46.avif 854w, static/birthday/avia-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/avia-320-2025-07-18-09-27-46.webp 320w, static/birthday/avia-854-2025-07-18-09-27-46.webp 854w, static/birthday/avia-920-2025-07-18-09-27-46.webp 1387w"},avia_current_buyers:{png:"static/birthday/avia-320-2025-07-18-09-27-46.png 320w, static/birthday/avia-854-2025-07-18-09-27-46.png 854w, static/birthday/avia-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/avia-320-2025-07-18-09-27-46.avif 320w, static/birthday/avia-854-2025-07-18-09-27-46.avif 854w, static/birthday/avia-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/avia-320-2025-07-18-09-27-46.webp 320w, static/birthday/avia-854-2025-07-18-09-27-46.webp 854w, static/birthday/avia-920-2025-07-18-09-27-46.webp 1387w"},avia500:{png:"static/birthday/avia-320-2025-07-18-09-27-46.png 320w, static/birthday/avia-854-2025-07-18-09-27-46.png 854w, static/birthday/avia-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/avia-320-2025-07-18-09-27-46.avif 320w, static/birthday/avia-854-2025-07-18-09-27-46.avif 854w, static/birthday/avia-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/avia-320-2025-07-18-09-27-46.webp 320w, static/birthday/avia-854-2025-07-18-09-27-46.webp 854w, static/birthday/avia-920-2025-07-18-09-27-46.webp 1387w"},avia1000new:{png:"static/birthday/avia-320-2025-07-18-09-27-46.png 320w, static/birthday/avia-854-2025-07-18-09-27-46.png 854w, static/birthday/avia-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/avia-320-2025-07-18-09-27-46.avif 320w, static/birthday/avia-854-2025-07-18-09-27-46.avif 854w, static/birthday/avia-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/avia-320-2025-07-18-09-27-46.webp 320w, static/birthday/avia-854-2025-07-18-09-27-46.webp 854w, static/birthday/avia-920-2025-07-18-09-27-46.webp 1387w"},avia1000current:{png:"static/birthday/avia-320-2025-07-18-09-27-46.png 320w, static/birthday/avia-854-2025-07-18-09-27-46.png 854w, static/birthday/avia-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/avia-320-2025-07-18-09-27-46.avif 320w, static/birthday/avia-854-2025-07-18-09-27-46.avif 854w, static/birthday/avia-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/avia-320-2025-07-18-09-27-46.webp 320w, static/birthday/avia-854-2025-07-18-09-27-46.webp 854w, static/birthday/avia-920-2025-07-18-09-27-46.webp 1387w"},sunlight:{png:"static/birthday/sunlight_2-320-2025-08-12-11-20-06.png 320w, static/birthday/sunlight_2-854-2025-08-12-11-20-06.png 854w",avif:"static/birthday/sunlight_2-320-2025-08-12-11-20-06.avif 320w, static/birthday/sunlight_2-854-2025-08-12-11-20-06.avif 854w",webp:"static/birthday/sunlight_2-320-2025-08-12-11-20-06.webp 320w, static/birthday/sunlight_2-854-2025-08-12-11-20-06.webp 854w"},chefmarket:{png:"static/birthday/chefmarket-320-2025-07-18-10-48-56.png 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.png 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/chefmarket-320-2025-07-18-10-48-56.avif 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.avif 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/chefmarket-320-2025-07-18-10-48-56.webp 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.webp 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.webp 1920w"},chefmarketold:{png:"static/birthday/chefmarket-320-2025-07-18-10-48-56.png 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.png 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/chefmarket-320-2025-07-18-10-48-56.avif 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.avif 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/chefmarket-320-2025-07-18-10-48-56.webp 320w, static/birthday/chefmarket-854-2025-07-18-10-48-56.webp 854w, static/birthday/chefmarket-920-2025-07-18-10-48-56.webp 1920w"},mobile_pro:{png:"static/birthday/mobile-320-2025-07-18-11-01-36.png 320w, static/birthday/mobile-854-2025-07-18-11-01-36.png 854w, static/birthday/mobile-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/mobile-320-2025-07-18-11-01-36.avif 320w, static/birthday/mobile-854-2025-07-18-11-01-36.avif 854w, static/birthday/mobile-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/mobile-320-2025-07-18-11-01-36.webp 320w, static/birthday/mobile-854-2025-07-18-11-01-36.webp 854w, static/birthday/mobile-920-2025-07-18-11-01-36.webp 1387w"},savings_new:{png:"static/birthday/savings_new-320-2025-07-18-11-04-11.png 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.png 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.png 1387w",avif:"static/birthday/savings_new-320-2025-07-18-11-04-11.avif 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.avif 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.avif 1920w",webp:"static/birthday/savings_new-320-2025-07-18-11-04-11.webp 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.webp 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.webp 1387w"},savings:{png:"static/birthday/savings_new-320-2025-07-18-11-04-11.png 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.png 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.png 1387w",avif:"static/birthday/savings_new-320-2025-07-18-11-04-11.avif 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.avif 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.avif 1920w",webp:"static/birthday/savings_new-320-2025-07-18-11-04-11.webp 320w, static/birthday/savings_new-854-2025-07-18-11-04-11.webp 854w, static/birthday/savings_new-920-2025-07-18-11-04-11.webp 1387w"},flowwow:{png:"static/birthday/flowwow2-320-2025-07-18-10-54-29.png 320w, static/birthday/flowwow2-854-2025-07-18-10-54-29.png 854w, static/birthday/flowwow2-920-2025-07-18-10-54-29.png 1387w",avif:"static/birthday/flowwow2-320-2025-07-18-10-54-29.avif 320w, static/birthday/flowwow2-854-2025-07-18-10-54-29.avif 854w, static/birthday/flowwow2-920-2025-07-18-10-54-29.avif 1387w",webp:"static/birthday/flowwow2-320-2025-07-18-10-54-29.webp 320w, static/birthday/flowwow2-854-2025-07-18-10-54-29.webp 854w, static/birthday/flowwow2-920-2025-07-18-10-54-29.webp 1387w"},journal:{png:"static/birthday/journal-320-2025-07-18-10-59-09.png 320w, static/birthday/journal-854-2025-07-18-10-59-09.png 854w, static/birthday/journal-920-2025-07-18-10-59-09.png 1387w",avif:"static/birthday/journal-320-2025-07-18-10-59-09.avif 320w, static/birthday/journal-854-2025-07-18-10-59-09.avif 854w, static/birthday/journal-920-2025-07-18-10-59-09.avif 1387w",webp:"static/birthday/journal-320-2025-07-18-10-59-09.webp 320w, static/birthday/journal-854-2025-07-18-10-59-09.webp 854w, static/birthday/journal-920-2025-07-18-10-59-09.webp 1387w"},ildebeaute:{png:"static/birthday/rivegauche-320-2025-07-18-11-04-13.png 320w, static/birthday/rivegauche-854-2025-07-18-11-04-13.png 854w, static/birthday/rivegauche-920-2025-07-18-11-04-13.png 1387w",avif:"static/birthday/rivegauche-320-2025-07-18-11-04-13.avif 320w, static/birthday/rivegauche-854-2025-07-18-11-04-13.avif 854w, static/birthday/rivegauche-920-2025-07-18-11-04-13.avif 1387w",webp:"static/birthday/rivegauche-320-2025-07-18-11-04-13.webp 320w, static/birthday/rivegauche-854-2025-07-18-11-04-13.webp 854w, static/birthday/rivegauche-920-2025-07-18-11-04-13.webp 1387w"},junior:{png:"static/birthday/junior-320-2025-07-18-10-59-09.png 320w, static/birthday/junior-854-2025-07-18-10-59-09.png 854w, static/birthday/junior-920-2025-07-18-10-59-09.png 1387w",avif:"static/birthday/junior-320-2025-07-18-10-59-09.avif 320w, static/birthday/junior-854-2025-07-18-10-59-09.avif 854w, static/birthday/junior-920-2025-07-18-10-59-09.avif 1387w",webp:"static/birthday/junior-320-2025-07-18-10-59-09.webp 320w, static/birthday/junior-854-2025-07-18-10-59-09.webp 854w, static/birthday/junior-920-2025-07-18-10-59-09.webp 1387w"},coffee:{png:"static/birthday/tasty-320-2025-10-10-14-54-34.png 320w, static/birthday/tasty-854-2025-10-10-14-54-34.png 854w, static/birthday/tasty-920-2025-10-10-14-54-34.png 1387w",avif:"static/birthday/tasty-320-2025-10-10-14-54-34.avif 320w, static/birthday/tasty-854-2025-10-10-14-54-34.avif 854w, static/birthday/tasty-920-2025-10-10-14-54-34.avif 1387w",webp:"static/birthday/tasty-320-2025-10-10-14-54-34.webp 320w, static/birthday/tasty-854-2025-10-10-14-54-34.webp 854w, static/birthday/tasty-920-2025-10-10-14-54-34.webp 1387w"},tastynew:{png:"static/birthday/tasty-320-2025-10-10-14-54-34.png 320w, static/birthday/tasty-854-2025-10-10-14-54-34.png 854w, static/birthday/tasty-920-2025-10-10-14-54-34.png 1387w",avif:"static/birthday/tasty-320-2025-10-10-14-54-34.avif 320w, static/birthday/tasty-854-2025-10-10-14-54-34.avif 854w, static/birthday/tasty-920-2025-10-10-14-54-34.avif 1387w",webp:"static/birthday/tasty-320-2025-10-10-14-54-34.webp 320w, static/birthday/tasty-854-2025-10-10-14-54-34.webp 854w, static/birthday/tasty-920-2025-10-10-14-54-34.webp 1387w"},tastyold:{png:"static/birthday/tasty-320-2025-10-10-14-54-34.png 320w, static/birthday/tasty-854-2025-10-10-14-54-34.png 854w, static/birthday/tasty-920-2025-10-10-14-54-34.png 1387w",avif:"static/birthday/tasty-320-2025-10-10-14-54-34.avif 320w, static/birthday/tasty-854-2025-10-10-14-54-34.avif 854w, static/birthday/tasty-920-2025-10-10-14-54-34.avif 1387w",webp:"static/birthday/tasty-320-2025-10-10-14-54-34.webp 320w, static/birthday/tasty-854-2025-10-10-14-54-34.webp 854w, static/birthday/tasty-920-2025-10-10-14-54-34.webp 1387w"},sokolov:{png:"static/birthday/sokolov-320-2025-07-18-11-04-11.png 320w, static/birthday/sokolov-854-2025-07-18-11-04-11.png 854w, static/birthday/sokolov-920-2025-07-18-11-04-11.png 1387w",avif:"static/birthday/sokolov-320-2025-07-18-11-04-11.avif 320w, static/birthday/sokolov-854-2025-07-18-11-04-11.avif 854w, static/birthday/sokolov-920-2025-07-18-11-04-11.avif 1387w",webp:"static/birthday/sokolov-320-2025-07-18-11-04-11.webp 320w, static/birthday/sokolov-854-2025-07-18-11-04-11.webp 854w, static/birthday/sokolov-920-2025-07-18-11-04-11.webp 1387w"},skyeng:{png:"static/birthday/skyeng-320-2025-07-18-11-04-13.png 320w, static/birthday/skyeng-854-2025-07-18-11-04-13.png 854w, static/birthday/skyeng-920-2025-07-18-11-04-13.png 1387w",avif:"static/birthday/skyeng-320-2025-07-18-11-04-13.avif 320w, static/birthday/skyeng-854-2025-07-18-11-04-13.avif 854w, static/birthday/skyeng-920-2025-07-18-11-04-13.avif 1387w",webp:"static/birthday/skyeng-320-2025-07-18-11-04-13.webp 320w, static/birthday/skyeng-854-2025-07-18-11-04-13.webp 854w, static/birthday/skyeng-920-2025-07-18-11-04-13.webp 1387w"},stikershans:{png:"static/birthday/stikershans-320-2025-07-18-11-07-00.png 320w, static/birthday/stikershans-854-2025-07-18-11-07-00.png 854w, static/birthday/stikershans-920-2025-07-18-11-07-00.png 1387w",avif:"static/birthday/stikershans-320-2025-07-18-11-07-00.avif 320w, static/birthday/stikershans-854-2025-07-18-11-07-00.avif 854w, static/birthday/stikershans-920-2025-07-18-11-07-00.avif 1387w",webp:"static/birthday/stikershans-320-2025-07-18-11-07-00.webp 320w, static/birthday/stikershans-854-2025-07-18-11-07-00.webp 854w, static/birthday/stikershans-920-2025-07-18-11-07-00.webp 1387w"},airo:{png:"static/birthday/airo-320-2025-07-18-09-27-47.png 320w, static/birthday/airo-854-2025-07-18-09-27-47.png 854w, static/birthday/airo-920-2025-07-18-09-27-47.png 1387w",avif:"static/birthday/airo-320-2025-07-18-09-27-47.avif 320w, static/birthday/airo-854-2025-07-18-09-27-47.avif 854w, static/birthday/airo-920-2025-07-18-09-27-47.avif 1387w",webp:"static/birthday/airo-320-2025-07-18-09-27-47.webp 320w, static/birthday/airo-854-2025-07-18-09-27-47.webp 854w, static/birthday/airo-920-2025-07-18-09-27-47.webp 1387w"},chibbis:{png:"static/birthday/chibbis-320-2025-07-18-10-48-56.png 320w, static/birthday/chibbis-854-2025-07-18-10-48-56.png 854w, static/birthday/chibbis-920-2025-07-18-10-48-56.png 1387w",avif:"static/birthday/chibbis-320-2025-07-18-10-48-56.avif 320w, static/birthday/chibbis-854-2025-07-18-10-48-56.avif 854w, static/birthday/chibbis-920-2025-07-18-10-48-56.avif 1387w",webp:"static/birthday/chibbis-320-2025-07-18-10-48-56.webp 320w, static/birthday/chibbis-854-2025-07-18-10-48-56.webp 854w, static/birthday/chibbis-920-2025-07-18-10-48-56.webp 1387w"},afisha:{png:"static/birthday/afisha-320-2025-07-18-09-27-46.png 320w, static/birthday/afisha-854-2025-07-18-09-27-46.png 854w, static/birthday/afisha-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/afisha-320-2025-07-18-09-27-46.avif 320w, static/birthday/afisha-854-2025-07-18-09-27-46.avif 854w, static/birthday/afisha-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/afisha-320-2025-07-18-09-27-46.webp 320w, static/birthday/afisha-854-2025-07-18-09-27-46.webp 854w, static/birthday/afisha-920-2025-07-18-09-27-46.webp 1387w"},flatinsurance:{png:"static/birthday/flatinsurance-320-2025-07-18-10-52-09.png 320w, static/birthday/flatinsurance-854-2025-07-18-10-52-09.png 854w, static/birthday/flatinsurance-920-2025-07-18-10-52-09.png 1387w",avif:"static/birthday/flatinsurance-320-2025-07-18-10-52-09.avif 320w, static/birthday/flatinsurance-854-2025-07-18-10-52-09.avif 854w, static/birthday/flatinsurance-920-2025-07-18-10-52-09.avif 1387w",webp:"static/birthday/flatinsurance-320-2025-07-18-10-52-09.webp 320w, static/birthday/flatinsurance-854-2025-07-18-10-52-09.webp 854w, static/birthday/flatinsurance-920-2025-07-18-10-52-09.webp 1387w"},cuva:{png:"static/birthday/cuva-320-2025-07-18-10-52-08.png 320w, static/birthday/cuva-854-2025-07-18-10-52-08.png 854w, static/birthday/cuva-888-2025-07-18-10-52-08.png 1387w",avif:"static/birthday/cuva-320-2025-07-18-10-52-08.avif 320w, static/birthday/cuva-854-2025-07-18-10-52-08.avif 854w, static/birthday/cuva-888-2025-07-18-10-52-08.avif 1387w",webp:"static/birthday/cuva-320-2025-07-18-10-52-08.webp 320w, static/birthday/cuva-854-2025-07-18-10-52-08.webp 854w, static/birthday/cuva-888-2025-07-18-10-52-08.webp 1387w"},premier:{png:"static/birthday/premier-320-2025-07-18-11-01-36.png 320w, static/birthday/premier-854-2025-07-18-11-01-36.png 854w, static/birthday/premier-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/premier-320-2025-07-18-11-01-36.avif 320w, static/birthday/premier-854-2025-07-18-11-01-36.avif 854w, static/birthday/premier-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/premier-320-2025-07-18-11-01-36.webp 320w, static/birthday/premier-854-2025-07-18-11-01-36.webp 854w, static/birthday/premier-920-2025-07-18-11-01-36.webp 1387w"},supermarkets:{png:"static/birthday/supermarkets-320-2025-07-18-11-06-58.png 320w, static/birthday/supermarkets-854-2025-07-18-11-06-58.png 854w, static/birthday/supermarkets-920-2025-07-18-11-06-58.png 1387w",avif:"static/birthday/supermarkets-320-2025-07-18-11-06-58.avif 320w, static/birthday/supermarkets-854-2025-07-18-11-06-58.avif 854w, static/birthday/supermarkets-920-2025-07-18-11-06-58.avif 1387w",webp:"static/birthday/supermarkets-320-2025-07-18-11-06-58.webp 320w, static/birthday/supermarkets-854-2025-07-18-11-06-58.webp 854w, static/birthday/supermarkets-920-2025-07-18-11-06-58.webp 1387w"},kuper:{png:"static/birthday/kuper-320-2025-07-18-10-59-11.png 320w, static/birthday/kuper-854-2025-07-18-10-59-11.png 854w, static/birthday/kuper-920-2025-07-18-10-59-11.png 1387w",avif:"static/birthday/kuper-320-2025-07-18-10-59-11.avif 320w, static/birthday/kuper-854-2025-07-18-10-59-11.avif 854w, static/birthday/kuper-920-2025-07-18-10-59-11.avif 1387w",webp:"static/birthday/kuper-320-2025-07-18-10-59-11.webp 320w, static/birthday/kuper-854-2025-07-18-10-59-11.webp 854w, static/birthday/kuper-920-2025-07-18-10-59-11.webp 1387w"},yandexmarket:{png:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.png 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.png 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.png 1387w",avif:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.avif 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.avif 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.avif 1387w",webp:"static/birthday/yandexmarket-320-2025-07-18-11-40-30.webp 320w, static/birthday/yandexmarket-854-2025-07-18-11-40-30.webp 854w, static/birthday/yandexmarket-920-2025-07-18-11-40-30.webp 1387w"},hermitage:{png:"static/birthday/hermitage-320-2025-07-18-10-56-32.png 320w, static/birthday/hermitage-854-2025-07-18-10-56-32.png 854w, static/birthday/hermitage-920-2025-07-18-10-56-32.png 1387w",avif:"static/birthday/hermitage-320-2025-07-18-10-56-32.avif 320w, static/birthday/hermitage-854-2025-07-18-10-56-32.avif 854w, static/birthday/hermitage-920-2025-07-18-10-56-32.avif 1387w",webp:"static/birthday/hermitage-320-2025-07-18-10-56-32.webp 320w, static/birthday/hermitage-854-2025-07-18-10-56-32.webp 854w, static/birthday/hermitage-920-2025-07-18-10-56-32.webp 1387w"},bestmebel:{png:"static/birthday/bestmebel-320-2025-07-18-09-27-46.png 320w, static/birthday/bestmebel-854-2025-07-18-09-27-46.png 854w, static/birthday/bestmebel-920-2025-07-18-09-27-46.png 1387w",avif:"static/birthday/bestmebel-320-2025-07-18-09-27-46.avif 320w, static/birthday/bestmebel-854-2025-07-18-09-27-46.avif 854w, static/birthday/bestmebel-920-2025-07-18-09-27-46.avif 1387w",webp:"static/birthday/bestmebel-320-2025-07-18-09-27-46.webp 320w, static/birthday/bestmebel-854-2025-07-18-09-27-46.webp 854w, static/birthday/bestmebel-920-2025-07-18-09-27-46.webp 1387w"},sme:{png:"static/birthday/sme-320-2025-07-18-11-04-11.png 320w, static/birthday/sme-854-2025-07-18-11-04-11.png 854w, static/birthday/sme-920-2025-07-18-11-04-11.png 1387w",avif:"static/birthday/sme-320-2025-07-18-11-04-11.avif 320w, static/birthday/sme-854-2025-07-18-11-04-11.avif 854w, static/birthday/sme-920-2025-07-18-11-04-11.avif 1387w",webp:"static/birthday/sme-320-2025-07-18-11-04-11.webp 320w, static/birthday/sme-854-2025-07-18-11-04-11.webp 854w, static/birthday/sme-920-2025-07-18-11-04-11.webp 1387w"},premium1:{png:"static/birthday/premium-320-2025-07-18-11-01-36.png 320w, static/birthday/premium-854-2025-07-18-11-01-36.png 854w, static/birthday/premium-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/premium-320-2025-07-18-11-01-36.avif 320w, static/birthday/premium-854-2025-07-18-11-01-36.avif 854w, static/birthday/premium-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/premium-320-2025-07-18-11-01-36.webp 320w, static/birthday/premium-854-2025-07-18-11-01-36.webp 854w, static/birthday/premium-920-2025-07-18-11-01-36.webp 1387w"},premium2:{png:"static/birthday/premium-320-2025-07-18-11-01-36.png 320w, static/birthday/premium-854-2025-07-18-11-01-36.png 854w, static/birthday/premium-920-2025-07-18-11-01-36.png 1387w",avif:"static/birthday/premium-320-2025-07-18-11-01-36.avif 320w, static/birthday/premium-854-2025-07-18-11-01-36.avif 854w, static/birthday/premium-920-2025-07-18-11-01-36.avif 1387w",webp:"static/birthday/premium-320-2025-07-18-11-01-36.webp 320w, static/birthday/premium-854-2025-07-18-11-01-36.webp 854w, static/birthday/premium-920-2025-07-18-11-01-36.webp 1387w"},lecaronline:{png:"static/birthday/lecaronline-320-2025-07-18-10-59-10.png 320w, static/birthday/lecaronline-854-2025-07-18-10-59-10.png 854w, static/birthday/lecaronline-920-2025-07-18-10-59-10.png 1387w",avif:"static/birthday/lecaronline-320-2025-07-18-10-59-10.avif 320w, static/birthday/lecaronline-854-2025-07-18-10-59-10.avif 854w, static/birthday/lecaronline-920-2025-07-18-10-59-10.avif 1387w",webp:"static/birthday/lecaronline-320-2025-07-18-10-59-10.webp 320w, static/birthday/lecaronline-854-2025-07-18-10-59-10.webp 854w, static/birthday/lecaronline-920-2025-07-18-10-59-10.webp 1387w"},kasko:{png:"static/birthday/kasko-320-2025-09-30-09-55-19.png 320w, static/birthday/kasko-854-2025-09-30-09-55-19.png 854w, static/birthday/kasko-920-2025-09-30-09-55-19.png 1387w",avif:"static/birthday/kasko-320-2025-09-30-09-55-19.avif 320w, static/birthday/kasko-854-2025-09-30-09-55-19.avif 854w, static/birthday/kasko-920-2025-09-30-09-55-19.avif 1387w",webp:"static/birthday/kasko-320-2025-09-30-09-55-19.webp 320w, static/birthday/kasko-854-2025-09-30-09-55-19.webp 854w, static/birthday/kasko-920-2025-09-30-09-55-19.webp 1387w"},otello:{png:"static/birthday/otello-320-2025-09-30-09-55-19.png 320w, static/birthday/otello-854-2025-09-30-09-55-19.png 854w, static/birthday/otello-920-2025-09-30-09-55-19.png 1387w",avif:"static/birthday/otello-320-2025-09-30-09-55-19.avif 320w, static/birthday/otello-854-2025-09-30-09-55-19.avif 854w, static/birthday/otello-920-2025-09-30-09-55-19.avif 1387w",webp:"static/birthday/otello-320-2025-09-30-09-55-19.webp 320w, static/birthday/otello-854-2025-09-30-09-55-19.webp 854w, static/birthday/otello-920-2025-09-30-09-55-19.webp 1387w"},prizopoliya:{png:"static/birthday/prizopoliya-320-2025-10-07-07-39-21.png 320w, static/birthday/prizopoliya-854-2025-10-07-07-39-21.png 854w, static/birthday/prizopoliya-920-2025-10-07-07-39-21.png 1387w",avif:"static/birthday/prizopoliya-320-2025-10-07-07-39-21.avif 320w, static/birthday/prizopoliya-854-2025-10-07-07-39-21.avif 854w, static/birthday/prizopoliya-920-2025-10-07-07-39-21.avif 1387w",webp:"static/birthday/prizopoliya-320-2025-10-07-07-39-21.webp 320w, static/birthday/prizopoliya-854-2025-10-07-07-39-21.webp 854w, static/birthday/prizopoliya-920-2025-10-07-07-39-21.webp 1920w"},kotletka:{png:"static/birthday/kotletka-320-2025-11-18-13-19-07.png 320w, static/birthday/kotletka-854-2025-11-18-13-19-07.png 854w, static/birthday/kotletka-920-2025-11-18-13-19-07.png 1387w",avif:"static/birthday/kotletka-320-2025-11-18-13-19-07.avif 320w, static/birthday/kotletka-854-2025-11-18-13-19-07.avif 854w, static/birthday/kotletka-920-2025-11-18-13-19-07.avif 1387w",webp:"static/birthday/kotletka-320-2025-11-18-13-19-07.webp 320w, static/birthday/kotletka-854-2025-11-18-13-19-07.webp 854w, static/birthday/kotletka-920-2025-11-18-13-19-07.webp 1387w"},newyear:{png:"static/birthday/newyear-320-2025-12-15-09-05-07.png 320w, static/birthday/newyear-854-2025-12-15-09-05-07.png 854w, static/birthday/newyear-920-2025-12-15-09-05-07.png 1387w",avif:"static/birthday/newyear-320-2025-12-15-09-05-07.avif 320w, static/birthday/newyear-854-2025-12-15-09-05-07.avif 854w, static/birthday/newyear-920-2025-12-15-09-05-07.avif 1387w",webp:"static/birthday/newyear-320-2025-12-15-09-05-07.webp 320w, static/birthday/newyear-854-2025-12-15-09-05-07.webp 854w, static/birthday/newyear-920-2025-12-15-09-05-07.webp 1387w"},hotelnew:{png:"static/birthday/hotelnew-320-2025-12-24-14-37-05.png 320w, static/birthday/hotelnew-854-2025-12-24-14-37-05.png 854w, static/birthday/hotelnew-920-2025-12-24-14-37-05.png 1387w",avif:"static/birthday/hotelnew-320-2025-12-24-14-37-05.avif 320w, static/birthday/hotelnew-854-2025-12-24-14-37-05.avif 854w, static/birthday/hotelnew-920-2025-12-24-14-37-05.avif 1387w",webp:"static/birthday/hotelnew-320-2025-12-24-14-37-05.webp 320w, static/birthday/hotelnew-854-2025-12-24-14-37-05.webp 854w, static/birthday/hotelnew-920-2025-12-24-14-37-05.webp 1387w"}},tg={[tu.aH.Star]:"static/birthday/star-2025-07-18-12-22-21.png",[tu.aH.BoxFront]:"static/birthday/boxFront-771-2025-07-18-12-07-21.png",[tu.aH.BoxBack]:"static/birthday/boxBack-716-2025-07-18-12-07-21.png",[tu.aH.Movie]:"static/birthday/movie-2025-07-18-12-20-51.png",[tu.aH.Column]:"static/birthday/column-2025-07-18-12-15-31.png",[tu.aH.Glass]:"static/birthday/glass-2025-07-18-12-15-31.png",[tu.aH.OrangeHeart]:"static/birthday/orangeHeart-2025-07-18-12-20-51.png",[tu.aH.GreenHeart]:"static/birthday/greenHeart-2025-07-18-12-15-31.png",[tu.aH.PinkHeart]:"static/birthday/pinkHeart-2025-07-18-12-22-21.png",[tu.aH.PinkBaloon]:"static/birthday/pinkBaloon-2025-07-18-12-20-51.png",[tu.aH.GreenBaloon]:"static/birthday/greenBaloon-2025-07-18-12-15-31.png",[tu.aH.YellowBaloon]:"static/birthday/yellowBaloon-2025-07-18-12-22-21.png",[tu.aH.Plane]:"static/birthday/plane-2025-07-18-12-22-21.png",[tu.aH.NotkaFirst]:"static/birthday/notka-1-2025-07-18-12-20-51.png",[tu.aH.NotkaSecond]:"static/birthday/notka-2-2025-07-18-12-20-51.png",[tu.aH.Book]:"static/birthday/book-383-2025-07-18-12-07-21.png",[tu.aH.Car]:"static/birthday/car-552-2025-07-18-12-07-21.png",[tu.aH.Tickets]:"static/birthday/tickets-2025-07-18-12-22-21.png",[tu.aH.Cake]:"static/birthday/cake-663-2025-07-18-12-07-21.png",[tu.aH.Item1]:"static/birthday/item-1-2025-07-18-12-15-31.png",[tu.aH.Item2]:"static/birthday/item-2-2025-07-18-12-18-10.png",[tu.aH.Item3]:"static/birthday/item-3-2025-07-18-12-18-10.png",[tu.aH.Item4]:"static/birthday/item-4-2025-07-18-12-18-10.png",[tu.aH.Item5]:"static/birthday/item-5-2025-07-18-12-18-10.png",[tu.aH.Item6]:"static/birthday/item-6-2025-07-18-12-18-10.png",[tu.aH.Item8]:"static/birthday/item-8-2025-07-18-12-18-10.png",[tu.aH.Item9]:"static/birthday/item-9-2025-07-18-12-18-10.png",[tu.aH.Item10]:"static/birthday/item-10-2025-07-18-12-18-10.png",[tu.aH.Item11]:"static/birthday/item-11-2025-07-18-12-18-10.png",[tu.aH.Item12]:"static/birthday/item-12-2025-07-18-12-18-10.png",[tu.aH.Item13]:"static/birthday/item-13-2025-07-18-12-18-10.png",[tu.aH.Item14]:"static/birthday/item-14-2025-07-18-12-18-10.png",[tu.aH.Item15]:"static/birthday/item-15-2025-07-18-12-18-10.png",[tu.aH.Item16]:"static/birthday/item-16-2025-07-18-12-18-10.png",[tu.aH.Item17]:"static/birthday/item-17-2025-07-18-12-18-10.png"};ti.Z={ErrorCodeMessage:{errorCodeTemplate:"Ошибка %errorCode%. Идентификатор:"},AuthPage:{textsByStep:{[ts.SsoAuthFormStep.Initial]:{title:"Вход по\xa0номеру телефона",subTitle:"Введите номер, на\xa0который мы\xa0отправим СМС‑код"},[ts.SsoAuthFormStep.Confirmation]:{title:"Подтверждение",subTitle:null}}},images:{closeImage:{src:"static/birthday/cross-2025-07-18-13-21-21.svg",alt:"Закрыть"}},promoCode:{copiedText:"Код скопирован",errorCopiedText:"Ошибка",errorFetchText:"Что‑то пошло не\xa0так. Попробуйте ещё раз"},MainPage:{logoutImg:{src:"static/birthday/logout-2025-07-18-13-21-21.svg",alt:"Логаут"},hero:{animation:{sceneImg:{src:"static/birthday/scene-1728-2025-07-18-12-05-31.png",alt:"Сцена"},pixiAnimationItems:tg}},logoImg:{src:{png:"static/birthday/logo0506-264-2025-07-18-11-45-47.png 320w",avif:"static/birthday/logo0506-264-2025-07-18-11-45-47.avif 320w",webp:"static/birthday/logo0506-264-2025-07-18-11-45-47.webp 320w"},alt:"Т-Банк"},giftCard:{qrText:"Отсканируйте куар‑код, чтобы получить подарок в\xa0мобильном приложении Т‑Банк",notAvailable:{label:"Завершено"},buttons:{takeGift:"Получить подарок",takePromoCode:"Получить промокод"},defaultImagePath:tv,imagesBySlug:tb},preloader:{text:"Упаковываем для вас подарки"},auth:{titleTemplate:"%name%\nс\xa0днём\xa0рождения!",description:"Мы\xa0к\xa0вам с\xa0подарками. Подскажем, как отметить праздник"},generalFilter:{type:tu.vA.All,label:"Все варианты"},filters:[{type:tu.vA.Aristocratic,label:"Аристократично"},{type:tu.vA.Friends,label:"С\xa0друзьями"},{type:tu.vA.Alone,label:"Наедине с\xa0собой"},{type:tu.vA.Adventures,label:"С\xa0приключениями"},{type:tu.vA.NewPlace,label:"В\xa0новом месте"},{type:tu.vA.Beauty,label:"Красота и здоровье"},{type:tu.vA.TinkoffGorod,label:"В Городе"},{type:tu.vA.Noisy,label:"Шумно"},{type:tu.vA.Shopping,label:"Шоппинг"},{type:tu.vA.Relax,label:"Отдых"},{type:tu.vA.Restaurants,label:"Рестораны и доставка"},{type:tu.vA.Education,label:"Обучение"},{type:tu.vA.Services,label:"Услуги"},{type:tu.vA.Kids,label:"Дети"},{type:tu.vA.Entertainment,label:"Развлечения"},{type:tu.vA.Sport,label:"Спорт"},{type:tu.vA.Tech,label:"Техника"},{type:tu.vA.Popular,label:"Популярное"},{type:tu.vA.Business,label:"Для бизнеса"}]},UnAuthMainPage:{images:{glass:{src:{png:"static/birthday/glass-320-2025-07-18-11-49-42.png 320w, static/birthday/glass-616-2025-07-18-11-49-42.png 854w",avif:"static/birthday/glass-320-2025-07-18-11-49-42.avif 320w, static/birthday/glass-616-2025-07-18-11-49-42.avif 854w",webp:"static/birthday/glass-320-2025-07-18-11-49-42.webp 320w, static/birthday/glass-616-2025-07-18-11-49-42.webp 854w"},alt:"Очки"},orangeHeart:{src:{png:"static/birthday/orangeHeart-164-2025-07-18-11-49-40.png 320w",avif:"static/birthday/orangeHeart-164-2025-07-18-11-49-40.avif 320w",webp:"static/birthday/orangeHeart-164-2025-07-18-11-49-40.webp 320w"},alt:"Оранжевое сердце"},greenHeart:{src:{png:"static/birthday/greenHeart-152-2025-07-18-11-49-40.png 320w",avif:"static/birthday/greenHeart-152-2025-07-18-11-49-40.avif 320w",webp:"static/birthday/greenHeart-152-2025-07-18-11-49-40.webp 320w"},alt:"Зеленое сердце"},pinkBaloon:{src:{png:"static/birthday/blueBaloon-292-2025-07-18-11-49-40.png 320w",avif:"static/birthday/blueBaloon-292-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/blueBaloon-292-2025-07-18-11-49-40.webp 320w"},alt:"Розовый шар"},greenBaloon:{src:{png:"static/birthday/greenBaloon-320-2025-07-18-11-49-40.png 320w, static/birthday/greenBaloon-530-2025-07-18-11-49-40.png 854w",avif:"static/birthday/greenBaloon-320-2025-07-18-11-49-40.avif 320w, static/birthday/greenBaloon-530-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/greenBaloon-320-2025-07-18-11-49-40.webp 320w, static/birthday/greenBaloon-530-2025-07-18-11-49-40.webp 854w"},alt:"Зеленый шар"},yellowBallon:{src:{png:"static/birthday/yellowBaloon-320-2025-07-18-11-49-40.png 320w, static/birthday/yellowBaloon-346-2025-07-18-11-49-40.png 854w",avif:"static/birthday/yellowBaloon-320-2025-07-18-11-49-40.avif 320w, static/birthday/yellowBaloon-346-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/yellowBaloon-320-2025-07-18-11-49-40.webp 320w, static/birthday/yellowBaloon-346-2025-07-18-11-49-40.webp 854w"},alt:"Желтый шар"},plane:{src:{png:"static/birthday/plane-320-2025-07-18-11-49-40.png 320w, static/birthday/plane-791-2025-07-18-11-49-40.png 854w",avif:"static/birthday/plane-320-2025-07-18-11-49-40.avif 320w, static/birthday/plane-791-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/plane-320-2025-07-18-11-49-40.webp 320w, static/birthday/plane-791-2025-07-18-11-49-40.webp 854w"},alt:"Самолет"},book:{src:{png:"static/birthday/book-320-2025-07-18-11-49-40.png 320w, static/birthday/book-630-2025-07-18-11-49-40.png 854w",avif:"static/birthday/book-320-2025-07-18-11-49-40.avif 320w, static/birthday/book-630-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/book-320-2025-07-18-11-49-40.webp 320w, static/birthday/book-630-2025-07-18-11-49-40.webp 854w"},alt:"Книга"},movie:{src:{png:"static/birthday/movie-320-2025-07-18-11-49-40.png 320w, static/birthday/movie-700-2025-07-18-11-49-40.png 854w",avif:"static/birthday/movie-320-2025-07-18-11-49-40.avif 320w, static/birthday/movie-700-2025-07-18-11-49-40.avif 854w",webp:"static/birthday/movie-320-2025-07-18-11-49-40.webp 320w, static/birthday/movie-700-2025-07-18-11-49-40.webp 854w"},alt:"Фильм"}},hero:{title:"С\xa0днем рождения! А\xa0нет, погодите…",description:"Здесь мы\xa0поздравляем клиентов Т‑Банка, но\xa0мы\xa0вас не\xa0узнали. Авторизуйтесь и\xa0примите от\xa0нас подарки. Если вы\xa0еще не\xa0с\xa0нами, можете это исправить сейчас",buttons:{withoutCard:{text:"Стать клиентом",href:"#".concat(tp)},getGifts:{text:"Я\xa0клиент Т‑Банка",href:tc.i.auth}}},description:{title:"Вот такие подарки мы\xa0дарим",description:"Не\xa0говорим, какие конкретно, иначе не\xa0будет сюрприза.",items:[{type:td.s.Bonus,text:"Скидки"},{type:td.s.Promotion,text:"Акции"},{type:td.s.Discounts,text:"Промокоды"},{type:td.s.Free,text:"Повышенный кэшбэк"},{type:td.s.Cashback,text:"Кое‑что вкусное"},{type:td.s.Many,text:"И многое\nдругое"}]},order:{anchorCard:tp,title:"Карта для любого праздника",description:"Красиво лежит в\xa0кошельке и\xa0помогает зарабатывать",cardImage:{src:{png:"static/birthday/card-320-2025-07-18-11-46-50.png 320w, static/birthday/card-840-2025-07-18-11-46-50.png 854w",avif:"static/birthday/card-320-2025-07-18-11-46-50.avif 320w, static/birthday/card-840-2025-07-18-11-46-50.avif 854w",webp:"static/birthday/card-320-2025-07-18-11-46-50.webp 320w, static/birthday/card-840-2025-07-18-11-46-50.webp 854w"},alt:"Карта"},advantages:[{type:"yellow",text:"4\xa0категории повышенного кэшбэка, каждый месяц вы\xa0выбираете новые"},{type:"orange",text:"До\xa030%\xa0— кэшбэк рублями у\xa0партнеров банка, до\xa015%\xa0— в\xa0любимых категориях"},{type:"purple",text:"Переводы на\xa0карты других банков, оплата ЖКУ, штрафов ГИБДД, связи\xa0— без комиссии с\xa0картой Т‑Банка"}]}},footer:{copyright:"\xa9 2006–".concat(new Date().getFullYear(),", АО\xa0\xabТБанк\xbb, официальный сайт, универсальная лицензия\xa0ЦБ\xa0РФ\xa0№ 2673"),links:[{href:"https://cdn.tbank.ru/static/documents/promo-clients-birthdays.pdf",text:"Условия"},{href:"https://cdn.tbank.ru/static/documents/debit-tariffs-tps_3_0.pdf",text:"Тариф по\xa0карте\xa0Black"},{href:"https://cdn.tbank.ru/static/documents/docs-tinkoff-bundle-subscription-terms.pdf",text:"Условия предоставления сервисов Pro"},{href:"https://cdn.tbank.ru/static/documents/loyalty-program-target_rules.pdf",text:"Программа лояльности Таргет"},{href:"https://cdn.tbank.ru/static/documents/loyalty-program-black-new.pdf",text:"Программа лояльности Black"}]},ErrorDefault:{title:"Что‑то пошло не\xa0так",text:"Попробуйте перезагрузить страницу или вернуться позже"}}},48419:function(tt,ti,ta){"use strict";ta.d(ti,{Iv:function(){return tu},VL:function(){return td},Y:function(){return tp}});var ts=ta(12781),tc=ta(93319),tu={projectErrors:[{title:"Что‑то пошло не\xa0так",text:"Попробуйте авторизоваться еще раз",errorCodes:[tc.S.SSOTokenNotActive,tc.S.CampaignNameAlreadyExist,tc.S.AuthSso],buttonText:"Войти",withLogout:!0,isErrorCodeVisible:!1,layout:{withLogoutButton:!0}},{title:"Не\xa0получилось войти",buttonText:"Перезагрузить страницу",text:"Перезагрузите страницу. Если не\xa0помогло, сделайте скриншот этого экрана и\xa0обратитесь в\xa0поддержку, мы\xa0поможем",errorCodes:[tc.S.Unauthorized,tc.S.BadRequest,tc.S.HeaderValidation,tc.S.NotFound,tc.S.RequestValidation,tc.S.InternalServer,tc.S.QueryFailed,tc.S.SsoTokenIntrospect,tc.S.SsoUserInfo],withReload:!0,isErrorCodeVisible:!0},{title:"Пользователь забанен",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[tc.S.UserBanned],layout:{withLogoutButton:!0},withReload:!1,isErrorCodeVisible:!1},{title:"Не\xa0знаем, когда ваш день рождения",text:"Дополните информацию о\xa0себе через поддержку. И\xa0тогда мы\xa0сможем вас поздравлять и\xa0присылать подарки!",errorCodes:[tc.S.BirthdayUnknown],withReload:!1,layout:{withLogoutButton:!0},isErrorCodeVisible:!1},{title:"Не\xa0удалось подобрать подарки",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[tc.S.GiftsIsEmpty],layout:{withLogoutButton:!0},withReload:!1,isErrorCodeVisible:!1},{title:"К\xa0сожалению, день рождения только раз в\xa0году",text:"Сейчас получить подарки нельзя, но\xa0обязательно вас поздравим в\xa0праздничный день. Мы\xa0и\xa0сами не\xa0можем дождаться вашего праздника!",errorCodes:[tc.S.BirthdayIsOutOfLimit],isErrorCodeVisible:!1,image:{src:{png:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.png 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.png 854w",avif:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.avif 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.avif 854w",webp:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.webp 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.webp 854w"},alt:"Нет подарков"},layout:{withFooter:!0,withLogoutButton:!0,isWide:!0}},{title:"Некорректный возраст",text:"Вы\xa0можете авторизоваться под другим аккаунтом",layout:{withLogoutButton:!0},errorCodes:[tc.S.InvalidAge],isErrorCodeVisible:!1},{title:"Некорректные продукты лояльности",text:"Оформите карту",layout:{withLogoutButton:!0},errorCodes:[tc.S.UserIsNotClient],isErrorCodeVisible:!1},{title:"У\xa0нас проблемы",text:"Вернитесь позже.",errorCodes:[tc.S.TCRMTimeoutError],isErrorCodeVisible:!1}],backendErrors:[{title:"У\xa0нас проблемы",text:"Вернитесь позже.",httpCodes:[ts.HttpStatus.SERVICE_UNAVAILABLE]}],defaultError:{text:"Перезагрузите страницу. \nЕсли не\xa0помогло, сделайте скриншот этого экрана и\xa0обратитесь в\xa0поддержку, мы\xa0поможем",title:"Что‑то пошло не\xa0так",buttonText:"Перезагрузить страницу",errorCode:tc.S.UnknownError,isErrorCodeVisible:!0}},td={projectErrors:[{title:"Что‑то пошло не\xa0так",text:"Пожалуйста закройте экран и\xa0зайдите еще раз",errorCodes:[tc.S.SSOTokenNotActive,tc.S.CampaignNameAlreadyExist,tc.S.AuthSso],isErrorCodeVisible:!1},{title:"Не\xa0получилось войти",buttonText:void 0,text:"Сделайте скриншот этого экрана и\xa0обратитесь в\xa0поддержку, мы\xa0поможем",errorCodes:[tc.S.Unauthorized,tc.S.BadRequest,tc.S.HeaderValidation,tc.S.NotFound,tc.S.RequestValidation,tc.S.InternalServer,tc.S.QueryFailed],isErrorCodeVisible:!0},{title:"Не\xa0получилось войти",buttonText:void 0,text:"Перезапустите приложение или попробуйте позднее. Если не помогло, сделайте скриншот этого экрана и обратитесь в поддержку, мы поможем",errorCodes:[tc.S.SsoTokenIntrospect,tc.S.SsoUserInfo],isErrorCodeVisible:!0},{title:"Что-то пошло не так",text:"К\xa0сожалению, вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[tc.S.UserBanned],withReload:!1,isErrorCodeVisible:!1},{title:"Не\xa0знаем, когда ваш день рождения",text:"Дополните информацию о\xa0себе через поддержку. И\xa0тогда мы\xa0сможем вас поздравлять и\xa0присылать подарки!",errorCodes:[tc.S.BirthdayUnknown],withReload:!1,isErrorCodeVisible:!1},{title:"Не\xa0удалось подобрать подарки",text:"К\xa0сожалению, вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[tc.S.GiftsIsEmpty],withReload:!1,isErrorCodeVisible:!1},{title:"К\xa0сожалению, день рождения только раз в\xa0году",text:"Сейчас получить подарки нельзя, но\xa0обязательно вас поздравим в\xa0праздничный день. Мы\xa0и\xa0сами не\xa0можем дождаться вашего праздника!",errorCodes:[tc.S.BirthdayIsOutOfLimit],isErrorCodeVisible:!1,image:{src:{png:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.png 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.png 854w",avif:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.avif 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.avif 854w",webp:"static/birthday/emptyGifts-320-2025-07-18-08-53-27.webp 320w, static/birthday/emptyGifts-443-2025-07-18-08-53-27.webp 854w"},alt:"Нет подарков"},layout:{withFooter:!1,withLogoutButton:!1,isWide:!0}},{title:"Некорректный возраст",text:"К\xa0сожалению пока вы\xa0не\xa0можете воспользоваться сервисом",errorCodes:[tc.S.InvalidAge],withLogout:!1,isErrorCodeVisible:!1},{title:"Некорректные продукты лояльности",text:"Оформите карту",errorCodes:[tc.S.UserIsNotClient],isErrorCodeVisible:!1}],backendErrors:[{title:"Что‑то пошло не\xa0так",text:"Пожалуйста, вернитесь чуть позже.",httpCodes:[ts.HttpStatus.SERVICE_UNAVAILABLE]}],defaultError:{text:"Что‑то пошло не\xa0так",title:"Пожалуйста, вернитесь чуть позже.",errorCode:tc.S.UnknownError,isErrorCodeVisible:!0}},tp={title:"Что-то пошло не так",text:"Попробуйте перезагрузить или заново открыть приложение.",errorCode:tc.S.UserIsGuestInMb,buttonText:"Перезагрузить"}},74079:function(tt,ti,ta){"use strict";var ts=ta(38725),tc={cdnUrl:ts.p.APP_STATIC_BIRTHDAY_BASE_URL,pwa:!1,title:"День рождения",description:"День рождения Т-Банк",themeColor:"white",viewport:"width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1, user-scalable=0",social:{title:"День рождения",description:"День рождения Т-Банк",image:"".concat(ts.p.APP_STATIC_BIRTHDAY_BASE_URL,"/static/birthday/fb-2025-07-18-12-32-22.png"),imageTwitter:"".concat(ts.p.APP_STATIC_BIRTHDAY_BASE_URL,"/static/birthday/fb-2025-07-18-12-32-22.png"),imageVk:"".concat(ts.p.APP_STATIC_BIRTHDAY_BASE_URL,"/static/birthday/vk-2025-07-18-12-32-22.png"),url:ts.p.APP_PROJECT_URL,appIdFb:"TODO"}};ti.Z=tc},29124:function(tt,ti,ta){"use strict";ta.d(ti,{U:function(){return tp}});var ts=ta(92293),tc=ta(12781),tu=ta(93319),td=ta(4831);class tp extends td.x{onProjectError(tt){this.httpClientProjectApi.getHttpClient().subscribe("error",ti=>{tc.HttpErrorProject.isHttpErrorProject(ti)&&tt(ti)})}isUserInvalidError(tt){return tt===tu.S.InvalidAge}extractResponsePayload(tt){return tt.payload}createHeaders(){return this.projectApiHeaders.getHeaders()}constructor(tt,ti,ta,tc){super(),this.httpClientProjectApi=tt,this.apiRoutes=ti,this.urlQueryService=ta,this.projectApiHeaders=tc;var tu=this;this.getPromoCode=function(){var tt=(0,ts._)(function*(tt){var ti=yield tu.httpClient.get({url:tu.urlQueryService.replaceDynamicParamsInUrl(tu.apiRoutes.getPromoCode,{id:tt}),headers:tu.createHeaders()});return tu.extractResponsePayload(ti)});return function(ti){return tt.apply(this,arguments)}}(),this.httpClient=tt.getHttpClient()}}},4831:function(tt,ti,ta){"use strict";ta.d(ti,{x:function(){return ts}});class ts{}},97361:function(tt,ti,ta){"use strict";ta.d(ti,{u:function(){return tb}});var ts=ta(92293),tc=ta(40830),tu=ta.n(tc),td=ta(93319);function tp(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;return new Promise(ti=>setTimeout(ti,tt))}var tv=ta(4831);class tb extends tv.x{onProjectError(tt){return ti=>tt(ti)}isUserInvalidError(tt){return tt===td.S.InvalidAge}constructor(tt,ti,ta){super(),this.httpClientProjectApi=tt,this.apiRoutes=ti,this.urlQueryService=ta,this.getPromoCode=function(){var tt=(0,ts._)(function*(tt){return yield tp(500),{giftId:tt,value:tu()(100,999)+"promo"}});return function(ti){return tt.apply(this,arguments)}}()}}},48568:function(tt,ti,ta){"use strict";ta.d(ti,{T:function(){return tu}});var ts=ta(92293),tc=ta(12781);class tu extends tc.ProjectApi{login(tt){var ti=this;return(0,ts._)(function*(){var ta=yield ti.httpClient.post({url:ti.options.loginUrl,body:tt?{accessTokenSso:tt}:void 0,withCredentials:!0,headers:ti.projectApiHeaders.getHeaders()});return ta.payload.authToken&&ti.projectApiHeaders.setAuthToken(ta.payload.authToken),ta.payload})()}userInfo(){var tt=this;return(0,ts._)(function*(){return(yield tt.httpClient.get({url:tt.options.userInfoUrl,headers:tt.createHeaders()})).payload})()}logout(){var tt=this;return(0,ts._)(function*(){yield tt.httpClient.post({url:tt.options.logoutUrl,headers:tt.createHeaders()})})()}createHeaders(){return this.projectApiHeaders.getHeaders()}constructor(tt,ti,ta,ts){super(tt.getHttpClient(),tc.PROJECT_API_OPTIONS,document),this.httpClientProjectApi=tt,this.queryString=ti,this.window=ta,this.projectApiHeaders=ts}}},93319:function(tt,ti,ta){"use strict";var ts,tc;ta.d(ti,{S:function(){return ts}}),function(tt){tt.SSOTokenNotActive="B4100",tt.CampaignNameAlreadyExist="B4111",tt.InvalidAge="B4102",tt.InvalidCitizenship="B4103",tt.InvalidUserInfoError="B4109",tt.CampaignDoesNotExistError="B4110",tt.UserBanned="B4444",tt.SiebelIdIsNotDefined="B4104",tt.ProjectUserIsNotDefined="B4201",tt.BirthdayUnknown="B4305",tt.BirthdayIsOutOfLimit="B4306",tt.UserIsNotClient="B4307",tt.GiftsIsEmpty="B4308",tt.ProductLoyalties="B5103",tt.Unauthorized="B4001",tt.BadRequest="B4002",tt.HeaderValidation="B4003",tt.NotFound="B4004",tt.RequestValidation="B4005",tt.TCRMTimeoutError="B4309",tt.AuthSso="B4006",tt.InternalServer="B5001",tt.QueryFailed="B5002",tt.GetUserIdEmptyPayload="B4010",tt.GetPortalUserId="B5010",tt.SsoTokenIntrospect="B5020",tt.SsoUserInfo="B5021",tt.GetProductLoyaltiesV2="B5022",tt.UnknownError="UnknownError",tt.UserIsGuestInMb="F2001"}(ts||(ts={})),function(tt){tt.BackPress="backPress",tt.AppBarCloseClick="appBarCloseClick"}(tc||(tc={}))},9016:function(tt,ti,ta){"use strict";ta.d(ti,{C:function(){return tv}});var ts=ta(74486),tc=ta(17092),tu=ta.n(tc),td=ta(55894),tp=ta.n(td),tv=tt=>{var{className:ti,wrapperClassName:ta,mod:tc}=tt;return(0,ts.jsx)("div",{className:tu()(tp().circleWrapper,ta),children:(0,ts.jsx)("div",{className:tu()(tp().circle,tp()[tc],ti)})})}},78013:function(tt,ti,ta){"use strict";ta.d(ti,{W:function(){return tv}});var ts=ta(74486),tc=ta(17092),tu=ta.n(tc),td=ta(32790),tp=ta.n(td),tv=tt=>{var{children:ti,className:ta,role:tc}=tt;return(0,ts.jsx)("div",{className:tu()(tp().container,ta),role:tc||void 0,children:ti})}},57385:function(tt,ti,ta){"use strict";ta.d(ti,{E:function(){return tp}});var ts=ta(74486),tc=ta(38725),tu=tt=>tt.split(", ").map(tt=>"".concat(tc.p.APP_STATIC_BIRTHDAY_BASE_URL,"/").concat(tt)).join(", "),td=tt=>{var ti=tt.split(", ");return"".concat(tc.p.APP_STATIC_BIRTHDAY_BASE_URL,"/").concat(ti[ti.length-1].split(" ")[0])},tp=tt=>{var{decoding:ti,src:ta,className:tp,alt:tv,onClick:tb,pictureClassName:tg}=tt;if("object"==typeof ta){var{avif:t_,webp:tE,png:tS,jpg:tA,jpeg:tT}=ta,tM=tS||tA||tT;return(0,ts.jsxs)("picture",{className:tg,children:[(0,ts.jsx)("source",{srcSet:tu(t_),type:"image/avif"}),(0,ts.jsx)("source",{srcSet:tu(tE),type:"image/webp"}),(0,ts.jsx)("img",{src:td(tM),srcSet:tu(tM),alt:tv,className:tp,decoding:ti,onClick:tb})]})}return(0,ts.jsx)("img",{src:ta.startsWith("http")?ta:"".concat(tc.p.APP_STATIC_BIRTHDAY_BASE_URL,"/").concat(ta),alt:tv,className:tp,decoding:ti,onClick:tb})}},69243:function(tt,ti,ta){"use strict";ta.d(ti,{A:function(){return tg}});var ts=ta(74486),tc=ta(61383),tu=ta(41646),td=ta(17092),tp=ta.n(td),tv=ta(12668),tb=ta.n(tv);function tg(tt){var{classNameMain:ti,header:ta,footer:td,enableDiv100vh:tv,children:tg}=tt,t_=(0,tc.g)(),tE=()=>(0,ts.jsxs)(ts.Fragment,{children:[ta&&ta,(0,ts.jsx)("main",{className:tp()(tb().main,ti),children:tg||(0,ts.jsx)(tu.j3,{})}),td&&td]});return(0,ts.jsx)("div",{style:{minHeight:tv?t_:"auto"},className:tb().root,children:tE()})}},80243:function(tt,ti,ta){"use strict";ta.d(ti,{d:function(){return tP},s:function(){return ts}});var ts,tc=ta(46154),tu=ta(74486),td=ta(45932),tp=ta(17092),tv=ta.n(tp),tb=ta(9016),tg=ta(78013),t_=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{viewBox:"0 0 70 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ti,children:[(0,tu.jsx)("path",{d:"M66.3891 14.2025C60.0861 12.9482 53.6771 13.1649 47.4802 14.5769C46.7814 10.3863 46.0146 6.18765 44.4755 2.22705C43.4994 -0.286777 40.0542 -0.591645 38.1481 0.905952C32.1361 5.6314 26.967 11.4266 22.184 17.3581C18.8123 17.6603 15.446 17.9786 12.077 18.3021C10.2361 18.4786 8.39523 18.6551 6.55437 18.8263C4.20231 19.0456 1.78228 19.2676 0.542348 21.5862C-0.164629 22.9073 -0.183663 24.453 0.50428 25.8115C1.08074 26.9534 2.2255 27.7825 3.16904 28.6088C4.4416 29.7267 5.75222 30.7991 7.12539 31.7939C8.61548 32.8743 10.1763 33.8477 11.7806 34.749C8.68074 39.6028 6.96768 45.1305 5.93169 50.8882C5.59451 52.7602 5.33348 54.5333 5.93985 56.3839C6.86707 59.2213 9.86085 60.6306 12.7187 59.7294C16.7783 58.4458 20.0522 55.3142 23.046 52.4634C25.844 49.7998 28.5957 47.0908 31.3421 44.3737C33.6615 46.3045 36.0244 48.1819 38.439 49.995C40.1249 51.2626 41.8352 52.5035 43.5646 53.7123C45.3484 54.9585 47.143 56.2742 49.4081 56.4053C52.478 56.5818 54.6968 54.2605 55.2161 51.4632C55.5506 49.6688 55.4446 47.7567 55.3739 45.9435C55.2868 43.7399 55.1074 41.5497 54.7403 39.3728C54.5581 38.2977 54.3379 37.2307 54.0795 36.1717C53.9681 35.7117 53.8457 35.2544 53.7206 34.7998C53.8756 34.6741 54.0279 34.5457 54.1829 34.4227C54.9279 33.829 55.6947 33.2594 56.4642 32.6951C58.0631 31.5291 59.6946 30.4033 61.2744 29.2079C64.4449 26.8064 67.474 24.001 69.3666 20.4897C70.8811 17.679 69.5977 14.8416 66.3918 14.2025H66.3891Z",fill:"url(#paint0_linear_3936_12449)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12449",x1:"21.5084",y1:"6.96774",x2:"49.2281",y2:"57.5298",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#F9C48C"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#F5A045"})]})})]})},tE=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 60",fill:"none",className:ti,children:[(0,tu.jsx)("path",{d:"M62.8626 1.21576C58.5568 -1.70051 53.7714 1.18017 50.4043 4.08118C47.423 6.64913 44.9288 9.76625 42.7137 13.0054C42.4016 13.4631 42.0946 13.9233 41.7927 14.3886C41.7647 14.353 41.7368 14.3148 41.7064 14.2792C38.7758 10.7528 33.9168 10.5748 30.362 13.2419C27.3908 15.4717 25.2798 18.6549 23.5468 21.917C22.1639 19.2702 19.9793 17.1472 16.6224 17.9481C13.3822 18.721 10.8348 22.0797 8.77191 24.5129C6.59489 27.0834 4.57517 29.8318 3.01472 32.8244C0.771725 37.1212 -0.550208 41.591 0.221139 46.4421C0.794574 50.0576 2.76861 53.4467 5.62564 55.7248C14.4707 62.7803 27.571 59.8488 37.0885 55.8799C46.0325 52.1501 53.8246 46.2768 59.3027 38.2145C61.7766 34.5711 64.0856 30.2157 64.9407 25.8426C66.3742 21.7237 67.1025 17.3048 67.0568 12.9419C67.0137 8.81026 66.6178 3.75066 62.8677 1.21068L62.8626 1.21576Z",fill:"url(#paint0_linear_3936_12456)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12456",x1:"26.8627",y1:"-2.15686",x2:"50.1961",y2:"50.7843",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#FAB3EB"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#F54ACF"})]})})]})},tS=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 60",fill:"none",className:ti,children:[(0,tu.jsx)("path",{d:"M57.2821 33.1882C60.3518 31.5948 63.7173 30.0189 63.4711 26.1338C63.2796 23.1332 60.4743 21.1903 57.7607 19.7423C59.7574 16.2204 61.2126 11.3524 58.4624 8.67386C55.7862 6.0613 50.2782 6.70514 46.1256 7.55414C45.4247 4.22529 43.5253 0.791155 40.0541 0.0858639C37.9159 -0.351588 36.0672 0.967408 34.3218 2.12109C33.3003 2.79706 32.3775 3.51749 31.5446 4.3145C29.2076 1.57346 25.2579 -0.199198 21.6349 1.16633C17.2544 2.81666 15.9542 7.57752 15.7839 11.7907C11.9014 11.3901 7.10562 11.6881 4.94405 14.5538C2.81883 17.3718 4.46928 21.8314 6.28142 25.0892C3.05552 26.7691 0.33355 29.6108 0.0206532 33.1403C-0.339586 37.1766 4.08047 39.3898 7.98316 40.5774C6.03313 43.8288 4.76945 47.9432 7.16385 50.6589C9.90304 53.7614 16.2126 52.7323 20.6369 51.6508C21.4723 54.79 22.4624 58.914 25.5491 59.8276C27.466 60.3944 29.1705 59.463 30.8444 58.4958C32.2632 57.6763 33.6603 56.8241 35.0402 55.9408C37.2359 58.0891 40.5878 59.2661 43.8279 58.8442C49.3359 58.13 49.6259 52.5645 50.2482 48.4583C50.2916 48.1715 50.4493 47.6829 50.4947 47.286C50.51 47.2863 50.5208 47.2851 50.538 47.281C51.6167 47.3898 53.0041 47.0174 54.0594 46.7456C56.1871 46.1981 58.6579 45.0907 59.4925 42.9406C60.6589 39.9398 59.0784 36.0832 57.2866 33.1898L57.2821 33.1882Z",fill:"url(#paint0_linear_3936_12452)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12452",x1:"12",y1:"-1.93549",x2:"46.0645",y2:"48",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#D8AFF8"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#B15BF4"})]})})]})},tA=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 51 60",fill:"none",className:ti,children:[(0,tu.jsx)("path",{d:"M50.361 31.7122C50.2487 31.279 50.0515 30.8707 49.7705 30.541C49.2647 29.942 48.6194 29.615 47.9411 29.5169C47.8698 29.5002 47.7982 29.4815 47.7253 29.4672C43.6565 28.6901 39.6162 27.6705 35.562 26.738C36.2234 23.5556 36.8482 20.3652 37.559 17.1929C38.5382 12.8297 39.6048 8.48044 40.7343 4.14719C41.0509 2.93555 40.9119 1.72588 39.9198 0.844882C39.0874 0.107901 37.5976 -0.332017 36.5587 0.311723C24.4125 7.8533 13.0729 16.5578 1.4662 24.8806C1.36551 24.9455 1.26787 25.016 1.17293 25.0902C1.14149 25.1121 1.11207 25.1337 1.08063 25.1557C0.588049 25.507 0.274719 26.0197 0.119863 26.5856C0.0568874 26.7845 0.0154293 26.9879 0.00520566 27.1922C-0.0156615 27.5863 0.0267658 27.951 0.122423 28.2878C0.234762 28.721 0.431913 29.1293 0.712892 29.4591C1.21875 30.058 1.86406 30.385 2.54228 30.4832C2.61357 30.4998 2.68319 30.5188 2.75816 30.5328C6.82691 31.3099 10.8672 32.3295 14.9214 33.262C14.26 36.4444 13.6353 39.6348 12.9244 42.8071C11.9452 47.1703 10.8786 51.5196 9.7491 55.8528C9.43247 57.0645 9.57151 58.2741 10.5636 59.1551C11.396 59.8921 12.8858 60.332 13.9247 59.6883C26.0753 52.148 37.4149 43.4435 49.0216 35.1207C49.1223 35.0559 49.2199 34.9853 49.3149 34.9111C49.3463 34.8892 49.3757 34.8676 49.4072 34.8457C49.8997 34.4943 50.2131 33.9817 50.3679 33.4157C50.4309 33.2168 50.4724 33.0134 50.4826 32.8091C50.5035 32.415 50.461 32.0504 50.3674 31.7131L50.361 31.7122Z",fill:"url(#paint0_linear_3936_12464)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12464",x1:"14.8171",y1:"-6.33298e-08",x2:"39.3293",y2:"49.0244",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#9AA9F8"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#4561F3"})]})})]})},tT=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 68 60",fill:"none",className:ti,children:[(0,tu.jsx)("path",{d:"M60.6442 3.56681C57.3243 1.19922 52.8941 0.613631 48.9154 1.0115C45.203 1.38415 41.9672 2.70944 38.6838 4.41298C34.5453 6.56202 30.3618 9.2182 26.8737 12.5048C26.4167 11.5802 25.9344 10.6696 25.4213 9.78698C23.6632 6.76375 21.4369 3.66207 18.347 1.88849C15.3412 0.165331 11.598 -0.495913 8.22204 0.397887C4.18719 1.4654 1.38608 4.83046 0.584155 8.86516C-0.243002 13.0232 -0.0691613 17.4081 0.354231 21.5997C0.811271 26.0967 1.56832 30.5741 2.54969 34.9843C3.47779 39.1563 4.63022 43.2806 5.99853 47.3322C7.16777 50.7925 8.44634 54.519 11.2278 57.0491C17.9573 63.1656 27.513 58.422 34.3125 54.9393C40.955 51.5378 47.1293 47.1444 52.5941 42.0674C58.1263 36.926 63.6191 30.8543 66.2464 23.6675C68.8681 16.4947 67.0147 8.11146 60.6442 3.56681Z",fill:"url(#paint0_linear_3936_12468)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12468",x1:"12.2158",y1:"-5.91549",x2:"37.6232",y2:"55.2967",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#FA9E9E"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#FF5C5C",stopOpacity:"0.95"})]})})]})},tM=tt=>{var{className:ti}=tt;return(0,tu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80 60",fill:"none",className:ti,children:[(0,tu.jsx)("path",{d:"M76.6816 15.3809C72.1375 12.6398 65.8143 13.9754 61.2565 15.9246C61.0118 16.0283 60.7717 16.1411 60.5316 16.2539C61.021 14.4852 61.3617 12.6782 61.5767 10.8508C61.8625 8.40303 61.6361 5.70485 60.1885 3.61579C58.5831 1.29887 55.9532 0.0580649 53.1335 0.00166472C50.3046 -0.0524794 47.7684 1.21991 45.6553 2.97508C43.3159 4.9175 41.4841 7.59312 40.1988 10.4515C39.2109 9.03245 38.0743 7.72623 36.7891 6.6817C35.1288 5.33035 33.1964 4.25649 30.9849 4.21363C28.6363 4.16851 26.5804 5.33261 25.2128 7.15771C22.6538 10.5756 23.7652 14.95 25.6999 18.361C25.9492 18.8032 26.2145 19.2341 26.4889 19.6605C21.954 19.2567 17.3253 19.8342 13.058 21.4337C9.0651 22.9272 4.86865 25.2058 2.13353 28.5243C0.395495 30.6337 -0.585577 33.3838 0.379491 36.0617C1.43832 38.9967 4.14371 40.2082 7.11896 40.3909C7.43912 40.4112 7.76157 40.4248 8.08631 40.4361C5.30088 43.9013 3.81898 48.5825 6.29797 52.6659C9.01022 57.135 14.9744 57.8163 19.7517 57.3042C24.9819 56.7425 29.9741 54.8767 34.3467 51.9913C36.5009 50.57 38.4974 48.9615 40.3681 47.2176C40.7134 48.7788 41.2439 50.3061 41.9506 51.7635C44.0111 56.0183 48.3356 60.1535 53.4285 59.9956C58.7432 59.8309 62.5189 55.3302 64.9956 51.1431C67.4197 47.0461 68.8924 41.8799 66.9555 37.3092C66.8342 37.025 66.6993 36.7497 66.553 36.4813C70.0725 34.8051 73.2787 32.4678 75.76 29.4674C77.3745 27.5137 79.0417 25.2712 79.7437 22.8121C80.5876 19.8635 79.2909 16.9488 76.6839 15.3763L76.6816 15.3809Z",fill:"url(#paint0_linear_3936_12461)"}),(0,tu.jsx)("defs",{children:(0,tu.jsxs)("linearGradient",{id:"paint0_linear_3936_12461",x1:"28.0976",y1:"-4.25806",x2:"51.391",y2:"47.9476",gradientUnits:"userSpaceOnUse",children:[(0,tu.jsx)("stop",{stopColor:"#52F8C8"}),(0,tu.jsx)("stop",{offset:"1",stopColor:"#09DDA0"})]})})]})},tk=ta(57385),tR=ta(48176),tC=ta.n(tR);!function(tt){tt.Bonus="bonus",tt.Promotion="promotion",tt.Discounts="discounts",tt.Free="free",tt.Cashback="Cashback",tt.Many="many"}(ts||(ts={}));var tI={[ts.Bonus]:(0,tu.jsx)(t_,{className:tC().descriptionPointImage}),[ts.Promotion]:(0,tu.jsx)(tM,{className:tC().descriptionPointImage}),[ts.Discounts]:(0,tu.jsx)(tS,{className:tC().descriptionPointImage}),[ts.Free]:(0,tu.jsx)(tA,{className:tC().descriptionPointImage}),[ts.Cashback]:(0,tu.jsx)(tE,{className:tC().descriptionPointImage}),[ts.Many]:(0,tu.jsx)(tT,{className:tC().descriptionPointImage})},tP=tt=>{var{className:ti}=tt,{content:{UnAuthMainPage:{images:ta,description:{description:ts,title:tp,items:t_}}}}=(0,td.YS)(),tE=[{key:"glass",item:ta.glass},{key:"movie",item:ta.movie},{key:"yellowBallon",item:ta.yellowBallon}];return(0,tu.jsxs)("div",{className:tv()(tC().description,ti),children:[(0,tu.jsxs)(tg.W,{children:[(0,tu.jsxs)("div",{className:tC().content,children:[(0,tu.jsx)("h4",{className:tC().descriptionTitle,children:tp}),(0,tu.jsx)("p",{className:tC().descriptionInfo,children:ts})]}),(0,tu.jsxs)("div",{className:tC().descriptionPointsWrapper,children:[(0,tu.jsx)(tb.C,{className:tC().circle,mod:"yellow"}),(0,tu.jsx)("div",{className:tC().descriptionPoints,children:t_.map(tt=>{var{type:ti,text:ta}=tt;return(0,tu.jsxs)("div",{className:tC().descriptionPoint,children:[(0,tu.jsx)("p",{className:tC().descriptionPointText,children:ta}),tI[ti]]},ti)})})]})]}),(0,tu.jsx)("div",{className:tC().images,children:tE.map(tt=>{var{item:ti,key:ta}=tt;return(0,tu.jsx)(tk.E,(0,tc._)({pictureClassName:tv()(tC().picture,tC()["picture_".concat(ta)]),className:tC().image},ti),ta)})})]})}},27091:function(tt,ti,ta){"use strict";ta.d(ti,{l:function(){return ts}});class ts{constructor(tt){this.listeners=new Set,this.resetState=()=>{this.setState(this.initialState)},this.getState=()=>this.state,this.setState=tt=>(this.state=tt,this.listeners.forEach(tt=>{tt(this.state)}),this.state),this.subscribe=tt=>(this.listeners.add(tt),()=>{this.listeners.delete(tt)}),this.state=tt,this.initialState=tt}}},42202:function(tt,ti,ta){"use strict";ta.d(ti,{as:function(){return aQ},pK:function(){return a8},AE:function(){return om},EC:function(){return ow},Do:function(){return nG},Nb:function(){return nH},eN:function(){return oE},$w:function(){return oT},GF:function(){return ox},O4:function(){return oA},sX:function(){return nz},I4:function(){return nV}});var ts,tc,tu,td=ta(92293),tp=ta(46154),tv=ta(34600),tb=ta(31193),tg=ta(51387),t_=ta(77656);function tE(tt){return tt}var tS=ta(33360),tA=ta(62842),tT=ta(30284),tM=ta.n(tT),tk=["Root","component"],tR=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.Root,ts=tt.component,tc=void 0===ts?"div":ts,tu=(0,t_.Z)(tt,tk),td=(0,tA.Z)({},tu,{ref:ti});return"function"==typeof ta?ta(td):tg.createElement(tc,td)})),tC=function(tt){var ti=tt.dataQaType,ta=tt.dataQaData;return{"data-qa-type":ti,"data-qa-data":"object"==typeof ta?JSON.stringify(ta):ta}},tI=["interactive"],tP=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.interactive,ts=void 0===ta||ta,tc=(0,t_.Z)(tt,tI);return tg.createElement(tR,Object.assign({"data-surface-interactive":ts,ref:ti},tc))})),tO=ta(79016),tN=ta.n(tO),tB=["dataQaData","dataQaType","className","style","backgroundColor","backgroundImage","width","height","radius","top","left","right","bottom"],tL=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.dataQaData,ts=tt.dataQaType,tc=void 0===ts?"tui/surface-layer":ts,tu=tt.className,td=tt.style,tp=tt.backgroundColor,tv=tt.backgroundImage,tb=tt.width,tE=tt.height,tS=tt.radius,tT=tt.top,tk=tt.left,tI=tt.right,tP=tt.bottom,tO=(0,t_.Z)(tt,tB);return tg.createElement(tR,Object.assign({},tO,tC({dataQaData:ta,dataQaType:tc}),{ref:ti,className:tM()(tN().layer,tu),style:(0,tA.Z)({width:tb,height:tE,backgroundColor:tp,backgroundImage:tv,borderRadius:tS,top:tT,left:tk,right:tI,bottom:tP},td)}))})),tD=ta(79116),tj=ta.n(tD),tU=["dataQaData","dataQaType","preset","appearance","className","style","behaviour","preventBehaviourOnActive","noPadding","radius","shadow","color","backgroundColor","backgroundImage","width","height","cursor","grow","shrink","padding","pressable"],tF=tE((0,tg.forwardRef)(function(tt,ti){var ta,ts=tt.dataQaData,tc=tt.dataQaType,tu=void 0===tc?"tui/surface":tc,td=tt.preset,tp=tt.appearance,tv=tt.className,tb=tt.style,tE=tt.behaviour,tT=void 0===tE?"":tE,tk=tt.preventBehaviourOnActive,tI=tt.noPadding,tP=void 0!==tI&&tI,tO=tt.radius,tB=tt.shadow,tL=tt.color,tD=tt.backgroundColor,tF=tt.backgroundImage,tG=tt.width,tH=tt.height,tz=tt.cursor,tV=tt.grow,tq=tt.shrink,tW=tt.padding,tY=void 0===tW?"l":tW,tX=tt.pressable,tQ=(0,t_.Z)(tt,tU);return tg.createElement(tR,Object.assign({},tQ,tC({dataQaData:ts,dataQaType:tu}),{ref:ti,className:tM()(tN().surface,tj().surface,tv,(ta={},(0,tS.Z)(ta,tN()["surface_padding_".concat(tY)],!!tY&&!tP),(0,tS.Z)(ta,tN()["surface_radius_".concat(tO)],!!tO),(0,tS.Z)(ta,tN()["surface_shadow_".concat(tB)],!!tB),ta)),style:(0,tA.Z)({width:tG,height:tH,backgroundColor:tD,backgroundImage:tF,color:tL,cursor:tz,flexGrow:tV,flexShrink:tq},tb),"data-surface":null==td||td,"data-appearance":tp,"data-prevent-behaviour-on-active":tk,"data-pressable":tX},tT.split(" ").filter(Boolean).reduce(function(tt,ti){return(0,tA.Z)({},tt,(0,tS.Z)({},"data-behaviour-".concat(ti),!!ti))},{})))}));tF.Layer=tL,tF.Interactive=tP,tF.displayName="Surface",tF.Layer.displayName="Surface.Layer",tF.Interactive.displayName="Surface.Interactive";var tG=ta(47573),tH=ta.n(tG),tz=["platformCn","dataQaData","dataQaType","appearance","disableGutters","shadowless","borderRadius","innerSpacing","className","style"],tV=(0,tg.forwardRef)(function(tt,ti){var ta=tt.platformCn,ts=tt.dataQaData,tc=tt.dataQaType,tu=void 0===tc?"tui/card-large":tc,td=tt.appearance,tp=void 0===td?"elevated":td,tv=tt.disableGutters,tb=void 0!==tv&&tv,tE=tt.shadowless,tS=void 0!==tE&&tE,tA=tt.borderRadius,tT=tt.innerSpacing,tM=void 0===tT?"normal":tT,tk=tt.className,tR=tt.style,tC=void 0===tR?{}:tR,tI=(0,t_.Z)(tt,tz);return tg.createElement(tF,Object.assign({ref:ti,"data-spacing":tM,"data-nogutters":tb,"data-shadowless":tS,"data-radius":tA,appearance:tp,className:tH()(ta,tk),dataQaData:ts,dataQaType:tu,noPadding:!0,style:tC},tI))}),tq=function(tt,ti){var ta=(0,tg.useContext)(tt);if(null==ta)throw Error(ti);return ta},tW=(0,tg.createContext)(void 0),tY=function(){return tq(tW," component must be used within a provider.")},tX=["children","className","horizontalSpacing","dataQaData","dataQaType","grow","style"],tQ=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.className,tc=tt.horizontalSpacing,tu=tt.dataQaData,td=tt.dataQaType,tp=tt.grow,tv=tt.style,tb=(0,t_.Z)(tt,tX),tE=tY(),tS=tE.platformStyles,tT=tE.spacing;return tg.createElement("div",Object.assign({},tb,tC({dataQaData:tu,dataQaType:td}),{ref:ti,className:tH()(tS.top,ts),style:(0,tA.Z)({flexGrow:tp},tv),"data-hspacing":tc||tT}),ta)}),tK={normal:"normal",compact:"compact",none:"none","normal-with-accessories":"normal","compact-with-accessories":"compact"},tZ=["children","className","horizontalSpacing","dataQaData","dataQaType","grow","style"],tJ=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.className,tc=tt.horizontalSpacing,tu=tt.dataQaData,td=tt.dataQaType,tp=tt.grow,tv=tt.style,tb=(0,t_.Z)(tt,tZ),tE=tY(),tS=tE.platformStyles,tT=tE.spacing,tM=void 0===tT?"none":tT,tk=tc||tK[tM];return tg.createElement("div",Object.assign({},tb,tC({dataQaData:tu,dataQaType:td}),{ref:ti,className:tH()(tS.content,ts),style:(0,tA.Z)({flexGrow:tp},tv),"data-hspacing":tk}),ta)}),t$=ta(9747),t0=ta(8710),t1=ta.n(t0),t2=function(tt,ti){var ta={};return Object.entries(tt).forEach(function(tt){var ts=(0,t$.Z)(tt,2),tc=ts[0],tu=ts[1];if(tu){var td=t1()("t-".concat(ti,"-").concat(tc));ta["--".concat(td)]=tu}}),ta},t3=function(tt){return"number"==typeof tt?"".concat(tt,"px"):tt},t8=["children","className","style","horizontalSpacing","dataQaData","dataQaType","gap","grow"],t5=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.className,tc=tt.style,tu=tt.horizontalSpacing,td=tt.dataQaData,tp=tt.dataQaType,tv=tt.gap,tb=tt.grow,tE=(0,t_.Z)(tt,t8),tS=tY(),tT=tS.platformStyles,tM=tS.spacing,tk=void 0===tM?"none":tM,tR=tu||tK[tk],tI=t2({gap:tv||0===tv?t3(tv):tv},"card-large-list-view");return tg.createElement("div",Object.assign({},tE,tC({dataQaData:td,dataQaType:tp}),{ref:ti,style:(0,tA.Z)({flexGrow:tb},tc,tI),className:tH()(tT["list-view"],ts),"data-hspacing":tR}),ta)}),t4=["children","scrollable","gapSize","horizontalSpacing","className","dataQaData","dataQaType","grow","style"],t6=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.scrollable,tc=void 0!==ts&&ts,tu=tt.gapSize,td=void 0===tu?"small":tu,tp=tt.horizontalSpacing,tv=tt.className,tb=tt.dataQaData,tE=tt.dataQaType,tS=tt.grow,tT=tt.style,tM=(0,t_.Z)(tt,t4),tk=tY(),tR=tk.platformStyles,tI=tk.spacing,tP=void 0===tI?"none":tI,tO=tp||tK[tP];return tg.createElement("div",Object.assign({},tM,tC({dataQaData:tb,dataQaType:tE}),{ref:ti,className:tH()(tR["card-view"],tv),style:(0,tA.Z)({flexGrow:tS},tT),"data-gapsize":td,"data-hspacing":tO,"data-scrollable":tc}),ta)}),t7=["children","className","horizontalSpacing","dataQaData","dataQaType","style","grow"],t9=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.className,tc=tt.horizontalSpacing,tu=tt.dataQaData,td=tt.dataQaType,tp=tt.style,tv=tt.grow,tb=(0,t_.Z)(tt,t7),tE=tY(),tS=tE.platformStyles,tT=tE.spacing,tM=void 0===tT?"none":tT,tk=tc||tK[tM];return tg.createElement("div",Object.assign({},tb,tC({dataQaData:tu,dataQaType:td}),{ref:ti,className:tH()(tS.bottom,ts),style:(0,tA.Z)({flexGrow:tv},tp),"data-hspacing":tk}),ta)}),et=["children","className","dataQaData","dataQaType","grow","style"],er=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.className,tc=tt.dataQaData,tu=tt.dataQaType,td=tt.grow,tp=tt.style,tv=(0,t_.Z)(tt,et),tb=tY().platformStyles;return tg.createElement("div",Object.assign({},tv,tC({dataQaData:tc,dataQaType:tu}),{ref:ti,className:tH()(tb.row,ts),style:(0,tA.Z)({flexGrow:td},tp)}),ta)}),ei=ta(62019),ea=ta.n(ei),eo=["spacing"],es=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.spacing,ts=(0,t_.Z)(tt,eo),tc=(0,tg.useMemo)(function(){return{platformStyles:ea(),spacing:ta}},[ta]);return tg.createElement(tW.Provider,{value:tc},tg.createElement(tV,Object.assign({ref:ti,dataQaType:"tui/card-large-desktop",platformCn:ea().root},ts)))}));es.Top=tQ,es.Content=tJ,es.ListView=t5,es.CardView=t6,es.Bottom=t9,es.Row=er,es.Layer=tF.Layer,es.displayName="CardLarge",es.Top.displayName="CardLarge.Top",es.Content.displayName="CardLarge.Content",es.ListView.displayName="CardLarge.ListView",es.CardView.displayName="CardLarge.CardView",es.Bottom.displayName="CardLarge.Bottom",es.Row.displayName="CardLarge.Row";var ec=ta(37199),eu=ta.n(ec),eh=["spacing"],ed=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.spacing,ts=(0,t_.Z)(tt,eh),tc=(0,tg.useMemo)(function(){return{platformStyles:eu(),spacing:ta}},[ta]);return tg.createElement(tW.Provider,{value:tc},tg.createElement(tV,Object.assign({ref:ti,dataQaType:"tui/card-large-mobile",platformCn:eu().root},ts)))}));ed.Top=tQ,ed.Content=tJ,ed.ListView=t5,ed.CardView=t6,ed.Bottom=t9,ed.Row=er,ed.Layer=tF.Layer,ed.Interactive=tF.Interactive,ed.displayName="CardLarge",ed.Top.displayName="CardLarge.Top",ed.Content.displayName="CardLarge.Content",ed.ListView.displayName="CardLarge.ListView",ed.CardView.displayName="CardLarge.CardView",ed.Bottom.displayName="CardLarge.Bottom",ed.Row.displayName="CardLarge.Row",ed.Interactive.displayName="CardLarge.Interactive";var ef=ta(565),ep=ta.n(ef),ev=function(tt){var ti=tt.dataQaType,ta=tt.dataQaData;return{"data-qa-type":ti,"data-qa-data":"object"==typeof ta?JSON.stringify(ta):ta}},eb=ta(57999),eg=function(tt){if(tt)return"number"==typeof tt?"".concat(tt,"px"):tt.split(" ").reduce(function(tt,ti){var ta=ti in eb.SPACING_ALIAS?eb.spacing[eb.SPACING_ALIAS[ti]]:ti;return"".concat(tt," ").concat(ta)},"").trim()},ey=["width","height","margin","padding","grow","shrink","style","tagName","dataQaType","dataQaData"],em=(0,tg.forwardRef)(function(tt,ti){var ta=tt.width,ts=tt.height,tc=tt.margin,tu=tt.padding,td=tt.grow,tp=tt.shrink,tv=tt.style,tb=tt.tagName,tE=void 0===tb?"div":tb,tS=tt.dataQaType,tT=tt.dataQaData,tM=(0,t_.Z)(tt,ey);return tg.createElement(tE,Object.assign({ref:ti,style:(0,tA.Z)({width:eg(ta),height:eg(ts),margin:eg(tc),padding:eg(tu),flexGrow:td,flexShrink:tp},tv)},ev({dataQaType:tS,dataQaData:tT}),tM))}),e_=ta(14752),ew=ta.n(e_),ex=["tagName","gaps","direction","alignMain","alignCross","children"],eE=(0,tg.forwardRef)(function(tt,ti){var ta,ts=tt.tagName,tc=tt.gaps,tu=tt.direction,td=tt.alignMain,tp=void 0===td?"start":td,tv=tt.alignCross,tb=void 0===tv?"start":tv,tE=tt.children,tA=(0,t_.Z)(tt,ex);return tg.createElement(em,Object.assign({ref:ti,tagName:ts},tA),tg.createElement(em,{tagName:ts,className:ep()(ew().inner,(ta={},(0,tS.Z)(ta,ew()["inner_direction-".concat(tu)],tu),(0,tS.Z)(ta,ew()["inner_alignMain-".concat(tp)],tp),(0,tS.Z)(ta,ew()["inner_alignCross-".concat(tb)],tb),(0,tS.Z)(ta,ew().inner_gaps,!!tc),ta)),style:tc?{"--gaps":eg(tc)}:{}},tE))}),eS=(0,tg.forwardRef)(function(tt,ti){return tg.createElement(eE,Object.assign({ref:ti,direction:"col"},tt))}),eA=(0,tg.forwardRef)(function(tt,ti){return tg.createElement(eE,Object.assign({ref:ti,direction:"row"},tt))}),eT=ta(62311),eM=ta.n(eT),ek=ta(23469),eR=ta.n(ek),eC=ta(88690),eI=ta.n(eC),eP=ta(26873),eO=ta.n(eP),eN=ta(68771),eB=ta.n(eN),eL=function(tt,ti,ta,ts){var tc=(0,tA.Z)({},ta,{"data-style-layer":tt});return eI()(ti)?tc.className=eO()(tc.className,ti):eB()(ti)&&(tc.className=eO()(tc.className,ti.className),tc.style=(0,tA.Z)({},tc.style,ti.style,null==ti.vars?void 0:ti.vars(ts))),tc},eD=function(tt){return eI()(tt)?{className:tt,style:{}}:tt},ej=function(tt,ti,ta,ts){for(var tc={},tu=Object.keys(ta),td=0,tp=tu;td0&&void 0!==arguments[0]?arguments[0]:21,ti="",ta=0|tt;ta--;)ti+=e$[64*Math.random()|0];return ti},e1=function(tt){return tt&&tt.constructor&&tt.constructor.name||"dsId"},e2=function(tt){var ti=e1(tt),ta=e0(10);return"".concat(ti,"_").concat(ta)},e3=ta(80974),e8=ta.n(e3),e5={};n0=function(tt){return e5[tt]=e5[tt]||fetch(tt).then(function(tt){return tt.text()}).catch(function(ti){console.error(ti),e5[tt]=new Promise(function(tt){tt(void 0)})}),e5[tt]};var e4=function(tt){return n0(tt)},e6=ta(70718),e7={},e9=Object.create(null),ri=function(tt){return["http://","https://","//"].some(function(ti){return e8()(ti,tt)})},ra=function(tt,ti){e7[tt]=ti},ro=function(tt){return e7[tt]},rs=function(tt){return tt.replace(/[\t\n\r]+/g,"")},rc=function(tt){var ti=/[\w-]+\.svg/,ts=tt.match(ti),tc=ts?ts[0]:void 0;if(ri(tt))return tc;if(void 0!==e6&&e6.env.SERVER){var tu=ta(87966).hash;return"".concat(tu(tt),".svg")}return tc},ru=function(tt){return rc(tt)||tt},rh=function(tt){var ti=ru(tt);return e7[ti]?Promise.resolve(e7[ti]):(e9[tt]=e9[tt]||e4(tt),e9[tt].then(function(tt){var ta=rs(tt);return ra(ti,ta),ta}))},rl=function(tt){return e9[tt]},rd=ta(70718),rf=["iconPath","fallbackBlock"],rp="",rv=function(tt,ti){return ra(tt,ti),ti},rg=function(){return"document"in window},ry=function(tt,ti){if(void 0!==rd&&rd.env.SERVER)return ri(ti)?(rh(ti),rp):rv(tt,rs(ti));if(rg()){var ta=document.querySelector('[data-svg-id="'.concat(tt,'"]'));if(!ta)return!1;var ts=ta.innerHTML;return void 0===ts&&(ts=rs(new XMLSerializer().serializeToString(ta))),rv(tt,ts)}},rm=function(tt,ti){return ro(tt)?ro(tt):ry(tt,ti)};function r_(tt){return function(ti){var ta=ti.iconPath,ts=ti.fallbackBlock,tc=(0,t_.Z)(ti,rf),tu=(0,tg.useState)(ru(ta)),td=tu[0],tp=tu[1],tv=(0,tg.useState)(!1),tb=tv[0],tE=tv[1],tS=(0,tg.useState)(rm(td,ta)),tA=tS[0],tT=tS[1],tM=(0,tg.useState)(!1),tk=tM[0],tR=tM[1],tC=rl(ta),tI=(0,tg.useRef)("");return(tC&&tC.then(function(tt){return tt!==tA&&tb&&tT(tt)}).catch(function(){return tb&&tT("")}),(0,tg.useEffect)(function(){if(td&&ta){var tt=rm(td,ta);tt&&tT(tt)}return tE(!0),function(){tE(!1)}},[]),(0,tg.useEffect)(function(){tI.current!==ta&&(tp(ru(ta)),rh(ta).then(function(tt){tb&&tT(tt)}).catch(function(){tR(!0)})),tI.current=ta},[tA,ta,tb]),tk&&ts)?ts:tA?tg.createElement(tt,Object.assign({},tc,{svgCode:tA,dataSvgId:td})):tg.createElement("div",{style:{width:tc.width||tc.size||tc.containerSize||tc.iconSize,height:tc.height||tc.size||tc.containerSize||tc.iconSize}})}}var rw=ta(80143),rx=ta.n(rw),rE={gray:{color:rx()["textfield-placeholder"],background:rx()["card-secondary"]},red:{color:rx()["status-error"],background:"#fbe4e3"},green:{color:rx()["status-success"],background:"#dff3e2"},blue:{color:rx().link,background:rx().secondary},blueFilled:{color:"#fff",background:rx().link},yellow:{color:rx()["text-primary"],background:rx().primary},white:{color:rx()["textfield-placeholder"],background:rx()["blank-white"]},attention:{color:rx()["primary-active"],background:"#fff1ab"}},rS=ta(32577),rA=ta.n(rS),rT=["dataQaType","dataQaData","iconSize","withContainer","containerSize","square","dataSvgId","svgCode","rotate","reverse","backgroundSize","verticalAlign","theme","cursor","children","idRegExp","svgWidth"],rM=/paint/g,rk={32:10,36:12,40:12,44:15,48:15,64:20,96:30,128:40},rR={horizontal:"scaleX(-1)",vertical:"scaleY(-1)"},rC=function(tt,ti){var ta=tt?"rotate(".concat(tt,"deg)"):"",ts=ti?rR[ti]:void 0;return ts&&(ta+=" ".concat(ts)),ta.length?ta:void 0},rI=(0,tg.memo)(function(tt){var ti=tt.dataQaType,ta=void 0===ti?"uikit/icon":ti,ts=tt.dataQaData,tc=tt.iconSize,tu=void 0===tc?64:tc,td=tt.withContainer,tp=tt.containerSize,tv=tt.square,tb=tt.dataSvgId,tE=tt.svgCode,tT=tt.rotate,tM=tt.reverse,tk=tt.backgroundSize,tR=tt.verticalAlign,tC=tt.theme,tI=tt.cursor,tP=tt.children,tO=tt.idRegExp,tN=void 0===tO?rM:tO,tB=tt.svgWidth,tL=void 0===tB?"100%":tB,tD=(0,t_.Z)(tt,rT),tj=rE[tC]||("object"==typeof tC?tC:{}),tU=tj.color,tF=tj.background,tG=rC(tT||0,tM),tH=(0,tg.useState)(tE),tz=tH[0],tV=tH[1];return(0,tg.useEffect)(function(){var tt;if(tN&&null!=tE&&tE.toString().includes("paint")){var ti=e2();tt=null==tE?void 0:tE.toString().replace(tN,ti)}else tt=tE;tV(tt)},[tN,tE]),tg.createElement("span",Object.assign({},tD,ev({dataQaType:ta,dataQaData:ts}),{className:rA().root,style:{width:tp,height:tp,color:tU,cursor:tI,verticalAlign:tR}}),td&&tg.createElement("span",{className:rA().background,style:{background:tF,borderRadius:tv&&tp&&16!==tp&&24!==tp&&rk[tp]||void 0,width:tk,height:tk}}),tg.createElement("span",Object.assign({},ev({dataQaType:"".concat(ta,".content")}),{"data-svg-id":tb,className:eJ()(rA().icon,(0,tS.Z)({},rA().icon_svgWidthAuto,"auto"===tL)),style:(0,tA.Z)({WebkitTransform:tG,transform:tG,width:tu,height:tu},tD.style),role:"presentation"},tz?{dangerouslySetInnerHTML:{__html:tz.toString()}}:{}),tP))});function rP(tt,ti){return function(ta){return tg.createElement(rI,Object.assign({},ti,ta,{svgCode:tt,idRegExp:rM}))}}r_(rI);var rO=function(tt){return rP(tt,{iconSize:24})}(''),rN=(0,tg.createContext)(void 0),rB=function(){return tq(rN," component must be used within a
provider.")},rL=ta(24276),rD=ta.n(rL),rj=ta(61584),rU=ta.n(rj),rF=function(tt){var ti;return tt?(ti={},(0,tS.Z)(ti,rU()["text-start"],"start"===tt),(0,tS.Z)(ti,rU()["text-center"],"center"===tt),(0,tS.Z)(ti,rU()["text-end"],"end"===tt),ti):{}},rG="tui/header",rH=function(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";return ti?"".concat(tt).concat(ta).concat(ti):tt},rz=function(tt,ti){return rH(tt,ti)},rV=ta(52082),rq=ta.n(rV),rW=["children","dataQaData","dataQaType","UNSAFE_className","UNSAFE_style","className","style"],rY=rz(rG,"content"),rX=function(tt){var ti=tt.children,ta=tt.dataQaData,ts=tt.dataQaType,tc=void 0===ts?rY:ts,tu=tt.UNSAFE_className,td=tt.UNSAFE_style,tp=tt.className,tv=tt.style,tb=(0,t_.Z)(tt,rW);return rB(),tg.createElement("div",Object.assign({},tb,tC({dataQaData:ta,dataQaType:tc}),{className:rD()(rq().content,tp,tu),style:(0,tA.Z)({},tv,td)}),ti)},rQ=ta(68246),rK=ta.n(rQ),rZ=["children","dataQaData","dataQaType","UNSAFE_className","UNSAFE_style","className","style"],rJ=rz(rG,"wrapper"),r$=function(tt){var ti=tt.children,ta=tt.dataQaData,ts=tt.dataQaType,tc=void 0===ts?rJ:ts,tu=tt.UNSAFE_className,td=tt.UNSAFE_style,tp=tt.className,tv=tt.style,tb=(0,t_.Z)(tt,rZ);return rB(),tg.createElement("div",Object.assign({},tb,tC({dataQaData:ta,dataQaType:tc}),{className:rD()(rK().wrapper,tp,tu),style:(0,tA.Z)({},tv,td)}),ti)},r0=ta(83297),r1=ta.n(r0),r3=["component","style","color","whiteSpace","dataQaData","dataQaType"],r8=(0,tg.forwardRef)(function(tt,ti){var ta=tt.component,ts=void 0===ta?"p":ta,tc=tt.style,tu=tt.color,td=tt.whiteSpace,tp=tt.dataQaData,tv=tt.dataQaType,tb=void 0===tv?"tui/typography":tv,tE=(0,t_.Z)(tt,r3);return tg.createElement(tR,Object.assign({},tE,tC({dataQaType:tb,dataQaData:tp}),{ref:ti,component:ts,style:(0,tA.Z)({color:tu,whiteSpace:td},tc)}))}),r5=ta(31936),r4=ta.n(r5),r6=["className","font"],r7=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.className,ts=tt.font,tc=(0,t_.Z)(tt,r6);return tg.createElement(r8,Object.assign({},tc,{ref:ti,className:r1()(r4().root,ta),"data-font-variant":ts}))})),r9=["children","textAlign","size","UNSAFE_className","UNSAFE_style","className","style","dataQaData","dataQaType","component","color"],ii=function(tt){var ti=tt.className,ta=tt.getFont,ts=tt.getComponent,tc=tt.displayName,tu=tt.dataQaType,td=(0,tg.forwardRef)(function(tt,tc){var td=tt.children,tp=tt.textAlign,tv=tt.size,tb=tt.UNSAFE_className,tE=tt.UNSAFE_style,tS=tt.className,tT=tt.style,tM=tt.dataQaData,tk=tt.dataQaType,tR=void 0===tk?tu:tk,tC=tt.component,tI=tt.color,tP=(0,t_.Z)(tt,r9),tO=rB().contextSize,tN=tv||tO,tB=tC||ts(tN),tL=ta(tN);return tg.createElement(r7,Object.assign({},tP,{dataQaType:tR,dataQaData:tM,component:tB,className:rD()(ti,rF(tp),tS,tb),style:(0,tA.Z)({},tT,tE),font:tL,color:tI,"data-size":tN,ref:tc}),td)});return td.displayName=tc,td},ia=ta(41556),io=ta.n(ia),ic={"large-h1":"heading-1","large-h2":"heading-2","large-h3":"heading-3","medium-h4":"heading-4","small-h5":"heading-5","small-h6":"heading-6","small-body-xl":"body-xl-bold","small-body-l":"ui-l-bold","small-body-m":"ui-m-bold"},iu={"large-h1":"h1","large-h2":"h2","large-h3":"h3","medium-h4":"h4","small-h5":"h5","small-h6":"h6","small-body-xl":"p","small-body-l":"p","small-body-m":"p"},ih=tE(ii({className:io().title,getFont:function(tt){return ic[tt]},getComponent:function(tt){return iu[tt]},displayName:"_TitleDesktop",dataQaType:rz(rG,"title")})),ip=ta(68697),iv=ta.n(ip),ib={"large-h1":"body-l","large-h2":"body-l","large-h3":"body-l","medium-h4":"body-m","small-h5":"body-m","small-h6":"body-m","small-body-xl":"body-m","small-body-l":"body-s","small-body-m":"body-s"},ig=tE(ii({className:iv().subtitle,getFont:function(tt){return ib[tt]},getComponent:function(){return"p"},displayName:"_SubtitleDesktop",dataQaType:rz(rG,"subtitle")})),iy=ta(11518),im=ta.n(iy),i_={"large-h1":"body-l","large-h2":"body-l","large-h3":"body-l","medium-h4":"body-m","small-h5":"body-m","small-h6":"body-m","small-body-xl":"body-m","small-body-l":"body-m","small-body-m":"body-m"},iw=tE(ii({className:im().description,getFont:function(tt){return i_[tt]},getComponent:function(){return"div"},displayName:"_DescriptionDesktop",dataQaType:rz(rG,"description")})),ix=ta(57230),iE=tE(ii({className:ta.n(ix)().caption,getFont:function(){return"ui-caps-l-bold"},getComponent:function(){return"div"},displayName:"_CaptionDesktop",dataQaType:rz(rG,"caption")})),iS=ta(41969),iA=ta.n(iS),iT=["children","size","dataQaData","dataQaType","className","style","UNSAFE_className","UNSAFE_style"],iM=rz(rG,"accessories"),ik=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.size,tc=tt.dataQaData,tu=tt.dataQaType,td=void 0===tu?iM:tu,tp=tt.className,tv=tt.style,tb=tt.UNSAFE_className,tE=tt.UNSAFE_style,tS=(0,t_.Z)(tt,iT),tT=rB(),tM=ts||tT.contextSize||"large-h1";return tg.createElement("div",Object.assign({},tS,tC({dataQaData:tc,dataQaType:td}),{className:rD()(iA().accessories,tp,tb),style:(0,tA.Z)({},tv,tE),"data-size":tM,ref:ti}),ta)}),iR=["children","component","dataQaData","dataQaType","UNSAFE_className","UNSAFE_style","className","style"],iC=function(tt){var ti=tt.children,ta=tt.component,ts=void 0===ta?"header":ta,tc=tt.dataQaData,tu=tt.dataQaType,td=void 0===tu?rG:tu,tp=tt.UNSAFE_className,tv=tt.UNSAFE_style,tb=tt.className,tE=tt.style,tS=(0,t_.Z)(tt,iR);return tg.createElement(tR,Object.assign({},tS,tC({dataQaData:tc,dataQaType:td}),{component:ts,className:rD()(rU().root,tb,tp),style:(0,tA.Z)({},tE,tv)}),ti)},iI=["size"],iP=tE(function(tt){var ti=tt.size,ta=(0,t_.Z)(tt,iI),ts=(0,tg.useMemo)(function(){return{contextSize:ti||"large-h1"}},[ti]);return tg.createElement(rN.Provider,{value:ts},tg.createElement(iC,ta))});iP.Content=rX,iP.Wrapper=r$,iP.Title=ih,iP.Subtitle=ig,iP.Description=iw,iP.Caption=iE,iP.Accessories=ik,iP.displayName="HeaderDesktop",iP.Content.displayName="HeaderDesktop.Content",iP.Wrapper.displayName="HeaderDesktop.Wrapper",iP.Title.displayName="HeaderDesktop.Title",iP.Subtitle.displayName="HeaderDesktop.Subtitle",iP.Description.displayName="HeaderDesktop.Description",iP.Caption.displayName="HeaderDesktop.Caption",iP.Accessories.displayName="HeaderDesktop.Accessories";var iO=["children","dataQaData","dataQaType","UNSAFE_className","UNSAFE_style","className","style"],iN=rz(rG,"content"),iB=function(tt){var ti=tt.children,ta=tt.dataQaData,ts=tt.dataQaType,tc=void 0===ts?iN:ts,tu=tt.UNSAFE_className,td=tt.UNSAFE_style,tp=tt.className,tv=tt.style,tb=(0,t_.Z)(tt,iO);return rB(),tg.createElement("div",Object.assign({},tb,tC({dataQaData:ta,dataQaType:tc}),{className:rD()(rq().content,tp,tu),style:(0,tA.Z)({},tv,td)}),ti)},iL=["children","dataQaData","dataQaType","UNSAFE_className","UNSAFE_style","className","style"],iD=rz(rG,"wrapper"),ij=function(tt){var ti=tt.children,ta=tt.dataQaData,ts=tt.dataQaType,tc=void 0===ts?iD:ts,tu=tt.UNSAFE_className,td=tt.UNSAFE_style,tp=tt.className,tv=tt.style,tb=(0,t_.Z)(tt,iL);return rB(),tg.createElement("div",Object.assign({},tb,tC({dataQaData:ta,dataQaType:tc}),{className:rD()(rK().wrapper,tp,tu),style:(0,tA.Z)({},tv,td)}),ti)},iU=ta(37958),iF=ta.n(iU),iG=["className","font"],iH=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.className,ts=tt.font,tc=(0,t_.Z)(tt,iG);return tg.createElement(r8,Object.assign({},tc,{ref:ti,className:r1()(iF().root,ta),"data-font-variant":ts}))})),iz=["children","textAlign","size","UNSAFE_className","UNSAFE_style","className","style","dataQaData","dataQaType","component","color"],iV=function(tt){var ti=tt.className,ta=tt.getFont,ts=tt.getComponent,tc=tt.displayName,tu=tt.dataQaType,td=tt.dataAttributes,tp=void 0===td?{}:td,tv=(0,tg.forwardRef)(function(tt,tc){var td=tt.children,tv=tt.textAlign,tb=tt.size,tE=tt.UNSAFE_className,tS=tt.UNSAFE_style,tT=tt.className,tM=tt.style,tk=tt.dataQaData,tR=tt.dataQaType,tC=void 0===tR?tu:tR,tI=tt.component,tP=tt.color,tO=(0,t_.Z)(tt,iz),tN=rB().contextSize,tB=tb||tN,tL=tI||ts(tB),tD=ta(tB);return tg.createElement(iH,Object.assign({},tO,tp,{dataQaType:tC,dataQaData:tk,component:tL,className:rD()(ti,rF(tv),tT,tE),style:(0,tA.Z)({},tM,tS),font:tD,color:tP,"data-size":tB,ref:tc}),td)});return tv.displayName=tc,tv},iq=ta(51828),iW=ta.n(iq),iY={large:"heading-l",medium:"heading-m",small:"heading-s"},iX={large:"h1",medium:"h2",small:"h3"},iQ=tE(iV({className:iW().title,getFont:function(tt){return iY[tt]},getComponent:function(tt){return iX[tt]},displayName:"_TitleMobile",dataQaType:rz(rG,"title")})),iK=ta(56028),iZ=ta.n(iK),iJ={large:"body-m",medium:"body-m",small:"ui-s"},i$=tE(iV({className:iZ().subtitle,getFont:function(tt){return iJ[tt]},getComponent:function(){return"p"},displayName:"_SubtitleMobile",dataQaType:rz(rG,"subtitle"),dataAttributes:{"data-tui-header-mobile-subtitle":"true"}})),i0=ta(25447),i8=ta.n(i0),i6={large:"body-l",medium:"body-l",small:"body-l"},i7=tE(iV({className:i8().description,getFont:function(tt){return i6[tt]},getComponent:function(){return"div"},displayName:"_DescriptionMobile",dataQaType:rz(rG,"description"),dataAttributes:{"data-tui-header-mobile-description":"true"}})),i9=ta(74440),nt=tE(iV({className:ta.n(i9)().caption,getFont:function(){return"ui-caps"},getComponent:function(){return"div"},displayName:"_CaptionMobile",dataQaType:rz(rG,"caption")})),ni=ta(42026),na=ta.n(ni),no=["children","size","dataQaData","dataQaType","className","style","UNSAFE_className","UNSAFE_style"],ns=rz(rG,"accessories"),nc=(0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.size,tc=tt.dataQaData,tu=tt.dataQaType,td=void 0===tu?ns:tu,tp=tt.className,tv=tt.style,tb=tt.UNSAFE_className,tE=tt.UNSAFE_style,tS=(0,t_.Z)(tt,no),tT=rB(),tM=ts||tT.contextSize;return tg.createElement("div",Object.assign({},tS,tC({dataQaData:tc,dataQaType:td}),{className:rD()(na().accessories,tp,tb),style:(0,tA.Z)({},tv,tE),"data-size":tM,ref:ti}),ta)}),nu=["size"],nh=tE(function(tt){var ti=tt.size,ta=(0,t_.Z)(tt,nu),ts=(0,tg.useMemo)(function(){return{contextSize:ti||"large"}},[ti]);return tg.createElement(rN.Provider,{value:ts},tg.createElement(iC,ta))});nh.Content=iB,nh.Wrapper=ij,nh.Title=iQ,nh.Subtitle=i$,nh.Description=i7,nh.Caption=nt,nh.Accessories=nc,nh.displayName="HeaderMobile",nh.Content.displayName="HeaderMobile.Content",nh.Wrapper.displayName="HeaderMobile.Wrapper",nh.Title.displayName="HeaderMobile.Title",nh.Subtitle.displayName="HeaderMobile.Subtitle",nh.Description.displayName="HeaderMobile.Description",nh.Caption.displayName="HeaderMobile.Caption",nh.Accessories.displayName="HeaderMobile.Accessories";var nl=ta(46741),nd=ta(30233),nf=ta.n(nd),np=ta(47599),nv=ta(83274),ng=ta(51491),nm=ta.n(ng),n_=["size","appearance","iconLeft","iconRight","children","shape"],nw=function(tt){var ti=tt.size,ta=void 0===ti?"l":ti,ts=tt.appearance,tc=void 0===ts?"primary":ts,tu=tt.iconLeft,td=tt.iconRight,tp=tt.children,tv=tt.shape,tb=(0,t_.Z)(tt,n_),tg=(0,nv.b)(ta),tE=(tu||td)&&!tp;return(0,tA.Z)({},tb,{iconLeft:tu,iconRight:td,children:tp,className:nf()(nm().root,nm()["shape_".concat(tv)],(0,tS.Z)({},nm().onlyIcon,tE)),textOverflow:"fade","data-size":ta,"data-appearance":tc,loaderSize:tg})},nE=(0,np.a)(nw),nS=ta(52180),nA=ta.n(nS),nT=ta(14070),nM=ta.n(nT),nk=["children","height","width","margin","display","color","radius","appearance","variant","animation","component","dataQaData","dataQaType","className","animationDelay","animationPlayState","style"],nR=tE((0,tg.forwardRef)(function(tt,ti){var ta=tt.children,ts=tt.height,tc=tt.width,tu=tt.margin,td=tt.display,tp=tt.color,tv=tt.radius,tb=tt.appearance,tE=tt.variant,tS=void 0===tE?"text":tE,tT=tt.animation,tM=void 0===tT?"pulse":tT,tk=tt.component,tI=void 0===tk?"div":tk,tP=tt.dataQaData,tO=tt.dataQaType,tN=tt.className,tB=tt.animationDelay,tL=void 0===tB?"600ms":tB,tD=tt.animationPlayState,tj=void 0===tD?"running":tD,tU=tt.style,tF=(0,t_.Z)(tt,nk),tG=(0,tA.Z)({},tU,tc&&{width:t3(tc)},ts&&{height:t3(ts)},tv&&{borderRadius:t3(tv)},tp&&{background:tp},td&&{display:td},tu&&{margin:t3(tu)},{"--t-animation-play-state":tj,"--t-animation-delay":tL}),tH=(0,tA.Z)({},tF,{component:tI,ref:ti,className:nA()(nM().root,tN),style:tG,"data-variant":tS,"data-appearance":tb},ta&&{"data-with-children":!0},"none"!==tM&&{"data-animation":tM});return tg.createElement(tR,Object.assign({},tH,tC({dataQaData:tP,dataQaType:tO})),tg.createElement("div",null,ta))}));nR.displayName="Skeleton";var nC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nI=function(){for(var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,ti="",ta=crypto.getRandomValues(new Uint8Array(tt|=0));tt--;)ti+=nC[63&ta[tt]];return ti},nP=((nQ=nP||{}).VALIDATION_ERROR="B4005",nQ.COLLECTION_NOT_FOUND="B4313",nQ.MISSING_SSO_TOKEN_ERROR="B4100",nQ.INVALID_AUTH_TOKEN_ERROR="B4101",nQ.INTERNAL_SERVER_ERROR="B5310",nQ);class nO extends Error{constructor(tt={}){var ti,ta,ts,tc,tu,td=null!==(ti=tt.errorMessage)&&void 0!==ti?ti:"",tp=null!==(ta=tt.httpCode)&&void 0!==ta?ta:0,tv=null!==(ts=tt.errorCode)&&void 0!==ts?ts:"",tb="errorPayload"in tt?tt.errorPayload:{},tg=null!==(tc=tt.requestId)&&void 0!==tc?tc:"",t_=null!==(tu=tt.timestamp)&&void 0!==tu?tu:"";super(td),this.errorName="ApiError",this.errorMessage=td,this.httpCode=tp,this.errorCode=tv,this.errorPayload=tb,this.requestId=tg,this.timestamp=t_,Object.setPrototypeOf(this,new.target.prototype),this.name=this.constructor.name}}class nN extends nO{constructor(tt){super((0,tp._)({errorName:"ValidationError",errorMessage:"Ошибка валидации переданных параметров",httpCode:400,errorCode:nP.VALIDATION_ERROR,errorPayload:null},tt))}}class nB extends nO{constructor(tt){super((0,tp._)({errorName:"CollectionNotFoundError",errorMessage:"Пользовательская коллекция не найдена",httpCode:422,errorCode:nP.COLLECTION_NOT_FOUND,errorPayload:null},tt))}}class nL extends nO{constructor(tt){super((0,tp._)({errorName:"InvalidAuthTokenError",errorMessage:"Невалидный SSO токен",httpCode:401,errorCode:nP.INVALID_AUTH_TOKEN_ERROR,errorPayload:null},tt))}}class nD extends nO{constructor(tt){super((0,tp._)({errorName:"MissingSSOTokenError",errorMessage:"Отсутствует SSO токен",httpCode:401,errorCode:nP.MISSING_SSO_TOKEN_ERROR,errorPayload:null},tt))}}class nj extends nO{constructor(tt){super((0,tp._)({errorName:"InternalServerError",errorMessage:"Internal server error occurred",httpCode:500,errorCode:nP.INTERNAL_SERVER_ERROR,errorPayload:null},tt))}}class nU extends nO{constructor(tt){super((0,tp._)({errorName:"ServiceUnavailableError",errorMessage:"Service is currently unavailable",httpCode:503,errorCode:"",errorPayload:null},tt))}}class nF extends Error{constructor(tt,ti,ta){super(tt),this.status=ti,this.errorData=ta,this.name="HttpError"}}var nG=((nK=nG||{}).CommonBonus="common",nK.ImageBonus="image",nK),nH=((nZ=nH||{}).Completed="completed",nZ.Preparing="preparing",nZ),nz=((nJ=nz||{}).Birthday="birthday",nJ.Anniversary="anniversary",nJ),nV=((n$=nV||{}).Pending="pending",n$.Issued="issued",n$.Inactive="inactive",n$.Expired="expired",n$.ForcedIssued="forced-issued",n$);class nq extends nO{constructor(tt){super({errorName:"Network error: ".concat(tt.message)}),this.name="NetworkError"}}var nW={exports:{}},nY={};function nX(){if(n1)return nY;n1=1;var tt=tg,ti=Symbol.for("react.element"),ta=Symbol.for("react.fragment"),ts=Object.prototype.hasOwnProperty,tc=tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tu={key:!0,ref:!0,__self:!0,__source:!0};function td(tt,ta,td){var tp,tv={},tb=null,tg=null;for(tp in void 0!==td&&(tb=""+td),void 0!==ta.key&&(tb=""+ta.key),void 0!==ta.ref&&(tg=ta.ref),ta)ts.call(ta,tp)&&!tu.hasOwnProperty(tp)&&(tv[tp]=ta[tp]);if(tt&&tt.defaultProps)for(tp in ta=tt.defaultProps)void 0===tv[tp]&&(tv[tp]=ta[tp]);return{$$typeof:ti,type:tt,key:tb,ref:tg,props:tv,_owner:tc.current}}return nY.Fragment=ta,nY.jsx=td,nY.jsxs=td,nY}var nQ,nK,nZ,nJ,n$,n0,n1,n2,n3,n8=function(){return n2||(n2=1,nW.exports=nX()),nW.exports}(),n5={cardDesktop:{height:"480px",width:"434px",badgeConfig:{color:"rgba(51, 51, 51, 1)",backgroundColor:"white"},header:{description:{width:{smallMobileWidth:"302px",defaultWidth:"338px"}},width:{smallMobileWidth:"302px",defaultWidth:"338px"}}},cardMobile:{borderRadius:"32px",minWidth:"288px",maxWidth:"382px",height:"400px",badgeConfig:{color:"rgba(51, 51, 51, 1)",backgroundColor:"white"},header:{description:{smallMobileWidth:"280px",defaultWidth:"302px"},width:{smallMobileWidth:"280px",defaultWidth:"302px"}}}},{cardDesktop:n4}=n5,n6=tt=>{var{children:ti}=tt,ta=(0,tb._)(tt,["children"]);return n8.jsx(es,(0,tv._)((0,tp._)({spacing:"normal-with-accessories",style:{height:n4.height,width:n4.width}},ta),{children:ti}))},{cardDesktop:n7}=n5,n9=tt=>{var{children:ti,appearance:ta="dark-text",size:ts="l"}=tt,tc=(0,tb._)(tt,["children","appearance","size"]);return n8.jsx(eY,(0,tv._)((0,tp._)({icon:n8.jsx(rO,{}),appearance:ta,size:ts},n7.badgeConfig,tc),{children:ti}))},at={},ai={},aa={};function ao(){return n3||(n3=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.defaultQueries=aa.isServer=void 0,aa.isServer=!1,aa.defaultQueries={isMobile:"(max-width: 767px)",isTablet:"(min-width: 768px) and (max-width: 1356px)",isDesktop:"(min-width: 1360px)",isMobileMedium:"(max-width: 413px)",isMobileLarge:"(min-width: 414px) and (max-width: 767px)",isTabletMedium:"(min-width: 768px) and (max-width: 1023px)",isTabletLarge:"(min-width: 1024px) and (max-width: 1356px)",isDesktopMedium:"(min-width: 1360px) and (max-width: 1919px)",isDesktopLarge:"(min-width: 1920px)"}),aa}var as,ac={};function au(){if(as)return ac;as=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.unsubscribe=ac.subscribe=ac.getQueries=ac.createDefaultValues=ac.entries=void 0;var tt=ao();function ti(tt){return Object.entries(tt)}function ta(tt){return ti(tt).reduce((tt,ti)=>{var[ta]=ti;return tt[ta]=!1,tt},{})}function ts(ti){return ti||tt.defaultQueries}function tc(tt,ti){if("function"==typeof tt.addEventListener)return tt.addEventListener("change",ti);if("function"==typeof tt.addListener)return tt.addListener(ti);throw Error("Браузер не поддерживает MediaListener")}function tu(tt,ti){if("function"==typeof tt.removeEventListener)return tt.removeEventListener("change",ti);if("function"==typeof tt.removeListener)return tt.removeListener(ti);throw Error("Браузер не поддерживает MediaListener")}return ac.entries=ti,ac.createDefaultValues=ta,ac.getQueries=ts,ac.subscribe=tc,ac.unsubscribe=tu,ac}function ah(){if(al)return ai;al=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.useMatchMedia=void 0;var tt=tg,ti=ao(),ta=au();function ts(ts){var tc=(0,ta.getQueries)(ts);if(ti.isServer)return(0,ta.createDefaultValues)(tc);var tu=(0,ta.entries)(tc),td=tu.map(tt=>{var[,ti]=tt;return window.matchMedia(ti)}),tp=()=>td.map(tt=>tt.matches),[tv,tb]=(0,tt.useState)(tp);return(0,tt.useLayoutEffect)(()=>{var tt=()=>tb(tp);return td.forEach(ti=>{(0,ta.subscribe)(ti,tt)}),()=>{td.forEach(ti=>{(0,ta.unsubscribe)(ti,tt)})}},[]),tu.reduce((tt,ti,ta)=>{var[ts]=ti;return tt[ts]=tv[ta],tt},{})}return ai.useMatchMedia=ts,ai}var al,ad,af={};function ap(){return ad||(ad=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var av=function(){return tu||(tu=1,function(tt){var ti=at&&at.__createBinding||(Object.create?function(tt,ti,ta,ts){void 0===ts&&(ts=ta);var tc=Object.getOwnPropertyDescriptor(ti,ta);(!tc||("get"in tc?!ti.__esModule:tc.writable||tc.configurable))&&(tc={enumerable:!0,get:function(){return ti[ta]}}),Object.defineProperty(tt,ts,tc)}:function(tt,ti,ta,ts){void 0===ts&&(ts=ta),tt[ts]=ti[ta]}),ta=at&&at.__exportStar||function(tt,ta){for(var ts in tt)"default"===ts||Object.prototype.hasOwnProperty.call(ta,ts)||ti(ta,tt,ts)};Object.defineProperty(tt,"__esModule",{value:!0}),ta(ah(),tt),ta(ao(),tt),ta(au(),tt),ta(ap(),tt)}(at)),at}(),ab={isMobileS:"(min-width: 0px) and (max-width: 359px)",isMobileM:"(min-width: 360px) and (max-width: 429px)",isMobileLarge:"(min-width: 431px) and (max-width: 767px)",isExtraMediumScreen:"(min-width: 375px) and (min-height: 700px)",isTablet:"(min-width: 768px)",isTabletM:"(min-width: 768px) and (max-width: 1022px)",isTabletL:"(min-width: 1023px) and (max-width: 1359px)",isDesktop:"(min-width: 1360px)",isMobileOrTablet:"(max-width: 1023px)",isSmallHeightDevice:"(max-height: 699px)"};function ag(){return av.useMatchMedia(ab)}var{cardDesktop:{header:{width:{defaultWidth:am,smallMobileWidth:a_}}}}=n5,aw=tt=>{var{children:ti,size:ta="medium-h4"}=tt,ts=(0,tb._)(tt,["children","size"]),{isMobileS:tc}=ag(),tu=tc?a_:am;return n8.jsx(iP,(0,tv._)((0,tp._)({size:ta,style:(0,tp._)({width:tu},ts.style)},ts),{children:ti}))},aE=tt=>{var{children:ti,textAlign:ta="center"}=tt,ts=(0,tb._)(tt,["children","textAlign"]);return n8.jsx(iP.Title,(0,tv._)((0,tp._)({textAlign:ta},ts),{children:ti}))},{cardDesktop:{header:{description:{width:{defaultWidth:aS,smallMobileWidth:aM}}}}}=n5,ak=tt=>{var{children:ti,textAlign:ta="center",style:ts}=tt,tc=(0,tb._)(tt,["children","textAlign","style"]),{isMobileS:tu}=ag(),td=tu?aM:aS;return n8.jsx(iP.Description,(0,tv._)((0,tp._)({textAlign:ta,style:(0,tp._)({width:td},ts)},tc),{children:ti}))},aR=tt=>{var{children:ti}=tt,ta=(0,tb._)(tt,["children"]);return n8.jsx(es.Bottom,(0,tv._)((0,tp._)({},ta),{children:ti}))},aC=tt=>{var{children:ti,appearance:ta="primary-grayscale-on-dark",size:ts="l"}=tt,tc=(0,tb._)(tt,["children","appearance","size"]);return n8.jsx(nl.$,(0,tv._)((0,tp._)({appearance:ta,size:ts},tc),{children:ti}))};function aI(tt){try{var ti=window.open(tt,"_blank","noopener,noreferrer");ti?ti.opener=null:window.location.href=tt}catch(ti){console.warn(ti),window.location.href=tt}}function aP(tt,ti){return"web"===ti?tt.ctaLinkWeb:"mb"===ti?tt.ctaLinkMobile:null}function aO(tt){var{prize:ti,platform:ta,customUrl:ts,customOnClick:tc}=tt,tu=aP(ti,ta),td=ts||tu;if(td){var tp=!1,tv={defaultHandler:()=>{try{aI(td)}catch(tt){console.error("Ошибка при открытии URL:",tt)}},preventDefaultHandler:()=>{tp=!0},url:td};tc&&tc(tv),tp||tv.defaultHandler()}}var aN="https://ded-ps-prod.t-static.ru",aL=()=>aN,aD={pollingDelayInMs:3e3},aj=tt=>{var{src:ti,alt:ta=""}=tt,ts=(0,tb._)(tt,["src","alt"]),{isMobileS:tc}=ag();return n8.jsx(es.Layer,(0,tv._)((0,tp._)({component:"img",src:"".concat(aL(),"/").concat(ti),alt:ta},ts),{style:{position:"absolute",height:tc?280:302,width:"auto",bottom:0,right:0,top:"unset",left:"unset"}}))},aU=tt=>tt.split(", ").map(tt=>"".concat(aL(),"/").concat(tt)).join(", "),aF=tt=>{var ti=tt.split(", ");return"".concat(aL(),"/").concat(ti[ti.length-1].split(" ")[0])},aG=tt=>{var{decoding:ti,src:ta,className:ts,alt:tc,onClick:tu,pictureClassName:td,isMobile:tb=!1}=tt;if("object"==typeof ta){var{avif:tg,webp:t_,png:tE,jpg:tS,jpeg:tA}=ta,tT=tE||tS||tA,tM={src:aF(tT),srcSet:aU(tT),alt:tc,className:ts?"prize-image ".concat(ts):"prize-image",decoding:ti,onClick:tu,style:{}};return ts||(tM.style={width:"100%",minWidth:"100%",maxWidth:"100%",position:"absolute",bottom:"0",right:"0"},tb&&(tM.style=(0,tv._)((0,tp._)({},tM.style),{width:"75%",minWidth:"75%",maxWidth:"75%"}))),n8.jsxs("picture",{className:td,children:[n8.jsx("source",{srcSet:aU(tg),type:"image/avif"}),n8.jsx("source",{srcSet:aU(t_),type:"image/webp"}),n8.jsx("img",(0,tp._)({},tM))]})}return n8.jsx("img",{src:ta.startsWith("http")?ta:"".concat(aL(),"/").concat(ta),alt:tc,className:ts,decoding:ti,onClick:tu})};function aH(tt){return"string"==typeof tt}var az=tt=>{var{disabled:ti}=tt;return ti&&n8.jsx(es.Layer,{backgroundColor:"#F6F7F8",style:{opacity:"0.75"}})},aV=tt=>{var{imageSource:ti,disabled:ta=!1,backgroundColor:ts,alt:tc="",svgTemp:tu}=tt,{isMobileS:td}=ag();return n8.jsxs(n8.Fragment,{children:[n8.jsx(es.Layer,{backgroundColor:null!=ts?ts:void 0}),tu&&n8.jsx(es.Layer,{children:tu}),aH(ti)?n8.jsx(aj,{src:ti,alt:tc}):n8.jsx(es.Layer,{children:n8.jsx(aG,{isMobile:td,alt:tc,src:ti})}),n8.jsx(az,{disabled:ta})]})},aq=tt=>{var{backgroundColor:ti,disabled:ta=!1,svgTemp:ts}=tt;return n8.jsxs(n8.Fragment,{children:[n8.jsx(es.Layer,{backgroundColor:ti}),ts&&n8.jsx(es.Layer,{children:ts}),n8.jsx(az,{disabled:ta})]})};function aW(tt){if(!tt)return"";var ti=new Date(tt),ta=ti.getDate(),ts=ti.getMonth();return"До ".concat(ta," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][ts])}var aY=tt=>{var ti,ta,ts,tc,{prize:tu,disabled:td=!1,showBadge:tp=!0,showButton:tv=!0,customOnClick:tb,svg:t_}=tt,tE=(0,tg.useCallback)(()=>{aO({prize:tu,platform:"web",customOnClick:tb})},[tu,tb]),tS=tu.status===nV.Expired,tA=tu.status===nV.Inactive,tT=tS||tA?"Срок действия истёк":aW(tu.activeUntil),tM=tp&&""!==tT;return n8.jsxs(n6,{children:[n8.jsxs(eS,{alignCross:"center",gaps:"s",children:[n8.jsx(es.Top,{children:tM&&n8.jsx(n9,{children:tT})}),n8.jsxs(aw,{children:[n8.jsx(aE,{children:n8.jsx(r7,{color:null!==(ti=tu.visual.fontTextColor)&&void 0!==ti?ti:void 0,font:"heading-4",children:tu.title})}),n8.jsx(ak,{children:n8.jsx(r7,{color:null!==(ta=tu.visual.fontTextColor)&&void 0!==ta?ta:void 0,font:"body-m",children:tu.description})})]})]}),n8.jsx(eA,{alignMain:"center",children:n8.jsx(aR,{children:tv&&!td&&!tS&&!tA&&n8.jsx(aC,{onClick:tE,children:tu.ctaTitle})})}),tu.type===nG.CommonBonus&&n8.jsx(aq,{disabled:td||tS||tA,backgroundColor:null!==(ts=tu.visual.backgroundColor)&&void 0!==ts?ts:void 0,svgTemp:t_}),tu.type===nG.ImageBonus&&tu.visual.imageSource&&n8.jsx(aV,{disabled:td||tS||tA,backgroundColor:null!==(tc=tu.visual.backgroundColor)&&void 0!==tc?tc:void 0,imageSource:tu.visual.imageSource,alt:tu.title,svgTemp:t_})]})},aQ=(0,tg.memo)(aY),aK={animation:"pulse",appearance:"default",variant:"circular",radius:32},aZ=tt=>{var{children:ti,radius:ta=aK.radius,animation:ts=aK.animation,appearance:tc=aK.appearance,variant:tu=aK.variant,height:td=400,width:tg=366}=tt,t_=(0,tb._)(tt,["children","radius","animation","appearance","variant","height","width"]);return n8.jsx(nR,(0,tv._)((0,tp._)({animation:ts,appearance:tc,variant:tu,height:td,radius:ta,width:tg},t_),{children:ti}))},aJ=tt=>{var{children:ti,radius:ta=aK.radius,animation:ts=aK.animation,appearance:tc=aK.appearance,variant:tu=aK.variant,height:td=480,width:tg=434}=tt,t_=(0,tb._)(tt,["children","radius","animation","appearance","variant","height","width"]);return n8.jsx(nR,(0,tv._)((0,tp._)({animation:ts,appearance:tc,variant:tu,height:td,radius:ta,width:tg},t_),{children:ti}))},a$=40,a8=tt=>{var{gaps:ti=a$}=tt,ta=(0,tb._)(tt,["gaps"]);return n8.jsxs(eS,{gaps:ti,children:[n8.jsxs(eA,{gaps:ti,children:[n8.jsx(aJ,(0,tp._)({},ta)),n8.jsx(aJ,(0,tp._)({},ta))]}),n8.jsxs(eA,{gaps:ti,children:[n8.jsx(aJ,(0,tp._)({},ta)),n8.jsx(aJ,(0,tp._)({},ta))]})]})},{cardMobile:a9}=n5,ot=tt=>{var{children:ti}=tt,ta=(0,tb._)(tt,["children"]);return n8.jsx(ed,(0,tv._)((0,tp._)({spacing:"normal-with-accessories",style:{borderRadius:a9.borderRadius,height:a9.height,minWidth:a9.minWidth,maxWidth:a9.maxWidth}},ta),{children:ti}))},{cardMobile:oi}=n5,oa=tt=>{var{children:ti,appearance:ta="dark-text",size:ts="l"}=tt,tc=(0,tb._)(tt,["children","appearance","size"]);return n8.jsx(eK,(0,tv._)((0,tp._)({icon:n8.jsx(rO,{}),appearance:ta,size:ts},oi.badgeConfig,tc),{children:ti}))},oo=tt=>{var{children:ti}=tt,ta=(0,tb._)(tt,["children"]);return n8.jsx(ed.Bottom,(0,tv._)((0,tp._)({},ta),{children:ti}))},os=tt=>{var{children:ti,appearance:ta="primary-grayscale-on-dark",size:ts="l"}=tt,tc=(0,tb._)(tt,["children","appearance","size"]);return n8.jsx(nE,(0,tv._)((0,tp._)({appearance:ta,size:ts},tc),{children:ti}))},{cardMobile:{header:{width:oc}}}=n5,ou=tt=>{var{children:ti,size:ta="medium"}=tt,ts=(0,tb._)(tt,["children","size"]),{isMobileS:tc}=ag();return n8.jsx(nh,(0,tv._)((0,tp._)({size:ta,style:(0,tp._)({width:tc?oc.smallMobileWidth:oc.defaultWidth},ts.style)},ts),{children:ti}))},{cardMobile:{header:{description:{defaultWidth:oh,smallMobileWidth:ol}}}}=n5,od=tt=>{var{children:ti,textAlign:ta="center",style:ts}=tt,tc=(0,tb._)(tt,["children","textAlign","style"]),{isMobileS:tu}=ag(),td=tu?ol:oh;return n8.jsx(nh.Description,(0,tv._)((0,tp._)({textAlign:ta,style:(0,tp._)({width:td},ts)},tc),{children:ti}))},of=tt=>{var{children:ti,textAlign:ta="center"}=tt,ts=(0,tb._)(tt,["children","textAlign"]);return n8.jsx(nh.Title,(0,tv._)((0,tp._)({textAlign:ta},ts),{children:ti}))},op=tt=>{var{src:ti,alt:ta=""}=tt,ts=(0,tb._)(tt,["src","alt"]),{isMobileS:tc}=ag();return n8.jsx(ed.Layer,(0,tv._)((0,tp._)({component:"img",src:"".concat(aL(),"/").concat(ti),alt:ta},ts),{style:{position:"absolute",height:tc?220:240,width:"auto",bottom:0,right:0,top:"unset",left:"unset"}}))},ov=tt=>{var{disabled:ti}=tt;return ti&&n8.jsx(ed.Layer,{backgroundColor:"#F6F7F8",style:{opacity:"0.75"}})},ob=tt=>{var{imageSource:ti,disabled:ta=!1,backgroundColor:ts,alt:tc="",svgTemp:tu}=tt;return n8.jsxs(n8.Fragment,{children:[n8.jsx(ed.Layer,{backgroundColor:null!=ts?ts:void 0}),tu&&n8.jsx(ed.Layer,{children:tu}),aH(ti)?n8.jsx(op,{src:ti,alt:tc}):n8.jsx(ed.Layer,{children:n8.jsx(aG,{isMobile:!0,alt:tc,src:ti})}),n8.jsx(ov,{disabled:ta})]})},og=tt=>{var{backgroundColor:ti,disabled:ta=!1,svgTemp:ts}=tt;return n8.jsxs(n8.Fragment,{children:[n8.jsx(ed.Layer,{backgroundColor:ti}),ts&&n8.jsx(ed.Layer,{children:ts}),n8.jsx(ov,{disabled:ta})]})},oy=tt=>{var ti,ta,ts,tc,{prize:tu,disabled:td=!1,showBadge:tp=!0,showButton:tv=!0,platform:tb="mb",customOnClick:t_,svg:tE}=tt,tS=(0,tg.useCallback)(()=>{aO({prize:tu,platform:tb,customOnClick:t_})},[tu,tb,t_]),tA=tu.status===nV.Expired,tT=tu.status===nV.Inactive,tM=tA||tT?"Срок действия истёк":aW(tu.activeUntil),tk=tp&&""!==tM;return n8.jsxs(ot,{children:[n8.jsxs(eS,{alignCross:"center",gaps:"s",children:[n8.jsx(ed.Top,{children:tk&&n8.jsx(oa,{children:tM})}),n8.jsxs(ou,{children:[n8.jsx(of,{children:n8.jsx(iH,{color:null!==(ti=tu.visual.fontTextColor)&&void 0!==ti?ti:void 0,font:"heading-m",children:tu.title})}),n8.jsx(od,{children:n8.jsx(iH,{color:null!==(ta=tu.visual.fontTextColor)&&void 0!==ta?ta:void 0,font:"body-m",children:tu.description})})]})]}),n8.jsx(eA,{alignMain:"center",children:n8.jsx(oo,{children:tv&&!td&&!tA&&!tT&&n8.jsx(os,{onClick:tS,children:n8.jsx(iH,{font:"body-l",children:tu.ctaTitle})})})}),tu.type===nG.ImageBonus&&tu.visual.imageSource&&n8.jsx(ob,{disabled:td||tA||tT,imageSource:tu.visual.imageSource,backgroundColor:null!==(ts=tu.visual.backgroundColor)&&void 0!==ts?ts:void 0,alt:tu.title,svgTemp:tE}),tu.type===nG.CommonBonus&&n8.jsx(og,{backgroundColor:null!==(tc=tu.visual.backgroundColor)&&void 0!==tc?tc:void 0,disabled:td||tA||tT,svgTemp:tE})]})},om=(0,tg.memo)(oy),o_=40,ow=tt=>{var{skeletonCount:ti=2,gaps:ta=o_}=tt,ts=(0,tb._)(tt,["skeletonCount","gaps"]);return n8.jsx(eS,{gaps:ta,children:Array.from({length:ti}).map(()=>n8.jsx(aZ,(0,tp._)({},ts)))})};class ox{getUserCollections(tt){var ti=this;return(0,td._)(function*(){var{customParams:{apiVersion:ta=ti.apiVersion,scope:ts}}=tt,tc=(0,tb._)(tt,["customParams"]);try{return(yield ti.apiClient.get("/api/".concat(ta,"/users/collections/").concat(ts),tc)).data.payload}catch(tt){ti.handleError(tt)}})()}warmupUserCollections(tt){var ti=this;return(0,td._)(function*(){var ta,{customParams:{apiVersion:ts=ti.apiVersion,scope:tc}}=tt,tu=(0,tb._)(tt,["customParams"]),td=(0,tp._)({"X-Idempotency-Key":(null===(ta=tt.headers)||void 0===ta?void 0:ta.idempotencyKey)||ti.generateIdempotencyKey()},null==tt?void 0:tt.headers);try{yield ti.apiClient.put("/api/".concat(ts,"/users/warmup/").concat(tc),(0,tv._)((0,tp._)({},tu),{headers:td}))}catch(tt){ti.handleError(tt)}})()}generateIdempotencyKey(){return nI()}handleError(tt){if(!(tt instanceof nF)&&(tt instanceof nO||tt instanceof nq))throw tt;if(tt instanceof nF){var{status:ti,errorData:ta}=tt;switch(ti){case 400:throw ta.errorCode===nP.VALIDATION_ERROR?new nN(ta):new nO(ta);case 401:throw ta.errorCode===nP.INVALID_AUTH_TOKEN_ERROR?new nL(ta):ta.errorCode===nP.MISSING_SSO_TOKEN_ERROR?new nD(ta):new nO(ta);case 422:throw ta.errorCode===nP.COLLECTION_NOT_FOUND?new nB(ta):new nO(ta);case 500:throw ta.errorCode===nP.INTERNAL_SERVER_ERROR?new nj(ta):new nO(ta);case 503:throw new nU(ta);default:throw new nO(ta)}}throw tt}constructor(tt,ti="v1"){this.apiClient=tt,this.apiVersion=ti}}class oE{request(tt,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ts=this;return(0,td._)(function*(){var{headers:tc={},params:tu}=ta,td=(0,tb._)(ta,["headers","params"]),tv=new URL(ti,ts.baseUrl);tu&&Object.entries(tu).forEach(tt=>{var[ti,ta]=tt;return ta&&tv.searchParams.append(ti,ta)});var tg=(0,tp._)({method:tt,headers:(0,tp._)({"Content-Type":"application/json"},tc),credentials:"include"},td);try{var t_,tE=yield fetch(tv.toString(),tg),tS=null;if(!tE.ok){var tA=yield tE.json();throw new nF("HTTP ".concat(tE.status),tA.httpCode,tA)}return{data:tS=(null===(t_=null==tE?void 0:tE.headers.get("content-type"))||void 0===t_?void 0:t_.includes("application/json"))?yield tE.json().catch(()=>({})):yield tE.text(),headers:tE.headers,status:tE.status}}catch(tt){throw tt instanceof nF?tt:tt instanceof Error?new nq(tt):new nO({errorName:"Неизвестная ошибка при взаимодействии с Prize API"})}})()}get(tt,ti){return this.request("GET",tt,ti)}post(tt,ti){return this.request("POST",tt,ti)}put(tt,ti){return this.request("PUT",tt,ti)}constructor(tt){if(this.baseUrl=tt,!tt)throw Error("Для HttpClient призов требуется base url. Передайте его параметром baseUrl при создании инстанса.")}}var oS=class tt{waitForPrizeCollection(ti){var{input:ta,signal:ts,maxRetryCount:tc=2,onLateCompletion:tu}=ti;return new Promise((ti,td)=>{var tp,tv=null!==(tp=ta.delayMs)&&void 0!==tp?tp:aD.pollingDelayInMs,tb=Math.ceil(tt.INITIAL_PHASE_DURATION/tv),tg=tb+Math.ceil(tt.EXTENDED_PHASE_DURATION/tv),t_={timeoutId:null,retryCount:0,pollCount:0,hasSettled:!1,settle:ti,reject:td,onLateCompletion:tu,input:ta,signal:ts,maxRetryCount:tc,maxInitialPollCount:tb,maxAllowedPollAttempts:tg},tE=()=>{this.cleanup(t_,tE,!0),t_.reject(Error("Поллинг прерван инициатором запроса"))};if(null==ts||ts.addEventListener("abort",tE),null==ts?void 0:ts.aborted){tE();return}this.checkInitialStatus(t_,tE).catch(td)})}handleCollectionResponse(tt,ti,ta){var ts,tc;if(!(null===(ts=tt.signal)||void 0===ts?void 0:ts.aborted)){if(!ti.collection){this.warmupAndStartPolling(tt,ta);return}if(ti.collection.status===nH.Completed){if(tt.hasSettled){null===(tc=tt.onLateCompletion)||void 0===tc||tc.call(tt,ti),this.cleanup(tt,ta);return}this.settle(tt,ti,ta);return}ti.collection.status===nH.Preparing&&(tt.pollCount>=tt.maxInitialPollCount&&!tt.hasSettled&&(tt.hasSettled=!0,this.settle(tt,{collection:{items:[],status:nH.Preparing}},ta)),this.startPolling(tt,ta))}}checkInitialStatus(tt,ti){return this.api.getUserCollections(tt.input).then(ta=>{this.handleCollectionResponse(tt,ta,ti)}).catch(ta=>{var ts;(null===(ts=tt.signal)||void 0===ts?void 0:ts.aborted)||(console.debug("Error checking initial collection status:",ta),this.warmupAndStartPolling(tt,ti))})}warmupAndStartPolling(tt,ti){var ta;if(!(null===(ta=tt.signal)||void 0===ta?void 0:ta.aborted)){if(tt.retryCount>=tt.maxRetryCount){this.settleError(tt,Error("Достигнуто максимальное кол-во ретраев для получения коллекции"),ti,!0);return}tt.retryCount++,this.api.warmupUserCollections({customParams:{scope:tt.input.customParams.scope}}).then(()=>{var ta;(null===(ta=tt.signal)||void 0===ta?void 0:ta.aborted)||this.startPolling(tt,ti)}).catch(ta=>{this.settleError(tt,ta,ti)})}}startPolling(tt,ti){if(null===(ta=tt.signal)||void 0===ta||!ta.aborted){var ta,ts,tc=null!==(ts=tt.input.delayMs)&&void 0!==ts?ts:aD.pollingDelayInMs;tt.timeoutId=setTimeout(()=>{var ta;(null===(ta=tt.signal)||void 0===ta?void 0:ta.aborted)||this.poll(tt,ti).catch(()=>{})},tc)}}poll(tt,ti){var ta;return(null===(ta=tt.signal)||void 0===ta?void 0:ta.aborted)?Promise.resolve():(tt.pollCount++,tt.pollCount>=tt.maxAllowedPollAttempts?(this.settleError(tt,Error("Превышено время ожидания коллекции"),ti,!0),Promise.reject()):(tt.timeoutId=null,this.api.getUserCollections(tt.input).then(ta=>{this.handleCollectionResponse(tt,ta,ti)}).catch(ta=>{var ts;if(!(null===(ts=tt.signal)||void 0===ts?void 0:ts.aborted)){if(tt.timeoutId=null,ta instanceof nO&&304===ta.httpCode){this.startPolling(tt,ti);return}if(ta instanceof nO&&401===ta.httpCode){this.settleError(tt,ta,ti);return}if(ta instanceof nB||ta instanceof nO){this.warmupAndStartPolling(tt,ti);return}this.settleError(tt,ta,ti)}})))}settle(tt,ti,ta){this.cleanup(tt,ta),tt.settle(ti)}settleError(tt,ti,ta){var ts=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.cleanup(tt,ta,ts),tt.reject(ti)}cleanup(tt,ti){var ta,ts=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tt.timeoutId&&(clearTimeout(tt.timeoutId),tt.timeoutId=null),ts&&(null===(ta=tt.signal)||void 0===ta||ta.removeEventListener("abort",ti))}constructor(tt){this.api=tt}};oS.INITIAL_PHASE_DURATION=1e4,oS.EXTENDED_PHASE_DURATION=2e4;var oA=oS,oT=((ts=oT||{}).orangeLight="#F9D880",ts.pink="#e28eae",ts.yellow="#ffe975",ts.orange="#f9d880",ts.darkOrange="#ff7206",ts.blue="#9ec4ff",ts.darkBlue="#98a0f6",ts.purple="#c2a8ff",ts.aqua="#30cfc3",ts.green="#81d0a3",ts.red="#ff8f8f",ts.black="#151515",ts.coffee="#dfd6c0",ts),oM=((tc=oM||{}).bgAnniversary="static/modules-prize-widget/bg1anniversary-854-2026-01-14-13-08-54.png",tc.bgAfisha="static/modules-prize-widget/bgafisha1-320-2026-01-14-14-38-13.png",tc.bgAfisha2="static/modules-prize-widget/bgafisha2-320-2026-01-14-14-38-11.png",tc.bgAfisha3="static/modules-prize-widget/bgafisha3-320-2026-01-14-14-38-11.png",tc.bgAfisha4="static/modules-prize-widget/bgafisha4-320-2026-01-14-14-38-13.png",tc.bgKasko="static/modules-prize-widget/bgkasko-320-2026-01-14-14-38-11.png",tc.bgVkusvill="static/modules-prize-widget/bgvkusvill-320-2026-01-14-14-38-12.png",tc.bgBase="static/modules-prize-widget/basebgmobile-320-2026-01-14-14-38-13.png",tc.bgBase2="static/modules-prize-widget/basebg2-320-2026-01-14-14-38-11.png",tc.bgBase3="static/modules-prize-widget/basebg3-320-2026-01-14-14-38-12.png",tc.bgBase4="static/modules-prize-widget/basebg4-320-2026-01-14-14-38-11.png",tc.bgBase5="static/modules-prize-widget/basebg5-320-2026-01-14-14-38-11.png",tc.bgBase6="static/modules-prize-widget/basebg6-320-2026-01-14-14-38-12.png",tc.bgToplivo="static/modules-prize-widget/bgtoplivo-320-2026-01-14-14-38-13.png",tc.bgToplivo2="static/modules-prize-widget/bgtoplivo2-320-2026-01-14-14-38-12.png",tc.bgToplivo3="static/modules-prize-widget/bgtoplivo3-320-2026-01-14-14-38-12.png",tc)},80143:function(tt,ti,ta){"use strict";var ts=ta(31529);function tc(tt,ti){var ta=Object.keys(tt);if(Object.getOwnPropertySymbols){var ts=Object.getOwnPropertySymbols(tt);ti&&(ts=ts.filter(function(ti){return Object.getOwnPropertyDescriptor(tt,ti).enumerable})),ta.push.apply(ta,ts)}return ta}function tu(tt){for(var ti=1;ti=tt.length?{done:!0}:{done:!1,value:tt[ts++]}},e:function(tt){throw tt},f:tc}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var tu,td=!0,tp=!1;return{s:function(){ta=ta.call(tt)},n:function(){var tt=ta.next();return td=tt.done,tt},e:function(tt){tp=!0,tu=tt},f:function(){try{td||null==ta.return||ta.return()}finally{if(tp)throw tu}}}}function tB(tt,ti){if(tt){if("string"==typeof tt)return tL(tt,ti);var ta=Object.prototype.toString.call(tt).slice(8,-1);if("Object"===ta&&tt.constructor&&(ta=tt.constructor.name),"Map"===ta||"Set"===ta)return Array.from(tt);if("Arguments"===ta||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ta))return tL(tt,ti)}}function tL(tt,ti){(null==ti||ti>tt.length)&&(ti=tt.length);for(var ta=0,ts=Array(ti);ta1&&tE(tt.offsetHeight1?parseFloat(tv)*td:void 0,tR=ta&&(!td||t_),tC=tR?"linear-gradient(\n 90deg,\n rgba(0, 0, 0, 1) calc(100% - var(--t-fade-width, 1.5em)),\n rgba(0, 0, 0, 0)\n ),\n linear-gradient(270deg, #000, #000)":void 0,tP=tR?"center bottom, center top":void 0,tB=tR?"no-repeat":void 0,tL=tR?"100% var(--t-fade-height, 1em), 100% calc(100% - var(--t-fade-height, 1em))":void 0;return{textRef:tS,style:{"--t-fade-width":tR?tu:void 0,"--t-fade-height":tR?tv:void 0,overflow:td?"hidden":void 0,overflowWrap:ta&&td&&td>1?"break-word":void 0,whiteSpace:tA?"nowrap":void 0,maxHeight:tM,maskImage:tC,maskPosition:tP,maskRepeat:tB,maskSize:tL,WebkitMaskImage:tC,WebkitMaskPosition:tP,WebkitMaskRepeat:tB,WebkitMaskSize:tL},textOverflown:t_}},tU=ta(17095),tF=ta.n(tU),tG=function(tt){var ti=tt.dataQaType,ta=tt.dataQaData;return{"data-qa-type":ti,"data-qa-data":"object"==typeof ta?JSON.stringify(ta):ta}},tH=function(tt){return"".concat(tt,"px")},tz=ta(73390),tV=ta.n(tz),tq=["size","thickness","color","className","dataQaData","dataQaType","style"],tW={xxs:12,xs:16,s:24,m:32,l:40,xl:56,xxl:80},tY=100,tX=function(tt){var ti=tt.size,ta=void 0===ti?"xl":ti,tc=tt.thickness,tp=tt.color,tv=void 0===tp?"var(--tui-background-accent-1, #FFDD2D)":tp,tb=tt.className,tg=tt.dataQaData,t_=tt.dataQaType,tE=void 0===t_?"tui/spinner":t_,tS=tt.style,tA=void 0===tS?{}:tS,tT=(0,td.Z)(tt,tq),tM="string"==typeof ta?tW[ta]:ta,tk=null!=tc?tc:tM/12,tR=tY*(tk=tk>1.5?tk:1.5)/tM,tC=(tY-tR)/2,tI=2*Math.PI*tC;return ts.createElement("svg",Object.assign({},tG({dataQaData:tg,dataQaType:tE}),{focusable:"false"},tT,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:tF()(tV().svg,tV().rotate,tb),"data-size":tM,style:(0,tu.Z)({"--t-color":tv,"--t-size":tH(tM),"--t-radius":tH(tC),"--t-thickness":tH(tR),"--t-diameter":tH(tI)},tA)}),ts.createElement("circle",{cx:"50",cy:"50",r:tC,strokeDasharray:tI,className:tV().circle}))},tQ=ta(57011),tK=ta.n(tQ),tZ=["dataQaType","loaderSize","contentMaxLines","className","innerClassName","UNSAFE_className","UNSAFE_style","style","iconLeft","iconRight","loading","children","wide","active","textOverflow","contentLayout","spinnerAriaLabel"],tJ=(0,ts.forwardRef)(function(tt,ti){var ta=tt.dataQaType,tp=void 0===ta?"tui/button":ta,tb=tt.loaderSize,tg=void 0===tb?"s":tb,t_=tt.contentMaxLines,tE=void 0===t_?1:t_,tS=tt.className,tT=tt.innerClassName,tM=tt.UNSAFE_className,tk=tt.UNSAFE_style,tR=tt.style,tC=tt.iconLeft,tI=tt.iconRight,tP=tt.loading,tO=tt.children,tN=tt.wide,tB=tt.active,tL=tt.textOverflow,tD=tt.contentLayout,tU=tt.spinnerAriaLabel,tF=(0,td.Z)(tt,tZ),tG="fade"===tL,tH=tj({enabled:tG,maxLines:tG?tE:void 0}),tz=tH.textRef,tV=tH.style;return ts.createElement(tA,Object.assign({dataQaType:tp,className:tv()(tK().root,tS,tM),innerClassName:tv()(tK().container,tT),style:(0,tu.Z)({},tR,tk,{pointerEvents:tP?"none":void 0}),ref:ti,"data-wide":tN,"data-active":tB,"aria-busy":!!tP||void 0},tF),tC&&ts.createElement("span",{"data-qa-type":"".concat(tp,".icon"),className:tK().icon},tC),tO&&ts.createElement("span",{"data-qa-type":"".concat(tp,".content-wrapper"),className:tK().content,"data-spaced":"spaced"===tD},ts.createElement("span",{"data-qa-type":"".concat(tp,".content"),className:tv()(tK().text,(0,tc.Z)({},tK().text_ellipsis,"ellipsis"===tL)),ref:tz,style:tV,"data-spaced":"spaced"===tD},tO)),tI&&ts.createElement("span",{"data-qa-type":"".concat(tp,".icon"),className:tK().icon},tI),tP&&ts.createElement("span",{"aria-label":tU,role:"status","data-qa-type":"".concat(tp,".loader"),className:tv()((0,tc.Z)({},tK().loader,!0))},ts.createElement(tX,{size:tg,color:"current"})))}),t$=function(tt){return(0,ts.forwardRef)(function(ti,ta){var tc=tt(ti);return ts.createElement(tJ,Object.assign({ref:ta},tc))})}},83274:function(tt,ti,ta){"use strict";ta.d(ti,{b:function(){return ts}});var ts=function(tt){return"l"===tt||"m"===tt?"s":"xs"}},38127:function(tt,ti,ta){"use strict";ta.d(ti,{D0:function(){return tg},jm:function(){return td}});var ts=ta(51387),tc=ts.createContext(null);function tu(){var tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0],ti=ts.useContext(tc);if(tt&&null===ti)throw Error("Could not get a container from a context. Did you forget to pass the container through 'ContainerProvider'?");return ti}var td=tt=>{var{children:ti,container:ta,isolated:td=!1}=tt,tp=tu(!1),tv=td?null:tp,tb=ts.useMemo(()=>{var tt=ta.clone();return tv&&tt.extend(tv),tt},[ta,tv]);return ts.createElement(tc.Provider,{value:tb},ti)},tp=ts.createContext([]),tv=()=>ts.useContext(tp),tb=tt=>{var ti=tu(),ta=tv();return ts.useMemo(()=>ti.get(tt,ta),[tt,ta,ti])},tg=function(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta()=>tb(tt))}},59536:function(){},32577:function(tt){tt.exports={root:"Icon_root__V_R4_",background:"Icon_background__wCJ8Z",icon:"Icon_icon__Xo7y6",icon_svgWidthAuto:"Icon_icon_svgWidthAuto__79QIE",svgIcon:"Icon_svgIcon__bETs8"}},14752:function(tt){tt.exports={inner:"Stack_inner__Tu6Tk","inner_direction-row":"Stack_inner_direction-row__j5dBb",inner_gaps:"Stack_inner_gaps__aJomh","inner_direction-col":"Stack_inner_direction-col__m9Z0e","inner_direction-row-reverse":"Stack_inner_direction-row-reverse__fKPZX","inner_direction-col-reverse":"Stack_inner_direction-col-reverse__kEu62","inner_alignMain-start":"Stack_inner_alignMain-start__wxUij","inner_alignMain-center":"Stack_inner_alignMain-center____q1_","inner_alignMain-end":"Stack_inner_alignMain-end__FJwAA","inner_alignMain-between":"Stack_inner_alignMain-between__aH6yD","inner_alignMain-around":"Stack_inner_alignMain-around__hRBzd","inner_alignMain-even":"Stack_inner_alignMain-even__O9NUC","inner_alignCross-start":"Stack_inner_alignCross-start__OoNPc","inner_alignCross-center":"Stack_inner_alignCross-center__MHqWM","inner_alignCross-end":"Stack_inner_alignCross-end__lo6DQ","inner_alignCross-stretch":"Stack_inner_alignCross-stretch__WU00N"}},87056:function(tt){tt.exports={root:"badge-desktop_root__5QP4a",content:"badge-desktop_content__JU00B",icon:"badge-desktop_icon__dquin",status:"badge-desktop_status__bM8b5"}},40667:function(tt){tt.exports={root:"badge-mobile_root__ZdxO7",content:"badge-mobile_content__t1TbQ",icon:"badge-mobile_icon__Zvrnw"}},95967:function(tt){tt.exports={root:"badge_root__0lemP",inner:"badge_inner__rN0G_",icon:"badge_icon__kvjYh"}},57011:function(tt){tt.exports={root:"base-button_root__wJ0OC",container:"base-button_container__exsSG",loader:"base-button_loader__JDrTR",content:"base-button_content__FqxVE",text:"base-button_text__8jI0e",text_ellipsis:"base-button_text_ellipsis__pXUuU",icon:"base-button_icon__Zfp5k"}},10538:function(tt){tt.exports={root:"button-desktop_root__9DACz",onlyIcon:"button-desktop_onlyIcon__ZKz_0",shape_round:"button-desktop_shape_round__NMNMZ"}},51491:function(tt){tt.exports={root:"button-mobile_root__bf8RZ",onlyIcon:"button-mobile_onlyIcon___EJd6",shape_round:"button-mobile_shape_round__7RyWP"}},62019:function(tt){tt.exports={root:"card-large-desktop_root__oyunv",top:"card-large-desktop_top__M7FuN",content:"card-large-desktop_content__d4xBg",bottom:"card-large-desktop_bottom__L4fcu","list-view":"card-large-desktop_list-view__Hz4sT","card-view":"card-large-desktop_card-view__pQVAq",row:"card-large-desktop_row__kgF3y"}},37199:function(tt){tt.exports={root:"card-large-mobile_root__36xaX",top:"card-large-mobile_top__iivc5",bottom:"card-large-mobile_bottom__LetYV",content:"card-large-mobile_content___Zovv","list-view":"card-large-mobile_list-view__Ig_nW","card-view":"card-large-mobile_card-view__GN4It",row:"card-large-mobile_row__Kvs7o"}},41969:function(tt){tt.exports={accessories:"accessories-desktop_accessories__dHkYj"}},42026:function(tt){tt.exports={accessories:"accessories-mobile_accessories__uJwPj"}},57230:function(tt){tt.exports={caption:"caption-desktop_caption__JZQgu"}},74440:function(tt){tt.exports={caption:"caption-mobile_caption__Oz4nc"}},52082:function(tt){tt.exports={content:"content_content__aXnk2"}},11518:function(tt){tt.exports={description:"description-desktop_description__hkVkk"}},25447:function(tt){tt.exports={description:"description-mobile_description__msQjK"}},68697:function(tt){tt.exports={subtitle:"subtitle-desktop_subtitle__J3kU0"}},56028:function(tt){tt.exports={subtitle:"subtitle-mobile_subtitle__RyEDA"}},41556:function(tt){tt.exports={title:"title-desktop_title__rIvMe"}},51828:function(tt){tt.exports={title:"title-mobile_title__UAflC"}},68246:function(tt){tt.exports={wrapper:"wrapper-common_wrapper__IQzG5"}},61584:function(tt){tt.exports={root:"header_root__h9R9a","text-center":"header_text-center__Bwqoa","text-start":"header_text-start__SxRzS","text-end":"header_text-end__nGfBJ"}},73390:function(tt){tt.exports={svg:"spinner_svg__PpVdx","animate-container":"spinner_animate-container__T_Vtu",circle:"spinner_circle__QeFTz","animate-circle":"spinner_animate-circle__qsrjA"}},14070:function(tt){tt.exports={root:"skeleton_root__Hg0lW",pulse:"skeleton_pulse__AUE_b"}},79116:function(tt){tt.exports={surface:"surface-behaviour_surface__wnOoL"}},79016:function(tt){tt.exports={surface:"surface_surface__jWif4",surface_radius_l:"surface_surface_radius_l__14hdR",surface_radius_m:"surface_surface_radius_m__5vrub",surface_radius_s:"surface_surface_radius_s__AcMLC",surface_radius_xs:"surface_surface_radius_xs__19K8c",surface_radius_xxs:"surface_surface_radius_xxs__k3HbT",surface_shadow_small:"surface_surface_shadow_small__qnfeL",surface_shadow_medium:"surface_surface_shadow_medium__m0VXz",surface_shadow_popup:"surface_surface_shadow_popup__HQlSU",surface_padding_l:"surface_surface_padding_l__yyuTA",surface_padding_m:"surface_surface_padding_m__peV5f",surface_padding_s:"surface_surface_padding_s__MnUVi",layer:"surface_layer__2kpez"}},31936:function(tt){tt.exports={root:"typography-desktop_root__hBYNJ"}},37958:function(tt){tt.exports={root:"typography-mobile_root__QTVAs"}},55894:function(tt){tt.exports={circle:"Circle_circle__yTw09",yellow:"Circle_yellow__QorPu",purple:"Circle_purple___qn2q",circleWrapper:"Circle_circleWrapper__zHI_9"}},27977:function(tt){tt.exports={root:"ErrorDefault_root__2491P",title:"ErrorDefault_title__wbfZ5 typography_h2__m6vnc",text:"ErrorDefault_text__Kvjh4 typography_p1__jx5mn"}},32790:function(tt){tt.exports={container:"Container_container__M7_77"}},12668:function(tt){tt.exports={root:"Layout_root__7H6qY",main:"Layout_main__4rfey"}},48176:function(tt){tt.exports={descriptionPoints:"Description_descriptionPoints__9pT9L",descriptionPointsWrapper:"Description_descriptionPointsWrapper__b_wmG",descriptionPoint:"Description_descriptionPoint__0sO4_",circle:"Description_circle__gjQLW",description:"Description_description__kFMH6",descriptionTitle:"Description_descriptionTitle__uji2G typography_h4__lJbK1",descriptionInfo:"Description_descriptionInfo__10g5B typography_p1__jx5mn",descriptionPointImage:"Description_descriptionPointImage___VK7X",descriptionPointText:"Description_descriptionPointText__7_nix typography_p4__0pmPN",content:"Description_content__h_RBR",images:"Description_images__7mxag",image:"Description_image__E5yiG",picture:"Description_picture__Z_UYF",picture_glass:"Description_picture_glass__KjE0v",picture_movie:"Description_picture_movie__nclV2",picture_yellowBallon:"Description_picture_yellowBallon__lgteC"}},99702:function(tt,ti){var ta;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var ts={}.hasOwnProperty;function tc(){for(var tt="",ti=0;ti=0||(tc[ta]=tt[ta]);return tc}function tc(tt,ti){if(null==tt)return{};var ta,tc,tu=ts(tt,ti);if(Object.getOwnPropertySymbols){var td=Object.getOwnPropertySymbols(tt);for(tc=0;tc=0)&&Object.prototype.propertyIsEnumerable.call(tt,ta)&&(tu[ta]=tt[ta])}return tu}ta.d(ti,{_:function(){return tc}})},33360:function(tt,ti,ta){"use strict";function ts(tt,ti,ta){return ti in tt?Object.defineProperty(tt,ti,{value:ta,enumerable:!0,configurable:!0,writable:!0}):tt[ti]=ta,tt}ta.d(ti,{Z:function(){return ts}})},9747:function(tt,ti,ta){"use strict";function ts(tt){if(Array.isArray(tt))return tt}function tc(tt,ti){var ta,ts,tc=null==tt?null:"undefined"!=typeof Symbol&&tt[Symbol.iterator]||tt["@@iterator"];if(null!=tc){var tu=[],td=!0,tp=!1;try{for(tc=tc.call(tt);!(td=(ta=tc.next()).done)&&(tu.push(ta.value),!ti||tu.length!==ti);td=!0);}catch(tt){tp=!0,ts=tt}finally{try{td||null==tc.return||tc.return()}finally{if(tp)throw ts}}return tu}}function tu(tt,ti){(null==ti||ti>tt.length)&&(ti=tt.length);for(var ta=0,ts=Array(ti);tatt.type===ts.Factory,t_=class{constructor(tt){this.impl=tt,this.type=ts.Instance}},tE=class extends t_{constructor(){super(...arguments),this.scope=tc.Container,this.cache=new WeakMap}},tS=class extends t_{constructor(){super(...arguments),this.scope=tc.Resolution}},tA=class extends t_{constructor(tt){super(tt),this.impl=tt,this.scope=tc.Singleton}},tT=class extends t_{constructor(){super(...arguments),this.scope=tc.Transient}},tM=tt=>tt.type===ts.Instance,tk=tt=>tt.scope===tc.Container,tR=tt=>tt.scope===tc.Resolution,tC=tt=>tt.scope===tc.Singleton,tI=tt=>Symbol(tt),tP=tt=>{let ti=Symbol(tt);return{__t:null,__d:tt,__s:ti,__o:!1,optional:{__t:null,__d:tt,__s:ti,__o:!0}}},tO=class{constructor(){this.parent=null,this.map=new Map}set(tt,ti,ta=tO.notag){let ts=this.map.get(ti.__s);ts?ts.set(ta,tt):this.map.set(ti.__s,new Map().set(ta,tt))}find(tt,ti,ta){let ts=this.map.get(tt.__s);if(void 0!==ts){if(ta){let tt=ts.get(ta);if(tt)return tt}if(ti)for(let tt=0,ta=ti.length;tt{ti.map.set(ts,tt(ta))}),ti}clone(){return this.from(tt=>new Map(tt))}},tN=tO;tN.notag=tI("NO_TAG");var tB=class{constructor(tt,ti,ta,ts){this.vault=tt,this.tokens=ti,this.getVault=ta,this.condition=ts}from(tt){let{tokens:ti}=this;for(let ta=0,ts=ti.length;tathis.resolveToken(tt,ta,ts,ti.split()))}resolveToken(tt,ti,ta,ts=new tG){let tc=this.vault.get(tt,ts,ti,ta);if(tc)return this.resolveBinding(tc,ts);if(!tt.__o)throw Error(`No matching bindings found for '${tt.__d}' token.`)}resolveBinding(tt,ti){return tM(tt)?tC(tt)?this.resolveCache(tt,ti,()=>tt.cache,ti=>{tt.cache=ti}):tk(tt)?this.resolveCache(tt,ti,()=>tt.cache.get(this.vault),ti=>{tt.cache.set(this.vault,ti)}):tR(tt)?this.resolveCache(tt,ti,()=>ti.instances.get(tt),ta=>{ti.instances.set(tt,ta)}):this.createInstance(tt.impl,ti):tg(tt)?(...ta)=>{let ts=this.createInstance(tt.impl.creator,ti);return ts instanceof Promise?ts.then(ti=>tH.resolveInitialization(ti,ta,tt.impl.initializer)):tH.resolveInitialization(ts,ta,tt.impl.initializer)}:tt.impl}resolveCache(tt,ti,ta,ts){let tc=ta();if(void 0!==tc)return tc;let tu=this.createInstance(tt.impl,ti);return ts(tu),tu}createInstance(tt,ti){let ta=this.getParameters(tt,ti),ts=tu.get(tt);if(void 0!==ts)return ts?tt(...ta):new tt(...ta);try{let ti=tt(...ta);return tu.set(tt,!0),ti}catch(ts){let ti=new tt(...ta);return tu.set(tt,!1),ti}}getParameters(tt,ti){let ta=td.get(tt);if(ta)return this.resolveTokens(ta,ti,tp.get(tt),tt);if(0===tt.length)return[];throw Error(`Missing required 'injected' registration of '${tt.name}'`)}static resolveInitialization(tt,ti,ta){let ts=null==ta?void 0:ta(tt,...ti);return ts instanceof Promise?ts.then(()=>tt):tt}},tz=(tt,...ti)=>(td.set(tt,ti),tt)}},function(tt){var ti=function(ti){return tt(tt.s=ti)};tt.O(0,[774,179],function(){return ti(6840),ti(68991)}),_N_E=tt.O()}]); //# sourceMappingURL=_app-8a4cc529d88af5c2.js.map