(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{55399:function(tt,tr){"use strict";var ti,ta,ts;Object.defineProperty(tr,"__esModule",{value:!0}),tr.EnvPrefix=tr.ConsoleText=tr.ConsoleColor=void 0,function(tt){tt.Reset="\x1b[0m",tt.Cyan="\x1b[36m",tt.Red="\x1b[31m",tt.Green="\x1b[32m"}(ti=tr.ConsoleColor||(tr.ConsoleColor={})),function(tt){tt.ErrorTitle="Проблемы в переменных окружения:"}(ta=tr.ConsoleText||(tr.ConsoleText={})),function(tt){tt.App="APP_"}(ts=tr.EnvPrefix||(tr.EnvPrefix={}))},52247:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.envBoolean=tr.envNumber=tr.envString=tr.envEnum=void 0;var ta=ti(55399);function ts(tt,tr,ti){return function(){if("string"==typeof tt&&Object.values(tr).includes(tt))return tt;if("string"==typeof ti&&Object.values(tr).includes(ti))return ti;throw Error("".concat(ta.ConsoleColor.Green,"ожидалось").concat(ta.ConsoleColor.Reset," - одно из значений ").concat(Object.values(tr)," | ").concat(ta.ConsoleColor.Red,"получили").concat(ta.ConsoleColor.Reset," - ").concat(tt))}}function tu(tt,tr){return function(){if("string"==typeof tt&&""!==tt)return tt;if("string"==typeof tr&&""!==tr)return tr;throw Error("".concat(ta.ConsoleColor.Green,"ожидалось").concat(ta.ConsoleColor.Reset," - тип String | ").concat(ta.ConsoleColor.Red,"получили").concat(ta.ConsoleColor.Reset," - ").concat(typeof tt))}}function tc(tt,tr){return function(){if(("string"==typeof tt||"number"==typeof tt)&&!Number.isNaN(Number(tt)))return Number(tt);if("number"==typeof tr&&!Number.isNaN(tr))return tr;throw Error("".concat(ta.ConsoleColor.Green,"ожидалось").concat(ta.ConsoleColor.Reset," - тип Number | ").concat(ta.ConsoleColor.Red,"получили").concat(ta.ConsoleColor.Reset," - ").concat(typeof tt))}}function td(tt,tr){return function(){if("true"===tt)return!0;if("false"===tt)return!1;if("boolean"==typeof tt)return tt;if("boolean"==typeof tr)return tr;throw Error("".concat(ta.ConsoleColor.Green,"ожидалось").concat(ta.ConsoleColor.Reset," - тип Boolean | ").concat(ta.ConsoleColor.Red,"получили").concat(ta.ConsoleColor.Reset," - ").concat(typeof tt))}}tr.envEnum=ts,tr.envString=tu,tr.envNumber=tc,tr.envBoolean=td},2285:function(tt,tr,ti){"use strict";var ta=ti(49135);Object.defineProperty(tr,"__esModule",{value:!0}),tr.createEmptyOrInvalidEnvsErrorLog=void 0;var ts=ti(55399);function tu(tt){return["\n",ts.ConsoleText.ErrorTitle,Object.entries(tt).map(tc).join("\n"),"\n"].join("\n")}function tc(tt){var tr=ta(tt,2),ti=tr[0],tu=tr[1];return"".concat(ts.ConsoleColor.Cyan).concat(ti,": ").concat(tu).concat(ts.ConsoleColor.Reset)}tr.createEmptyOrInvalidEnvsErrorLog=tu},23883:function(tt,tr,ti){"use strict";var ta=ti(42907);Object.defineProperty(tr,"__esModule",{value:!0}),tr.validateAndCreate=void 0;var ts=ti(55399),tu=ti(2285);function tc(tt){var tr={},ti={};for(var tc in tt)try{if(!tc.startsWith(ts.EnvPrefix.App))throw Error("отсутствует префикс ".concat(ts.EnvPrefix.App));var td=tt[tc]();ti[tc]=td}catch(tt){tt instanceof Error&&(tr[tc]=tt.message)}if(Object.keys(tr).length){var tp=tu.createEmptyOrInvalidEnvsErrorLog(tr);if("undefined"==typeof window)console.error(tp),ta.exit(1);else throw console.error(tp),Error(tp)}return ti}tr.validateAndCreate=tc},2193:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(23883),tr),ts(ti(2285),tr),ts(ti(52247),tr),ts(ti(55399),tr),ts(ti(36643),tr)},36643:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},49821:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.FontMimeTypesList=tr.defaultPwa=tr.defaultSocial=tr.defaultReferrerPolicy=tr.defaultColorScheme=tr.defaultThemeColor=tr.defaultViewport=tr.defaultFaviconUrl=void 0,tr.defaultFaviconUrl="https://ps-static.cdn-tinkoff.ru/static/common/favicon.png",tr.defaultViewport="width=device-width, initial-scale=1",tr.defaultThemeColor="#ffdd2d",tr.defaultColorScheme="light only",tr.defaultReferrerPolicy="strict-origin",tr.defaultSocial={siteName:"Т-Банк",siteTwitter:"https://х.com/tbank_ru",type:"website",locale:"ru_RU",cardTwitter:"summary_large_image",appIdVk:"VK-RTRG-218928-gWfNz"},tr.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"}(ti=tr.FontMimeTypesList||(tr.FontMimeTypesList={}))},56980:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(49821),tr),ts(ti(12794),tr),ts(ti(43510),tr)},43510:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},12794:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.HeadProject=void 0;var ts=ta(ti(25470)),tu=ti(49821),tc=ti(8302),td=function(tt){var tr=tt.title,ti=tt.description,ta=tt.favicon,td=tt.pwa,tp=tt.fonts,tv=tt.canonical,tg=tt.keywords,tb=tt.social,t_=tt.colorScheme,tE=tt.themeColor,tA=tt.viewport,tS=tt.wrapper,tT=tt.referrerPolicy,tM=tt.preload,tR=tt.formatDetection,tI=null!=td?td:tu.defaultPwa,tk=null!=ta?ta:tu.defaultFaviconUrl,tP=null!=t_?t_:tu.defaultColorScheme,tC=null!=tE?tE:tu.defaultThemeColor,tO=Object.assign(Object.assign({},tb),tu.defaultSocial),tN=function(tt,tr){return ts.default.createElement("link",Object.assign({key:tr},tt))},tB=function(tt){var tr=tt.manifest,ti=tt.serviceWorker,ta=tt.icons;return ts.default.createElement(ts.default.Fragment,null,ts.default.createElement("link",{rel:"manifest",href:tr}),ta.map(tN),ts.default.createElement("script",{dangerouslySetInnerHTML:{__html:tc.createRegisterServiceWorkerScript(ti)}}))},tL=function(tt){return ts.default.createElement(ts.default.Fragment,null,tt.map(function(tt,tr){return ts.default.createElement("link",{key:tr,href:tt,rel:"preconnect"})}),tt.map(function(tt,tr){return ts.default.createElement("link",{key:tr,href:tt,rel:"stylesheet"})}))},tU=function(tt){return ts.default.createElement(ts.default.Fragment,null,ts.default.createElement("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:tc.createVkPixelSnippet(tt)}}),ts.default.createElement("noscript",null,ts.default.createElement("img",{src:"https://vk.com/rtrg?p=".concat(tO.appIdVk),style:{position:"fixed",left:"-999px"},alt:""})))},tD=function(tt){return ts.default.createElement("link",{rel:"preload",href:tt.href,type:tt.type,as:"font"})},tj=function(tt){return ts.default.createElement("link",{rel:"preload",href:tt,as:"image"})},tF=function(tt){var tr,ti;return ts.default.createElement(ts.default.Fragment,null,null===(tr=null==tt?void 0:tt.fonts)||void 0===tr?void 0:tr.map(tD),null===(ti=null==tt?void 0:tt.images)||void 0===ti?void 0:ti.map(tj))};return ts.default.createElement(tS,null,ts.default.createElement("meta",{charSet:"utf-8"}),ts.default.createElement("meta",{name:"referrer",content:null!=tT?tT:tu.defaultReferrerPolicy}),ts.default.createElement("meta",{name:"viewport",content:null!=tA?tA:tu.defaultViewport}),ts.default.createElement("title",null,tr),ts.default.createElement("meta",{name:"description",content:ti}),(null==tg?void 0:tg.length)&&ts.default.createElement("meta",{name:"keywords",content:tg.join(", ")}),ts.default.createElement("link",{rel:"icon",href:tk}),tv&&ts.default.createElement("link",{rel:"canonical",href:tv}),tR&&ts.default.createElement("meta",{name:"format-detection",content:tR}),"object"==typeof tM&&tF(tM),ts.default.createElement("meta",{name:"color-scheme",content:tP}),ts.default.createElement("meta",{name:"theme-color",content:tC}),"object"==typeof tI&&tB(tI),Array.isArray(tp)&&tL(tp),ts.default.createElement("meta",{property:"og:title",content:tO.title}),ts.default.createElement("meta",{property:"og:description",content:tO.description}),ts.default.createElement("meta",{property:"og:image",content:tO.image}),ts.default.createElement("meta",{property:"og:image:alt",content:tO.imageAlt}),ts.default.createElement("meta",{property:"og:url",content:tO.url}),ts.default.createElement("meta",{property:"og:site_name",content:tO.siteName}),ts.default.createElement("meta",{property:"og:type",content:tO.type}),ts.default.createElement("meta",{property:"og:locale",content:tO.locale}),ts.default.createElement("meta",{property:"vk:image",content:tO.imageVk}),ts.default.createElement("meta",{name:"twitter:title",content:tO.title}),ts.default.createElement("meta",{name:"twitter:description",content:tO.description}),ts.default.createElement("meta",{name:"twitter:image",content:tO.imageTwitter}),ts.default.createElement("meta",{name:"twitter:image:alt",content:tO.imageAltTwitter}),ts.default.createElement("meta",{name:"twitter:site",content:tO.siteTwitter}),ts.default.createElement("meta",{name:"twitter:card",content:tO.cardTwitter}),ts.default.createElement("meta",{property:"fb:app_id",content:tO.appIdFb}),tO.appIdVk&&tU(tO.appIdVk))};tr.HeadProject=td},8302:function(tt,tr){"use strict";function ti(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 ta(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(tr,"__esModule",{value:!0}),tr.createVkPixelSnippet=tr.createRegisterServiceWorkerScript=void 0,tr.createRegisterServiceWorkerScript=ti,tr.createVkPixelSnippet=ta},31297:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.SsoIFrameDataType=tr.SSO_URLS=void 0,tr.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"}(ti=tr.SsoIFrameDataType||(tr.SsoIFrameDataType={}))},92297:function(tt,tr,ti){"use strict";var ta,ts=ti(49135);Object.defineProperty(tr,"__esModule",{value:!0}),tr.useSsoAuthFormStep=tr.SsoAuthFormStep=void 0;var tu=ti(25470),tc=ti(31297),td=ti(78776);!function(tt){tt.Initial="Initial",tt.Confirmation="Confirmation",tt.Success="Success",tt.Error="Error"}(ta=tr.SsoAuthFormStep||(tr.SsoAuthFormStep={}));var tp=function(){var tt=ts(tu.useState(ta.Initial),2),tr=tt[0],ti=tt[1];return tu.useEffect(function(){var tt=function(tt){if(tv(tt))switch(tt.data.payload){case"entry":ti(ta.Initial);break;case"complete":ti(ta.Success);break;case"error":ti(ta.Error);break;default:ti(ta.Confirmation)}};return window.addEventListener("message",tt),function(){return window.removeEventListener("message",tt)}},[]),tr};function tv(tt){var tr,ti;return!!td.isMessageFromIdTinkoff(tt.origin)&&(null===(tr=null==tt?void 0:tt.data)||void 0===tr?void 0:tr.type)===tc.SsoIFrameDataType.InitializedFormName&&"string"==typeof(null===(ti=null==tt?void 0:tt.data)||void 0===ti?void 0:ti.payload)}tr.useSsoAuthFormStep=tp},78776:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.isMessageFromIdTinkoff=void 0;var ta=ti(31297),ts=function(tt){return ta.SSO_URLS.includes(tt)};tr.isMessageFromIdTinkoff=ts},87023:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.AbstractStorage=void 0;var tu=ta(function tt(){ts(this,tt)});tr.AbstractStorage=tu},3285:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117),tu=ti(29449),tc=ti(1959),td=ti(25422);function tp(tt){var tr=tv();return function(){var ti,ta=td(tt);if(tr){var ts=td(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return tc(this,ti)}}function tv(){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(tr,"__esModule",{value:!0}),tr.NullStorage=void 0;var tg=function(tt){tu(ti,tt);var tr=tp(ti);function ti(){return ta(this,ti),tr.apply(this,arguments)}return ts(ti,[{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"))}}]),ti}(ti(87023).AbstractStorage);tr.NullStorage=tg},56727:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117),tu=ti(29449),tc=ti(1959),td=ti(25422);function tp(tt){var tr=tv();return function(){var ti,ta=td(tt);if(tr){var ts=td(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return tc(this,ti)}}function tv(){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(tr,"__esModule",{value:!0}),tr.RealStorage=void 0;var tg=function(tt){tu(ti,tt);var tr=tp(ti);function ti(tt){var ts;return ta(this,ti),(ts=tr.call(this)).storage=tt.storage,ts.onError=tt.onError,ts}return ts(ti,[{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 tr=this.getItem(tt);if(null!==tr)return JSON.parse(tr);return tr}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,tr){try{this.storage.setItem(tt,tr)}catch(tt){this.onError(tt)}}},{key:"setItemObject",value:function(tt,tr){try{this.setItem(tt,JSON.stringify(tr))}catch(tt){this.onError(tt)}}}]),ti}(ti(87023).AbstractStorage);tr.RealStorage=tg},57603:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.initSessionStorage=tr.initLocalStorage=void 0;var ta=ti(56727),ts=ti(3285),tu=ti(22206),tc=ti(83933),td=ti(86730),tp=function(tt){var tr=function(tr){if(tt.onError)return tt.onError(tr);console.error(tr)};if(td.isServer)return new ts.NullStorage;var ti=tc.getWindowStorage(tt.storageType,tr);return ti?new ta.RealStorage({storage:ti,onError:tr}):new ts.NullStorage},tv=function(tt){return tp(Object.assign(Object.assign({},tt),{storageType:tu.StorageType.localStorage}))};tr.initLocalStorage=tv;var tg=function(tt){return tp(Object.assign(Object.assign({},tt),{storageType:tu.StorageType.sessionStorage}))};tr.initSessionStorage=tg},86730:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.isServer=void 0,tr.isServer="undefined"==typeof window},40391:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(22206),tr),ts(ti(57603),tr),ts(ti(3285),tr),ts(ti(56727),tr),ts(ti(87023),tr)},22206:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.StorageType=void 0,function(tt){tt.localStorage="localStorage",tt.sessionStorage="sessionStorage"}(ti=tr.StorageType||(tr.StorageType={}))},83933:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.getWindowStorage=void 0;var ti=function(tt,tr){try{var ti="specialsStorageCheck";return window[tt].setItem(ti,"true"),window[tt].removeItem(ti),window[tt]}catch(tt){return tr(tt),null}};tr.getWindowStorage=ti},53030:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=tr.INVALID_SESSION_ERROR_CODE=tr.SSO_CLIENT_API_OPTIONS=tr.SSO_API_OPTIONS=tr.PROJECT_API_OPTIONS=tr.PROJECT_USER_AUTH_OPTIONS=void 0,tr.PROJECT_USER_AUTH_OPTIONS={query:{authTokenQueryName:"auth_token",completeUriQueryName:"complete_uri",postCompleteRedirectUriQueryName:"post_complete_redirect_uri"},pages:{projectLoginPage:"/auth/login"}},tr.PROJECT_API_OPTIONS={userInfoUrl:"/v1/users/info",logoutUrl:"/v1/auth/logout",loginUrl:"/v1/auth/login",cookies:{authStatusCookieName:"spec_auth_status"}},tr.SSO_API_OPTIONS={pingUrl:"/auth/ping",logoutUrl:"/auth/logout"},tr.SSO_CLIENT_API_OPTIONS={validateUrl:"/validate",completeUrl:"/complete"},tr.INVALID_SESSION_ERROR_CODE="B4001",tr.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=["session_state","state","auth"]},47764:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(53030),tr),ts(ti(40173),tr),ts(ti(30455),tr),ts(ti(36248),tr),ts(ti(44830),tr),ts(ti(22528),tr),ts(ti(87438),tr),ts(ti(57234),tr),ts(ti(5915),tr),ts(ti(37205),tr),ts(ti(1189),tr),ts(ti(80707),tr),ts(ti(10007),tr),ts(ti(72541),tr),ts(ti(26772),tr),ts(ti(38791),tr),ts(ti(20316),tr),ts(ti(49286),tr),ts(ti(30517),tr),ts(ti(6163),tr),ts(ti(70753),tr),ts(ti(50206),tr),ts(ti(20011),tr)},80707:function(tt,tr,ti){"use strict";var ta=ti(49135),ts=ti(73857),tu=ti(67048),tc=ti(12117);function td(tt,tr){var ti="undefined"!=typeof Symbol&&tt[Symbol.iterator]||tt["@@iterator"];if(!ti){if(Array.isArray(tt)||(ti=tp(tt))||tr&&tt&&"number"==typeof tt.length){ti&&(tt=ti);var ta=0,ts=function(){};return{s:ts,n:function(){return ta>=tt.length?{done:!0}:{done:!1,value:tt[ta++]}},e:function(tt){throw tt},f:ts}}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,tc=!0,td=!1;return{s:function(){ti=ti.call(tt)},n:function(){var tt=ti.next();return tc=tt.done,tt},e:function(tt){td=!0,tu=tt},f:function(){try{tc||null==ti.return||ti.return()}finally{if(td)throw tu}}}}function tp(tt,tr){if(tt){if("string"==typeof tt)return tv(tt,tr);var ti=Object.prototype.toString.call(tt).slice(8,-1);if("Object"===ti&&tt.constructor&&(ti=tt.constructor.name),"Map"===ti||"Set"===ti)return Array.from(tt);if("Arguments"===ti||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ti))return tv(tt,tr)}}function tv(tt,tr){(null==tr||tr>tt.length)&&(tr=tt.length);for(var ti=0,ta=Array(tr);ti<tr;ti++)ta[ti]=tt[ti];return ta}var tg=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ProjectUserAuth=void 0;var tb=ti(10007),t_=ti(22528),tE=ti(44830),tA=ti(53030),tS=function(){function tt(tr,ti,ta,ts,tc,td,tp){var tv=this;tu(this,tt),this.options=tr,this.window=ti,this.projectApi=ta,this.ssoClientApi=ts,this.ssoApi=tc,this.iframeAuthStateSyncManager=td,this.legacyAuthAdapter=tp,this.subscribers=new Set,this.iframeAuthStateSyncManager.onReceiveAuthStateFromIframe(function(tt){tv.notifySubscribers(tt)})}return tc(tt,[{key:"subscribe",value:function(tt){var tr=this;return this.subscribers.add(tt),function(){tr.subscribers.delete(tt)}}},{key:"logout",value:function(){return tg(this,void 0,void 0,ts.mark(function tt(){var tr;return ts.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tr=[this.ssoApi.logout()],this.projectApi.hasAuthStatusCookie()&&tr.push(this.projectApi.logout()),tt.next=4,Promise.all(tr);case 4:this.notifySubscribers({status:tb.ProjectUserAuthStatus.Guest,error:void 0,data:void 0});case 5:case"end":return tt.stop()}},tt,this)}))}},{key:"auth",value:function(){return tg(this,void 0,void 0,ts.mark(function tt(){var tr,ti,ta,tu,tc;return ts.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(this.notifySubscribers({status:tb.ProjectUserAuthStatus.Loading,error:void 0,data:void 0}),tt.prev=1,!(tr=this.getAuthTokenFromQuery())){tt.next=15;break}return this.clearAuthTokenQueryParam(),tt.prev=5,tt.next=8,this.ssoClientApi.validate();case 8:tt.next=15;break;case 10:if(tt.prev=10,tt.t0=tt.catch(5),!this.isUnauthorizedError(tt.t0)){tt.next=15;break}return this.redirectToSsoClientLinkAuthPage(tr),tt.abrupt("return");case 15:return tt.next=17,this.legacyAuthAdapter.prepareAuth();case 17:if(ti=tt.sent,!(tu=this.needStartLogin())){tt.next=24;break}return tt.next=22,this.projectApi.login(ti);case 22:ta=tt.sent,this.clearAuthQueryParams();case 24:if(!(tu||this.projectApi.hasAuthStatusCookie())){tt.next=38;break}return tt.prev=25,tt.next=28,this.projectApi.userInfo();case 28:return tc=tt.sent,this.notifySubscribers({status:tb.ProjectUserAuthStatus.LoggedIn,error:void 0,data:{userInfo:tc,login:ta}}),tt.abrupt("return");case 33:return tt.prev=33,tt.t1=tt.catch(25),this.isInvalidSessionError(tt.t1)?this.notifySubscribers({status:tb.ProjectUserAuthStatus.Guest,data:void 0,error:void 0}):this.notifySubscribers({status:tb.ProjectUserAuthStatus.Error,data:void 0,error:tt.t1}),tt.abrupt("return");case 38:return this.notifySubscribers({status:tb.ProjectUserAuthStatus.Guest,error:void 0,data:void 0}),tt.abrupt("return");case 42:return tt.prev=42,tt.t2=tt.catch(1),this.notifySubscribers({status:tb.ProjectUserAuthStatus.Error,data:void 0,error:tt.t2}),tt.abrupt("return");case 46:case"end":return tt.stop()}},tt,this,[[1,42],[5,10],[25,33]])}))}},{key:"redirectToSsoClientLinkAuthPage",value:function(tt){var tr=this.createSsoClientLinkAuthPageUrl();this.addThemeDefaultQuery(tr),this.addAuthTokenQuery(tr,tt),this.addCompleteUriQuery(tr),this.addPostCompleteRedirectUriQuery(tr),this.window.location.href=tr.toString()}},{key:"addQueryFromCurrentUrlExceptAuthToken",value:function(tt){var tr,ti=this.options.query,ts=td(new URL(this.window.location.href).searchParams);try{for(ts.s();!(tr=ts.n()).done;){var tu=ta(tr.value,2),tc=tu[0],tp=tu[1];tc!==ti.authTokenQueryName&&tt.searchParams.append(tc,tp)}}catch(tt){ts.e(tt)}finally{ts.f()}}},{key:"addCompleteUriQuery",value:function(tt){var tr=this.options.query;tt.searchParams.append(tr.completeUriQueryName,this.window.location.origin+"/authorization/complete")}},{key:"addPostCompleteRedirectUriQuery",value:function(tt){var tr=this.options,ti=tr.query,ta=tr.pages,ts=new URL(this.window.location.origin+ta.projectLoginPage);ts.searchParams.append("auth","true"),this.addQueryFromCurrentUrlExceptAuthToken(ts),tt.searchParams.append(ti.postCompleteRedirectUriQueryName,ts.toString())}},{key:"addThemeDefaultQuery",value:function(tt){tt.searchParams.append("theme","default")}},{key:"addAuthTokenQuery",value:function(tt,tr){var ti=this.options.query;tt.searchParams.append(ti.authTokenQueryName,tr)}},{key:"createSsoClientLinkAuthPageUrl",value:function(){return new URL(this.window.location.origin+"/authorization/authorize")}},{key:"notifySubscribers",value:function(tt){this.iframeAuthStateSyncManager.sendAuthStateToParentWindow(tt),this.subscribers.forEach(function(tr){return tr(tt)})}},{key:"needStartLogin",value:function(){if("true"===new URLSearchParams(this.window.location.search).get("auth"))return!0;var tt=this.window.location.pathname.replace(/\/$/,"");return this.options.pages.projectLoginPage===tt}},{key:"clearAuthQueryParams",value:function(){var tt=new URL(this.window.location.href);tA.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN.forEach(function(tr){tt.searchParams.delete(tr)}),this.window.history.replaceState(null,"",tt.toString())}},{key:"clearAuthTokenQueryParam",value:function(){var tt=new URL(this.window.location.href);tt.searchParams.delete(this.options.query.authTokenQueryName),this.window.history.replaceState(null,"",tt.toString())}},{key:"getAuthTokenFromQuery",value:function(){return new URLSearchParams(this.window.location.search).get(this.options.query.authTokenQueryName)}},{key:"isInvalidSessionError",value:function(tt){return tE.HttpErrorProject.isHttpErrorProject(tt)&&[tA.INVALID_SESSION_ERROR_CODE].includes(tt.errorCode)}},{key:"isUnauthorizedError",value:function(tt){return tt instanceof tE.HttpErrorBackend&&tt.response.httpCode===t_.HttpStatus.UNAUTHORIZED}}]),tt}();tr.ProjectUserAuth=tS},10007:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.ProjectUserAuthStatus=void 0,function(tt){tt.Loading="Loading",tt.LoggedIn="LoggedIn",tt.Error="Error",tt.Guest="Guest"}(ti=tr.ProjectUserAuthStatus||(tr.ProjectUserAuthStatus={}))},72541:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117),tu=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ProjectUserAuthCreator=void 0;var tc=tu(ti(38059)),td=ti(53030),tp=ti(50206),tv=ti(1189),tg=ti(80707),tb=ti(30455),t_=ti(87438),tE=ti(38791),tA=ti(26772),tS=ti(20316),tT=ti(49286),tM=ti(30517),tR=ti(70753),tI=ti(19318),tk=function(){function tt(){ta(this,tt)}return ts(tt,null,[{key:"create",value:function(tr){var ti=tr.ssoApi,ta=tr.ssoClientApi,ts=tr.projectApi,tu=tr.srcOrigin,tc=tr.options,tp=tt.createSsoClientApi(ta);return new tg.ProjectUserAuth(tc||td.PROJECT_USER_AUTH_OPTIONS,window,tt.createProjectApi(ts),tp,tt.createSsoApi(ti),tt.createIframeAuthStateSyncManager(tu),tt.createLegacyAuthAdapter(tp))}},{key:"createIframeAuthStateSyncManager",value:function(tt){return new tp.IframeAuthStateSyncManager({srcOrigin:tt},window)}},{key:"createProjectApi",value:function(tr){return tr instanceof tT.ProjectApiBase?tr:new tA.ProjectApi(tt.createHttpClient(tr),td.PROJECT_API_OPTIONS,document)}},{key:"createSsoClientApi",value:function(tr){return tr instanceof tM.SsoClientApiBase?tr:new tE.SsoClientApi(tt.createHttpClient(tr),td.SSO_CLIENT_API_OPTIONS)}},{key:"createSsoApi",value:function(tr){return tr instanceof tR.SsoApiBase?tr:new tS.SsoApi(tt.createHttpClient(tr),td.SSO_API_OPTIONS)}},{key:"createHttpClient",value:function(tt){return new tb.HttpClient(new tv.AxiosHttpAdapter(tc.default.create({baseURL:tt})),new t_.HttpRetry)}},{key:"createLegacyAuthAdapter",value:function(tt){return new tI.LegacyAuthAdapter(window,tt)}}]),tt}();tr.ProjectUserAuthCreator=tk},19318:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(67048),tu=ti(12117),tc=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.LegacyAuthAdapter=void 0;var td=function(){function tt(tr,ti){ts(this,tt),this.window=tr,this.ssoClientApi=ti}return tu(tt,[{key:"prepareAuth",value:function(){return tc(this,void 0,void 0,ta.mark(function tt(){var tr,ti,ts,tu,tc,td;return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(ti=(tr=new URLSearchParams(this.window.location.search)).get("code"),ts=tr.get("state"),tu=tr.get("session_state"),!(!ts||!tu||!ti)){tt.next=6;break}return tt.abrupt("return");case 6:return tt.next=8,this.ssoClientApi.complete({state:ts,session_state:tu,code:ti});case 8:return tc=tt.sent,(td=new URL(this.window.location.href)).searchParams.append("auth","true"),td.searchParams.delete("code"),this.window.history.replaceState(null,"",td.toString()),tt.abrupt("return",tc);case 14:case"end":return tt.stop()}},tt,this)}))}}]),tt}();tr.LegacyAuthAdapter=td},26772:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(67048),tu=ti(12117),tc=ti(29449),td=ti(1959),tp=ti(25422);function tv(tt){var tr=tg();return function(){var ti,ta=tp(tt);if(tr){var ts=tp(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return td(this,ti)}}function tg(){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}}var tb=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ProjectApi=void 0;var t_=function(tt){tc(ti,tt);var tr=tv(ti);function ti(tt,ta,tu){var tc;return ts(this,ti),(tc=tr.call(this)).httpClient=tt,tc.options=ta,tc.document=tu,tc}return tu(ti,[{key:"hasAuthStatusCookie",value:function(){return this.document.cookie.includes(this.options.cookies.authStatusCookieName)}},{key:"logout",value:function(){return tb(this,void 0,void 0,ta.mark(function tt(){return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,this.httpClient.post({url:this.options.logoutUrl});case 2:case"end":return tt.stop()}},tt,this)}))}},{key:"login",value:function(tt){return tb(this,void 0,void 0,ta.mark(function tr(){var ti;return ta.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.next=2,this.httpClient.post({url:this.options.loginUrl,body:tt?{accessTokenSso:tt}:void 0});case 2:return ti=tr.sent,tr.abrupt("return",ti.payload);case 4:case"end":return tr.stop()}},tr,this)}))}},{key:"userInfo",value:function(){return tb(this,void 0,void 0,ta.mark(function tt(){var tr;return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,this.httpClient.get({url:this.options.userInfoUrl});case 2:return tr=tt.sent,tt.abrupt("return",tr.payload);case 4:case"end":return tt.stop()}},tt,this)}))}}]),ti}(ti(49286).ProjectApiBase);tr.ProjectApi=t_},49286:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.ProjectApiBase=void 0;var tu=ta(function tt(){ts(this,tt)});tr.ProjectApiBase=tu},20316:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(67048),tu=ti(12117),tc=ti(29449),td=ti(1959),tp=ti(25422);function tv(tt){var tr=tg();return function(){var ti,ta=tp(tt);if(tr){var ts=tp(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return td(this,ti)}}function tg(){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}}var tb=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.SsoApi=void 0;var t_=function(tt){tc(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this)).httpClient=tt,tu.options=ta,tu}return tu(ti,[{key:"ping",value:function(){return tb(this,void 0,void 0,ta.mark(function tt(){return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,this.httpClient.post({url:this.options.pingUrl,withCredentials:!0});case 2:case"end":return tt.stop()}},tt,this)}))}},{key:"logout",value:function(){return tb(this,void 0,void 0,ta.mark(function tt(){return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,this.httpClient.post({url:this.options.logoutUrl,withCredentials:!0});case 2:case"end":return tt.stop()}},tt,this)}))}}]),ti}(ti(70753).SsoApiBase);tr.SsoApi=t_},70753:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.SsoApiBase=void 0;var tu=ta(function tt(){ts(this,tt)});tr.SsoApiBase=tu},38791:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(67048),tu=ti(12117),tc=ti(29449),td=ti(1959),tp=ti(25422);function tv(tt){var tr=tg();return function(){var ti,ta=tp(tt);if(tr){var ts=tp(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return td(this,ti)}}function tg(){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}}var tb=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.SsoClientApi=void 0;var t_=function(tt){tc(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this)).httpClient=tt,tu.options=ta,tu}return tu(ti,[{key:"validate",value:function(){return tb(this,void 0,void 0,ta.mark(function tt(){return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.next=2,this.httpClient.get({url:this.options.validateUrl,withCredentials:!0});case 2:return tt.abrupt("return",tt.sent);case 3:case"end":return tt.stop()}},tt,this)}))}},{key:"complete",value:function(tt){return tb(this,void 0,void 0,ta.mark(function tr(){var ti;return ta.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.next=2,this.httpClient.get({url:this.options.completeUrl,withCredentials:!0,query:tt});case 2:return ti=tr.sent.access_token,tr.abrupt("return",ti);case 5:case"end":return tr.stop()}},tr,this)}))}}]),ti}(ti(30517).SsoClientApiBase);tr.SsoClientApi=t_},30517:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.SsoClientApiBase=void 0;var tu=ta(function tt(){ts(this,tt)});tr.SsoClientApiBase=tu},6163:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},50206:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.IframeAuthStateSyncManager=void 0;var tu=ti(20011),tc=function(){function tt(tr,ti){ta(this,tt),this.options=tr,this.window=ti}return ts(tt,[{key:"onReceiveAuthStateFromIframe",value:function(tt){var tr=this,ti=function(ti){tr.isSameOrigin(ti)&&tr.isMessageByProjectUserAuthenticator(ti)&&tt(tr.parseJsonProjectUserState(ti.data.state))};return this.window.addEventListener("message",ti),function(){return tr.window.removeEventListener("message",ti)}}},{key:"sendAuthStateToParentWindow",value:function(tt){if(this.window.parent!==this.window){var tr={type:tu.IframeEventType.StateChanged,state:JSON.stringify(tt)};this.window.parent.postMessage(tr,this.options.srcOrigin)}}},{key:"isSameOrigin",value:function(tt){return this.normalizeOrigin(tt.origin)===this.normalizeOrigin(this.options.srcOrigin)}},{key:"parseJsonProjectUserState",value:function(tt){return JSON.parse(tt)}},{key:"isMessageByProjectUserAuthenticator",value:function(tt){var tr;return(null===(tr=null==tt?void 0:tt.data)||void 0===tr?void 0:tr.type)===tu.IframeEventType.StateChanged}},{key:"normalizeOrigin",value:function(tt){return tt.replace(/\/$/,"")}}]),tt}();tr.IframeAuthStateSyncManager=tc},20011:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.IframeEventType=void 0,function(tt){tt.StateChanged="spec:project-user-auth:state-changed"}(ti=tr.IframeEventType||(tr.IframeEventType={}))},30455:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.HttpClient=void 0;var tu=function(){function tt(tr,ti){ta(this,tt),this.httpAdapter=tr,this.httpRetry=ti}return ts(tt,[{key:"get",value:function(tt){return this.withRetry(Object.assign({method:"GET"},tt))}},{key:"post",value:function(tt){return this.withRetry(Object.assign({method:"POST"},tt))}},{key:"patch",value:function(tt){return this.withRetry(Object.assign({method:"PATCH"},tt))}},{key:"put",value:function(tt){return this.withRetry(Object.assign({method:"PUT"},tt))}},{key:"delete",value:function(tt){return this.withRetry(Object.assign({method:"DELETE"},tt))}},{key:"subscribe",value:function(tt,tr){return this.httpAdapter.subscribe(tt,tr)}},{key:"withRetry",value:function(tt){var tr=this;return this.httpRetry.retry({retryConfigData:tt.retry,makeHttpRequestCallback:function(ti){return tr.httpAdapter.request(Object.assign(Object.assign({},tt),{headers:Object.assign(Object.assign({},tt.headers),ti)}))}})}}]),tt}();tr.HttpClient=tu},36248:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},44830:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048),tu=ti(29449),tc=ti(1959),td=ti(25422),tp=ti(42400);function tv(tt){var tr=tg();return function(){var ti,ta=td(tt);if(tr){var ts=td(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return tc(this,ti)}}function tg(){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(tr,"__esModule",{value:!0}),tr.HttpErrorProject=tr.HttpErrorBackend=tr.HttpErrorNoResponse=tr.HttpErrorUnknown=void 0;var tb=function(tt){tu(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this,tt)).error=ta,tu}return ta(ti)}(tp(Error));tr.HttpErrorUnknown=tb;var t_=function(tt){tu(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this,tt)).request=ta,tu}return ta(ti)}(tp(Error));tr.HttpErrorNoResponse=t_;var tE=function(tt){tu(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this,tt)).response=ta,tu}return ta(ti,null,[{key:"isHttpErrorBackend",value:function(tt){return!!tt&&Object.prototype.hasOwnProperty.call(tt,"response")&&Object.prototype.hasOwnProperty.call(tt.response,"httpCode")}}]),ti}(tp(Error));tr.HttpErrorBackend=tE;var tA=function(tt){tu(ti,tt);var tr=tv(ti);function ti(tt,ta){var tu;return ts(this,ti),(tu=tr.call(this,tt)).httpCode=ta.httpCode,tu.errorCode=ta.errorCode,tu.errorPayload=ta.errorPayload,tu.errorMessage=ta.errorMessage,tu.timestamp=ta.timestamp,tu.requestId=ta.requestId,tu}return ta(ti,null,[{key:"isHttpErrorProject",value:function(tt){return!!tt&&["httpCode","errorCode","errorMessage","timestamp"].every(function(tr){return Object.prototype.hasOwnProperty.call(tt,tr)})}}]),ti}(tp(Error));tr.HttpErrorProject=tA},22528:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.HttpStatus=void 0,function(tt){tt[tt.CONTINUE=100]="CONTINUE",tt[tt.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",tt[tt.PROCESSING=102]="PROCESSING",tt[tt.EARLYHINTS=103]="EARLYHINTS",tt[tt.OK=200]="OK",tt[tt.CREATED=201]="CREATED",tt[tt.ACCEPTED=202]="ACCEPTED",tt[tt.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",tt[tt.NO_CONTENT=204]="NO_CONTENT",tt[tt.RESET_CONTENT=205]="RESET_CONTENT",tt[tt.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",tt[tt.AMBIGUOUS=300]="AMBIGUOUS",tt[tt.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",tt[tt.FOUND=302]="FOUND",tt[tt.SEE_OTHER=303]="SEE_OTHER",tt[tt.NOT_MODIFIED=304]="NOT_MODIFIED",tt[tt.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",tt[tt.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",tt[tt.BAD_REQUEST=400]="BAD_REQUEST",tt[tt.UNAUTHORIZED=401]="UNAUTHORIZED",tt[tt.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",tt[tt.FORBIDDEN=403]="FORBIDDEN",tt[tt.NOT_FOUND=404]="NOT_FOUND",tt[tt.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",tt[tt.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",tt[tt.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",tt[tt.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",tt[tt.CONFLICT=409]="CONFLICT",tt[tt.GONE=410]="GONE",tt[tt.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",tt[tt.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",tt[tt.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",tt[tt.URI_TOO_LONG=414]="URI_TOO_LONG",tt[tt.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",tt[tt.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",tt[tt.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",tt[tt.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",tt[tt.MISDIRECTED=421]="MISDIRECTED",tt[tt.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",tt[tt.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",tt[tt.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",tt[tt.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",tt[tt.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",tt[tt.BAD_GATEWAY=502]="BAD_GATEWAY",tt[tt.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",tt[tt.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",tt[tt.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(ti=tr.HttpStatus||(tr.HttpStatus={}))},5915:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.DEFAULT_RETRY_CONFIG=tr.RETRY_ABLE_HTTP_STATUSES=tr.IDEMPOTENCY_HEADER_KEY=void 0;var ta=ti(22528);tr.IDEMPOTENCY_HEADER_KEY="X-Idempotency-Key",tr.RETRY_ABLE_HTTP_STATUSES=[ta.HttpStatus.INTERNAL_SERVER_ERROR,ta.HttpStatus.TOO_MANY_REQUESTS],tr.DEFAULT_RETRY_CONFIG={timeBetweenRetryExponent:1.3,delayInMs:100,retryMaxLimit:3}},87438:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(51050),tu=ti(67048),tc=ti(12117),td=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.HttpRetry=void 0;var tp=ti(44830),tv=ti(5915),tg=ti(40173),tb=function(){function tt(){tu(this,tt)}return tc(tt,[{key:"retry",value:function(tr){var ti=tr.retryConfigData,tu=tr.makeHttpRequestCallback,tc=tr.onRetry;return td(this,void 0,void 0,ta.mark(function tr(){var tb,t_,tE;return ta.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(tE=function(tr,ti){return td(this,void 0,void 0,ta.mark(function td(){var tb;return ta.wrap(function(ta){for(;;)switch(ta.prev=ta.next){case 0:if(ta.prev=0,!(tr>0)){ta.next=5;break}return tb=tt.calculateTimeToWait(tr,ti.delayInMs,ti.timeBetweenRetryExponent),ta.next=5,tg.wait(tb);case 5:return ta.next=7,tu(ts({},tv.IDEMPOTENCY_HEADER_KEY,t_));case 7:return ta.abrupt("return",ta.sent);case 10:if(ta.prev=10,ta.t0=ta.catch(0),!(tr<ti.retryMaxLimit&&tp.HttpErrorProject.isHttpErrorProject(ta.t0)&&tv.RETRY_ABLE_HTTP_STATUSES.includes(ta.t0.httpCode))){ta.next=15;break}return null==tc||tc(ta.t0),ta.abrupt("return",tE(tr+1,ti));case 15:throw ta.t0;case 16:case"end":return ta.stop()}},td,null,[[0,10]])}))},null!==(tb=this.getRetryConfig(ti))){tr.next=6;break}return tr.next=5,tu();case 5:return tr.abrupt("return",tr.sent);case 6:return t_=this.generateIdempotentId(),tr.abrupt("return",tE(0,tb));case 8:case"end":return tr.stop()}},tr,this)}))}},{key:"getRetryConfig",value:function(tt){return tt?!0===tt?tv.DEFAULT_RETRY_CONFIG:tt:null}},{key:"generateIdempotentId",value:function(){return tg.uuid4()}}],[{key:"calculateTimeToWait",value:function(tt,tr,ti){return Math.pow(tt*tr,ti)}}]),tt}();tr.HttpRetry=tb},57234:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},37205:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.AbstractHttpAdapter=void 0;var tu=ta(function tt(){ts(this,tt)});tr.AbstractHttpAdapter=tu},1189:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(67048),tu=ti(12117),tc=ti(29449),td=ti(1959),tp=ti(25422);function tv(tt){var tr=tg();return function(){var ti,ta=tp(tt);if(tr){var ts=tp(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return td(this,ti)}}function tg(){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}}var tb=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.AxiosHttpAdapter=void 0;var t_=ti(44830),tE=function(tt){tc(ti,tt);var tr=tv(ti);function ti(tt){var ta;return ts(this,ti),(ta=tr.call(this)).axios=tt,ta}return tu(ti,[{key:"subscribe",value:function(tt,tr){var ti,ta=this;return"error"===tt&&(ti=this.axios.interceptors.response.use(function(tt){return tt},function(tt){return tr(ta.mapExceptionToErrorInstance(tt)),Promise.reject(tt)})),function(){ta.axios.interceptors.response.eject(ti),ta.axios.interceptors.request.eject(ti)}}},{key:"request",value:function(tt){var tr=tt.url,ti=tt.method,ts=tt.body,tu=tt.query,tc=tt.headers,td=tt.withCredentials,tp=tt.responseType;return tb(this,void 0,void 0,ta.mark(function tt(){var tv;return ta.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.prev=0,tt.next=3,this.axios.request({url:tr,method:ti,data:ts,params:tu,headers:tc,withCredentials:td,responseType:tp});case 3:return tv=tt.sent,tt.abrupt("return",tv.data);case 7:throw tt.prev=7,tt.t0=tt.catch(0),this.mapExceptionToErrorInstance(tt.t0);case 10:case"end":return tt.stop()}},tt,this,[[0,7]])}))}},{key:"mapExceptionToErrorInstance",value:function(tt){var tr;if(t_.HttpErrorProject.isHttpErrorProject(null===(tr=null==tt?void 0:tt.response)||void 0===tr?void 0:tr.data))return new t_.HttpErrorProject(tt.message,tt.response.data);if(null==tt?void 0:tt.response){var ti=tt.response;return new t_.HttpErrorBackend(tt.message,{httpCode:ti.status})}return(null==tt?void 0:tt.request)?new t_.HttpErrorNoResponse(tt.message,tt.request):new t_.HttpErrorUnknown(tt.message,tt)}}]),ti}(ti(37205).AbstractHttpAdapter);tr.AxiosHttpAdapter=tE},40173:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(67709),tr),ts(ti(62514),tr)},62514:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.uuid4=void 0;var ts=ta(ti(60417));function tu(){if(ts.default.randomUUID)return ts.default.randomUUID();var tt=tp();return tt[6]=15&tt[6]|64,tt[8]=63&tt[8]|128,tb(tt)}tr.uuid4=tu;var tc=new Uint8Array(256),td=tc.length;function tp(){return td>tc.length-16&&(ts.default.randomFillSync(tc),td=0),tc.slice(td,td+=16)}for(var tv=[],tg=0;tg<256;++tg)tv.push((tg+256).toString(16).slice(1));function tb(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return tv[tt[tr+0]]+tv[tt[tr+1]]+tv[tt[tr+2]]+tv[tt[tr+3]]+"-"+tv[tt[tr+4]]+tv[tt[tr+5]]+"-"+tv[tt[tr+6]]+tv[tt[tr+7]]+"-"+tv[tt[tr+8]]+tv[tt[tr+9]]+"-"+tv[tt[tr+10]]+tv[tt[tr+11]]+tv[tt[tr+12]]+tv[tt[tr+13]]+tv[tt[tr+14]]+tv[tt[tr+15]]}},67709:function(tt,tr){"use strict";function ti(tt){return new Promise(function(tr){return setTimeout(tr,tt)})}Object.defineProperty(tr,"__esModule",{value:!0}),tr.wait=void 0,tr.wait=ti},46676:function(tt,tr){"use strict";var ti,ta;Object.defineProperty(tr,"__esModule",{value:!0}),tr.LoaderType=tr.RequestStatus=void 0,function(tt){tt.Loading="loading",tt.Success="success",tt.Error="error"}(ti=tr.RequestStatus||(tr.RequestStatus={})),function(tt){tt.Remote="remote",tt.Local="local"}(ta=tr.LoaderType||(tr.LoaderType={}))},89907:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.Resources=void 0;var tu=function(){function tt(tr){var ti=tr.data;ta(this,tt),this.data=ti}return ts(tt,[{key:"getData",value:function(){return this.data}}]),tt}();tr.Resources=tu},11945:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.withResources=void 0;var ts=ta(ti(25470));function tu(tt,tr){return function(ti){return ts.default.createElement(tt,Object.assign({},tr(),ti))}}tr.withResources=tu},15448:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(81518),tr),ts(ti(46676),tr),ts(ti(89907),tr),ts(ti(11945),tr),ts(ti(25555),tr),ts(ti(61147),tr)},25555:function(tt,tr,ti){"use strict";var ta=ti(73857),ts=ti(49135),tu=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),tc=this&&this.__setModuleDefault||(Object.create?function(tt,tr){Object.defineProperty(tt,"default",{enumerable:!0,value:tr})}:function(tt,tr){tt.default=tr}),td=this&&this.__importStar||function(tt){if(tt&&tt.__esModule)return tt;var tr={};if(null!=tt)for(var ti in tt)"default"!==ti&&Object.prototype.hasOwnProperty.call(tt,ti)&&tu(tr,tt,ti);return tc(tr,tt),tr},tp=this&&this.__awaiter||function(tt,tr,ti,ta){function ts(tt){return tt instanceof ti?tt:new ti(function(tr){tr(tt)})}return new(ti||(ti=Promise))(function(ti,tu){function tc(tt){try{tp(ta.next(tt))}catch(tt){tu(tt)}}function td(tt){try{tp(ta.throw(tt))}catch(tt){tu(tt)}}function tp(tt){tt.done?ti(tt.value):ts(tt.value).then(tc,td)}tp((ta=ta.apply(tt,tr||[])).next())})};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ResourcesLoader=void 0;var tv=td(ti(25470)),tg=ti(46676);function tb(tt){var tr=t_(tt);return tt.type===tg.LoaderType.Local?tv.default.createElement(tv.default.Fragment,null,tt.children):tt.loading&&tr.status===tg.RequestStatus.Loading?tt.loading:tt.error&&tr.status===tg.RequestStatus.Error?tt.error:tr.status===tg.RequestStatus.Success?tv.default.createElement(tv.default.Fragment,null,tt.children):null}function t_(tt){var tr=ts(tv.useState({status:tt.type===tg.LoaderType.Local?tg.RequestStatus.Success:tg.RequestStatus.Loading,error:void 0}),2),ti=tr[0],ta=tr[1];return tt.type===tg.LoaderType.Local&&tt.onLoad(tt.data),tv.useEffect(function(){tt.type===tg.LoaderType.Remote&&tE(tt.url).then(function(tr){tt.onLoad(tr),ta({status:tg.RequestStatus.Success})}).catch(function(tt){console.log(tt),ta({status:tg.RequestStatus.Error})})},[]),ti}function tE(tt){return tp(this,void 0,void 0,ta.mark(function tr(){var ti;return ta.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.next=2,fetch("".concat(tt,"?t=").concat(Date.now()));case 2:return ti=tr.sent,tr.next=5,ti.json();case 5:return tr.abrupt("return",tr.sent);case 6:case"end":return tr.stop()}},tr)}))}tr.ResourcesLoader=tb},81518:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},61147:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.createLoaderPropsRemote=tr.createLoaderPropsLocal=void 0;var ta=ti(46676);function ts(tt,tr){return{type:ta.LoaderType.Local,data:tt,onLoad:tr}}function tu(tt,tr){return{type:ta.LoaderType.Remote,url:tt,onLoad:tr}}tr.createLoaderPropsLocal=ts,tr.createLoaderPropsRemote=tu},44:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.PAYLOAD_KEY=tr.Severity=tr.MASKED_PARAMS_SENTRY_LOGS=void 0,tr.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"}(ti||(tr.Severity=ti={})),tr.PAYLOAD_KEY="payload"},47321:function(tt,tr,ti){"use strict";var ta=ti(51050),ts=ti(67048),tu=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.SentryBrowser=void 0;var tc=ti(61015),td=ti(44),tp=function(){function tt(tr,ti,tu,tc){var tp=this;ts(this,tt),this.sentry=tr,this.payloadFormatter=ti,this.extrasFormatter=tu,this.breadcrumbsFormatter=tc,this.captureExceptionAsEvent=!0,this.captureException=function(tt){var tr=tt.trackingId,ti=tt.error,ts=tt.message,tu=tt.payload,tc=tt.isMaskingDisabled,tv=tc?tu:tp.payloadFormatter.mask({payload:tu,privateKeys:tp.privateKeys}),tg=ti||Error(ts);return(tp.sentry.configureScope(function(tt){var ti;tt.setLevel(td.Severity.Error),tt.setExtras(tp.getPreparedExtras((ta(ti={error:tg,trackingId:tr,message:ts},tp.getPayloadKey(),tv),ta(ti,"isMaskingDisabled",tc),ti)))}),tp.captureExceptionAsEvent)?tp.sentry.captureEvent({message:ts}):tp.sentry.captureException(tg)},this.captureEvent=function(tt){var tr=tt.trackingId,ti=tt.message,ts=tt.payload,tu=tt.isMaskingDisabled,tc=tu?ts:tp.payloadFormatter.mask({payload:ts,privateKeys:tp.privateKeys});return tp.sentry.configureScope(function(tt){var ts;tt.setLevel(td.Severity.Info),tt.setExtras(tp.getPreparedExtras((ta(ts={trackingId:tr,message:ti},tp.getPayloadKey(),tc),ta(ts,"isMaskingDisabled",tu),ts)))}),tp.sentry.captureEvent({message:ti})},this.captureExceptionAndThrowError=function(tt,tr){throw tp.captureException({message:tt,error:tr}),tr},this.createCaptureExceptionAndThrowError=function(tt){return function(tr){return tp.captureExceptionAndThrowError(tt,tr)}}}return tu(tt,[{key:"init",value:function(tt){var tr=tt.sentryOptions,ti=tt.privateKeys,ta=void 0===ti?td.MASKED_PARAMS_SENTRY_LOGS:ti,ts=tt.captureExceptionAsEvent,tu=void 0===ts||ts,tc=tt.formattersOptions;this.privateKeys=ta,this.captureExceptionAsEvent=tu,this.formattersOptions=tc,this.sentry.init(Object.assign(Object.assign({},tr),{beforeSend:this.beforeSendPrepare(),beforeBreadcrumb:this.beforeBreadcrumbPrepare()}))}},{key:"beforeSendPrepare",value:function(){var tt=this;return function(tr){var ti;return(null===(ti=tr.extra)||void 0===ti?void 0:ti.isMaskingDisabled)?tr:tt.payloadFormatter.mask({payload:tr,privateKeys:tt.privateKeys})}}},{key:"beforeBreadcrumbPrepare",value:function(){var tt=this;return function(tr,ti){var ta,ts,tu,tc,td,tp,tv,tg,tb,t_=(null===(ta=tt.formattersOptions)||void 0===ta?void 0:ta.breadcrumbs)?tt.breadcrumbsFormatter.format(tr):tr;if((null===(ts=tt.formattersOptions)||void 0===ts?void 0:ts.breadcrumbsResponse)&&"xhr"===tr.category){var tE={method:null===(tc=null===(tu=ti.xhr)||void 0===tu?void 0:tu.__sentry_xhr__)||void 0===tc?void 0:tc.method,status_code:null===(tp=null===(td=ti.xhr)||void 0===td?void 0:td.__sentry_xhr__)||void 0===tp?void 0:tp.status_code,url:null===(tg=null===(tv=ti.xhr)||void 0===tv?void 0:tv.__sentry_xhr__)||void 0===tg?void 0:tg.url,response:tt.breadcrumbsFormatter.formatResponse(null===(tb=ti.xhr)||void 0===tb?void 0:tb.response)};return Object.assign(Object.assign({},t_),{data:tE})}return t_}}},{key:"getPreparedExtras",value:function(tt){var tr;return(null===(tr=this.formattersOptions)||void 0===tr?void 0:tr.extras)?this.extrasFormatter.format(tt):tt}},{key:"getPayloadKey",value:function(){var tt,tr=null===(tt=this.formattersOptions)||void 0===tt?void 0:tt.payloadPostfix;return tr?"".concat(td.PAYLOAD_KEY).concat(tr[0].toUpperCase()).concat(tr.substring(1)):td.PAYLOAD_KEY}}],[{key:"getRealOrFake",value:function(tt){return tt.sentryBrowser?tt.sentryBrowser:new tc.SentryBrowserFake}}]),tt}();tr.SentryBrowser=tp},64437:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.SentryBrowserAbstract=void 0;var tu=ta(function tt(){ts(this,tt)});tr.SentryBrowserAbstract=tu},61015:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.SentryBrowserFake=void 0;var tu=ta(function tt(){ts(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,tr){console.error("SentryBrowser captureExceptionAndThrowError not implemented")},this.createCaptureExceptionAndThrowError=function(tt){console.error("SentryBrowser createCaptureExceptionAndThrowError not implemented")}});tr.SentryBrowserFake=tu},53014:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.HeadScriptSentryBrowser=void 0;var ts=ta(ti(25470));function tu(tt){var tr=tt.wrapper,ti=tt.appStaticUrl,ta=tt.sentryBrowserParams;return ts.default.createElement(tr,null,ts.default.createElement("script",{src:"".concat(ti,"/libs/sentry-browser/bundle.min.js"),crossOrigin:"anonymous"}),ts.default.createElement("script",{dangerouslySetInnerHTML:{__html:tc(ta)}}))}function tc(tt){var tr=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(tr,");\n    }\n  ")}tr.HeadScriptSentryBrowser=tu},32516:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti);var ts=Object.getOwnPropertyDescriptor(tr,ti);(!ts||("get"in ts?!tr.__esModule:ts.writable||ts.configurable))&&(ts={enumerable:!0,get:function(){return tr[ti]}}),Object.defineProperty(tt,ta,ts)}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(53014),tr),ts(ti(47321),tr),ts(ti(64437),tr),ts(ti(44),tr),ts(ti(62268),tr)},62268:function(tt,tr){"use strict";Object.defineProperty(tr,"__esModule",{value:!0})},60604:function(tt,tr){"use strict";var ti;Object.defineProperty(tr,"__esModule",{value:!0}),tr.EVENTEA_PROJECT=tr.PRODUCT_CATEGORY=tr.TRACKING_STATE_PARAMS_TO_COOKIE=tr.CookieKey=tr.PARAM_NOT_INIT=tr.IS_SERVER=tr.TINKOFF_WEB_TRACKING_URL=void 0,tr.TINKOFF_WEB_TRACKING_URL="https://acdn.t-static.ru/twa/v5/bundles/generic/client.js?container=sub_modules&ttm=tinkoff-pwa_special-projects",tr.IS_SERVER="undefined"==typeof window,tr.PARAM_NOT_INIT="noInit",function(tt){tt.Referer="spec_app_referer",tt.Payload="spec_app_payload"}(ti=tr.CookieKey||(tr.CookieKey={})),tr.TRACKING_STATE_PARAMS_TO_COOKIE=["wuid","wuidVisitNum"],tr.PRODUCT_CATEGORY="Specprojects",tr.EVENTEA_PROJECT="special-projects"},87619:function(tt,tr,ti){"use strict";var ta=ti(12117),ts=ti(67048);Object.defineProperty(tr,"__esModule",{value:!0}),tr.AbstractTracking=void 0;var tu=ta(function tt(){ts(this,tt)});tr.AbstractTracking=tu},97009:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.NullTracking=void 0;var tu=function(){function tt(){ta(this,tt),this.sendEvent=function(){console.error(Error("невозможно инициализировать @tinkoff/web-tracking на сервере"))},this.updateLocation=function(){console.error(Error("невозможно инициализировать @tinkoff/web-tracking на сервере"))}}return ts(tt,[{key:"saveTrackingStateToCookie",value:function(){console.error(Error("невозможно инициализировать @tinkoff/web-tracking на сервере"))}},{key:"subscribeTrackingPageLoad",value:function(){console.error(Error("невозможно инициализировать @tinkoff/web-tracking на сервере"))}}]),tt}();tr.NullTracking=tu},23949:function(tt,tr,ti){"use strict";var ta=ti(67048),ts=ti(12117),tu=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.RealTracking=void 0;var tc=tu(ti(9945)),td=ti(38549),tp=ti(60604),tv=ti(65511),tg=function(){function tt(tr){var ti=this;ta(this,tt),this.sendEvent=function(tt,tr){tr&&ti.tracking.extend(tr),ti.eventea.send({project:tp.EVENTEA_PROJECT,event:tt,payload:tr})},this.updateLocation=function(){ti.tracking.updateLocation()},this.subscribeTrackingPageLoad=function(tt){if(ti.hasTrackingStateAlreadyInitialized()){tt();return}var tr=function tr(){window.removeEventListener("pageLoad",tr),tt()};window.addEventListener("pageLoad",tr)};var ts=new tc.default;ts.resolve(td.getTracking()),this.tracking=ts,this.eventea=new tv.EventeaQueue,this.props=tr||{}}return ts(tt,[{key:"saveTrackingStateToCookie",value:function(){var tt=new URLSearchParams;tp.TRACKING_STATE_PARAMS_TO_COOKIE.forEach(function(tr){var ti,ta,ts;tt.append(tr,(null===(ts=null===(ta=null===(ti=window.tracking)||void 0===ti?void 0:ti.state)||void 0===ta?void 0:ta[tr])||void 0===ts?void 0:ts.toString())||tp.PARAM_NOT_INIT)}),document.cookie="".concat(this.props.appRefererCookieName||tp.CookieKey.Referer,"=").concat(window.location.href,";path=/"),document.cookie="".concat(this.props.appPayloadCookieName||tp.CookieKey.Payload,"=").concat(tt.toString(),";path=/")}},{key:"hasTrackingStateAlreadyInitialized",value:function(){var tt,tr=null===(tt=window.tracking)||void 0===tt?void 0:tt.state;return!!tr&&tp.TRACKING_STATE_PARAMS_TO_COOKIE.every(function(tt){return void 0!==tr[tt]})}}]),tt}();tr.RealTracking=tg},33925:function(tt,tr,ti){"use strict";var ta=this&&this.__createBinding||(Object.create?function(tt,tr,ti,ta){void 0===ta&&(ta=ti),Object.defineProperty(tt,ta,{enumerable:!0,get:function(){return tr[ti]}})}:function(tt,tr,ti,ta){void 0===ta&&(ta=ti),tt[ta]=tr[ti]}),ts=this&&this.__exportStar||function(tt,tr){for(var ti in tt)"default"===ti||Object.prototype.hasOwnProperty.call(tr,ti)||ta(tr,tt,ti)};Object.defineProperty(tr,"__esModule",{value:!0}),ts(ti(86041),tr),ts(ti(60604),tr),ts(ti(97009),tr),ts(ti(23949),tr),ts(ti(87619),tr),ts(ti(79470),tr),ts(ti(27790),tr)},86041:function(tt,tr,ti){"use strict";Object.defineProperty(tr,"__esModule",{value:!0}),tr.createTracking=void 0;var ta=ti(97009),ts=ti(23949);function tu(tt){return"undefined"==typeof window?new ta.NullTracking:new ts.RealTracking(tt)}tr.createTracking=tu},27790:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.HeadScriptTracking=void 0;var ts=ta(ti(25470)),tu=ti(60604),tc=function(tt){var tr=tt.head,ti=tt.productName,ta=tt.productCategory,tc=void 0===ta?tu.PRODUCT_CATEGORY:ta;return ts.default.createElement(tr,null,ts.default.createElement("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:td(ti,tc)}}))};function td(tt,tr){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(tr,'";\n      }  \n      if (typeof window.tracking.state.productName !== "string") {\n        window.tracking.state.productName = "').concat(tt,'";\n      }\n    }();\n  ')}tr.HeadScriptTracking=tc},79470:function(tt,tr,ti){"use strict";var ta=this&&this.__importDefault||function(tt){return tt&&tt.__esModule?tt:{default:tt}};Object.defineProperty(tr,"__esModule",{value:!0}),tr.ScriptTracking=void 0;var ts=ta(ti(25470)),tu=ti(60604),tc=function(tt){var tr=tt.script;return ts.default.createElement(tr,{src:tu.TINKOFF_WEB_TRACKING_URL,type:"text/javascript",defer:!0})};tr.ScriptTracking=tc},65511:function(tt,tr,ti){"use strict";var ta=ti(61866),ts=ti(67048),tu=ti(12117);Object.defineProperty(tr,"__esModule",{value:!0}),tr.EventeaQueueObserver=tr.EventeaQueue=void 0;var tc="undefined"!=typeof window?window:void 0,td=function(){function tt(tr){var ti,ta;ts(this,tt),this.errorHandlers=null==tr?void 0:tr.errorHandlers,tc?tc._evnteq||(tc._evnteq=[]):null===(ta=null===(ti=this.errorHandlers)||void 0===ti?void 0:ti.handleQueueUsageAtServer)||void 0===ta||ta.call(ti)}return tu(tt,[{key:"__addEventToStore",value:function(){if(null==tc?void 0:tc._evnteq){var tt;(tt=tc._evnteq).push.apply(tt,arguments)}}},{key:"getQueue",get:function(){var tt;return Array.isArray(null==tc?void 0:tc._evnteq)?null==tc?void 0:tc._evnteq:null===(tt=null==tc?void 0:tc._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}();tr.EventeaQueue=td;var tp=function(){function tt(tr){var ti,tu,td;ts(this,tt),this.observerSuspended=!1,this.queue=[],this.errorHandlers=null==tr?void 0:tr.errorHandlers,tc?(Array.isArray(tc._evnteq)&&(td=this.queue).push.apply(td,ta(tc._evnteq)),tc._evnteq=this):(this.observerSuspended=!0,null===(tu=null===(ti=this.errorHandlers)||void 0===ti?void 0:ti.handleQueueUsageAtServer)||void 0===tu||tu.call(ti))}return tu(tt,[{key:"watch",set:function(tt){var tr,ti;this.observerSuspended?null===(ti=null===(tr=this.errorHandlers)||void 0===tr?void 0:tr.handleQueueUsageAtServer)||void 0===ti||ti.call(tr):(this.watcher=tt,this.push.apply(this,ta(this.queue)),this.queue=[])}},{key:"push",value:function(){for(var tt,tr,ti,ta=arguments.length,ts=Array(ta),tu=0;tu<ta;tu++)ts[tu]=arguments[tu];if(this.watcher)try{this.watcher(ts)}catch(ti){var tc=ti.message;null===(tr=null===(tt=this.errorHandlers)||void 0===tt?void 0:tt.handleObserverWatcherErrors)||void 0===tr||tr.call(tt,tc)}else(ti=this.queue).push.apply(ti,ts)}}]),tt}();tr.EventeaQueueObserver=tp},38549:function(tt,tr){"use strict";function ti(){if("undefined"==typeof window)throw Error("EClientOnly");return new Promise(function(tt){var tr=window.tracking;tr&&tr.fullfill?tt(tr):window.addEventListener("tracking-created",function(tr){tt(tr.detail||window.tracking)})})}Object.defineProperty(tr,"__esModule",{value:!0}),tr.getTracking=void 0,tr.getTracking=ti},9945:function(tt,tr,ti){"use strict";var ta=this&&this.__spreadArrays||function(){for(var tt=0,tr=0,ti=arguments.length;tr<ti;tr++)tt+=arguments[tr].length;for(var ta=Array(tt),ts=0,tr=0;tr<ti;tr++)for(var tu=arguments[tr],tc=0,td=tu.length;tc<td;tc++,ts++)ta[ts]=tu[tc];return ta};Object.defineProperty(tr,"__esModule",{value:!0});var ts=ti(22040),tu=function(){function tt(){var tt=this;this.utils={},this.proxy=!0,this.addUtil=this.getProxiedMethod("addUtil"),this.updateLocation=this.getProxiedMethod("updateLocation"),this.event=this.getProxiedMethod("event"),this.addPixel=this.getProxiedMethod("addPixel"),this.use=this.getProxiedMethod("use"),this._stateAcc={},this._listeners=Object.create(null),this.ready=new Promise(function(tr){tt._readyResolve=tr}),this.trackingReady=new Promise(function(tr){tt._trackingResolve=tr})}return Object.defineProperty(tt.prototype,"_version",{get:function(){return this.tracking?this.tracking._version:"proxy-4.67.0"},enumerable:!1,configurable:!0}),tt.prototype.setTracking=function(tt){var tr=this;this.tracking=tt;var ti=Object.keys(tt.state).length>0;this._trackingResolve(tt),tt.ready.then(this._readyResolve),tt.extend(this._stateAcc),ti&&this._listeners.change&&this._listeners.change.forEach(function(ti){ti(tt.state,tr._stateAcc)}),this._listeners=Object.create(null)},tt.prototype.addPixels=function(tt){return this.tracking?this.tracking.addPixels(tt):this.trackingReady.then(function(tr){return tr.addPixels(tt)})},tt.prototype.resolve=function(tt){var tr=this;return Promise.resolve(tt).then(function(tt){return tr.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 tr,ti=[],ts=1;ts<arguments.length;ts++)ti[ts-1]=arguments[ts];return this.tracking?(tr=this.tracking).callUtil.apply(tr,ta([tt],ti)):this.trackingReady.then(function(tr){return tr.callUtil.apply(tr,ta([tt],ti))})},tt.prototype.fullfill=function(tt){return this.tracking?this.tracking.fullfill(tt):this.trackingReady.then(function(tr){return tr.fullfill(tt)})},tt.prototype.extend=function(tt){if(this.tracking)return this.tracking.extend(tt);var tr=Object.keys(tt).reduce(function(tr,ti){var ta=ti.split(".");return ts.assoc(tr,ta,tt[ti])},this._stateAcc);return this.update(tr)},tt.prototype.update=function(tt){return this.tracking?this.tracking.update(tt):(this._stateAcc!==tt&&(this._stateAcc=tt),this)},tt.prototype.remove=function(){for(var tt,tr=[],ti=0;ti<arguments.length;ti++)tr[ti]=arguments[ti];if(this.tracking)return(tt=this.tracking).remove.apply(tt,tr);var tu=ts.dissoc.apply(void 0,ta([this._stateAcc],tr.map(function(tt){return tt.split(".")})));return this.update(tu)},tt.prototype.on=function(tt,tr){this.tracking?this.tracking.on(tt,tr):("change"===tt&&(this._listeners[tt]=this._listeners[tt]||[],this._listeners[tt].push(tr)),this.trackingReady.then(function(ti){ti.on(tt,tr)}))},tt.prototype.off=function(tt,tr){this.tracking?this.tracking.off(tt,tr):("change"===tt&&this._listeners[tt]&&(this._listeners[tt]=this._listeners[tt].filter(function(tt){return tt!==tr})),this.trackingReady.then(function(ti){ti.off(tt,tr)}))},tt.prototype.emit=function(tt){for(var tr,ti=[],ts=1;ts<arguments.length;ts++)ti[ts-1]=arguments[ts];this.tracking?(tr=this.tracking).emit.apply(tr,ta([tt],ti)):this.trackingReady.then(function(tr){tr.emit.apply(tr,ta([tt],ti))})},tt.prototype.waitFor=function(tt){return this.trackingReady.then(function(tr){return tr.waitFor(tt)})},tt.prototype.getProxiedMethod=function(tt){var tr=this;return function(){for(var ti,ta=[],ts=0;ts<arguments.length;ts++)ta[ts]=arguments[ts];return tr.tracking?(ti=tr.tracking)[tt].apply(ti,ta):tr.trackingReady.then(function(tr){tr[tt].apply(tr,ta)}),tr}},tt}();tr.default=tu},38059:function(tt,tr,ti){tt.exports=ti(16665)},52518:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=ti(99057),tu=ti(98996),tc=ti(80996),td=ti(11072),tp=ti(88113),tv=ti(35382),tg=ti(52736),tb=ti(58645),t_=ti(50926);tt.exports=function(tt){return new Promise(function(tr,ti){var tE,tA=tt.data,tS=tt.headers,tT=tt.responseType;function tM(){tt.cancelToken&&tt.cancelToken.unsubscribe(tE),tt.signal&&tt.signal.removeEventListener("abort",tE)}ta.isFormData(tA)&&delete tS["Content-Type"];var tR=new XMLHttpRequest;if(tt.auth){var tI=tt.auth.username||"",tk=tt.auth.password?unescape(encodeURIComponent(tt.auth.password)):"";tS.Authorization="Basic "+btoa(tI+":"+tk)}var tP=td(tt.baseURL,tt.url);function tC(){if(tR){var ta="getAllResponseHeaders"in tR?tp(tR.getAllResponseHeaders()):null;ts(function(tt){tr(tt),tM()},function(tt){ti(tt),tM()},{data:tT&&"text"!==tT&&"json"!==tT?tR.response:tR.responseText,status:tR.status,statusText:tR.statusText,headers:ta,config:tt,request:tR}),tR=null}}if(tR.open(tt.method.toUpperCase(),tc(tP,tt.params,tt.paramsSerializer),!0),tR.timeout=tt.timeout,"onloadend"in tR?tR.onloadend=tC:tR.onreadystatechange=function(){tR&&4===tR.readyState&&(0!==tR.status||tR.responseURL&&0===tR.responseURL.indexOf("file:"))&&setTimeout(tC)},tR.onabort=function(){tR&&(ti(tg("Request aborted",tt,"ECONNABORTED",tR)),tR=null)},tR.onerror=function(){ti(tg("Network Error",tt,null,tR)),tR=null},tR.ontimeout=function(){var tr=tt.timeout?"timeout of "+tt.timeout+"ms exceeded":"timeout exceeded",ta=tt.transitional||tb.transitional;tt.timeoutErrorMessage&&(tr=tt.timeoutErrorMessage),ti(tg(tr,tt,ta.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",tR)),tR=null},ta.isStandardBrowserEnv()){var tO=(tt.withCredentials||tv(tP))&&tt.xsrfCookieName?tu.read(tt.xsrfCookieName):void 0;tO&&(tS[tt.xsrfHeaderName]=tO)}"setRequestHeader"in tR&&ta.forEach(tS,function(tt,tr){void 0===tA&&"content-type"===tr.toLowerCase()?delete tS[tr]:tR.setRequestHeader(tr,tt)}),ta.isUndefined(tt.withCredentials)||(tR.withCredentials=!!tt.withCredentials),tT&&"json"!==tT&&(tR.responseType=tt.responseType),"function"==typeof tt.onDownloadProgress&&tR.addEventListener("progress",tt.onDownloadProgress),"function"==typeof tt.onUploadProgress&&tR.upload&&tR.upload.addEventListener("progress",tt.onUploadProgress),(tt.cancelToken||tt.signal)&&(tE=function(tt){tR&&(ti(!tt||tt&&tt.type?new t_("canceled"):tt),tR.abort(),tR=null)},tt.cancelToken&&tt.cancelToken.subscribe(tE),tt.signal&&(tt.signal.aborted?tE():tt.signal.addEventListener("abort",tE))),tA||(tA=null),tR.send(tA)})}},16665:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=ti(50850),tu=ti(36798),tc=ti(71364);function td(tt){var tr=new tu(tt),ti=ts(tu.prototype.request,tr);return ta.extend(ti,tu.prototype,tr),ta.extend(ti,tr),ti.create=function(tr){return td(tc(tt,tr))},ti}var tp=td(ti(58645));tp.Axios=tu,tp.Cancel=ti(50926),tp.CancelToken=ti(39369),tp.isCancel=ti(71696),tp.VERSION=ti(16824).version,tp.all=function(tt){return Promise.all(tt)},tp.spread=ti(8351),tp.isAxiosError=ti(22811),tt.exports=tp,tt.exports.default=tp},50926:function(tt){"use strict";function tr(tt){this.message=tt}tr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},tr.prototype.__CANCEL__=!0,tt.exports=tr},39369:function(tt,tr,ti){"use strict";var ta=ti(50926);function ts(tt){if("function"!=typeof tt)throw TypeError("executor must be a function.");this.promise=new Promise(function(tt){tr=tt});var tr,ti=this;this.promise.then(function(tt){if(ti._listeners){var tr,ta=ti._listeners.length;for(tr=0;tr<ta;tr++)ti._listeners[tr](tt);ti._listeners=null}}),this.promise.then=function(tt){var tr,ta=new Promise(function(tt){ti.subscribe(tt),tr=tt}).then(tt);return ta.cancel=function(){ti.unsubscribe(tr)},ta},tt(function(tt){ti.reason||(ti.reason=new ta(tt),tr(ti.reason))})}ts.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ts.prototype.subscribe=function(tt){if(this.reason){tt(this.reason);return}this._listeners?this._listeners.push(tt):this._listeners=[tt]},ts.prototype.unsubscribe=function(tt){if(this._listeners){var tr=this._listeners.indexOf(tt);-1!==tr&&this._listeners.splice(tr,1)}},ts.source=function(){var tt;return{token:new ts(function(tr){tt=tr}),cancel:tt}},tt.exports=ts},71696:function(tt){"use strict";tt.exports=function(tt){return!!(tt&&tt.__CANCEL__)}},36798:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=ti(80996),tu=ti(49305),tc=ti(30305),td=ti(71364),tp=ti(33231),tv=tp.validators;function tg(tt){this.defaults=tt,this.interceptors={request:new tu,response:new tu}}tg.prototype.request=function(tt,tr){"string"==typeof tt?(tr=tr||{}).url=tt:tr=tt||{},(tr=td(this.defaults,tr)).method?tr.method=tr.method.toLowerCase():this.defaults.method?tr.method=this.defaults.method.toLowerCase():tr.method="get";var ti,ta=tr.transitional;void 0!==ta&&tp.assertOptions(ta,{silentJSONParsing:tv.transitional(tv.boolean),forcedJSONParsing:tv.transitional(tv.boolean),clarifyTimeoutError:tv.transitional(tv.boolean)},!1);var ts=[],tu=!0;this.interceptors.request.forEach(function(tt){("function"!=typeof tt.runWhen||!1!==tt.runWhen(tr))&&(tu=tu&&tt.synchronous,ts.unshift(tt.fulfilled,tt.rejected))});var tg=[];if(this.interceptors.response.forEach(function(tt){tg.push(tt.fulfilled,tt.rejected)}),!tu){var tb=[tc,void 0];for(Array.prototype.unshift.apply(tb,ts),tb=tb.concat(tg),ti=Promise.resolve(tr);tb.length;)ti=ti.then(tb.shift(),tb.shift());return ti}for(var t_=tr;ts.length;){var tE=ts.shift(),tA=ts.shift();try{t_=tE(t_)}catch(tt){tA(tt);break}}try{ti=tc(t_)}catch(tt){return Promise.reject(tt)}for(;tg.length;)ti=ti.then(tg.shift(),tg.shift());return ti},tg.prototype.getUri=function(tt){return ts((tt=td(this.defaults,tt)).url,tt.params,tt.paramsSerializer).replace(/^\?/,"")},ta.forEach(["delete","get","head","options"],function(tt){tg.prototype[tt]=function(tr,ti){return this.request(td(ti||{},{method:tt,url:tr,data:(ti||{}).data}))}}),ta.forEach(["post","put","patch"],function(tt){tg.prototype[tt]=function(tr,ti,ta){return this.request(td(ta||{},{method:tt,url:tr,data:ti}))}}),tt.exports=tg},49305:function(tt,tr,ti){"use strict";var ta=ti(52515);function ts(){this.handlers=[]}ts.prototype.use=function(tt,tr,ti){return this.handlers.push({fulfilled:tt,rejected:tr,synchronous:!!ti&&ti.synchronous,runWhen:ti?ti.runWhen:null}),this.handlers.length-1},ts.prototype.eject=function(tt){this.handlers[tt]&&(this.handlers[tt]=null)},ts.prototype.forEach=function(tt){ta.forEach(this.handlers,function(tr){null!==tr&&tt(tr)})},tt.exports=ts},11072:function(tt,tr,ti){"use strict";var ta=ti(60688),ts=ti(89482);tt.exports=function(tt,tr){return tt&&!ta(tr)?ts(tt,tr):tr}},52736:function(tt,tr,ti){"use strict";var ta=ti(22866);tt.exports=function(tt,tr,ti,ts,tu){return ta(Error(tt),tr,ti,ts,tu)}},30305:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=ti(63875),tu=ti(71696),tc=ti(58645),td=ti(50926);function tp(tt){if(tt.cancelToken&&tt.cancelToken.throwIfRequested(),tt.signal&&tt.signal.aborted)throw new td("canceled")}tt.exports=function(tt){return tp(tt),tt.headers=tt.headers||{},tt.data=ts.call(tt,tt.data,tt.headers,tt.transformRequest),tt.headers=ta.merge(tt.headers.common||{},tt.headers[tt.method]||{},tt.headers),ta.forEach(["delete","get","head","post","put","patch","common"],function(tr){delete tt.headers[tr]}),(tt.adapter||tc.adapter)(tt).then(function(tr){return tp(tt),tr.data=ts.call(tt,tr.data,tr.headers,tt.transformResponse),tr},function(tr){return!tu(tr)&&(tp(tt),tr&&tr.response&&(tr.response.data=ts.call(tt,tr.response.data,tr.response.headers,tt.transformResponse))),Promise.reject(tr)})}},22866:function(tt){"use strict";tt.exports=function(tt,tr,ti,ta,ts){return tt.config=tr,ti&&(tt.code=ti),tt.request=ta,tt.response=ts,tt.isAxiosError=!0,tt.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},tt}},71364:function(tt,tr,ti){"use strict";var ta=ti(52515);tt.exports=function(tt,tr){tr=tr||{};var ti={};function ts(tt,tr){return ta.isPlainObject(tt)&&ta.isPlainObject(tr)?ta.merge(tt,tr):ta.isPlainObject(tr)?ta.merge({},tr):ta.isArray(tr)?tr.slice():tr}function tu(ti){return ta.isUndefined(tr[ti])?ta.isUndefined(tt[ti])?void 0:ts(void 0,tt[ti]):ts(tt[ti],tr[ti])}function tc(tt){if(!ta.isUndefined(tr[tt]))return ts(void 0,tr[tt])}function td(ti){return ta.isUndefined(tr[ti])?ta.isUndefined(tt[ti])?void 0:ts(void 0,tt[ti]):ts(void 0,tr[ti])}function tp(ti){return ti in tr?ts(tt[ti],tr[ti]):ti in tt?ts(void 0,tt[ti]):void 0}var tv={url:tc,method:tc,data:tc,baseURL:td,transformRequest:td,transformResponse:td,paramsSerializer:td,timeout:td,timeoutMessage:td,withCredentials:td,adapter:td,responseType:td,xsrfCookieName:td,xsrfHeaderName:td,onUploadProgress:td,onDownloadProgress:td,decompress:td,maxContentLength:td,maxBodyLength:td,transport:td,httpAgent:td,httpsAgent:td,cancelToken:td,socketPath:td,responseEncoding:td,validateStatus:tp};return ta.forEach(Object.keys(tt).concat(Object.keys(tr)),function(tt){var tr=tv[tt]||tu,ts=tr(tt);ta.isUndefined(ts)&&tr!==tp||(ti[tt]=ts)}),ti}},99057:function(tt,tr,ti){"use strict";var ta=ti(52736);tt.exports=function(tt,tr,ti){var ts=ti.config.validateStatus;!ti.status||!ts||ts(ti.status)?tt(ti):tr(ta("Request failed with status code "+ti.status,ti.config,null,ti.request,ti))}},63875:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=ti(58645);tt.exports=function(tt,tr,ti){var tu=this||ts;return ta.forEach(ti,function(ti){tt=ti.call(tu,tt,tr)}),tt}},58645:function(tt,tr,ti){"use strict";var ta=ti(42907),ts=ti(52515),tu=ti(62715),tc=ti(22866),td={"Content-Type":"application/x-www-form-urlencoded"};function tp(tt,tr){!ts.isUndefined(tt)&&ts.isUndefined(tt["Content-Type"])&&(tt["Content-Type"]=tr)}function tv(tt,tr,ti){if(ts.isString(tt))try{return(tr||JSON.parse)(tt),ts.trim(tt)}catch(tt){if("SyntaxError"!==tt.name)throw tt}return(ti||JSON.stringify)(tt)}var tg={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var tt;return"undefined"!=typeof XMLHttpRequest?tt=ti(52518):void 0!==ta&&"[object process]"===Object.prototype.toString.call(ta)&&(tt=ti(52518)),tt}(),transformRequest:[function(tt,tr){return(tu(tr,"Accept"),tu(tr,"Content-Type"),ts.isFormData(tt)||ts.isArrayBuffer(tt)||ts.isBuffer(tt)||ts.isStream(tt)||ts.isFile(tt)||ts.isBlob(tt))?tt:ts.isArrayBufferView(tt)?tt.buffer:ts.isURLSearchParams(tt)?(tp(tr,"application/x-www-form-urlencoded;charset=utf-8"),tt.toString()):ts.isObject(tt)||tr&&"application/json"===tr["Content-Type"]?(tp(tr,"application/json"),tv(tt)):tt}],transformResponse:[function(tt){var tr=this.transitional||tg.transitional,ti=tr&&tr.silentJSONParsing,ta=tr&&tr.forcedJSONParsing,tu=!ti&&"json"===this.responseType;if(tu||ta&&ts.isString(tt)&&tt.length)try{return JSON.parse(tt)}catch(tt){if(tu){if("SyntaxError"===tt.name)throw tc(tt,this,"E_JSON_PARSE");throw tt}}return tt}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(tt){return tt>=200&&tt<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ts.forEach(["delete","get","head"],function(tt){tg.headers[tt]={}}),ts.forEach(["post","put","patch"],function(tt){tg.headers[tt]=ts.merge(td)}),tt.exports=tg},16824:function(tt){tt.exports={version:"0.26.0"}},50850:function(tt){"use strict";tt.exports=function(tt,tr){return function(){for(var ti=Array(arguments.length),ta=0;ta<ti.length;ta++)ti[ta]=arguments[ta];return tt.apply(tr,ti)}}},80996:function(tt,tr,ti){"use strict";var ta=ti(52515);function ts(tt){return encodeURIComponent(tt).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}tt.exports=function(tt,tr,ti){if(!tr)return tt;if(ti)tu=ti(tr);else if(ta.isURLSearchParams(tr))tu=tr.toString();else{var tu,tc=[];ta.forEach(tr,function(tt,tr){null!=tt&&(ta.isArray(tt)?tr+="[]":tt=[tt],ta.forEach(tt,function(tt){ta.isDate(tt)?tt=tt.toISOString():ta.isObject(tt)&&(tt=JSON.stringify(tt)),tc.push(ts(tr)+"="+ts(tt))}))}),tu=tc.join("&")}if(tu){var td=tt.indexOf("#");-1!==td&&(tt=tt.slice(0,td)),tt+=(-1===tt.indexOf("?")?"?":"&")+tu}return tt}},89482:function(tt){"use strict";tt.exports=function(tt,tr){return tr?tt.replace(/\/+$/,"")+"/"+tr.replace(/^\/+/,""):tt}},98996:function(tt,tr,ti){"use strict";var ta=ti(52515);tt.exports=ta.isStandardBrowserEnv()?function(){return{write:function(tt,tr,ti,ts,tu,tc){var td=[];td.push(tt+"="+encodeURIComponent(tr)),ta.isNumber(ti)&&td.push("expires="+new Date(ti).toGMTString()),ta.isString(ts)&&td.push("path="+ts),ta.isString(tu)&&td.push("domain="+tu),!0===tc&&td.push("secure"),document.cookie=td.join("; ")},read:function(tt){var tr=document.cookie.match(RegExp("(^|;\\s*)("+tt+")=([^;]*)"));return tr?decodeURIComponent(tr[3]):null},remove:function(tt){this.write(tt,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},60688:function(tt){"use strict";tt.exports=function(tt){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(tt)}},22811:function(tt,tr,ti){"use strict";var ta=ti(52515);tt.exports=function(tt){return ta.isObject(tt)&&!0===tt.isAxiosError}},35382:function(tt,tr,ti){"use strict";var ta=ti(52515);tt.exports=ta.isStandardBrowserEnv()?function(){var tt,tr=/(msie|trident)/i.test(navigator.userAgent),ti=document.createElement("a");function ts(tt){var ta=tt;return tr&&(ti.setAttribute("href",ta),ta=ti.href),ti.setAttribute("href",ta),{href:ti.href,protocol:ti.protocol?ti.protocol.replace(/:$/,""):"",host:ti.host,search:ti.search?ti.search.replace(/^\?/,""):"",hash:ti.hash?ti.hash.replace(/^#/,""):"",hostname:ti.hostname,port:ti.port,pathname:"/"===ti.pathname.charAt(0)?ti.pathname:"/"+ti.pathname}}return tt=ts(window.location.href),function(tr){var ti=ta.isString(tr)?ts(tr):tr;return ti.protocol===tt.protocol&&ti.host===tt.host}}():function(){return function(){return!0}}()},62715:function(tt,tr,ti){"use strict";var ta=ti(52515);tt.exports=function(tt,tr){ta.forEach(tt,function(ti,ta){ta!==tr&&ta.toUpperCase()===tr.toUpperCase()&&(tt[tr]=ti,delete tt[ta])})}},88113:function(tt,tr,ti){"use strict";var ta=ti(52515),ts=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];tt.exports=function(tt){var tr,ti,tu,tc={};return tt&&ta.forEach(tt.split("\n"),function(tt){tu=tt.indexOf(":"),tr=ta.trim(tt.substr(0,tu)).toLowerCase(),ti=ta.trim(tt.substr(tu+1)),tr&&!(tc[tr]&&ts.indexOf(tr)>=0)&&("set-cookie"===tr?tc[tr]=(tc[tr]?tc[tr]:[]).concat([ti]):tc[tr]=tc[tr]?tc[tr]+", "+ti:ti)}),tc}},8351:function(tt){"use strict";tt.exports=function(tt){return function(tr){return tt.apply(null,tr)}}},33231:function(tt,tr,ti){"use strict";var ta=ti(16824).version,ts={};["object","boolean","number","function","string","symbol"].forEach(function(tt,tr){ts[tt]=function(ti){return typeof ti===tt||"a"+(tr<1?"n ":" ")+tt}});var tu={};function tc(tt,tr,ti){if("object"!=typeof tt)throw TypeError("options must be an object");for(var ta=Object.keys(tt),ts=ta.length;ts-- >0;){var tu=ta[ts],tc=tr[tu];if(tc){var td=tt[tu],tp=void 0===td||tc(td,tu,tt);if(!0!==tp)throw TypeError("option "+tu+" must be "+tp);continue}if(!0!==ti)throw Error("Unknown option "+tu)}}ts.transitional=function(tt,tr,ti){function ts(tt,tr){return"[Axios v"+ta+"] Transitional option '"+tt+"'"+tr+(ti?". "+ti:"")}return function(ti,ta,tc){if(!1===tt)throw Error(ts(ta," has been removed"+(tr?" in "+tr:"")));return tr&&!tu[ta]&&(tu[ta]=!0,console.warn(ts(ta," has been deprecated since v"+tr+" and will be removed in the near future"))),!tt||tt(ti,ta,tc)}},tt.exports={assertOptions:tc,validators:ts}},52515:function(tt,tr,ti){"use strict";var ta=ti(50850),ts=Object.prototype.toString;function tu(tt){return Array.isArray(tt)}function tc(tt){return void 0===tt}function td(tt){return null!==tt&&!tc(tt)&&null!==tt.constructor&&!tc(tt.constructor)&&"function"==typeof tt.constructor.isBuffer&&tt.constructor.isBuffer(tt)}function tp(tt){return"[object ArrayBuffer]"===ts.call(tt)}function tv(tt){return"[object FormData]"===ts.call(tt)}function tg(tt){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(tt):tt&&tt.buffer&&tp(tt.buffer)}function tb(tt){return"string"==typeof tt}function t_(tt){return"number"==typeof tt}function tE(tt){return null!==tt&&"object"==typeof tt}function tA(tt){if("[object Object]"!==ts.call(tt))return!1;var tr=Object.getPrototypeOf(tt);return null===tr||tr===Object.prototype}function tS(tt){return"[object Date]"===ts.call(tt)}function tT(tt){return"[object File]"===ts.call(tt)}function tM(tt){return"[object Blob]"===ts.call(tt)}function tR(tt){return"[object Function]"===ts.call(tt)}function tI(tt){return tE(tt)&&tR(tt.pipe)}function tk(tt){return"[object URLSearchParams]"===ts.call(tt)}function tP(tt){return tt.trim?tt.trim():tt.replace(/^\s+|\s+$/g,"")}function tC(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function tO(tt,tr){if(null!=tt){if("object"!=typeof tt&&(tt=[tt]),tu(tt))for(var ti=0,ta=tt.length;ti<ta;ti++)tr.call(null,tt[ti],ti,tt);else for(var ts in tt)Object.prototype.hasOwnProperty.call(tt,ts)&&tr.call(null,tt[ts],ts,tt)}}function tN(){var tt={};function tr(tr,ti){tA(tt[ti])&&tA(tr)?tt[ti]=tN(tt[ti],tr):tA(tr)?tt[ti]=tN({},tr):tu(tr)?tt[ti]=tr.slice():tt[ti]=tr}for(var ti=0,ta=arguments.length;ti<ta;ti++)tO(arguments[ti],tr);return tt}function tB(tt,tr,ti){return tO(tr,function(tr,ts){ti&&"function"==typeof tr?tt[ts]=ta(tr,ti):tt[ts]=tr}),tt}function tL(tt){return 65279===tt.charCodeAt(0)&&(tt=tt.slice(1)),tt}tt.exports={isArray:tu,isArrayBuffer:tp,isBuffer:td,isFormData:tv,isArrayBufferView:tg,isString:tb,isNumber:t_,isObject:tE,isPlainObject:tA,isUndefined:tc,isDate:tS,isFile:tT,isBlob:tM,isFunction:tR,isStream:tI,isURLSearchParams:tk,isStandardBrowserEnv:tC,forEach:tO,merge:tN,extend:tB,trim:tP,stripBOM:tL}},71297:function(tt,tr){"use strict";tr.byteLength=tv,tr.toByteArray=tb,tr.fromByteArray=tA;for(var ti=[],ta=[],ts="undefined"!=typeof Uint8Array?Uint8Array:Array,tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tc=0,td=tu.length;tc<td;++tc)ti[tc]=tu[tc],ta[tu.charCodeAt(tc)]=tc;function tp(tt){var tr=tt.length;if(tr%4>0)throw Error("Invalid string. Length must be a multiple of 4");var ti=tt.indexOf("=");-1===ti&&(ti=tr);var ta=ti===tr?0:4-ti%4;return[ti,ta]}function tv(tt){var tr=tp(tt),ti=tr[0],ta=tr[1];return(ti+ta)*3/4-ta}function tg(tt,tr,ti){return(tr+ti)*3/4-ti}function tb(tt){var tr,ti,tu=tp(tt),tc=tu[0],td=tu[1],tv=new ts(tg(tt,tc,td)),tb=0,t_=td>0?tc-4:tc;for(ti=0;ti<t_;ti+=4)tr=ta[tt.charCodeAt(ti)]<<18|ta[tt.charCodeAt(ti+1)]<<12|ta[tt.charCodeAt(ti+2)]<<6|ta[tt.charCodeAt(ti+3)],tv[tb++]=tr>>16&255,tv[tb++]=tr>>8&255,tv[tb++]=255&tr;return 2===td&&(tr=ta[tt.charCodeAt(ti)]<<2|ta[tt.charCodeAt(ti+1)]>>4,tv[tb++]=255&tr),1===td&&(tr=ta[tt.charCodeAt(ti)]<<10|ta[tt.charCodeAt(ti+1)]<<4|ta[tt.charCodeAt(ti+2)]>>2,tv[tb++]=tr>>8&255,tv[tb++]=255&tr),tv}function t_(tt){return ti[tt>>18&63]+ti[tt>>12&63]+ti[tt>>6&63]+ti[63&tt]}function tE(tt,tr,ti){for(var ta=[],ts=tr;ts<ti;ts+=3)ta.push(t_((tt[ts]<<16&16711680)+(tt[ts+1]<<8&65280)+(255&tt[ts+2])));return ta.join("")}function tA(tt){for(var tr,ta=tt.length,ts=ta%3,tu=[],tc=16383,td=0,tp=ta-ts;td<tp;td+=tc)tu.push(tE(tt,td,td+tc>tp?tp:td+tc));return 1===ts?tu.push(ti[(tr=tt[ta-1])>>2]+ti[tr<<4&63]+"=="):2===ts&&tu.push(ti[(tr=(tt[ta-2]<<8)+tt[ta-1])>>10]+ti[tr>>4&63]+ti[tr<<2&63]+"="),tu.join("")}ta["-".charCodeAt(0)]=62,ta["_".charCodeAt(0)]=63},84406:function(tt,tr,ti){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var ta=ti(71297),ts=ti(23264),tu="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;tr.Buffer=tv,tr.SlowBuffer=tk,tr.INSPECT_MAX_BYTES=50;var tc=2147483647;function td(){try{var tt=new Uint8Array(1),tr={foo:function(){return 42}};return Object.setPrototypeOf(tr,Uint8Array.prototype),Object.setPrototypeOf(tt,tr),42===tt.foo()}catch(tt){return!1}}function tp(tt){if(tt>tc)throw RangeError('The value "'+tt+'" is invalid for option "size"');var tr=new Uint8Array(tt);return Object.setPrototypeOf(tr,tv.prototype),tr}function tv(tt,tr,ti){if("number"==typeof tt){if("string"==typeof tr)throw TypeError('The "string" argument must be of type string. Received type number');return tE(tt)}return tg(tt,tr,ti)}function tg(tt,tr,ti){if("string"==typeof tt)return tA(tt,tr);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(t5(tt,ArrayBuffer)||tt&&t5(tt.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(t5(tt,SharedArrayBuffer)||tt&&t5(tt.buffer,SharedArrayBuffer)))return tM(tt,tr,ti);if("number"==typeof tt)throw TypeError('The "value" argument must not be of type number. Received type number');var ta=tt.valueOf&&tt.valueOf();if(null!=ta&&ta!==tt)return tv.from(ta,tr,ti);var ts=tR(tt);if(ts)return ts;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof tt[Symbol.toPrimitive])return tv.from(tt[Symbol.toPrimitive]("string"),tr,ti);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tt)}function tb(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 t_(tt,tr,ti){return(tb(tt),tt<=0)?tp(tt):void 0!==tr?"string"==typeof ti?tp(tt).fill(tr,ti):tp(tt).fill(tr):tp(tt)}function tE(tt){return tb(tt),tp(tt<0?0:0|tI(tt))}function tA(tt,tr){if(("string"!=typeof tr||""===tr)&&(tr="utf8"),!tv.isEncoding(tr))throw TypeError("Unknown encoding: "+tr);var ti=0|tP(tt,tr),ta=tp(ti),ts=ta.write(tt,tr);return ts!==ti&&(ta=ta.slice(0,ts)),ta}function tS(tt){for(var tr=tt.length<0?0:0|tI(tt.length),ti=tp(tr),ta=0;ta<tr;ta+=1)ti[ta]=255&tt[ta];return ti}function tT(tt){if(t5(tt,Uint8Array)){var tr=new Uint8Array(tt);return tM(tr.buffer,tr.byteOffset,tr.byteLength)}return tS(tt)}function tM(tt,tr,ti){var ta;if(tr<0||tt.byteLength<tr)throw RangeError('"offset" is outside of buffer bounds');if(tt.byteLength<tr+(ti||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(ta=void 0===tr&&void 0===ti?new Uint8Array(tt):void 0===ti?new Uint8Array(tt,tr):new Uint8Array(tt,tr,ti),tv.prototype),ta}function tR(tt){if(tv.isBuffer(tt)){var tr=0|tI(tt.length),ti=tp(tr);return 0===ti.length||tt.copy(ti,0,0,tr),ti}return void 0!==tt.length?"number"!=typeof tt.length||t7(tt.length)?tp(0):tS(tt):"Buffer"===tt.type&&Array.isArray(tt.data)?tS(tt.data):void 0}function tI(tt){if(tt>=tc)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tc.toString(16)+" bytes");return 0|tt}function tk(tt){return+tt!=tt&&(tt=0),tv.alloc(+tt)}function tP(tt,tr){if(tv.isBuffer(tt))return tt.length;if(ArrayBuffer.isView(tt)||t5(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 ti=tt.length,ta=arguments.length>2&&!0===arguments[2];if(!ta&&0===ti)return 0;for(var ts=!1;;)switch(tr){case"ascii":case"latin1":case"binary":return ti;case"utf8":case"utf-8":return t2(tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ti;case"hex":return ti>>>1;case"base64":return t4(tt).length;default:if(ts)return ta?-1:t2(tt).length;tr=(""+tr).toLowerCase(),ts=!0}}function tC(tt,tr,ti){var ta=!1;if((void 0===tr||tr<0)&&(tr=0),tr>this.length||((void 0===ti||ti>this.length)&&(ti=this.length),ti<=0||(ti>>>=0)<=(tr>>>=0)))return"";for(tt||(tt="utf8");;)switch(tt){case"hex":return tY(this,tr,ti);case"utf8":case"utf-8":return tH(this,tr,ti);case"ascii":return tq(this,tr,ti);case"latin1":case"binary":return tW(this,tr,ti);case"base64":return tG(this,tr,ti);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tX(this,tr,ti);default:if(ta)throw TypeError("Unknown encoding: "+tt);tt=(tt+"").toLowerCase(),ta=!0}}function tO(tt,tr,ti){var ta=tt[tr];tt[tr]=tt[ti],tt[ti]=ta}function tN(tt,tr,ti,ta,ts){if(0===tt.length)return -1;if("string"==typeof ti?(ta=ti,ti=0):ti>2147483647?ti=2147483647:ti<-2147483648&&(ti=-2147483648),t7(ti=+ti)&&(ti=ts?0:tt.length-1),ti<0&&(ti=tt.length+ti),ti>=tt.length){if(ts)return -1;ti=tt.length-1}else if(ti<0){if(!ts)return -1;ti=0}if("string"==typeof tr&&(tr=tv.from(tr,ta)),tv.isBuffer(tr))return 0===tr.length?-1:tB(tt,tr,ti,ta,ts);if("number"==typeof tr)return(tr&=255,"function"==typeof Uint8Array.prototype.indexOf)?ts?Uint8Array.prototype.indexOf.call(tt,tr,ti):Uint8Array.prototype.lastIndexOf.call(tt,tr,ti):tB(tt,[tr],ti,ta,ts);throw TypeError("val must be string, number or Buffer")}function tB(tt,tr,ti,ta,ts){var tu,tc=1,td=tt.length,tp=tr.length;if(void 0!==ta&&("ucs2"===(ta=String(ta).toLowerCase())||"ucs-2"===ta||"utf16le"===ta||"utf-16le"===ta)){if(tt.length<2||tr.length<2)return -1;tc=2,td/=2,tp/=2,ti/=2}function tv(tt,tr){return 1===tc?tt[tr]:tt.readUInt16BE(tr*tc)}if(ts){var tg=-1;for(tu=ti;tu<td;tu++)if(tv(tt,tu)===tv(tr,-1===tg?0:tu-tg)){if(-1===tg&&(tg=tu),tu-tg+1===tp)return tg*tc}else -1!==tg&&(tu-=tu-tg),tg=-1}else for(ti+tp>td&&(ti=td-tp),tu=ti;tu>=0;tu--){for(var tb=!0,t_=0;t_<tp;t_++)if(tv(tt,tu+t_)!==tv(tr,t_)){tb=!1;break}if(tb)return tu}return -1}function tL(tt,tr,ti,ta){ti=Number(ti)||0;var ts=tt.length-ti;ta?(ta=Number(ta))>ts&&(ta=ts):ta=ts;var tu=tr.length;ta>tu/2&&(ta=tu/2);for(var tc=0;tc<ta;++tc){var td=parseInt(tr.substr(2*tc,2),16);if(t7(td))break;tt[ti+tc]=td}return tc}function tU(tt,tr,ti,ta){return t8(t2(tr,tt.length-ti),tt,ti,ta)}function tD(tt,tr,ti,ta){return t8(t3(tr),tt,ti,ta)}function tj(tt,tr,ti,ta){return t8(t4(tr),tt,ti,ta)}function tF(tt,tr,ti,ta){return t8(t6(tr,tt.length-ti),tt,ti,ta)}function tG(tt,tr,ti){return 0===tr&&ti===tt.length?ta.fromByteArray(tt):ta.fromByteArray(tt.slice(tr,ti))}function tH(tt,tr,ti){ti=Math.min(tt.length,ti);for(var ta=[],ts=tr;ts<ti;){var tu,tc,td,tp,tv=tt[ts],tg=null,tb=tv>239?4:tv>223?3:tv>191?2:1;if(ts+tb<=ti)switch(tb){case 1:tv<128&&(tg=tv);break;case 2:(192&(tu=tt[ts+1]))==128&&(tp=(31&tv)<<6|63&tu)>127&&(tg=tp);break;case 3:tu=tt[ts+1],tc=tt[ts+2],(192&tu)==128&&(192&tc)==128&&(tp=(15&tv)<<12|(63&tu)<<6|63&tc)>2047&&(tp<55296||tp>57343)&&(tg=tp);break;case 4:tu=tt[ts+1],tc=tt[ts+2],td=tt[ts+3],(192&tu)==128&&(192&tc)==128&&(192&td)==128&&(tp=(15&tv)<<18|(63&tu)<<12|(63&tc)<<6|63&td)>65535&&tp<1114112&&(tg=tp)}null===tg?(tg=65533,tb=1):tg>65535&&(tg-=65536,ta.push(tg>>>10&1023|55296),tg=56320|1023&tg),ta.push(tg),ts+=tb}return tz(ta)}tr.kMaxLength=tc,tv.TYPED_ARRAY_SUPPORT=td(),tv.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(tv.prototype,"parent",{enumerable:!0,get:function(){if(tv.isBuffer(this))return this.buffer}}),Object.defineProperty(tv.prototype,"offset",{enumerable:!0,get:function(){if(tv.isBuffer(this))return this.byteOffset}}),tv.poolSize=8192,tv.from=function(tt,tr,ti){return tg(tt,tr,ti)},Object.setPrototypeOf(tv.prototype,Uint8Array.prototype),Object.setPrototypeOf(tv,Uint8Array),tv.alloc=function(tt,tr,ti){return t_(tt,tr,ti)},tv.allocUnsafe=function(tt){return tE(tt)},tv.allocUnsafeSlow=function(tt){return tE(tt)},tv.isBuffer=function(tt){return null!=tt&&!0===tt._isBuffer&&tt!==tv.prototype},tv.compare=function(tt,tr){if(t5(tt,Uint8Array)&&(tt=tv.from(tt,tt.offset,tt.byteLength)),t5(tr,Uint8Array)&&(tr=tv.from(tr,tr.offset,tr.byteLength)),!tv.isBuffer(tt)||!tv.isBuffer(tr))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(tt===tr)return 0;for(var ti=tt.length,ta=tr.length,ts=0,tu=Math.min(ti,ta);ts<tu;++ts)if(tt[ts]!==tr[ts]){ti=tt[ts],ta=tr[ts];break}return ti<ta?-1:ta<ti?1:0},tv.isEncoding=function(tt){switch(String(tt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},tv.concat=function(tt,tr){if(!Array.isArray(tt))throw TypeError('"list" argument must be an Array of Buffers');if(0===tt.length)return tv.alloc(0);if(void 0===tr)for(ti=0,tr=0;ti<tt.length;++ti)tr+=tt[ti].length;var ti,ta=tv.allocUnsafe(tr),ts=0;for(ti=0;ti<tt.length;++ti){var tu=tt[ti];if(t5(tu,Uint8Array))ts+tu.length>ta.length?tv.from(tu).copy(ta,ts):Uint8Array.prototype.set.call(ta,tu,ts);else if(tv.isBuffer(tu))tu.copy(ta,ts);else throw TypeError('"list" argument must be an Array of Buffers');ts+=tu.length}return ta},tv.byteLength=tP,tv.prototype._isBuffer=!0,tv.prototype.swap16=function(){var tt=this.length;if(tt%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var tr=0;tr<tt;tr+=2)tO(this,tr,tr+1);return this},tv.prototype.swap32=function(){var tt=this.length;if(tt%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var tr=0;tr<tt;tr+=4)tO(this,tr,tr+3),tO(this,tr+1,tr+2);return this},tv.prototype.swap64=function(){var tt=this.length;if(tt%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var tr=0;tr<tt;tr+=8)tO(this,tr,tr+7),tO(this,tr+1,tr+6),tO(this,tr+2,tr+5),tO(this,tr+3,tr+4);return this},tv.prototype.toString=function(){var tt=this.length;return 0===tt?"":0==arguments.length?tH(this,0,tt):tC.apply(this,arguments)},tv.prototype.toLocaleString=tv.prototype.toString,tv.prototype.equals=function(tt){if(!tv.isBuffer(tt))throw TypeError("Argument must be a Buffer");return this===tt||0===tv.compare(this,tt)},tv.prototype.inspect=function(){var tt="",ti=tr.INSPECT_MAX_BYTES;return tt=this.toString("hex",0,ti).replace(/(.{2})/g,"$1 ").trim(),this.length>ti&&(tt+=" ... "),"<Buffer "+tt+">"},tu&&(tv.prototype[tu]=tv.prototype.inspect),tv.prototype.compare=function(tt,tr,ti,ta,ts){if(t5(tt,Uint8Array)&&(tt=tv.from(tt,tt.offset,tt.byteLength)),!tv.isBuffer(tt))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof tt);if(void 0===tr&&(tr=0),void 0===ti&&(ti=tt?tt.length:0),void 0===ta&&(ta=0),void 0===ts&&(ts=this.length),tr<0||ti>tt.length||ta<0||ts>this.length)throw RangeError("out of range index");if(ta>=ts&&tr>=ti)return 0;if(ta>=ts)return -1;if(tr>=ti)return 1;if(tr>>>=0,ti>>>=0,ta>>>=0,ts>>>=0,this===tt)return 0;for(var tu=ts-ta,tc=ti-tr,td=Math.min(tu,tc),tp=this.slice(ta,ts),tg=tt.slice(tr,ti),tb=0;tb<td;++tb)if(tp[tb]!==tg[tb]){tu=tp[tb],tc=tg[tb];break}return tu<tc?-1:tc<tu?1:0},tv.prototype.includes=function(tt,tr,ti){return -1!==this.indexOf(tt,tr,ti)},tv.prototype.indexOf=function(tt,tr,ti){return tN(this,tt,tr,ti,!0)},tv.prototype.lastIndexOf=function(tt,tr,ti){return tN(this,tt,tr,ti,!1)},tv.prototype.write=function(tt,tr,ti,ta){if(void 0===tr)ta="utf8",ti=this.length,tr=0;else if(void 0===ti&&"string"==typeof tr)ta=tr,ti=this.length,tr=0;else if(isFinite(tr))tr>>>=0,isFinite(ti)?(ti>>>=0,void 0===ta&&(ta="utf8")):(ta=ti,ti=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ts=this.length-tr;if((void 0===ti||ti>ts)&&(ti=ts),tt.length>0&&(ti<0||tr<0)||tr>this.length)throw RangeError("Attempt to write outside buffer bounds");ta||(ta="utf8");for(var tu=!1;;)switch(ta){case"hex":return tL(this,tt,tr,ti);case"utf8":case"utf-8":return tU(this,tt,tr,ti);case"ascii":case"latin1":case"binary":return tD(this,tt,tr,ti);case"base64":return tj(this,tt,tr,ti);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tF(this,tt,tr,ti);default:if(tu)throw TypeError("Unknown encoding: "+ta);ta=(""+ta).toLowerCase(),tu=!0}},tv.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tV=4096;function tz(tt){var tr=tt.length;if(tr<=tV)return String.fromCharCode.apply(String,tt);for(var ti="",ta=0;ta<tr;)ti+=String.fromCharCode.apply(String,tt.slice(ta,ta+=tV));return ti}function tq(tt,tr,ti){var ta="";ti=Math.min(tt.length,ti);for(var ts=tr;ts<ti;++ts)ta+=String.fromCharCode(127&tt[ts]);return ta}function tW(tt,tr,ti){var ta="";ti=Math.min(tt.length,ti);for(var ts=tr;ts<ti;++ts)ta+=String.fromCharCode(tt[ts]);return ta}function tY(tt,tr,ti){var ta=tt.length;(!tr||tr<0)&&(tr=0),(!ti||ti<0||ti>ta)&&(ti=ta);for(var ts="",tu=tr;tu<ti;++tu)ts+=t9[tt[tu]];return ts}function tX(tt,tr,ti){for(var ta=tt.slice(tr,ti),ts="",tu=0;tu<ta.length-1;tu+=2)ts+=String.fromCharCode(ta[tu]+256*ta[tu+1]);return ts}function tK(tt,tr,ti){if(tt%1!=0||tt<0)throw RangeError("offset is not uint");if(tt+tr>ti)throw RangeError("Trying to access beyond buffer length")}function tZ(tt,tr,ti,ta,ts,tu){if(!tv.isBuffer(tt))throw TypeError('"buffer" argument must be a Buffer instance');if(tr>ts||tr<tu)throw RangeError('"value" argument is out of bounds');if(ti+ta>tt.length)throw RangeError("Index out of range")}function tQ(tt,tr,ti,ta,ts,tu){if(ti+ta>tt.length||ti<0)throw RangeError("Index out of range")}function tJ(tt,tr,ti,ta,tu){return tr=+tr,ti>>>=0,tu||tQ(tt,tr,ti,4,34028234663852886e22,-34028234663852886e22),ts.write(tt,tr,ti,ta,23,4),ti+4}function t$(tt,tr,ti,ta,tu){return tr=+tr,ti>>>=0,tu||tQ(tt,tr,ti,8,17976931348623157e292,-17976931348623157e292),ts.write(tt,tr,ti,ta,52,8),ti+8}tv.prototype.slice=function(tt,tr){var ti=this.length;tt=~~tt,tr=void 0===tr?ti:~~tr,tt<0?(tt+=ti)<0&&(tt=0):tt>ti&&(tt=ti),tr<0?(tr+=ti)<0&&(tr=0):tr>ti&&(tr=ti),tr<tt&&(tr=tt);var ta=this.subarray(tt,tr);return Object.setPrototypeOf(ta,tv.prototype),ta},tv.prototype.readUintLE=tv.prototype.readUIntLE=function(tt,tr,ti){tt>>>=0,tr>>>=0,ti||tK(tt,tr,this.length);for(var ta=this[tt],ts=1,tu=0;++tu<tr&&(ts*=256);)ta+=this[tt+tu]*ts;return ta},tv.prototype.readUintBE=tv.prototype.readUIntBE=function(tt,tr,ti){tt>>>=0,tr>>>=0,ti||tK(tt,tr,this.length);for(var ta=this[tt+--tr],ts=1;tr>0&&(ts*=256);)ta+=this[tt+--tr]*ts;return ta},tv.prototype.readUint8=tv.prototype.readUInt8=function(tt,tr){return tt>>>=0,tr||tK(tt,1,this.length),this[tt]},tv.prototype.readUint16LE=tv.prototype.readUInt16LE=function(tt,tr){return tt>>>=0,tr||tK(tt,2,this.length),this[tt]|this[tt+1]<<8},tv.prototype.readUint16BE=tv.prototype.readUInt16BE=function(tt,tr){return tt>>>=0,tr||tK(tt,2,this.length),this[tt]<<8|this[tt+1]},tv.prototype.readUint32LE=tv.prototype.readUInt32LE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),(this[tt]|this[tt+1]<<8|this[tt+2]<<16)+16777216*this[tt+3]},tv.prototype.readUint32BE=tv.prototype.readUInt32BE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),16777216*this[tt]+(this[tt+1]<<16|this[tt+2]<<8|this[tt+3])},tv.prototype.readIntLE=function(tt,tr,ti){tt>>>=0,tr>>>=0,ti||tK(tt,tr,this.length);for(var ta=this[tt],ts=1,tu=0;++tu<tr&&(ts*=256);)ta+=this[tt+tu]*ts;return ta>=(ts*=128)&&(ta-=Math.pow(2,8*tr)),ta},tv.prototype.readIntBE=function(tt,tr,ti){tt>>>=0,tr>>>=0,ti||tK(tt,tr,this.length);for(var ta=tr,ts=1,tu=this[tt+--ta];ta>0&&(ts*=256);)tu+=this[tt+--ta]*ts;return tu>=(ts*=128)&&(tu-=Math.pow(2,8*tr)),tu},tv.prototype.readInt8=function(tt,tr){return(tt>>>=0,tr||tK(tt,1,this.length),128&this[tt])?-((255-this[tt]+1)*1):this[tt]},tv.prototype.readInt16LE=function(tt,tr){tt>>>=0,tr||tK(tt,2,this.length);var ti=this[tt]|this[tt+1]<<8;return 32768&ti?4294901760|ti:ti},tv.prototype.readInt16BE=function(tt,tr){tt>>>=0,tr||tK(tt,2,this.length);var ti=this[tt+1]|this[tt]<<8;return 32768&ti?4294901760|ti:ti},tv.prototype.readInt32LE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),this[tt]|this[tt+1]<<8|this[tt+2]<<16|this[tt+3]<<24},tv.prototype.readInt32BE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),this[tt]<<24|this[tt+1]<<16|this[tt+2]<<8|this[tt+3]},tv.prototype.readFloatLE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),ts.read(this,tt,!0,23,4)},tv.prototype.readFloatBE=function(tt,tr){return tt>>>=0,tr||tK(tt,4,this.length),ts.read(this,tt,!1,23,4)},tv.prototype.readDoubleLE=function(tt,tr){return tt>>>=0,tr||tK(tt,8,this.length),ts.read(this,tt,!0,52,8)},tv.prototype.readDoubleBE=function(tt,tr){return tt>>>=0,tr||tK(tt,8,this.length),ts.read(this,tt,!1,52,8)},tv.prototype.writeUintLE=tv.prototype.writeUIntLE=function(tt,tr,ti,ta){if(tt=+tt,tr>>>=0,ti>>>=0,!ta){var ts=Math.pow(2,8*ti)-1;tZ(this,tt,tr,ti,ts,0)}var tu=1,tc=0;for(this[tr]=255&tt;++tc<ti&&(tu*=256);)this[tr+tc]=tt/tu&255;return tr+ti},tv.prototype.writeUintBE=tv.prototype.writeUIntBE=function(tt,tr,ti,ta){if(tt=+tt,tr>>>=0,ti>>>=0,!ta){var ts=Math.pow(2,8*ti)-1;tZ(this,tt,tr,ti,ts,0)}var tu=ti-1,tc=1;for(this[tr+tu]=255&tt;--tu>=0&&(tc*=256);)this[tr+tu]=tt/tc&255;return tr+ti},tv.prototype.writeUint8=tv.prototype.writeUInt8=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,1,255,0),this[tr]=255&tt,tr+1},tv.prototype.writeUint16LE=tv.prototype.writeUInt16LE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,2,65535,0),this[tr]=255&tt,this[tr+1]=tt>>>8,tr+2},tv.prototype.writeUint16BE=tv.prototype.writeUInt16BE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,2,65535,0),this[tr]=tt>>>8,this[tr+1]=255&tt,tr+2},tv.prototype.writeUint32LE=tv.prototype.writeUInt32LE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,4,4294967295,0),this[tr+3]=tt>>>24,this[tr+2]=tt>>>16,this[tr+1]=tt>>>8,this[tr]=255&tt,tr+4},tv.prototype.writeUint32BE=tv.prototype.writeUInt32BE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,4,4294967295,0),this[tr]=tt>>>24,this[tr+1]=tt>>>16,this[tr+2]=tt>>>8,this[tr+3]=255&tt,tr+4},tv.prototype.writeIntLE=function(tt,tr,ti,ta){if(tt=+tt,tr>>>=0,!ta){var ts=Math.pow(2,8*ti-1);tZ(this,tt,tr,ti,ts-1,-ts)}var tu=0,tc=1,td=0;for(this[tr]=255&tt;++tu<ti&&(tc*=256);)tt<0&&0===td&&0!==this[tr+tu-1]&&(td=1),this[tr+tu]=(tt/tc>>0)-td&255;return tr+ti},tv.prototype.writeIntBE=function(tt,tr,ti,ta){if(tt=+tt,tr>>>=0,!ta){var ts=Math.pow(2,8*ti-1);tZ(this,tt,tr,ti,ts-1,-ts)}var tu=ti-1,tc=1,td=0;for(this[tr+tu]=255&tt;--tu>=0&&(tc*=256);)tt<0&&0===td&&0!==this[tr+tu+1]&&(td=1),this[tr+tu]=(tt/tc>>0)-td&255;return tr+ti},tv.prototype.writeInt8=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,1,127,-128),tt<0&&(tt=255+tt+1),this[tr]=255&tt,tr+1},tv.prototype.writeInt16LE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,2,32767,-32768),this[tr]=255&tt,this[tr+1]=tt>>>8,tr+2},tv.prototype.writeInt16BE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,2,32767,-32768),this[tr]=tt>>>8,this[tr+1]=255&tt,tr+2},tv.prototype.writeInt32LE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,4,2147483647,-2147483648),this[tr]=255&tt,this[tr+1]=tt>>>8,this[tr+2]=tt>>>16,this[tr+3]=tt>>>24,tr+4},tv.prototype.writeInt32BE=function(tt,tr,ti){return tt=+tt,tr>>>=0,ti||tZ(this,tt,tr,4,2147483647,-2147483648),tt<0&&(tt=4294967295+tt+1),this[tr]=tt>>>24,this[tr+1]=tt>>>16,this[tr+2]=tt>>>8,this[tr+3]=255&tt,tr+4},tv.prototype.writeFloatLE=function(tt,tr,ti){return tJ(this,tt,tr,!0,ti)},tv.prototype.writeFloatBE=function(tt,tr,ti){return tJ(this,tt,tr,!1,ti)},tv.prototype.writeDoubleLE=function(tt,tr,ti){return t$(this,tt,tr,!0,ti)},tv.prototype.writeDoubleBE=function(tt,tr,ti){return t$(this,tt,tr,!1,ti)},tv.prototype.copy=function(tt,tr,ti,ta){if(!tv.isBuffer(tt))throw TypeError("argument should be a Buffer");if(ti||(ti=0),ta||0===ta||(ta=this.length),tr>=tt.length&&(tr=tt.length),tr||(tr=0),ta>0&&ta<ti&&(ta=ti),ta===ti||0===tt.length||0===this.length)return 0;if(tr<0)throw RangeError("targetStart out of bounds");if(ti<0||ti>=this.length)throw RangeError("Index out of range");if(ta<0)throw RangeError("sourceEnd out of bounds");ta>this.length&&(ta=this.length),tt.length-tr<ta-ti&&(ta=tt.length-tr+ti);var ts=ta-ti;return this===tt&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(tr,ti,ta):Uint8Array.prototype.set.call(tt,this.subarray(ti,ta),tr),ts},tv.prototype.fill=function(tt,tr,ti,ta){if("string"==typeof tt){if("string"==typeof tr?(ta=tr,tr=0,ti=this.length):"string"==typeof ti&&(ta=ti,ti=this.length),void 0!==ta&&"string"!=typeof ta)throw TypeError("encoding must be a string");if("string"==typeof ta&&!tv.isEncoding(ta))throw TypeError("Unknown encoding: "+ta);if(1===tt.length){var ts,tu=tt.charCodeAt(0);("utf8"===ta&&tu<128||"latin1"===ta)&&(tt=tu)}}else"number"==typeof tt?tt&=255:"boolean"==typeof tt&&(tt=Number(tt));if(tr<0||this.length<tr||this.length<ti)throw RangeError("Out of range index");if(ti<=tr)return this;if(tr>>>=0,ti=void 0===ti?this.length:ti>>>0,tt||(tt=0),"number"==typeof tt)for(ts=tr;ts<ti;++ts)this[ts]=tt;else{var tc=tv.isBuffer(tt)?tt:tv.from(tt,ta),td=tc.length;if(0===td)throw TypeError('The value "'+tt+'" is invalid for argument "value"');for(ts=0;ts<ti-tr;++ts)this[ts+tr]=tc[ts%td]}return this};var t0=/[^+/0-9A-Za-z-_]/g;function t1(tt){if((tt=(tt=tt.split("=")[0]).trim().replace(t0,"")).length<2)return"";for(;tt.length%4!=0;)tt+="=";return tt}function t2(tt,tr){tr=tr||1/0;for(var ti,ta=tt.length,ts=null,tu=[],tc=0;tc<ta;++tc){if((ti=tt.charCodeAt(tc))>55295&&ti<57344){if(!ts){if(ti>56319||tc+1===ta){(tr-=3)>-1&&tu.push(239,191,189);continue}ts=ti;continue}if(ti<56320){(tr-=3)>-1&&tu.push(239,191,189),ts=ti;continue}ti=(ts-55296<<10|ti-56320)+65536}else ts&&(tr-=3)>-1&&tu.push(239,191,189);if(ts=null,ti<128){if((tr-=1)<0)break;tu.push(ti)}else if(ti<2048){if((tr-=2)<0)break;tu.push(ti>>6|192,63&ti|128)}else if(ti<65536){if((tr-=3)<0)break;tu.push(ti>>12|224,ti>>6&63|128,63&ti|128)}else if(ti<1114112){if((tr-=4)<0)break;tu.push(ti>>18|240,ti>>12&63|128,ti>>6&63|128,63&ti|128)}else throw Error("Invalid code point")}return tu}function t3(tt){for(var tr=[],ti=0;ti<tt.length;++ti)tr.push(255&tt.charCodeAt(ti));return tr}function t6(tt,tr){for(var ti,ta,ts=[],tu=0;tu<tt.length&&!((tr-=2)<0);++tu)ta=(ti=tt.charCodeAt(tu))>>8,ts.push(ti%256),ts.push(ta);return ts}function t4(tt){return ta.toByteArray(t1(tt))}function t8(tt,tr,ti,ta){for(var ts=0;ts<ta&&!(ts+ti>=tr.length)&&!(ts>=tt.length);++ts)tr[ts+ti]=tt[ts];return ts}function t5(tt,tr){return tt instanceof tr||null!=tt&&null!=tt.constructor&&null!=tt.constructor.name&&tt.constructor.name===tr.name}function t7(tt){return tt!=tt}var t9=function(){for(var tt="0123456789abcdef",tr=Array(256),ti=0;ti<16;++ti)for(var ta=16*ti,ts=0;ts<16;++ts)tr[ta+ts]=tt[ti]+tt[ts];return tr}()},3063:function(tt,tr){var ti;/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var ta={}.hasOwnProperty;function ts(){for(var tt=[],tr=0;tr<arguments.length;tr++){var ti=arguments[tr];if(ti){var tu=typeof ti;if("string"===tu||"number"===tu)tt.push(ti);else if(Array.isArray(ti)&&ti.length){var tc=ts.apply(null,ti);tc&&tt.push(tc)}else if("object"===tu)for(var td in ti)ta.call(ti,td)&&ti[td]&&tt.push(td)}}return tt.join(" ")}tt.exports?(ts.default=ts,tt.exports=ts):void 0!==(ti=(function(){return ts}).apply(tr,[]))&&(tt.exports=ti)}()},66749:function(tt){"use strict";function tr(tt,tr,ta){ta=ta||2;var tu,tc,td,tp,tg,tb,t_,tE=tr&&tr.length,tA=tE?tr[0]*ta:tt.length,tS=ti(tt,0,tA,ta,!0),tT=[];if(!tS||tS.next===tS.prev)return tT;if(tE&&(tS=tv(tt,tr,tS,ta)),tt.length>80*ta){tu=td=tt[0],tc=tp=tt[1];for(var tM=ta;tM<tA;tM+=ta)tg=tt[tM],tb=tt[tM+1],tg<tu&&(tu=tg),tb<tc&&(tc=tb),tg>td&&(td=tg),tb>tp&&(tp=tb);t_=0!==(t_=Math.max(td-tu,tp-tc))?32767/t_:0}return ts(tS,tT,ta,tu,tc,t_,0),tT}function ti(tt,tr,ti,ta,ts){var tu,tc;if(ts===tH(tt,tr,ti,ta)>0)for(tu=tr;tu<ti;tu+=ta)tc=tj(tu,tt[tu],tt[tu+1],tc);else for(tu=ti-ta;tu>=tr;tu-=ta)tc=tj(tu,tt[tu],tt[tu+1],tc);return tc&&tP(tc,tc.next)&&(tF(tc),tc=tc.next),tc}function ta(tt,tr){if(!tt)return tt;tr||(tr=tt);var ti,ta=tt;do if(ti=!1,!ta.steiner&&(tP(ta,ta.next)||0===tk(ta.prev,ta,ta.next))){if(tF(ta),(ta=tr=ta.prev)===ta.next)break;ti=!0}else ta=ta.next;while(ti||ta!==tr);return tr}function ts(tt,tr,ti,tv,tg,tb,t_){if(tt){!t_&&tb&&tA(tt,tv,tg,tb);for(var tE,tS,tT=tt;tt.prev!==tt.next;){if(tE=tt.prev,tS=tt.next,tb?tc(tt,tv,tg,tb):tu(tt)){tr.push(tE.i/ti|0),tr.push(tt.i/ti|0),tr.push(tS.i/ti|0),tF(tt),tt=tS.next,tT=tS.next;continue}if((tt=tS)===tT){t_?1===t_?ts(tt=td(ta(tt),tr,ti),tr,ti,tv,tg,tb,2):2===t_&&tp(tt,tr,ti,tv,tg,tb):ts(ta(tt),tr,ti,tv,tg,tb,1);break}}}}function tu(tt){var tr=tt.prev,ti=tt,ta=tt.next;if(tk(tr,ti,ta)>=0)return!1;for(var ts=tr.x,tu=ti.x,tc=ta.x,td=tr.y,tp=ti.y,tv=ta.y,tg=ts<tu?ts<tc?ts:tc:tu<tc?tu:tc,tb=td<tp?td<tv?td:tv:tp<tv?tp:tv,t_=ts>tu?ts>tc?ts:tc:tu>tc?tu:tc,tE=td>tp?td>tv?td:tv:tp>tv?tp:tv,tA=ta.next;tA!==tr;){if(tA.x>=tg&&tA.x<=t_&&tA.y>=tb&&tA.y<=tE&&tR(ts,td,tu,tp,tc,tv,tA.x,tA.y)&&tk(tA.prev,tA,tA.next)>=0)return!1;tA=tA.next}return!0}function tc(tt,tr,ti,ta){var ts=tt.prev,tu=tt,tc=tt.next;if(tk(ts,tu,tc)>=0)return!1;for(var td=ts.x,tp=tu.x,tv=tc.x,tg=ts.y,tb=tu.y,t_=tc.y,tE=td<tp?td<tv?td:tv:tp<tv?tp:tv,tA=tg<tb?tg<t_?tg:t_:tb<t_?tb:t_,tS=td>tp?td>tv?td:tv:tp>tv?tp:tv,tM=tg>tb?tg>t_?tg:t_:tb>t_?tb:t_,tI=tT(tE,tA,tr,ti,ta),tP=tT(tS,tM,tr,ti,ta),tC=tt.prevZ,tO=tt.nextZ;tC&&tC.z>=tI&&tO&&tO.z<=tP;){if(tC.x>=tE&&tC.x<=tS&&tC.y>=tA&&tC.y<=tM&&tC!==ts&&tC!==tc&&tR(td,tg,tp,tb,tv,t_,tC.x,tC.y)&&tk(tC.prev,tC,tC.next)>=0||(tC=tC.prevZ,tO.x>=tE&&tO.x<=tS&&tO.y>=tA&&tO.y<=tM&&tO!==ts&&tO!==tc&&tR(td,tg,tp,tb,tv,t_,tO.x,tO.y)&&tk(tO.prev,tO,tO.next)>=0))return!1;tO=tO.nextZ}for(;tC&&tC.z>=tI;){if(tC.x>=tE&&tC.x<=tS&&tC.y>=tA&&tC.y<=tM&&tC!==ts&&tC!==tc&&tR(td,tg,tp,tb,tv,t_,tC.x,tC.y)&&tk(tC.prev,tC,tC.next)>=0)return!1;tC=tC.prevZ}for(;tO&&tO.z<=tP;){if(tO.x>=tE&&tO.x<=tS&&tO.y>=tA&&tO.y<=tM&&tO!==ts&&tO!==tc&&tR(td,tg,tp,tb,tv,t_,tO.x,tO.y)&&tk(tO.prev,tO,tO.next)>=0)return!1;tO=tO.nextZ}return!0}function td(tt,tr,ti){var ts=tt;do{var tu=ts.prev,tc=ts.next.next;!tP(tu,tc)&&tC(tu,ts,ts.next,tc)&&tL(tu,tc)&&tL(tc,tu)&&(tr.push(tu.i/ti|0),tr.push(ts.i/ti|0),tr.push(tc.i/ti|0),tF(ts),tF(ts.next),ts=tt=tc),ts=ts.next}while(ts!==tt);return ta(ts)}function tp(tt,tr,ti,tu,tc,td){var tp=tt;do{for(var tv=tp.next.next;tv!==tp.prev;){if(tp.i!==tv.i&&tI(tp,tv)){var tg=tD(tp,tv);tp=ta(tp,tp.next),tg=ta(tg,tg.next),ts(tp,tr,ti,tu,tc,td,0),ts(tg,tr,ti,tu,tc,td,0);return}tv=tv.next}tp=tp.next}while(tp!==tt)}function tv(tt,tr,ta,ts){var tu,tc,td,tp,tv,t_=[];for(tu=0,tc=tr.length;tu<tc;tu++)td=tr[tu]*ts,tp=tu<tc-1?tr[tu+1]*ts:tt.length,(tv=ti(tt,td,tp,ts,!1))===tv.next&&(tv.steiner=!0),t_.push(tM(tv));for(t_.sort(tg),tu=0;tu<t_.length;tu++)ta=tb(t_[tu],ta);return ta}function tg(tt,tr){return tt.x-tr.x}function tb(tt,tr){var ti=t_(tt,tr);if(!ti)return tr;var ts=tD(ti,tt);return ta(ts,ts.next),ta(ti,ti.next)}function t_(tt,tr){var ti,ta=tr,ts=tt.x,tu=tt.y,tc=-1/0;do{if(tu<=ta.y&&tu>=ta.next.y&&ta.next.y!==ta.y){var td=ta.x+(tu-ta.y)*(ta.next.x-ta.x)/(ta.next.y-ta.y);if(td<=ts&&td>tc&&(tc=td,ti=ta.x<ta.next.x?ta:ta.next,td===ts))return ti}ta=ta.next}while(ta!==tr);if(!ti)return null;var tp,tv=ti,tg=ti.x,tb=ti.y,t_=1/0;ta=ti;do ts>=ta.x&&ta.x>=tg&&ts!==ta.x&&tR(tu<tb?ts:tc,tu,tg,tb,tu<tb?tc:ts,tu,ta.x,ta.y)&&(tp=Math.abs(tu-ta.y)/(ts-ta.x),tL(ta,tt)&&(tp<t_||tp===t_&&(ta.x>ti.x||ta.x===ti.x&&tE(ti,ta)))&&(ti=ta,t_=tp)),ta=ta.next;while(ta!==tv);return ti}function tE(tt,tr){return 0>tk(tt.prev,tt,tr.prev)&&0>tk(tr.next,tt,tt.next)}function tA(tt,tr,ti,ta){var ts=tt;do 0===ts.z&&(ts.z=tT(ts.x,ts.y,tr,ti,ta)),ts.prevZ=ts.prev,ts.nextZ=ts.next,ts=ts.next;while(ts!==tt);ts.prevZ.nextZ=null,ts.prevZ=null,tS(ts)}function tS(tt){var tr,ti,ta,ts,tu,tc,td,tp,tv=1;do{for(ti=tt,tt=null,tu=null,tc=0;ti;){for(tc++,ta=ti,td=0,tr=0;tr<tv&&(td++,ta=ta.nextZ);tr++);for(tp=tv;td>0||tp>0&&ta;)0!==td&&(0===tp||!ta||ti.z<=ta.z)?(ts=ti,ti=ti.nextZ,td--):(ts=ta,ta=ta.nextZ,tp--),tu?tu.nextZ=ts:tt=ts,ts.prevZ=tu,tu=ts;ti=ta}tu.nextZ=null,tv*=2}while(tc>1);return tt}function tT(tt,tr,ti,ta,ts){return(tt=((tt=((tt=((tt=((tt=(tt-ti)*ts|0)|tt<<8)&16711935)|tt<<4)&252645135)|tt<<2)&858993459)|tt<<1)&1431655765)|(tr=((tr=((tr=((tr=((tr=(tr-ta)*ts|0)|tr<<8)&16711935)|tr<<4)&252645135)|tr<<2)&858993459)|tr<<1)&1431655765)<<1}function tM(tt){var tr=tt,ti=tt;do(tr.x<ti.x||tr.x===ti.x&&tr.y<ti.y)&&(ti=tr),tr=tr.next;while(tr!==tt);return ti}function tR(tt,tr,ti,ta,ts,tu,tc,td){return(ts-tc)*(tr-td)>=(tt-tc)*(tu-td)&&(tt-tc)*(ta-td)>=(ti-tc)*(tr-td)&&(ti-tc)*(tu-td)>=(ts-tc)*(ta-td)}function tI(tt,tr){return tt.next.i!==tr.i&&tt.prev.i!==tr.i&&!tB(tt,tr)&&(tL(tt,tr)&&tL(tr,tt)&&tU(tt,tr)&&(tk(tt.prev,tt,tr.prev)||tk(tt,tr.prev,tr))||tP(tt,tr)&&tk(tt.prev,tt,tt.next)>0&&tk(tr.prev,tr,tr.next)>0)}function tk(tt,tr,ti){return(tr.y-tt.y)*(ti.x-tr.x)-(tr.x-tt.x)*(ti.y-tr.y)}function tP(tt,tr){return tt.x===tr.x&&tt.y===tr.y}function tC(tt,tr,ti,ta){var ts=tN(tk(tt,tr,ti)),tu=tN(tk(tt,tr,ta)),tc=tN(tk(ti,ta,tt)),td=tN(tk(ti,ta,tr));return!!(ts!==tu&&tc!==td||0===ts&&tO(tt,ti,tr)||0===tu&&tO(tt,ta,tr)||0===tc&&tO(ti,tt,ta)||0===td&&tO(ti,tr,ta))}function tO(tt,tr,ti){return tr.x<=Math.max(tt.x,ti.x)&&tr.x>=Math.min(tt.x,ti.x)&&tr.y<=Math.max(tt.y,ti.y)&&tr.y>=Math.min(tt.y,ti.y)}function tN(tt){return tt>0?1:tt<0?-1:0}function tB(tt,tr){var ti=tt;do{if(ti.i!==tt.i&&ti.next.i!==tt.i&&ti.i!==tr.i&&ti.next.i!==tr.i&&tC(ti,ti.next,tt,tr))return!0;ti=ti.next}while(ti!==tt);return!1}function tL(tt,tr){return 0>tk(tt.prev,tt,tt.next)?tk(tt,tr,tt.next)>=0&&tk(tt,tt.prev,tr)>=0:0>tk(tt,tr,tt.prev)||0>tk(tt,tt.next,tr)}function tU(tt,tr){var ti=tt,ta=!1,ts=(tt.x+tr.x)/2,tu=(tt.y+tr.y)/2;do ti.y>tu!=ti.next.y>tu&&ti.next.y!==ti.y&&ts<(ti.next.x-ti.x)*(tu-ti.y)/(ti.next.y-ti.y)+ti.x&&(ta=!ta),ti=ti.next;while(ti!==tt);return ta}function tD(tt,tr){var ti=new tG(tt.i,tt.x,tt.y),ta=new tG(tr.i,tr.x,tr.y),ts=tt.next,tu=tr.prev;return tt.next=tr,tr.prev=tt,ti.next=ts,ts.prev=ti,ta.next=ti,ti.prev=ta,tu.next=ta,ta.prev=tu,ta}function tj(tt,tr,ti,ta){var ts=new tG(tt,tr,ti);return ta?(ts.next=ta.next,ts.prev=ta,ta.next.prev=ts,ta.next=ts):(ts.prev=ts,ts.next=ts),ts}function tF(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 tG(tt,tr,ti){this.i=tt,this.x=tr,this.y=ti,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function tH(tt,tr,ti,ta){for(var ts=0,tu=tr,tc=ti-ta;tu<ti;tu+=ta)ts+=(tt[tc]-tt[tu])*(tt[tu+1]+tt[tc+1]),tc=tu;return ts}tt.exports=tr,tt.exports.default=tr,tr.deviation=function(tt,tr,ti,ta){var ts=tr&&tr.length,tu=ts?tr[0]*ti:tt.length,tc=Math.abs(tH(tt,0,tu,ti));if(ts)for(var td=0,tp=tr.length;td<tp;td++){var tv=tr[td]*ti,tg=td<tp-1?tr[td+1]*ti:tt.length;tc-=Math.abs(tH(tt,tv,tg,ti))}var tb=0;for(td=0;td<ta.length;td+=3){var t_=ta[td]*ti,tE=ta[td+1]*ti,tA=ta[td+2]*ti;tb+=Math.abs((tt[t_]-tt[tA])*(tt[tE+1]-tt[t_+1])-(tt[t_]-tt[tE])*(tt[tA+1]-tt[t_+1]))}return 0===tc&&0===tb?0:Math.abs((tb-tc)/tc)},tr.flatten=function(tt){for(var tr=tt[0][0].length,ti={vertices:[],holes:[],dimensions:tr},ta=0,ts=0;ts<tt.length;ts++){for(var tu=0;tu<tt[ts].length;tu++)for(var tc=0;tc<tr;tc++)ti.vertices.push(tt[ts][tu][tc]);ts>0&&(ta+=tt[ts-1].length,ti.holes.push(ta))}return ti}},21420:function(tt){"use strict";var tr=Object.prototype.hasOwnProperty,ti="~";function ta(){}function ts(tt,tr,ti){this.fn=tt,this.context=tr,this.once=ti||!1}function tu(tt,tr,ta,tu,tc){if("function"!=typeof ta)throw TypeError("The listener must be a function");var td=new ts(ta,tu||tt,tc),tp=ti?ti+tr:tr;return tt._events[tp]?tt._events[tp].fn?tt._events[tp]=[tt._events[tp],td]:tt._events[tp].push(td):(tt._events[tp]=td,tt._eventsCount++),tt}function tc(tt,tr){0==--tt._eventsCount?tt._events=new ta:delete tt._events[tr]}function td(){this._events=new ta,this._eventsCount=0}Object.create&&(ta.prototype=Object.create(null),new ta().__proto__||(ti=!1)),td.prototype.eventNames=function(){var tt,ta,ts=[];if(0===this._eventsCount)return ts;for(ta in tt=this._events)tr.call(tt,ta)&&ts.push(ti?ta.slice(1):ta);return Object.getOwnPropertySymbols?ts.concat(Object.getOwnPropertySymbols(tt)):ts},td.prototype.listeners=function(tt){var tr=ti?ti+tt:tt,ta=this._events[tr];if(!ta)return[];if(ta.fn)return[ta.fn];for(var ts=0,tu=ta.length,tc=Array(tu);ts<tu;ts++)tc[ts]=ta[ts].fn;return tc},td.prototype.listenerCount=function(tt){var tr=ti?ti+tt:tt,ta=this._events[tr];return ta?ta.fn?1:ta.length:0},td.prototype.emit=function(tt,tr,ta,ts,tu,tc){var td=ti?ti+tt:tt;if(!this._events[td])return!1;var tp,tv,tg=this._events[td],tb=arguments.length;if(tg.fn){switch(tg.once&&this.removeListener(tt,tg.fn,void 0,!0),tb){case 1:return tg.fn.call(tg.context),!0;case 2:return tg.fn.call(tg.context,tr),!0;case 3:return tg.fn.call(tg.context,tr,ta),!0;case 4:return tg.fn.call(tg.context,tr,ta,ts),!0;case 5:return tg.fn.call(tg.context,tr,ta,ts,tu),!0;case 6:return tg.fn.call(tg.context,tr,ta,ts,tu,tc),!0}for(tv=1,tp=Array(tb-1);tv<tb;tv++)tp[tv-1]=arguments[tv];tg.fn.apply(tg.context,tp)}else{var t_,tE=tg.length;for(tv=0;tv<tE;tv++)switch(tg[tv].once&&this.removeListener(tt,tg[tv].fn,void 0,!0),tb){case 1:tg[tv].fn.call(tg[tv].context);break;case 2:tg[tv].fn.call(tg[tv].context,tr);break;case 3:tg[tv].fn.call(tg[tv].context,tr,ta);break;case 4:tg[tv].fn.call(tg[tv].context,tr,ta,ts);break;default:if(!tp)for(t_=1,tp=Array(tb-1);t_<tb;t_++)tp[t_-1]=arguments[t_];tg[tv].fn.apply(tg[tv].context,tp)}}return!0},td.prototype.on=function(tt,tr,ti){return tu(this,tt,tr,ti,!1)},td.prototype.once=function(tt,tr,ti){return tu(this,tt,tr,ti,!0)},td.prototype.removeListener=function(tt,tr,ta,ts){var tu=ti?ti+tt:tt;if(!this._events[tu])return this;if(!tr)return tc(this,tu),this;var td=this._events[tu];if(td.fn)td.fn!==tr||ts&&!td.once||ta&&td.context!==ta||tc(this,tu);else{for(var tp=0,tv=[],tg=td.length;tp<tg;tp++)(td[tp].fn!==tr||ts&&!td[tp].once||ta&&td[tp].context!==ta)&&tv.push(td[tp]);tv.length?this._events[tu]=1===tv.length?tv[0]:tv:tc(this,tu)}return this},td.prototype.removeAllListeners=function(tt){var tr;return tt?(tr=ti?ti+tt:tt,this._events[tr]&&tc(this,tr)):(this._events=new ta,this._eventsCount=0),this},td.prototype.off=td.prototype.removeListener,td.prototype.addListener=td.prototype.on,td.prefixed=ti,td.EventEmitter=td,tt.exports=td},71826:function(tt,tr,ti){!function(){var tt=[].constructor||Array;function tr(tr){return tr.Array==tt}if(!("object"==typeof globalThis&&tr(globalThis))){var ta="object"==typeof window&&tr(window)?window:"object"==typeof ti.g&&tr(ti.g)?ti.g:"object"==typeof self&&tr(self)?self:"object"==typeof this&&tr(this)?this:Function("return this")();ta.globalThis=ta}}()},9298:function(tt,tr,ti){"use strict";function ta(){return(ta=Object.assign?Object.assign.bind():function(tt){for(var tr=1;tr<arguments.length;tr++){var ti=arguments[tr];for(var ta in ti)Object.prototype.hasOwnProperty.call(ti,ta)&&(tt[ta]=ti[ta])}return tt}).apply(this,arguments)}ti.d(tr,{aU:function(){return ts},lX:function(){return tp},Ep:function(){return t_},cP:function(){return tE}}),function(tt){tt.Pop="POP",tt.Push="PUSH",tt.Replace="REPLACE"}(ts||(ts={}));var ts,tu=function(tt){return tt},tc="beforeunload",td="popstate";function tp(tt){void 0===tt&&(tt={});var tr=tt.window,ti=void 0===tr?document.defaultView:tr,tp=ti.history;function tA(){var tt=ti.location,tr=tt.pathname,ta=tt.search,ts=tt.hash,tc=tp.state||{};return[tc.idx,tu({pathname:tr,search:ta,hash:ts,state:tc.usr||null,key:tc.key||"default"})]}var tS=null;function tT(){if(tS)tC.call(tS),tS=null;else{var tt=ts.Pop,tr=tA(),ti=tr[0],ta=tr[1];if(tC.length){if(null!=ti){var tu=tI-ti;tu&&(tS={action:tt,location:ta,retry:function(){tF(-1*tu)}},tF(tu))}}else tU(tt)}}ti.addEventListener(td,tT);var tM=ts.Pop,tR=tA(),tI=tR[0],tk=tR[1],tP=tg(),tC=tg();function tO(tt){return"string"==typeof tt?tt:t_(tt)}function tN(tt,tr){return void 0===tr&&(tr=null),tu(ta({pathname:tk.pathname,hash:"",search:""},"string"==typeof tt?tE(tt):tt,{state:tr,key:tb()}))}function tB(tt,tr){return[{usr:tt.state,key:tt.key,idx:tr},tO(tt)]}function tL(tt,tr,ti){return!tC.length||(tC.call({action:tt,location:tr,retry:ti}),!1)}function tU(tt){tM=tt;var tr=tA();tI=tr[0],tk=tr[1],tP.call({action:tM,location:tk})}function tD(tt,tr){var ta=ts.Push,tu=tN(tt,tr);if(tL(ta,tu,function(){tD(tt,tr)})){var tc=tB(tu,tI+1),td=tc[0],tv=tc[1];try{tp.pushState(td,"",tv)}catch(tt){ti.location.assign(tv)}tU(ta)}}function tj(tt,tr){var ti=ts.Replace,ta=tN(tt,tr);if(tL(ti,ta,function(){tj(tt,tr)})){var tu=tB(ta,tI),tc=tu[0],td=tu[1];tp.replaceState(tc,"",td),tU(ti)}}function tF(tt){tp.go(tt)}return null==tI&&(tI=0,tp.replaceState(ta({},tp.state,{idx:tI}),"")),{get action(){return tM},get location(){return tk},createHref:tO,push:tD,replace:tj,go:tF,back:function(){tF(-1)},forward:function(){tF(1)},listen:function(tt){return tP.push(tt)},block:function(tt){var tr=tC.push(tt);return 1===tC.length&&ti.addEventListener(tc,tv),function(){tr(),tC.length||ti.removeEventListener(tc,tv)}}}}function tv(tt){tt.preventDefault(),tt.returnValue=""}function tg(){var tt=[];return{get length(){return tt.length},push:function(tr){return tt.push(tr),function(){tt=tt.filter(function(tt){return tt!==tr})}},call:function(tr){tt.forEach(function(tt){return tt&&tt(tr)})}}}function tb(){return Math.random().toString(36).substr(2,8)}function t_(tt){var tr=tt.pathname,ti=void 0===tr?"/":tr,ta=tt.search,ts=void 0===ta?"":ta,tu=tt.hash,tc=void 0===tu?"":tu;return ts&&"?"!==ts&&(ti+="?"===ts.charAt(0)?ts:"?"+ts),tc&&"#"!==tc&&(ti+="#"===tc.charAt(0)?tc:"#"+tc),ti}function tE(tt){var tr={};if(tt){var ti=tt.indexOf("#");ti>=0&&(tr.hash=tt.substr(ti),tt=tt.substr(0,ti));var ta=tt.indexOf("?");ta>=0&&(tr.search=tt.substr(ta),tt=tt.substr(0,ta)),tt&&(tr.pathname=tt)}return tr}},23264:function(tt,tr){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */tr.read=function(tt,tr,ti,ta,ts){var tu,tc,td=8*ts-ta-1,tp=(1<<td)-1,tv=tp>>1,tg=-7,tb=ti?ts-1:0,t_=ti?-1:1,tE=tt[tr+tb];for(tb+=t_,tu=tE&(1<<-tg)-1,tE>>=-tg,tg+=td;tg>0;tu=256*tu+tt[tr+tb],tb+=t_,tg-=8);for(tc=tu&(1<<-tg)-1,tu>>=-tg,tg+=ta;tg>0;tc=256*tc+tt[tr+tb],tb+=t_,tg-=8);if(0===tu)tu=1-tv;else{if(tu===tp)return tc?NaN:(tE?-1:1)*(1/0);tc+=Math.pow(2,ta),tu-=tv}return(tE?-1:1)*tc*Math.pow(2,tu-ta)},tr.write=function(tt,tr,ti,ta,ts,tu){var tc,td,tp,tv=8*tu-ts-1,tg=(1<<tv)-1,tb=tg>>1,t_=23===ts?5960464477539062e-23:0,tE=ta?0:tu-1,tA=ta?1:-1,tS=tr<0||0===tr&&1/tr<0?1:0;for(isNaN(tr=Math.abs(tr))||tr===1/0?(td=isNaN(tr)?1:0,tc=tg):(tc=Math.floor(Math.log(tr)/Math.LN2),tr*(tp=Math.pow(2,-tc))<1&&(tc--,tp*=2),tc+tb>=1?tr+=t_/tp:tr+=t_*Math.pow(2,1-tb),tr*tp>=2&&(tc++,tp/=2),tc+tb>=tg?(td=0,tc=tg):tc+tb>=1?(td=(tr*tp-1)*Math.pow(2,ts),tc+=tb):(td=tr*Math.pow(2,tb-1)*Math.pow(2,ts),tc=0));ts>=8;tt[ti+tE]=255&td,tE+=tA,td/=256,ts-=8);for(tc=tc<<ts|td,tv+=ts;tv>0;tt[ti+tE]=255&tc,tE+=tA,tc/=256,tv-=8);tt[ti+tE-tA]|=128*tS}},499:function(tt,tr,ti){var ta=ti(66181),ts=ti(89911),tu=ti(4729),tc=ti(78770),td=ti(52052);function tp(tt){var tr=-1,ti=null==tt?0:tt.length;for(this.clear();++tr<ti;){var ta=tt[tr];this.set(ta[0],ta[1])}}tp.prototype.clear=ta,tp.prototype.delete=ts,tp.prototype.get=tu,tp.prototype.has=tc,tp.prototype.set=td,tt.exports=tp},51342:function(tt,tr,ti){var ta=ti(55118),ts=ti(24059),tu=ti(69182),tc=ti(2680),td=ti(9231);function tp(tt){var tr=-1,ti=null==tt?0:tt.length;for(this.clear();++tr<ti;){var ta=tt[tr];this.set(ta[0],ta[1])}}tp.prototype.clear=ta,tp.prototype.delete=ts,tp.prototype.get=tu,tp.prototype.has=tc,tp.prototype.set=td,tt.exports=tp},10303:function(tt,tr,ti){var ta=ti(68134)(ti(59343),"Map");tt.exports=ta},2890:function(tt,tr,ti){var ta=ti(43287),ts=ti(86409),tu=ti(24772),tc=ti(78677),td=ti(35051);function tp(tt){var tr=-1,ti=null==tt?0:tt.length;for(this.clear();++tr<ti;){var ta=tt[tr];this.set(ta[0],ta[1])}}tp.prototype.clear=ta,tp.prototype.delete=ts,tp.prototype.get=tu,tp.prototype.has=tc,tp.prototype.set=td,tt.exports=tp},33826:function(tt,tr,ti){var ta=ti(68134)(ti(59343),"Set");tt.exports=ta},80070:function(tt,tr,ti){var ta=ti(2890),ts=ti(4478),tu=ti(4102);function tc(tt){var tr=-1,ti=null==tt?0:tt.length;for(this.__data__=new ta;++tr<ti;)this.add(tt[tr])}tc.prototype.add=tc.prototype.push=ts,tc.prototype.has=tu,tt.exports=tc},11298:function(tt,tr,ti){var ta=ti(59343).Symbol;tt.exports=ta},74237:function(tt,tr,ti){var ta=ti(18487);function ts(tt,tr){return!!(null==tt?0:tt.length)&&ta(tt,tr,0)>-1}tt.exports=ts},51027:function(tt){function tr(tt,tr,ti){for(var ta=-1,ts=null==tt?0:tt.length;++ta<ts;)if(ti(tr,tt[ta]))return!0;return!1}tt.exports=tr},56112:function(tt){function tr(tt,tr){for(var ti=-1,ta=tr.length,ts=tt.length;++ti<ta;)tt[ts+ti]=tr[ti];return tt}tt.exports=tr},48160:function(tt,tr,ti){var ta=ti(38834);function ts(tt,tr){for(var ti=tt.length;ti--;)if(ta(tt[ti][0],tr))return ti;return -1}tt.exports=ts},72932:function(tt){function tr(tt,tr,ti,ta){for(var ts=tt.length,tu=ti+(ta?1:-1);ta?tu--:++tu<ts;)if(tr(tt[tu],tu,tt))return tu;return -1}tt.exports=tr},15049:function(tt,tr,ti){var ta=ti(56112),ts=ti(61730);function tu(tt,tr,ti,tc,td){var tp=-1,tv=tt.length;for(ti||(ti=ts),td||(td=[]);++tp<tv;){var tg=tt[tp];tr>0&&ti(tg)?tr>1?tu(tg,tr-1,ti,tc,td):ta(td,tg):tc||(td[td.length]=tg)}return td}tt.exports=tu},56391:function(tt,tr,ti){var ta=ti(11298),ts=ti(61299),tu=ti(40060),tc="[object Null]",td="[object Undefined]",tp=ta?ta.toStringTag:void 0;function tv(tt){return null==tt?void 0===tt?td:tc:tp&&tp in Object(tt)?ts(tt):tu(tt)}tt.exports=tv},18487:function(tt,tr,ti){var ta=ti(72932),ts=ti(5426),tu=ti(43624);function tc(tt,tr,ti){return tr==tr?tu(tt,tr,ti):ta(tt,ts,ti)}tt.exports=tc},87139:function(tt,tr,ti){var ta=ti(56391),ts=ti(42962),tu="[object Arguments]";function tc(tt){return ts(tt)&&ta(tt)==tu}tt.exports=tc},5426:function(tt){function tr(tt){return tt!=tt}tt.exports=tr},76740:function(tt,tr,ti){var ta=ti(77638),ts=ti(83770),tu=ti(72764),tc=ti(64848),td=/[\\^$.*+?()[\]{}|]/g,tp=/^\[object .+?Constructor\]$/,tv=Object.prototype,tg=Function.prototype.toString,tb=tv.hasOwnProperty,t_=RegExp("^"+tg.call(tb).replace(td,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tE(tt){return!(!tu(tt)||ts(tt))&&(ta(tt)?t_:tp).test(tc(tt))}tt.exports=tE},9152:function(tt){var tr=Math.floor,ti=Math.random;function ta(tt,ta){return tt+tr(ti()*(ta-tt+1))}tt.exports=ta},52553:function(tt,tr,ti){var ta=ti(64492),ts=/^\s+/;function tu(tt){return tt?tt.slice(0,ta(tt)+1).replace(ts,""):tt}tt.exports=tu},20913:function(tt,tr,ti){var ta=ti(80070),ts=ti(74237),tu=ti(51027),tc=ti(72043),td=ti(19086),tp=ti(13499),tv=200;function tg(tt,tr,ti){var tg=-1,tb=ts,t_=tt.length,tE=!0,tA=[],tS=tA;if(ti)tE=!1,tb=tu;else if(t_>=tv){var tT=tr?null:td(tt);if(tT)return tp(tT);tE=!1,tb=tc,tS=new ta}else tS=tr?[]:tA;t:for(;++tg<t_;){var tM=tt[tg],tR=tr?tr(tM):tM;if(tM=ti||0!==tM?tM:0,tE&&tR==tR){for(var tI=tS.length;tI--;)if(tS[tI]===tR)continue t;tr&&tS.push(tR),tA.push(tM)}else tb(tS,tR,ti)||(tS!==tA&&tS.push(tR),tA.push(tM))}return tA}tt.exports=tg},72043:function(tt){function tr(tt,tr){return tt.has(tr)}tt.exports=tr},693:function(tt,tr,ti){var ta=ti(59343)["__core-js_shared__"];tt.exports=ta},19086:function(tt,tr,ti){var ta=ti(33826),ts=ti(53482),tu=ti(13499),tc=1/0,td=ta&&1/tu(new ta([,-0]))[1]==tc?function(tt){return new ta(tt)}:ts;tt.exports=td},72652:function(tt,tr,ti){var ta="object"==typeof ti.g&&ti.g&&ti.g.Object===Object&&ti.g;tt.exports=ta},33584:function(tt,tr,ti){var ta=ti(65898);function ts(tt,tr){var ti=tt.__data__;return ta(tr)?ti["string"==typeof tr?"string":"hash"]:ti.map}tt.exports=ts},68134:function(tt,tr,ti){var ta=ti(76740),ts=ti(86687);function tu(tt,tr){var ti=ts(tt,tr);return ta(ti)?ti:void 0}tt.exports=tu},61299:function(tt,tr,ti){var ta=ti(11298),ts=Object.prototype,tu=ts.hasOwnProperty,tc=ts.toString,td=ta?ta.toStringTag:void 0;function tp(tt){var tr=tu.call(tt,td),ti=tt[td];try{tt[td]=void 0;var ta=!0}catch(tt){}var ts=tc.call(tt);return ta&&(tr?tt[td]=ti:delete tt[td]),ts}tt.exports=tp},86687:function(tt){function tr(tt,tr){return null==tt?void 0:tt[tr]}tt.exports=tr},66181:function(tt,tr,ti){var ta=ti(70062);function ts(){this.__data__=ta?ta(null):{},this.size=0}tt.exports=ts},89911:function(tt){function tr(tt){var tr=this.has(tt)&&delete this.__data__[tt];return this.size-=tr?1:0,tr}tt.exports=tr},4729:function(tt,tr,ti){var ta=ti(70062),ts="__lodash_hash_undefined__",tu=Object.prototype.hasOwnProperty;function tc(tt){var tr=this.__data__;if(ta){var ti=tr[tt];return ti===ts?void 0:ti}return tu.call(tr,tt)?tr[tt]:void 0}tt.exports=tc},78770:function(tt,tr,ti){var ta=ti(70062),ts=Object.prototype.hasOwnProperty;function tu(tt){var tr=this.__data__;return ta?void 0!==tr[tt]:ts.call(tr,tt)}tt.exports=tu},52052:function(tt,tr,ti){var ta=ti(70062),ts="__lodash_hash_undefined__";function tu(tt,tr){var ti=this.__data__;return this.size+=this.has(tt)?0:1,ti[tt]=ta&&void 0===tr?ts:tr,this}tt.exports=tu},61730:function(tt,tr,ti){var ta=ti(11298),ts=ti(33953),tu=ti(5793),tc=ta?ta.isConcatSpreadable:void 0;function td(tt){return tu(tt)||ts(tt)||!!(tc&&tt&&tt[tc])}tt.exports=td},79709:function(tt){var tr=9007199254740991,ti=/^(?:0|[1-9]\d*)$/;function ta(tt,ta){var ts=typeof tt;return!!(ta=null==ta?tr:ta)&&("number"==ts||"symbol"!=ts&&ti.test(tt))&&tt>-1&&tt%1==0&&tt<ta}tt.exports=ta},79873:function(tt,tr,ti){var ta=ti(38834),ts=ti(15368),tu=ti(79709),tc=ti(72764);function td(tt,tr,ti){if(!tc(ti))return!1;var td=typeof tr;return("number"==td?!!(ts(ti)&&tu(tr,ti.length)):"string"==td&&tr in ti)&&ta(ti[tr],tt)}tt.exports=td},65898:function(tt){function tr(tt){var tr=typeof tt;return"string"==tr||"number"==tr||"symbol"==tr||"boolean"==tr?"__proto__"!==tt:null===tt}tt.exports=tr},83770:function(tt,tr,ti){var ta=ti(693),ts=function(){var tt=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return tt?"Symbol(src)_1."+tt:""}();function tu(tt){return!!ts&&ts in tt}tt.exports=tu},55118:function(tt){function tr(){this.__data__=[],this.size=0}tt.exports=tr},24059:function(tt,tr,ti){var ta=ti(48160),ts=Array.prototype.splice;function tu(tt){var tr=this.__data__,ti=ta(tr,tt);return!(ti<0)&&(ti==tr.length-1?tr.pop():ts.call(tr,ti,1),--this.size,!0)}tt.exports=tu},69182:function(tt,tr,ti){var ta=ti(48160);function ts(tt){var tr=this.__data__,ti=ta(tr,tt);return ti<0?void 0:tr[ti][1]}tt.exports=ts},2680:function(tt,tr,ti){var ta=ti(48160);function ts(tt){return ta(this.__data__,tt)>-1}tt.exports=ts},9231:function(tt,tr,ti){var ta=ti(48160);function ts(tt,tr){var ti=this.__data__,ts=ta(ti,tt);return ts<0?(++this.size,ti.push([tt,tr])):ti[ts][1]=tr,this}tt.exports=ts},43287:function(tt,tr,ti){var ta=ti(499),ts=ti(51342),tu=ti(10303);function tc(){this.size=0,this.__data__={hash:new ta,map:new(tu||ts),string:new ta}}tt.exports=tc},86409:function(tt,tr,ti){var ta=ti(33584);function ts(tt){var tr=ta(this,tt).delete(tt);return this.size-=tr?1:0,tr}tt.exports=ts},24772:function(tt,tr,ti){var ta=ti(33584);function ts(tt){return ta(this,tt).get(tt)}tt.exports=ts},78677:function(tt,tr,ti){var ta=ti(33584);function ts(tt){return ta(this,tt).has(tt)}tt.exports=ts},35051:function(tt,tr,ti){var ta=ti(33584);function ts(tt,tr){var ti=ta(this,tt),ts=ti.size;return ti.set(tt,tr),this.size+=ti.size==ts?0:1,this}tt.exports=ts},70062:function(tt,tr,ti){var ta=ti(68134)(Object,"create");tt.exports=ta},40060:function(tt){var tr=Object.prototype.toString;function ti(tt){return tr.call(tt)}tt.exports=ti},59343:function(tt,tr,ti){var ta=ti(72652),ts="object"==typeof self&&self&&self.Object===Object&&self,tu=ta||ts||Function("return this")();tt.exports=tu},4478:function(tt){var tr="__lodash_hash_undefined__";function ti(tt){return this.__data__.set(tt,tr),this}tt.exports=ti},4102:function(tt){function tr(tt){return this.__data__.has(tt)}tt.exports=tr},13499:function(tt){function tr(tt){var tr=-1,ti=Array(tt.size);return tt.forEach(function(tt){ti[++tr]=tt}),ti}tt.exports=tr},43624:function(tt){function tr(tt,tr,ti){for(var ta=ti-1,ts=tt.length;++ta<ts;)if(tt[ta]===tr)return ta;return -1}tt.exports=tr},64848:function(tt){var tr=Function.prototype.toString;function ti(tt){if(null!=tt){try{return tr.call(tt)}catch(tt){}try{return tt+""}catch(tt){}}return""}tt.exports=ti},64492:function(tt){var tr=/\s/;function ti(tt){for(var ti=tt.length;ti--&&tr.test(tt.charAt(ti)););return ti}tt.exports=ti},38834:function(tt){function tr(tt,tr){return tt===tr||tt!=tt&&tr!=tr}tt.exports=tr},68109:function(tt,tr,ti){var ta=ti(15049),ts=1/0;function tu(tt){return(null==tt?0:tt.length)?ta(tt,ts):[]}tt.exports=tu},33953:function(tt,tr,ti){var ta=ti(87139),ts=ti(42962),tu=Object.prototype,tc=tu.hasOwnProperty,td=tu.propertyIsEnumerable,tp=ta(function(){return arguments}())?ta:function(tt){return ts(tt)&&tc.call(tt,"callee")&&!td.call(tt,"callee")};tt.exports=tp},5793:function(tt){var tr=Array.isArray;tt.exports=tr},15368:function(tt,tr,ti){var ta=ti(77638),ts=ti(61977);function tu(tt){return null!=tt&&ts(tt.length)&&!ta(tt)}tt.exports=tu},77638:function(tt,tr,ti){var ta=ti(56391),ts=ti(72764),tu="[object AsyncFunction]",tc="[object Function]",td="[object GeneratorFunction]",tp="[object Proxy]";function tv(tt){if(!ts(tt))return!1;var tr=ta(tt);return tr==tc||tr==td||tr==tu||tr==tp}tt.exports=tv},61977:function(tt){var tr=9007199254740991;function ti(tt){return"number"==typeof tt&&tt>-1&&tt%1==0&&tt<=tr}tt.exports=ti},72764:function(tt){function tr(tt){var tr=typeof tt;return null!=tt&&("object"==tr||"function"==tr)}tt.exports=tr},42962:function(tt){function tr(tt){return null!=tt&&"object"==typeof tt}tt.exports=tr},34618:function(tt,tr,ti){var ta=ti(56391),ts=ti(42962),tu="[object Symbol]";function tc(tt){return"symbol"==typeof tt||ts(tt)&&ta(tt)==tu}tt.exports=tc},53482:function(tt){function tr(){}tt.exports=tr},20110:function(tt,tr,ti){var ta=ti(9152),ts=ti(79873),tu=ti(52816),tc=parseFloat,td=Math.min,tp=Math.random;function tv(tt,tr,ti){if(ti&&"boolean"!=typeof ti&&ts(tt,tr,ti)&&(tr=ti=void 0),void 0===ti&&("boolean"==typeof tr?(ti=tr,tr=void 0):"boolean"==typeof tt&&(ti=tt,tt=void 0)),void 0===tt&&void 0===tr?(tt=0,tr=1):(tt=tu(tt),void 0===tr?(tr=tt,tt=0):tr=tu(tr)),tt>tr){var tv=tt;tt=tr,tr=tv}if(ti||tt%1||tr%1){var tg=tp();return td(tt+tg*(tr-tt+tc("1e-"+((tg+"").length-1))),tr)}return ta(tt,tr)}tt.exports=tv},52816:function(tt,tr,ti){var ta=ti(98113),ts=1/0,tu=17976931348623157e292;function tc(tt){return tt?(tt=ta(tt))===ts||tt===-ts?(tt<0?-1:1)*tu:tt==tt?tt:0:0===tt?tt:0}tt.exports=tc},98113:function(tt,tr,ti){var ta=ti(52553),ts=ti(72764),tu=ti(34618),tc=0/0,td=/^[-+]0x[0-9a-f]+$/i,tp=/^0b[01]+$/i,tv=/^0o[0-7]+$/i,tg=parseInt;function tb(tt){if("number"==typeof tt)return tt;if(tu(tt))return tc;if(ts(tt)){var tr="function"==typeof tt.valueOf?tt.valueOf():tt;tt=ts(tr)?tr+"":tr}if("string"!=typeof tt)return 0===tt?tt:+tt;tt=ta(tt);var ti=tp.test(tt);return ti||tv.test(tt)?tg(tt.slice(2),ti?2:8):td.test(tt)?tc:+tt}tt.exports=tb},94734:function(tt,tr,ti){var ta=ti(20913);function ts(tt){return tt&&tt.length?ta(tt):[]}tt.exports=ts},42907:function(tt,tr,ti){"use strict";var ta,ts;tt.exports=(null==(ta=ti.g.process)?void 0:ta.env)&&"object"==typeof(null==(ts=ti.g.process)?void 0:ts.env)?ti.g.process:ti(36299)},60417:function(tt,tr,ti){var ta="/",ts=ti(84406).Buffer,tu=ti(42907),tc=ti(73857),td=ti(12117),tp=ti(67048),tv=ti(29449),tg=ti(1959),tb=ti(25422);function t_(tt){var tr=tE();return function(){var ti,ta=tb(tt);if(tr){var ts=tb(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return tg(this,ti)}}function tE(){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 tr={7160:function(tt,tr,ti){var ta=tr;ta.bignum=ti(711),ta.define=ti(495).define,ta.base=ti(853),ta.constants=ti(7335),ta.decoders=ti(6701),ta.encoders=ti(3418)},495:function(tt,tr,ti){var ta=ti(7160),ts=ti(3782);function tu(tt,tr){this.name=tt,this.body=tr,this.decoders={},this.encoders={}}tr.define=function(tt,tr){return new tu(tt,tr)},tu.prototype._createNamed=function(tt){var tr;try{tr=ti(6144).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(tt){tr=function(tt){this._initNamed(tt)}}return ts(tr,tt),tr.prototype._initNamed=function(tr){tt.call(this,tr)},new tr(this)},tu.prototype._getDecoder=function(tt){return tt=tt||"der",this.decoders.hasOwnProperty(tt)||(this.decoders[tt]=this._createNamed(ta.decoders[tt])),this.decoders[tt]},tu.prototype.decode=function(tt,tr,ti){return this._getDecoder(tr).decode(tt,ti)},tu.prototype._getEncoder=function(tt){return tt=tt||"der",this.encoders.hasOwnProperty(tt)||(this.encoders[tt]=this._createNamed(ta.encoders[tt])),this.encoders[tt]},tu.prototype.encode=function(tt,tr,ti){return this._getEncoder(tr).encode(tt,ti)}},6483:function(tt,tr,ti){var ta=ti(3782),ts=ti(853).Reporter,tu=ti(4300).Buffer;function tc(tt,tr){if(ts.call(this,tr),!tu.isBuffer(tt)){this.error("Input not Buffer");return}this.base=tt,this.offset=0,this.length=tt.length}function td(tt,tr){if(Array.isArray(tt))this.length=0,this.value=tt.map(function(tt){return tt instanceof td||(tt=new td(tt,tr)),this.length+=tt.length,tt},this);else if("number"==typeof tt){if(!(0<=tt&&tt<=255))return tr.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 tr.error("Unsupported type: "+typeof tt);this.value=tt,this.length=tt.length}}ta(tc,ts),tr.C=tc,tc.prototype.save=function(){return{offset:this.offset,reporter:ts.prototype.save.call(this)}},tc.prototype.restore=function(tt){var tr=new tc(this.base);return tr.offset=tt.offset,tr.length=this.offset,this.offset=tt.offset,ts.prototype.restore.call(this,tt.reporter),tr},tc.prototype.isEmpty=function(){return this.offset===this.length},tc.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")},tc.prototype.skip=function(tt,tr){if(!(this.offset+tt<=this.length))return this.error(tr||"DecoderBuffer overrun");var ti=new tc(this.base);return ti._reporterState=this._reporterState,ti.offset=this.offset,ti.length=this.offset+tt,this.offset+=tt,ti},tc.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)},tr.R=td,td.prototype.join=function(tt,tr){return tt||(tt=new tu(this.length)),tr||(tr=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(ti){ti.join(tt,tr),tr+=ti.length}):("number"==typeof this.value?tt[tr]=this.value:"string"==typeof this.value?tt.write(this.value,tr):tu.isBuffer(this.value)&&this.value.copy(tt,tr),tr+=this.length)),tt}},853:function(tt,tr,ti){var ta=tr;ta.Reporter=ti(1293).b,ta.DecoderBuffer=ti(6483).C,ta.EncoderBuffer=ti(6483).R,ta.Node=ti(9374)},9374:function(tt,tr,ti){var ta=ti(853).Reporter,ts=ti(853).EncoderBuffer,tu=ti(853).DecoderBuffer,tc=ti(3523),td=["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"],tp=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(td),tv=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function tg(tt,tr){var ti={};this._baseState=ti,ti.enc=tt,ti.parent=tr||null,ti.children=null,ti.tag=null,ti.args=null,ti.reverseArgs=null,ti.choice=null,ti.optional=!1,ti.any=!1,ti.obj=!1,ti.use=null,ti.useDecoder=null,ti.key=null,ti.default=null,ti.explicit=null,ti.implicit=null,ti.contains=null,ti.parent||(ti.children=[],this._wrap())}tt.exports=tg;var tb=["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,tr={};tb.forEach(function(ti){tr[ti]=tt[ti]});var ti=new this.constructor(tr.parent);return ti._baseState=tr,ti},tg.prototype._wrap=function(){var tt=this._baseState;tp.forEach(function(tr){this[tr]=function(){var ti=new this.constructor(this);return tt.children.push(ti),ti[tr].apply(ti,arguments)}},this)},tg.prototype._init=function(tt){var tr=this._baseState;tc(null===tr.parent),tt.call(this),tr.children=tr.children.filter(function(tt){return tt._baseState.parent===this},this),tc.equal(tr.children.length,1,"Root node can have only one child")},tg.prototype._useArgs=function(tt){var tr=this._baseState,ti=tt.filter(function(tt){return tt instanceof this.constructor},this);tt=tt.filter(function(tt){return!(tt instanceof this.constructor)},this),0!==ti.length&&(tc(null===tr.children),tr.children=ti,ti.forEach(function(tt){tt._baseState.parent=this},this)),0!==tt.length&&(tc(null===tr.args),tr.args=tt,tr.reverseArgs=tt.map(function(tt){if("object"!=typeof tt||tt.constructor!==Object)return tt;var tr={};return Object.keys(tt).forEach(function(ti){ti==(0|ti)&&(ti|=0),tr[tt[ti]]=ti}),tr}))},tv.forEach(function(tt){tg.prototype[tt]=function(){throw Error(tt+" not implemented for encoding: "+this._baseState.enc)}}),td.forEach(function(tt){tg.prototype[tt]=function(){var tr=this._baseState,ti=Array.prototype.slice.call(arguments);return tc(null===tr.tag),tr.tag=tt,this._useArgs(ti),this}}),tg.prototype.use=function(tt){tc(tt);var tr=this._baseState;return tc(null===tr.use),tr.use=tt,this},tg.prototype.optional=function(){return this._baseState.optional=!0,this},tg.prototype.def=function(tt){var tr=this._baseState;return tc(null===tr.default),tr.default=tt,tr.optional=!0,this},tg.prototype.explicit=function(tt){var tr=this._baseState;return tc(null===tr.explicit&&null===tr.implicit),tr.explicit=tt,this},tg.prototype.implicit=function(tt){var tr=this._baseState;return tc(null===tr.explicit&&null===tr.implicit),tr.implicit=tt,this},tg.prototype.obj=function(){var tt=this._baseState,tr=Array.prototype.slice.call(arguments);return tt.obj=!0,0!==tr.length&&this._useArgs(tr),this},tg.prototype.key=function(tt){var tr=this._baseState;return tc(null===tr.key),tr.key=tt,this},tg.prototype.any=function(){return this._baseState.any=!0,this},tg.prototype.choice=function(tt){var tr=this._baseState;return tc(null===tr.choice),tr.choice=tt,this._useArgs(Object.keys(tt).map(function(tr){return tt[tr]})),this},tg.prototype.contains=function(tt){var tr=this._baseState;return tc(null===tr.use),tr.contains=tt,this},tg.prototype._decode=function(tt,tr){var ti,ta=this._baseState;if(null===ta.parent)return tt.wrapResult(ta.children[0]._decode(tt,tr));var ts=ta.default,tc=!0,td=null;if(null!==ta.key&&(td=tt.enterKey(ta.key)),ta.optional){var tp=null;if(null!==ta.explicit?tp=ta.explicit:null!==ta.implicit?tp=ta.implicit:null!==ta.tag&&(tp=ta.tag),null!==tp||ta.any){if(tc=this._peekTag(tt,tp,ta.any),tt.isError(tc))return tc}else{var tv=tt.save();try{null===ta.choice?this._decodeGeneric(ta.tag,tt,tr):this._decodeChoice(tt,tr),tc=!0}catch(tt){tc=!1}tt.restore(tv)}}if(ta.obj&&tc&&(ti=tt.enterObject()),tc){if(null!==ta.explicit){var tg=this._decodeTag(tt,ta.explicit);if(tt.isError(tg))return tg;tt=tg}var tb=tt.offset;if(null===ta.use&&null===ta.choice){if(ta.any)var tv=tt.save();var t_=this._decodeTag(tt,null!==ta.implicit?ta.implicit:ta.tag,ta.any);if(tt.isError(t_))return t_;ta.any?ts=tt.raw(tv):tt=t_}if(tr&&tr.track&&null!==ta.tag&&tr.track(tt.path(),tb,tt.length,"tagged"),tr&&tr.track&&null!==ta.tag&&tr.track(tt.path(),tt.offset,tt.length,"content"),ta.any||(ts=null===ta.choice?this._decodeGeneric(ta.tag,tt,tr):this._decodeChoice(tt,tr)),tt.isError(ts))return ts;if(ta.any||null!==ta.choice||null===ta.children||ta.children.forEach(function(ti){ti._decode(tt,tr)}),ta.contains&&("octstr"===ta.tag||"bitstr"===ta.tag)){var tE=new tu(ts);ts=this._getUse(ta.contains,tt._reporterState.obj)._decode(tE,tr)}}return ta.obj&&tc&&(ts=tt.leaveObject(ti)),null!==ta.key&&(null!==ts||!0===tc)?tt.leaveKey(td,ta.key,ts):null!==td&&tt.exitKey(td),ts},tg.prototype._decodeGeneric=function(tt,tr,ti){var ta=this._baseState;if("seq"===tt||"set"===tt)return null;if("seqof"===tt||"setof"===tt)return this._decodeList(tr,tt,ta.args[0],ti);if(/str$/.test(tt))return this._decodeStr(tr,tt,ti);if("objid"===tt&&ta.args)return this._decodeObjid(tr,ta.args[0],ta.args[1],ti);if("objid"===tt)return this._decodeObjid(tr,null,null,ti);if("gentime"===tt||"utctime"===tt)return this._decodeTime(tr,tt,ti);if("null_"===tt)return this._decodeNull(tr,ti);if("bool"===tt)return this._decodeBool(tr,ti);else if("objDesc"===tt)return this._decodeStr(tr,tt,ti);else if("int"===tt||"enum"===tt)return this._decodeInt(tr,ta.args&&ta.args[0],ti);return null!==ta.use?this._getUse(ta.use,tr._reporterState.obj)._decode(tr,ti):tr.error("unknown tag: "+tt)},tg.prototype._getUse=function(tt,tr){var ti=this._baseState;return ti.useDecoder=this._use(tt,tr),tc(null===ti.useDecoder._baseState.parent),ti.useDecoder=ti.useDecoder._baseState.children[0],ti.implicit!==ti.useDecoder._baseState.implicit&&(ti.useDecoder=ti.useDecoder.clone(),ti.useDecoder._baseState.implicit=ti.implicit),ti.useDecoder},tg.prototype._decodeChoice=function(tt,tr){var ti=this._baseState,ta=null,ts=!1;return(Object.keys(ti.choice).some(function(tu){var tc=tt.save(),td=ti.choice[tu];try{var tp=td._decode(tt,tr);if(tt.isError(tp))return!1;ta={type:tu,value:tp},ts=!0}catch(tr){return tt.restore(tc),!1}return!0},this),ts)?ta:tt.error("Choice not matched")},tg.prototype._createEncoderBuffer=function(tt){return new ts(tt,this.reporter)},tg.prototype._encode=function(tt,tr,ti){var ta=this._baseState;if(null===ta.default||ta.default!==tt){var ts=this._encodeValue(tt,tr,ti);if(void 0!==ts&&!this._skipDefault(ts,tr,ti))return ts}},tg.prototype._encodeValue=function(tt,tr,ti){var ts,tu=this._baseState;if(null===tu.parent)return tu.children[0]._encode(tt,tr||new ta);var ts=null;if(this.reporter=tr,tu.optional&&void 0===tt){if(null===tu.default)return;tt=tu.default}var tc=null,td=!1;if(tu.any)ts=this._createEncoderBuffer(tt);else if(tu.choice)ts=this._encodeChoice(tt,tr);else if(tu.contains)tc=this._getUse(tu.contains,ti)._encode(tt,tr),td=!0;else if(tu.children)tc=tu.children.map(function(ti){if("null_"===ti._baseState.tag)return ti._encode(null,tr,tt);if(null===ti._baseState.key)return tr.error("Child should have a key");var ta=tr.enterKey(ti._baseState.key);if("object"!=typeof tt)return tr.error("Child expected, but input is not object");var ts=ti._encode(tt[ti._baseState.key],tr,tt);return tr.leaveKey(ta),ts},this).filter(function(tt){return tt}),tc=this._createEncoderBuffer(tc);else if("seqof"===tu.tag||"setof"===tu.tag){if(!(tu.args&&1===tu.args.length))return tr.error("Too many args for : "+tu.tag);if(!Array.isArray(tt))return tr.error("seqof/setof, but data is not Array");var tp=this.clone();tp._baseState.implicit=null,tc=this._createEncoderBuffer(tt.map(function(ti){var ta=this._baseState;return this._getUse(ta.args[0],tt)._encode(ti,tr)},tp))}else null!==tu.use?ts=this._getUse(tu.use,ti)._encode(tt,tr):(tc=this._encodePrimitive(tu.tag,tt),td=!0);if(!tu.any&&null===tu.choice){var tv=null!==tu.implicit?tu.implicit:tu.tag,tg=null===tu.implicit?"universal":"context";null===tv?null===tu.use&&tr.error("Tag could be omitted only for .use()"):null===tu.use&&(ts=this._encodeComposite(tv,td,tg,tc))}return null!==tu.explicit&&(ts=this._encodeComposite(tu.explicit,!1,"context",ts)),ts},tg.prototype._encodeChoice=function(tt,tr){var ti=this._baseState,ta=ti.choice[tt.type];return ta||tc(!1,tt.type+" not found in "+JSON.stringify(Object.keys(ti.choice))),ta._encode(tt.value,tr)},tg.prototype._encodePrimitive=function(tt,tr){var ti=this._baseState;if(/str$/.test(tt))return this._encodeStr(tr,tt);if("objid"===tt&&ti.args)return this._encodeObjid(tr,ti.reverseArgs[0],ti.args[1]);if("objid"===tt)return this._encodeObjid(tr,null,null);if("gentime"===tt||"utctime"===tt)return this._encodeTime(tr,tt);if("null_"===tt)return this._encodeNull();if("int"===tt||"enum"===tt)return this._encodeInt(tr,ti.args&&ti.reverseArgs[0]);if("bool"===tt)return this._encodeBool(tr);else if("objDesc"===tt)return this._encodeStr(tr,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,tr,ti){var ta=ti(3782);function ts(tt){this._reporterState={obj:null,path:[],options:tt||{},errors:[]}}function tu(tt,tr){this.path=tt,this.rethrow(tr)}tr.b=ts,ts.prototype.isError=function(tt){return tt instanceof tu},ts.prototype.save=function(){var tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}},ts.prototype.restore=function(tt){var tr=this._reporterState;tr.obj=tt.obj,tr.path=tr.path.slice(0,tt.pathLen)},ts.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)},ts.prototype.exitKey=function(tt){var tr=this._reporterState;tr.path=tr.path.slice(0,tt-1)},ts.prototype.leaveKey=function(tt,tr,ti){var ta=this._reporterState;this.exitKey(tt),null!==ta.obj&&(ta.obj[tr]=ti)},ts.prototype.path=function(){return this._reporterState.path.join("/")},ts.prototype.enterObject=function(){var tt=this._reporterState,tr=tt.obj;return tt.obj={},tr},ts.prototype.leaveObject=function(tt){var tr=this._reporterState,ti=tr.obj;return tr.obj=tt,ti},ts.prototype.error=function(tt){var tr,ti=this._reporterState,ta=tt instanceof tu;if(tr=ta?tt:new tu(ti.path.map(function(tt){return"["+JSON.stringify(tt)+"]"}).join(""),tt.message||tt,tt.stack),!ti.options.partial)throw tr;return ta||ti.errors.push(tr),tr},ts.prototype.wrapResult=function(tt){var tr=this._reporterState;return tr.options.partial?{result:this.isError(tt)?null:tt,errors:tr.errors}:tt},ta(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,tr,ti){var ta=ti(7335);tr.tagClass={0:"universal",1:"application",2:"context",3:"private"},tr.tagClassByName=ta._reverse(tr.tagClass),tr.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"},tr.tagByName=ta._reverse(tr.tag)},7335:function(tt,tr,ti){var ta=tr;ta._reverse=function(tt){var tr={};return Object.keys(tt).forEach(function(ti){(0|ti)==ti&&(ti|=0),tr[tt[ti]]=ti}),tr},ta.der=ti(9791)},2259:function(tt,tr,ti){var ta=ti(3782),ts=ti(7160),tu=ts.base,tc=ts.bignum,td=ts.constants.der;function tp(tt){this.enc="der",this.name=tt.name,this.entity=tt,this.tree=new tv,this.tree._init(tt.body)}function tv(tt){tu.Node.call(this,"der",tt)}function tg(tt,tr){var ti=tt.readUInt8(tr);if(tt.isError(ti))return ti;var ta=td.tagClass[ti>>6],ts=(32&ti)==0;if((31&ti)==31){var tu=ti;for(ti=0;(128&tu)==128;){if(tu=tt.readUInt8(tr),tt.isError(tu))return tu;ti<<=7,ti|=127&tu}}else ti&=31;var tc=td.tag[ti];return{cls:ta,primitive:ts,tag:ti,tagStr:tc}}function tb(tt,tr,ti){var ta=tt.readUInt8(ti);if(tt.isError(ta))return ta;if(!tr&&128===ta)return null;if((128&ta)==0)return ta;var ts=127&ta;if(ts>4)return tt.error("length octect is too long");ta=0;for(var tu=0;tu<ts;tu++){ta<<=8;var tc=tt.readUInt8(ti);if(tt.isError(tc))return tc;ta|=tc}return ta}tt.exports=tp,tp.prototype.decode=function(tt,tr){return tt instanceof tu.DecoderBuffer||(tt=new tu.DecoderBuffer(tt,tr)),this.tree._decode(tt,tr)},ta(tv,tu.Node),tv.prototype._peekTag=function(tt,tr,ti){if(tt.isEmpty())return!1;var ta=tt.save(),ts=tg(tt,'Failed to peek tag: "'+tr+'"');return tt.isError(ts)?ts:(tt.restore(ta),ts.tag===tr||ts.tagStr===tr||ts.tagStr+"of"===tr||ti)},tv.prototype._decodeTag=function(tt,tr,ti){var ta=tg(tt,'Failed to decode tag of "'+tr+'"');if(tt.isError(ta))return ta;var ts=tb(tt,ta.primitive,'Failed to get length of "'+tr+'"');if(tt.isError(ts))return ts;if(!ti&&ta.tag!==tr&&ta.tagStr!==tr&&ta.tagStr+"of"!==tr)return tt.error('Failed to match tag: "'+tr+'"');if(ta.primitive||null!==ts)return tt.skip(ts,'Failed to match body of: "'+tr+'"');var tu=tt.save(),tc=this._skipUntilEnd(tt,'Failed to skip indefinite length body: "'+this.tag+'"');return tt.isError(tc)?tc:(ts=tt.offset-tu.offset,tt.restore(tu),tt.skip(ts,'Failed to match body of: "'+tr+'"'))},tv.prototype._skipUntilEnd=function(tt,tr){for(;;){var ti,ta=tg(tt,tr);if(tt.isError(ta))return ta;var ts=tb(tt,ta.primitive,tr);if(tt.isError(ts))return ts;if(ti=ta.primitive||null!==ts?tt.skip(ts):this._skipUntilEnd(tt,tr),tt.isError(ti))return ti;if("end"===ta.tagStr)break}},tv.prototype._decodeList=function(tt,tr,ti,ta){for(var ts=[];!tt.isEmpty();){var tu=this._peekTag(tt,"end");if(tt.isError(tu))return tu;var tc=ti.decode(tt,"der",ta);if(tt.isError(tc)&&tu)break;ts.push(tc)}return ts},tv.prototype._decodeStr=function(tt,tr){if("bitstr"===tr){var ti=tt.readUInt8();return tt.isError(ti)?ti:{unused:ti,data:tt.raw()}}if("bmpstr"===tr){var ta=tt.raw();if(ta.length%2==1)return tt.error("Decoding of string type: bmpstr length mismatch");for(var ts="",tu=0;tu<ta.length/2;tu++)ts+=String.fromCharCode(ta.readUInt16BE(2*tu));return ts}if("numstr"===tr){var tc=tt.raw().toString("ascii");return this._isNumstr(tc)?tc:tt.error("Decoding of string type: numstr unsupported characters")}if("octstr"===tr)return tt.raw();if("objDesc"===tr)return tt.raw();if("printstr"===tr){var td=tt.raw().toString("ascii");return this._isPrintstr(td)?td:tt.error("Decoding of string type: printstr unsupported characters")}if(/str$/.test(tr))return tt.raw().toString();else return tt.error("Decoding of string type: "+tr+" unsupported")},tv.prototype._decodeObjid=function(tt,tr,ti){for(var ta,ts=[],tu=0;!tt.isEmpty();){var tc=tt.readUInt8();tu<<=7,tu|=127&tc,(128&tc)==0&&(ts.push(tu),tu=0)}128&tc&&ts.push(tu);var td=ts[0]/40|0,tp=ts[0]%40;if(ta=ti?ts:[td,tp].concat(ts.slice(1)),tr){var tv=tr[ta.join(" ")];void 0===tv&&(tv=tr[ta.join(".")]),void 0!==tv&&(ta=tv)}return ta},tv.prototype._decodeTime=function(tt,tr){var ti=tt.raw().toString();if("gentime"===tr)var ta=0|ti.slice(0,4),ts=0|ti.slice(4,6),tu=0|ti.slice(6,8),tc=0|ti.slice(8,10),td=0|ti.slice(10,12),tp=0|ti.slice(12,14);else{if("utctime"!==tr)return tt.error("Decoding "+tr+" time is not supported yet");var ta=0|ti.slice(0,2),ts=0|ti.slice(2,4),tu=0|ti.slice(4,6),tc=0|ti.slice(6,8),td=0|ti.slice(8,10),tp=0|ti.slice(10,12);ta=ta<70?2e3+ta:1900+ta}return Date.UTC(ta,ts-1,tu,tc,td,tp,0)},tv.prototype._decodeNull=function(tt){return null},tv.prototype._decodeBool=function(tt){var tr=tt.readUInt8();return tt.isError(tr)?tr:0!==tr},tv.prototype._decodeInt=function(tt,tr){var ti=tt.raw(),ta=new tc(ti);return tr&&(ta=tr[ta.toString(10)]||ta),ta},tv.prototype._use=function(tt,tr){return"function"==typeof tt&&(tt=tt(tr)),tt._getDecoder("der").tree}},6701:function(tt,tr,ti){var ta=tr;ta.der=ti(2259),ta.pem=ti(8527)},8527:function(tt,tr,ti){var ta=ti(3782),ts=ti(4300).Buffer,tu=ti(2259);function tc(tt){tu.call(this,tt),this.enc="pem"}ta(tc,tu),tt.exports=tc,tc.prototype.decode=function(tt,tr){for(var ti=tt.toString().split(/[\r\n]+/g),ta=tr.label.toUpperCase(),tc=/^-----(BEGIN|END) ([^-]+)-----$/,td=-1,tp=-1,tv=0;tv<ti.length;tv++){var tg=ti[tv].match(tc);if(null!==tg&&tg[2]===ta){if(-1===td){if("BEGIN"!==tg[1])break;td=tv}else{if("END"!==tg[1])break;tp=tv;break}}}if(-1===td||-1===tp)throw Error("PEM section not found for: "+ta);var tb=ti.slice(td+1,tp).join("");tb.replace(/[^a-z0-9\+\/=]+/gi,"");var t_=new ts(tb,"base64");return tu.prototype.decode.call(this,t_,tr)}},7804:function(tt,tr,ti){var ta=ti(3782),ts=ti(4300).Buffer,tu=ti(7160),tc=tu.base,td=tu.constants.der;function tp(tt){this.enc="der",this.name=tt.name,this.entity=tt,this.tree=new tv,this.tree._init(tt.body)}function tv(tt){tc.Node.call(this,"der",tt)}function tg(tt){return tt<10?"0"+tt:tt}function tb(tt,tr,ti,ta){var ts;if("seqof"===tt?tt="seq":"setof"===tt&&(tt="set"),td.tagByName.hasOwnProperty(tt))ts=td.tagByName[tt];else{if("number"!=typeof tt||(0|tt)!==tt)return ta.error("Unknown tag: "+tt);ts=tt}return ts>=31?ta.error("Multi-octet tag encoding unsupported"):(tr||(ts|=32),ts|=td.tagClassByName[ti||"universal"]<<6)}tt.exports=tp,tp.prototype.encode=function(tt,tr){return this.tree._encode(tt,tr).join()},ta(tv,tc.Node),tv.prototype._encodeComposite=function(tt,tr,ti,ta){var tu=tb(tt,tr,ti,this.reporter);if(ta.length<128){var tc=new ts(2);return tc[0]=tu,tc[1]=ta.length,this._createEncoderBuffer([tc,ta])}for(var td=1,tp=ta.length;tp>=256;tp>>=8)td++;var tc=new ts(2+td);tc[0]=tu,tc[1]=128|td;for(var tp=1+td,tv=ta.length;tv>0;tp--,tv>>=8)tc[tp]=255&tv;return this._createEncoderBuffer([tc,ta])},tv.prototype._encodeStr=function(tt,tr){if("bitstr"===tr)return this._createEncoderBuffer([0|tt.unused,tt.data]);if("bmpstr"===tr){for(var ti=new ts(2*tt.length),ta=0;ta<tt.length;ta++)ti.writeUInt16BE(tt.charCodeAt(ta),2*ta);return this._createEncoderBuffer(ti)}return"numstr"===tr?this._isNumstr(tt)?this._createEncoderBuffer(tt):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===tr?this._isPrintstr(tt)?this._createEncoderBuffer(tt):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(tr)?this._createEncoderBuffer(tt):"objDesc"===tr?this._createEncoderBuffer(tt):this.reporter.error("Encoding of string type: "+tr+" unsupported")},tv.prototype._encodeObjid=function(tt,tr,ti){if("string"==typeof tt){if(!tr)return this.reporter.error("string objid given, but no values map found");if(!tr.hasOwnProperty(tt))return this.reporter.error("objid not found in values map");tt=tr[tt].split(/[\s\.]+/g);for(var ta=0;ta<tt.length;ta++)tt[ta]|=0}else if(Array.isArray(tt)){tt=tt.slice();for(var ta=0;ta<tt.length;ta++)tt[ta]|=0}if(!Array.isArray(tt))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(tt));if(!ti){if(tt[1]>=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,40*tt[0]+tt[1])}for(var tu=0,ta=0;ta<tt.length;ta++){var tc=tt[ta];for(tu++;tc>=128;tc>>=7)tu++}for(var td=new ts(tu),tp=td.length-1,ta=tt.length-1;ta>=0;ta--){var tc=tt[ta];for(td[tp--]=127&tc;(tc>>=7)>0;)td[tp--]=128|127&tc}return this._createEncoderBuffer(td)},tv.prototype._encodeTime=function(tt,tr){var ti,ta=new Date(tt);return"gentime"===tr?ti=[tg(ta.getFullYear()),tg(ta.getUTCMonth()+1),tg(ta.getUTCDate()),tg(ta.getUTCHours()),tg(ta.getUTCMinutes()),tg(ta.getUTCSeconds()),"Z"].join(""):"utctime"===tr?ti=[tg(ta.getFullYear()%100),tg(ta.getUTCMonth()+1),tg(ta.getUTCDate()),tg(ta.getUTCHours()),tg(ta.getUTCMinutes()),tg(ta.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+tr+" time is not supported yet"),this._encodeStr(ti,"octstr")},tv.prototype._encodeNull=function(){return this._createEncoderBuffer("")},tv.prototype._encodeInt=function(tt,tr){if("string"==typeof tt){if(!tr)return this.reporter.error("String int or enum given, but no values map");if(!tr.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=tr[tt]}if("number"!=typeof tt&&!ts.isBuffer(tt)){var ti=tt.toArray();!tt.sign&&128&ti[0]&&ti.unshift(0),tt=new ts(ti)}if(ts.isBuffer(tt)){var ta=tt.length;0===tt.length&&ta++;var tu=new ts(ta);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 ta=1,tc=tt;tc>=256;tc>>=8)ta++;for(var tu=Array(ta),tc=tu.length-1;tc>=0;tc--)tu[tc]=255&tt,tt>>=8;return 128&tu[0]&&tu.unshift(0),this._createEncoderBuffer(new ts(tu))},tv.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)},tv.prototype._use=function(tt,tr){return"function"==typeof tt&&(tt=tt(tr)),tt._getEncoder("der").tree},tv.prototype._skipDefault=function(tt,tr,ti){var ta,ts=this._baseState;if(null===ts.default)return!1;var tu=tt.join();if(void 0===ts.defaultBuffer&&(ts.defaultBuffer=this._encodeValue(ts.default,tr,ti).join()),tu.length!==ts.defaultBuffer.length)return!1;for(ta=0;ta<tu.length;ta++)if(tu[ta]!==ts.defaultBuffer[ta])return!1;return!0}},3418:function(tt,tr,ti){var ta=tr;ta.der=ti(7804),ta.pem=ti(1564)},1564:function(tt,tr,ti){var ta=ti(3782),ts=ti(7804);function tu(tt){ts.call(this,tt),this.enc="pem"}ta(tu,ts),tt.exports=tu,tu.prototype.encode=function(tt,tr){for(var ti=ts.prototype.encode.call(this,tt).toString("base64"),ta=["-----BEGIN "+tr.label+"-----"],tu=0;tu<ti.length;tu+=64)ta.push(ti.slice(tu,tu+64));return ta.push("-----END "+tr.label+"-----"),ta.join("\n")}},711:function(tt,tr,ti){!function(tt,tr){"use strict";function ta(tt,tr){if(!tt)throw Error(tr||"Assertion failed")}function ts(tt,tr){tt.super_=tr;var ti=function(){};ti.prototype=tr.prototype,tt.prototype=new ti,tt.prototype.constructor=tt}function tu(tt,tr,ti){if(tu.isBN(tt))return tt;this.negative=0,this.words=null,this.length=0,this.red=null,null!==tt&&(("le"===tr||"be"===tr)&&(ti=tr,tr=10),this._init(tt||0,tr||10,ti||"be"))}"object"==typeof tt?tt.exports=tu:tr.BN=tu,tu.BN=tu,tu.wordSize=26;try{tp=ti(4300).Buffer}catch(tt){}function tc(tt,tr,ti){for(var ta=0,ts=Math.min(tt.length,ti),tu=tr;tu<ts;tu++){var tc=tt.charCodeAt(tu)-48;ta<<=4,tc>=49&&tc<=54?ta|=tc-49+10:tc>=17&&tc<=22?ta|=tc-17+10:ta|=15&tc}return ta}function td(tt,tr,ti,ta){for(var ts=0,tu=Math.min(tt.length,ti),tc=tr;tc<tu;tc++){var td=tt.charCodeAt(tc)-48;ts*=ta,td>=49?ts+=td-49+10:td>=17?ts+=td-17+10:ts+=td}return ts}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,tr){return tt.cmp(tr)>0?tt:tr},tu.min=function(tt,tr){return 0>tt.cmp(tr)?tt:tr},tu.prototype._init=function(tt,tr,ti){if("number"==typeof tt)return this._initNumber(tt,tr,ti);if("object"==typeof tt)return this._initArray(tt,tr,ti);"hex"===tr&&(tr=16),ta(tr===(0|tr)&&tr>=2&&tr<=36);var ts=0;"-"===(tt=tt.toString().replace(/\s+/g,""))[0]&&ts++,16===tr?this._parseHex(tt,ts):this._parseBase(tt,tr,ts),"-"===tt[0]&&(this.negative=1),this.strip(),"le"===ti&&this._initArray(this.toArray(),tr,ti)},tu.prototype._initNumber=function(tt,tr,ti){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):(ta(tt<9007199254740992),this.words=[67108863&tt,tt/67108864&67108863,1],this.length=3),"le"===ti&&this._initArray(this.toArray(),tr,ti)},tu.prototype._initArray=function(tt,tr,ti){if(ta("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 ts,tu,tc=0;tc<this.length;tc++)this.words[tc]=0;var td=0;if("be"===ti)for(tc=tt.length-1,ts=0;tc>=0;tc-=3)tu=tt[tc]|tt[tc-1]<<8|tt[tc-2]<<16,this.words[ts]|=tu<<td&67108863,this.words[ts+1]=tu>>>26-td&67108863,(td+=24)>=26&&(td-=26,ts++);else if("le"===ti)for(tc=0,ts=0;tc<tt.length;tc+=3)tu=tt[tc]|tt[tc+1]<<8|tt[tc+2]<<16,this.words[ts]|=tu<<td&67108863,this.words[ts+1]=tu>>>26-td&67108863,(td+=24)>=26&&(td-=26,ts++);return this.strip()},tu.prototype._parseHex=function(tt,tr){this.length=Math.ceil((tt.length-tr)/6),this.words=Array(this.length);for(var ti,ta,ts=0;ts<this.length;ts++)this.words[ts]=0;var tu=0;for(ts=tt.length-6,ti=0;ts>=tr;ts-=6)ta=tc(tt,ts,ts+6),this.words[ti]|=ta<<tu&67108863,this.words[ti+1]|=ta>>>26-tu&4194303,(tu+=24)>=26&&(tu-=26,ti++);ts+6!==tr&&(ta=tc(tt,tr,ts+6),this.words[ti]|=ta<<tu&67108863,this.words[ti+1]|=ta>>>26-tu&4194303),this.strip()},tu.prototype._parseBase=function(tt,tr,ti){this.words=[0],this.length=1;for(var ta=0,ts=1;ts<=67108863;ts*=tr)ta++;ta--,ts=ts/tr|0;for(var tu=tt.length-ti,tc=tu%ta,tp=Math.min(tu,tu-tc)+ti,tv=0,tg=ti;tg<tp;tg+=ta)tv=td(tt,tg,tg+ta,tr),this.imuln(ts),this.words[0]+tv<67108864?this.words[0]+=tv:this._iaddn(tv);if(0!==tc){var tb=1;for(tv=td(tt,tg,tt.length,tr),tg=0;tg<tc;tg++)tb*=tr;this.imuln(tb),this.words[0]+tv<67108864?this.words[0]+=tv:this._iaddn(tv)}},tu.prototype.copy=function(tt){tt.words=Array(this.length);for(var tr=0;tr<this.length;tr++)tt.words[tr]=this.words[tr];tt.length=this.length,tt.negative=this.negative,tt.red=this.red},tu.prototype.clone=function(){var tt=new tu(null);return this.copy(tt),tt},tu.prototype._expand=function(tt){for(;this.length<tt;)this.words[this.length++]=0;return this},tu.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var tp,tv=["","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],tb=[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 t_(tt){for(var tr=Array(tt.bitLength()),ti=0;ti<tr.length;ti++){var ta=ti/26|0,ts=ti%26;tr[ti]=(tt.words[ta]&1<<ts)>>>ts}return tr}function tE(tt,tr,ti){ti.negative=tr.negative^tt.negative;var ta=tt.length+tr.length|0;ti.length=ta,ta=ta-1|0;var ts=0|tt.words[0],tu=0|tr.words[0],tc=ts*tu,td=67108863&tc,tp=tc/67108864|0;ti.words[0]=td;for(var tv=1;tv<ta;tv++){for(var tg=tp>>>26,tb=67108863&tp,t_=Math.min(tv,tr.length-1),tE=Math.max(0,tv-tt.length+1);tE<=t_;tE++){var tA=tv-tE|0;tg+=(tc=(ts=0|tt.words[tA])*(tu=0|tr.words[tE])+tb)/67108864|0,tb=67108863&tc}ti.words[tv]=0|tb,tp=0|tg}return 0!==tp?ti.words[tv]=0|tp:ti.length--,ti.strip()}tu.prototype.toString=function(tt,tr){if(tr=0|tr||1,16===(tt=tt||10)||"hex"===tt){ti="";for(var ti,ts=0,tu=0,tc=0;tc<this.length;tc++){var td=this.words[tc],tp=((td<<ts|tu)&16777215).toString(16);ti=0!=(tu=td>>>24-ts&16777215)||tc!==this.length-1?tv[6-tp.length]+tp+ti:tp+ti,(ts+=2)>=26&&(ts-=26,tc--)}for(0!==tu&&(ti=tu.toString(16)+ti);ti.length%tr!=0;)ti="0"+ti;return 0!==this.negative&&(ti="-"+ti),ti}if(tt===(0|tt)&&tt>=2&&tt<=36){var t_=tg[tt],tE=tb[tt];ti="";var tA=this.clone();for(tA.negative=0;!tA.isZero();){var tS=tA.modn(tE).toString(tt);ti=(tA=tA.idivn(tE)).isZero()?tS+ti:tv[t_-tS.length]+tS+ti}for(this.isZero()&&(ti="0"+ti);ti.length%tr!=0;)ti="0"+ti;return 0!==this.negative&&(ti="-"+ti),ti}ta(!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&&ta(!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,tr){return ta(void 0!==tp),this.toArrayLike(tp,tt,tr)},tu.prototype.toArray=function(tt,tr){return this.toArrayLike(Array,tt,tr)},tu.prototype.toArrayLike=function(tt,tr,ti){var ts,tu,tc=this.byteLength(),td=ti||Math.max(1,tc);ta(tc<=td,"byte array longer than desired length"),ta(td>0,"Requested array length <= 0"),this.strip();var tp="le"===tr,tv=new tt(td),tg=this.clone();if(tp){for(tu=0;!tg.isZero();tu++)ts=tg.andln(255),tg.iushrn(8),tv[tu]=ts;for(;tu<td;tu++)tv[tu]=0}else{for(tu=0;tu<td-tc;tu++)tv[tu]=0;for(tu=0;!tg.isZero();tu++)ts=tg.andln(255),tg.iushrn(8),tv[td-tu-1]=ts}return tv},Math.clz32?tu.prototype._countBits=function(tt){return 32-Math.clz32(tt)}:tu.prototype._countBits=function(tt){var tr=tt,ti=0;return tr>=4096&&(ti+=13,tr>>>=13),tr>=64&&(ti+=7,tr>>>=7),tr>=8&&(ti+=4,tr>>>=4),tr>=2&&(ti+=2,tr>>>=2),ti+tr},tu.prototype._zeroBits=function(tt){if(0===tt)return 26;var tr=tt,ti=0;return(8191&tr)==0&&(ti+=13,tr>>>=13),(127&tr)==0&&(ti+=7,tr>>>=7),(15&tr)==0&&(ti+=4,tr>>>=4),(3&tr)==0&&(ti+=2,tr>>>=2),(1&tr)==0&&ti++,ti},tu.prototype.bitLength=function(){var tt=this.words[this.length-1],tr=this._countBits(tt);return(this.length-1)*26+tr},tu.prototype.zeroBits=function(){if(this.isZero())return 0;for(var tt=0,tr=0;tr<this.length;tr++){var ti=this._zeroBits(this.words[tr]);if(tt+=ti,26!==ti)break}return tt},tu.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},tu.prototype.toTwos=function(tt){return 0!==this.negative?this.abs().inotn(tt).iaddn(1):this.clone()},tu.prototype.fromTwos=function(tt){return this.testn(tt-1)?this.notn(tt).iaddn(1).ineg():this.clone()},tu.prototype.isNeg=function(){return 0!==this.negative},tu.prototype.neg=function(){return this.clone().ineg()},tu.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},tu.prototype.iuor=function(tt){for(;this.length<tt.length;)this.words[this.length++]=0;for(var tr=0;tr<tt.length;tr++)this.words[tr]=this.words[tr]|tt.words[tr];return this.strip()},tu.prototype.ior=function(tt){return ta((this.negative|tt.negative)==0),this.iuor(tt)},tu.prototype.or=function(tt){return this.length>tt.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 tr;tr=this.length>tt.length?tt:this;for(var ti=0;ti<tr.length;ti++)this.words[ti]=this.words[ti]&tt.words[ti];return this.length=tr.length,this.strip()},tu.prototype.iand=function(tt){return ta((this.negative|tt.negative)==0),this.iuand(tt)},tu.prototype.and=function(tt){return this.length>tt.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?(tr=this,ti=tt):(tr=tt,ti=this);for(var tr,ti,ta=0;ta<ti.length;ta++)this.words[ta]=tr.words[ta]^ti.words[ta];if(this!==tr)for(;ta<tr.length;ta++)this.words[ta]=tr.words[ta];return this.length=tr.length,this.strip()},tu.prototype.ixor=function(tt){return ta((this.negative|tt.negative)==0),this.iuxor(tt)},tu.prototype.xor=function(tt){return this.length>tt.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){ta("number"==typeof tt&&tt>=0);var tr=0|Math.ceil(tt/26),ti=tt%26;this._expand(tr),ti>0&&tr--;for(var ts=0;ts<tr;ts++)this.words[ts]=67108863&~this.words[ts];return ti>0&&(this.words[ts]=~this.words[ts]&67108863>>26-ti),this.strip()},tu.prototype.notn=function(tt){return this.clone().inotn(tt)},tu.prototype.setn=function(tt,tr){ta("number"==typeof tt&&tt>=0);var ti=tt/26|0,ts=tt%26;return this._expand(ti+1),tr?this.words[ti]=this.words[ti]|1<<ts:this.words[ti]=this.words[ti]&~(1<<ts),this.strip()},tu.prototype.iadd=function(tt){if(0!==this.negative&&0===tt.negative)return this.negative=0,tr=this.isub(tt),this.negative^=1,this._normSign();if(0===this.negative&&0!==tt.negative)return tt.negative=0,tr=this.isub(tt),tt.negative=1,tr._normSign();this.length>tt.length?(ti=this,ta=tt):(ti=tt,ta=this);for(var tr,ti,ta,ts=0,tu=0;tu<ta.length;tu++)tr=(0|ti.words[tu])+(0|ta.words[tu])+ts,this.words[tu]=67108863&tr,ts=tr>>>26;for(;0!==ts&&tu<ti.length;tu++)tr=(0|ti.words[tu])+ts,this.words[tu]=67108863&tr,ts=tr>>>26;if(this.length=ti.length,0!==ts)this.words[this.length]=ts,this.length++;else if(ti!==this)for(;tu<ti.length;tu++)this.words[tu]=ti.words[tu];return this},tu.prototype.add=function(tt){var tr;return 0!==tt.negative&&0===this.negative?(tt.negative=0,tr=this.sub(tt),tt.negative^=1,tr):0===tt.negative&&0!==this.negative?(this.negative=0,tr=tt.sub(this),this.negative=1,tr):this.length>tt.length?this.clone().iadd(tt):tt.clone().iadd(this)},tu.prototype.isub=function(tt){if(0!==tt.negative){tt.negative=0;var tr,ti,ta=this.iadd(tt);return tt.negative=1,ta._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(tt),this.negative=1,this._normSign();var ts=this.cmp(tt);if(0===ts)return this.negative=0,this.length=1,this.words[0]=0,this;ts>0?(tr=this,ti=tt):(tr=tt,ti=this);for(var tu=0,tc=0;tc<ti.length;tc++)tu=(ta=(0|tr.words[tc])-(0|ti.words[tc])+tu)>>26,this.words[tc]=67108863&ta;for(;0!==tu&&tc<tr.length;tc++)tu=(ta=(0|tr.words[tc])+tu)>>26,this.words[tc]=67108863&ta;if(0===tu&&tc<tr.length&&tr!==this)for(;tc<tr.length;tc++)this.words[tc]=tr.words[tc];return this.length=Math.max(this.length,tc),tr!==this&&(this.negative=1),this.strip()},tu.prototype.sub=function(tt){return this.clone().isub(tt)};var tA=function(tt,tr,ti){var ta,ts,tu,tc=tt.words,td=tr.words,tp=ti.words,tv=0,tg=0|tc[0],tb=8191&tg,t_=tg>>>13,tE=0|tc[1],tA=8191&tE,tS=tE>>>13,tT=0|tc[2],tM=8191&tT,tR=tT>>>13,tI=0|tc[3],tk=8191&tI,tP=tI>>>13,tC=0|tc[4],tO=8191&tC,tN=tC>>>13,tB=0|tc[5],tL=8191&tB,tU=tB>>>13,tD=0|tc[6],tj=8191&tD,tF=tD>>>13,tG=0|tc[7],tH=8191&tG,tV=tG>>>13,tz=0|tc[8],tq=8191&tz,tW=tz>>>13,tY=0|tc[9],tX=8191&tY,tK=tY>>>13,tZ=0|td[0],tQ=8191&tZ,tJ=tZ>>>13,t$=0|td[1],t0=8191&t$,t1=t$>>>13,t2=0|td[2],t3=8191&t2,t6=t2>>>13,t4=0|td[3],t8=8191&t4,t5=t4>>>13,t7=0|td[4],t9=8191&t7,et=t7>>>13,er=0|td[5],en=8191&er,ei=er>>>13,ea=0|td[6],eo=8191&ea,es=ea>>>13,eu=0|td[7],eh=8191&eu,ec=eu>>>13,ef=0|td[8],ed=8191&ef,ep=ef>>>13,ev=0|td[9],em=8191&ev,eg=ev>>>13;ti.negative=tt.negative^tr.negative,ti.length=19;var eb=(tv+(ta=Math.imul(tb,tQ))|0)+((8191&(ts=(ts=Math.imul(tb,tJ))+Math.imul(t_,tQ)|0))<<13)|0;tv=((tu=Math.imul(t_,tJ))+(ts>>>13)|0)+(eb>>>26)|0,eb&=67108863,ta=Math.imul(tA,tQ),ts=(ts=Math.imul(tA,tJ))+Math.imul(tS,tQ)|0,tu=Math.imul(tS,tJ);var ey=(tv+(ta=ta+Math.imul(tb,t0)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t1)|0)+Math.imul(t_,t0)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t1)|0)+(ts>>>13)|0)+(ey>>>26)|0,ey&=67108863,ta=Math.imul(tM,tQ),ts=(ts=Math.imul(tM,tJ))+Math.imul(tR,tQ)|0,tu=Math.imul(tR,tJ),ta=ta+Math.imul(tA,t0)|0,ts=(ts=ts+Math.imul(tA,t1)|0)+Math.imul(tS,t0)|0,tu=tu+Math.imul(tS,t1)|0;var e_=(tv+(ta=ta+Math.imul(tb,t3)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t6)|0)+Math.imul(t_,t3)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t6)|0)+(ts>>>13)|0)+(e_>>>26)|0,e_&=67108863,ta=Math.imul(tk,tQ),ts=(ts=Math.imul(tk,tJ))+Math.imul(tP,tQ)|0,tu=Math.imul(tP,tJ),ta=ta+Math.imul(tM,t0)|0,ts=(ts=ts+Math.imul(tM,t1)|0)+Math.imul(tR,t0)|0,tu=tu+Math.imul(tR,t1)|0,ta=ta+Math.imul(tA,t3)|0,ts=(ts=ts+Math.imul(tA,t6)|0)+Math.imul(tS,t3)|0,tu=tu+Math.imul(tS,t6)|0;var ew=(tv+(ta=ta+Math.imul(tb,t8)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t5)|0)+Math.imul(t_,t8)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t5)|0)+(ts>>>13)|0)+(ew>>>26)|0,ew&=67108863,ta=Math.imul(tO,tQ),ts=(ts=Math.imul(tO,tJ))+Math.imul(tN,tQ)|0,tu=Math.imul(tN,tJ),ta=ta+Math.imul(tk,t0)|0,ts=(ts=ts+Math.imul(tk,t1)|0)+Math.imul(tP,t0)|0,tu=tu+Math.imul(tP,t1)|0,ta=ta+Math.imul(tM,t3)|0,ts=(ts=ts+Math.imul(tM,t6)|0)+Math.imul(tR,t3)|0,tu=tu+Math.imul(tR,t6)|0,ta=ta+Math.imul(tA,t8)|0,ts=(ts=ts+Math.imul(tA,t5)|0)+Math.imul(tS,t8)|0,tu=tu+Math.imul(tS,t5)|0;var eE=(tv+(ta=ta+Math.imul(tb,t9)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,et)|0)+Math.imul(t_,t9)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,et)|0)+(ts>>>13)|0)+(eE>>>26)|0,eE&=67108863,ta=Math.imul(tL,tQ),ts=(ts=Math.imul(tL,tJ))+Math.imul(tU,tQ)|0,tu=Math.imul(tU,tJ),ta=ta+Math.imul(tO,t0)|0,ts=(ts=ts+Math.imul(tO,t1)|0)+Math.imul(tN,t0)|0,tu=tu+Math.imul(tN,t1)|0,ta=ta+Math.imul(tk,t3)|0,ts=(ts=ts+Math.imul(tk,t6)|0)+Math.imul(tP,t3)|0,tu=tu+Math.imul(tP,t6)|0,ta=ta+Math.imul(tM,t8)|0,ts=(ts=ts+Math.imul(tM,t5)|0)+Math.imul(tR,t8)|0,tu=tu+Math.imul(tR,t5)|0,ta=ta+Math.imul(tA,t9)|0,ts=(ts=ts+Math.imul(tA,et)|0)+Math.imul(tS,t9)|0,tu=tu+Math.imul(tS,et)|0;var eA=(tv+(ta=ta+Math.imul(tb,en)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ei)|0)+Math.imul(t_,en)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ei)|0)+(ts>>>13)|0)+(eA>>>26)|0,eA&=67108863,ta=Math.imul(tj,tQ),ts=(ts=Math.imul(tj,tJ))+Math.imul(tF,tQ)|0,tu=Math.imul(tF,tJ),ta=ta+Math.imul(tL,t0)|0,ts=(ts=ts+Math.imul(tL,t1)|0)+Math.imul(tU,t0)|0,tu=tu+Math.imul(tU,t1)|0,ta=ta+Math.imul(tO,t3)|0,ts=(ts=ts+Math.imul(tO,t6)|0)+Math.imul(tN,t3)|0,tu=tu+Math.imul(tN,t6)|0,ta=ta+Math.imul(tk,t8)|0,ts=(ts=ts+Math.imul(tk,t5)|0)+Math.imul(tP,t8)|0,tu=tu+Math.imul(tP,t5)|0,ta=ta+Math.imul(tM,t9)|0,ts=(ts=ts+Math.imul(tM,et)|0)+Math.imul(tR,t9)|0,tu=tu+Math.imul(tR,et)|0,ta=ta+Math.imul(tA,en)|0,ts=(ts=ts+Math.imul(tA,ei)|0)+Math.imul(tS,en)|0,tu=tu+Math.imul(tS,ei)|0;var ex=(tv+(ta=ta+Math.imul(tb,eo)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,es)|0)+Math.imul(t_,eo)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,es)|0)+(ts>>>13)|0)+(ex>>>26)|0,ex&=67108863,ta=Math.imul(tH,tQ),ts=(ts=Math.imul(tH,tJ))+Math.imul(tV,tQ)|0,tu=Math.imul(tV,tJ),ta=ta+Math.imul(tj,t0)|0,ts=(ts=ts+Math.imul(tj,t1)|0)+Math.imul(tF,t0)|0,tu=tu+Math.imul(tF,t1)|0,ta=ta+Math.imul(tL,t3)|0,ts=(ts=ts+Math.imul(tL,t6)|0)+Math.imul(tU,t3)|0,tu=tu+Math.imul(tU,t6)|0,ta=ta+Math.imul(tO,t8)|0,ts=(ts=ts+Math.imul(tO,t5)|0)+Math.imul(tN,t8)|0,tu=tu+Math.imul(tN,t5)|0,ta=ta+Math.imul(tk,t9)|0,ts=(ts=ts+Math.imul(tk,et)|0)+Math.imul(tP,t9)|0,tu=tu+Math.imul(tP,et)|0,ta=ta+Math.imul(tM,en)|0,ts=(ts=ts+Math.imul(tM,ei)|0)+Math.imul(tR,en)|0,tu=tu+Math.imul(tR,ei)|0,ta=ta+Math.imul(tA,eo)|0,ts=(ts=ts+Math.imul(tA,es)|0)+Math.imul(tS,eo)|0,tu=tu+Math.imul(tS,es)|0;var eS=(tv+(ta=ta+Math.imul(tb,eh)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ec)|0)+Math.imul(t_,eh)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ec)|0)+(ts>>>13)|0)+(eS>>>26)|0,eS&=67108863,ta=Math.imul(tq,tQ),ts=(ts=Math.imul(tq,tJ))+Math.imul(tW,tQ)|0,tu=Math.imul(tW,tJ),ta=ta+Math.imul(tH,t0)|0,ts=(ts=ts+Math.imul(tH,t1)|0)+Math.imul(tV,t0)|0,tu=tu+Math.imul(tV,t1)|0,ta=ta+Math.imul(tj,t3)|0,ts=(ts=ts+Math.imul(tj,t6)|0)+Math.imul(tF,t3)|0,tu=tu+Math.imul(tF,t6)|0,ta=ta+Math.imul(tL,t8)|0,ts=(ts=ts+Math.imul(tL,t5)|0)+Math.imul(tU,t8)|0,tu=tu+Math.imul(tU,t5)|0,ta=ta+Math.imul(tO,t9)|0,ts=(ts=ts+Math.imul(tO,et)|0)+Math.imul(tN,t9)|0,tu=tu+Math.imul(tN,et)|0,ta=ta+Math.imul(tk,en)|0,ts=(ts=ts+Math.imul(tk,ei)|0)+Math.imul(tP,en)|0,tu=tu+Math.imul(tP,ei)|0,ta=ta+Math.imul(tM,eo)|0,ts=(ts=ts+Math.imul(tM,es)|0)+Math.imul(tR,eo)|0,tu=tu+Math.imul(tR,es)|0,ta=ta+Math.imul(tA,eh)|0,ts=(ts=ts+Math.imul(tA,ec)|0)+Math.imul(tS,eh)|0,tu=tu+Math.imul(tS,ec)|0;var eT=(tv+(ta=ta+Math.imul(tb,ed)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ep)|0)+Math.imul(t_,ed)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ep)|0)+(ts>>>13)|0)+(eT>>>26)|0,eT&=67108863,ta=Math.imul(tX,tQ),ts=(ts=Math.imul(tX,tJ))+Math.imul(tK,tQ)|0,tu=Math.imul(tK,tJ),ta=ta+Math.imul(tq,t0)|0,ts=(ts=ts+Math.imul(tq,t1)|0)+Math.imul(tW,t0)|0,tu=tu+Math.imul(tW,t1)|0,ta=ta+Math.imul(tH,t3)|0,ts=(ts=ts+Math.imul(tH,t6)|0)+Math.imul(tV,t3)|0,tu=tu+Math.imul(tV,t6)|0,ta=ta+Math.imul(tj,t8)|0,ts=(ts=ts+Math.imul(tj,t5)|0)+Math.imul(tF,t8)|0,tu=tu+Math.imul(tF,t5)|0,ta=ta+Math.imul(tL,t9)|0,ts=(ts=ts+Math.imul(tL,et)|0)+Math.imul(tU,t9)|0,tu=tu+Math.imul(tU,et)|0,ta=ta+Math.imul(tO,en)|0,ts=(ts=ts+Math.imul(tO,ei)|0)+Math.imul(tN,en)|0,tu=tu+Math.imul(tN,ei)|0,ta=ta+Math.imul(tk,eo)|0,ts=(ts=ts+Math.imul(tk,es)|0)+Math.imul(tP,eo)|0,tu=tu+Math.imul(tP,es)|0,ta=ta+Math.imul(tM,eh)|0,ts=(ts=ts+Math.imul(tM,ec)|0)+Math.imul(tR,eh)|0,tu=tu+Math.imul(tR,ec)|0,ta=ta+Math.imul(tA,ed)|0,ts=(ts=ts+Math.imul(tA,ep)|0)+Math.imul(tS,ed)|0,tu=tu+Math.imul(tS,ep)|0;var eM=(tv+(ta=ta+Math.imul(tb,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,eg)|0)+Math.imul(t_,em)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,eg)|0)+(ts>>>13)|0)+(eM>>>26)|0,eM&=67108863,ta=Math.imul(tX,t0),ts=(ts=Math.imul(tX,t1))+Math.imul(tK,t0)|0,tu=Math.imul(tK,t1),ta=ta+Math.imul(tq,t3)|0,ts=(ts=ts+Math.imul(tq,t6)|0)+Math.imul(tW,t3)|0,tu=tu+Math.imul(tW,t6)|0,ta=ta+Math.imul(tH,t8)|0,ts=(ts=ts+Math.imul(tH,t5)|0)+Math.imul(tV,t8)|0,tu=tu+Math.imul(tV,t5)|0,ta=ta+Math.imul(tj,t9)|0,ts=(ts=ts+Math.imul(tj,et)|0)+Math.imul(tF,t9)|0,tu=tu+Math.imul(tF,et)|0,ta=ta+Math.imul(tL,en)|0,ts=(ts=ts+Math.imul(tL,ei)|0)+Math.imul(tU,en)|0,tu=tu+Math.imul(tU,ei)|0,ta=ta+Math.imul(tO,eo)|0,ts=(ts=ts+Math.imul(tO,es)|0)+Math.imul(tN,eo)|0,tu=tu+Math.imul(tN,es)|0,ta=ta+Math.imul(tk,eh)|0,ts=(ts=ts+Math.imul(tk,ec)|0)+Math.imul(tP,eh)|0,tu=tu+Math.imul(tP,ec)|0,ta=ta+Math.imul(tM,ed)|0,ts=(ts=ts+Math.imul(tM,ep)|0)+Math.imul(tR,ed)|0,tu=tu+Math.imul(tR,ep)|0;var eR=(tv+(ta=ta+Math.imul(tA,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tA,eg)|0)+Math.imul(tS,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tS,eg)|0)+(ts>>>13)|0)+(eR>>>26)|0,eR&=67108863,ta=Math.imul(tX,t3),ts=(ts=Math.imul(tX,t6))+Math.imul(tK,t3)|0,tu=Math.imul(tK,t6),ta=ta+Math.imul(tq,t8)|0,ts=(ts=ts+Math.imul(tq,t5)|0)+Math.imul(tW,t8)|0,tu=tu+Math.imul(tW,t5)|0,ta=ta+Math.imul(tH,t9)|0,ts=(ts=ts+Math.imul(tH,et)|0)+Math.imul(tV,t9)|0,tu=tu+Math.imul(tV,et)|0,ta=ta+Math.imul(tj,en)|0,ts=(ts=ts+Math.imul(tj,ei)|0)+Math.imul(tF,en)|0,tu=tu+Math.imul(tF,ei)|0,ta=ta+Math.imul(tL,eo)|0,ts=(ts=ts+Math.imul(tL,es)|0)+Math.imul(tU,eo)|0,tu=tu+Math.imul(tU,es)|0,ta=ta+Math.imul(tO,eh)|0,ts=(ts=ts+Math.imul(tO,ec)|0)+Math.imul(tN,eh)|0,tu=tu+Math.imul(tN,ec)|0,ta=ta+Math.imul(tk,ed)|0,ts=(ts=ts+Math.imul(tk,ep)|0)+Math.imul(tP,ed)|0,tu=tu+Math.imul(tP,ep)|0;var eI=(tv+(ta=ta+Math.imul(tM,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tM,eg)|0)+Math.imul(tR,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tR,eg)|0)+(ts>>>13)|0)+(eI>>>26)|0,eI&=67108863,ta=Math.imul(tX,t8),ts=(ts=Math.imul(tX,t5))+Math.imul(tK,t8)|0,tu=Math.imul(tK,t5),ta=ta+Math.imul(tq,t9)|0,ts=(ts=ts+Math.imul(tq,et)|0)+Math.imul(tW,t9)|0,tu=tu+Math.imul(tW,et)|0,ta=ta+Math.imul(tH,en)|0,ts=(ts=ts+Math.imul(tH,ei)|0)+Math.imul(tV,en)|0,tu=tu+Math.imul(tV,ei)|0,ta=ta+Math.imul(tj,eo)|0,ts=(ts=ts+Math.imul(tj,es)|0)+Math.imul(tF,eo)|0,tu=tu+Math.imul(tF,es)|0,ta=ta+Math.imul(tL,eh)|0,ts=(ts=ts+Math.imul(tL,ec)|0)+Math.imul(tU,eh)|0,tu=tu+Math.imul(tU,ec)|0,ta=ta+Math.imul(tO,ed)|0,ts=(ts=ts+Math.imul(tO,ep)|0)+Math.imul(tN,ed)|0,tu=tu+Math.imul(tN,ep)|0;var ek=(tv+(ta=ta+Math.imul(tk,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tk,eg)|0)+Math.imul(tP,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tP,eg)|0)+(ts>>>13)|0)+(ek>>>26)|0,ek&=67108863,ta=Math.imul(tX,t9),ts=(ts=Math.imul(tX,et))+Math.imul(tK,t9)|0,tu=Math.imul(tK,et),ta=ta+Math.imul(tq,en)|0,ts=(ts=ts+Math.imul(tq,ei)|0)+Math.imul(tW,en)|0,tu=tu+Math.imul(tW,ei)|0,ta=ta+Math.imul(tH,eo)|0,ts=(ts=ts+Math.imul(tH,es)|0)+Math.imul(tV,eo)|0,tu=tu+Math.imul(tV,es)|0,ta=ta+Math.imul(tj,eh)|0,ts=(ts=ts+Math.imul(tj,ec)|0)+Math.imul(tF,eh)|0,tu=tu+Math.imul(tF,ec)|0,ta=ta+Math.imul(tL,ed)|0,ts=(ts=ts+Math.imul(tL,ep)|0)+Math.imul(tU,ed)|0,tu=tu+Math.imul(tU,ep)|0;var eP=(tv+(ta=ta+Math.imul(tO,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tO,eg)|0)+Math.imul(tN,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tN,eg)|0)+(ts>>>13)|0)+(eP>>>26)|0,eP&=67108863,ta=Math.imul(tX,en),ts=(ts=Math.imul(tX,ei))+Math.imul(tK,en)|0,tu=Math.imul(tK,ei),ta=ta+Math.imul(tq,eo)|0,ts=(ts=ts+Math.imul(tq,es)|0)+Math.imul(tW,eo)|0,tu=tu+Math.imul(tW,es)|0,ta=ta+Math.imul(tH,eh)|0,ts=(ts=ts+Math.imul(tH,ec)|0)+Math.imul(tV,eh)|0,tu=tu+Math.imul(tV,ec)|0,ta=ta+Math.imul(tj,ed)|0,ts=(ts=ts+Math.imul(tj,ep)|0)+Math.imul(tF,ed)|0,tu=tu+Math.imul(tF,ep)|0;var eC=(tv+(ta=ta+Math.imul(tL,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tL,eg)|0)+Math.imul(tU,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tU,eg)|0)+(ts>>>13)|0)+(eC>>>26)|0,eC&=67108863,ta=Math.imul(tX,eo),ts=(ts=Math.imul(tX,es))+Math.imul(tK,eo)|0,tu=Math.imul(tK,es),ta=ta+Math.imul(tq,eh)|0,ts=(ts=ts+Math.imul(tq,ec)|0)+Math.imul(tW,eh)|0,tu=tu+Math.imul(tW,ec)|0,ta=ta+Math.imul(tH,ed)|0,ts=(ts=ts+Math.imul(tH,ep)|0)+Math.imul(tV,ed)|0,tu=tu+Math.imul(tV,ep)|0;var eO=(tv+(ta=ta+Math.imul(tj,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tj,eg)|0)+Math.imul(tF,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tF,eg)|0)+(ts>>>13)|0)+(eO>>>26)|0,eO&=67108863,ta=Math.imul(tX,eh),ts=(ts=Math.imul(tX,ec))+Math.imul(tK,eh)|0,tu=Math.imul(tK,ec),ta=ta+Math.imul(tq,ed)|0,ts=(ts=ts+Math.imul(tq,ep)|0)+Math.imul(tW,ed)|0,tu=tu+Math.imul(tW,ep)|0;var eN=(tv+(ta=ta+Math.imul(tH,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tH,eg)|0)+Math.imul(tV,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tV,eg)|0)+(ts>>>13)|0)+(eN>>>26)|0,eN&=67108863,ta=Math.imul(tX,ed),ts=(ts=Math.imul(tX,ep))+Math.imul(tK,ed)|0,tu=Math.imul(tK,ep);var eB=(tv+(ta=ta+Math.imul(tq,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tq,eg)|0)+Math.imul(tW,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tW,eg)|0)+(ts>>>13)|0)+(eB>>>26)|0,eB&=67108863;var eL=(tv+(ta=Math.imul(tX,em))|0)+((8191&(ts=(ts=Math.imul(tX,eg))+Math.imul(tK,em)|0))<<13)|0;return tv=((tu=Math.imul(tK,eg))+(ts>>>13)|0)+(eL>>>26)|0,eL&=67108863,tp[0]=eb,tp[1]=ey,tp[2]=e_,tp[3]=ew,tp[4]=eE,tp[5]=eA,tp[6]=ex,tp[7]=eS,tp[8]=eT,tp[9]=eM,tp[10]=eR,tp[11]=eI,tp[12]=ek,tp[13]=eP,tp[14]=eC,tp[15]=eO,tp[16]=eN,tp[17]=eB,tp[18]=eL,0!==tv&&(tp[19]=tv,ti.length++),ti};function tS(tt,tr,ti){ti.negative=tr.negative^tt.negative,ti.length=tt.length+tr.length;for(var ta=0,ts=0,tu=0;tu<ti.length-1;tu++){var tc=ts;ts=0;for(var td=67108863&ta,tp=Math.min(tu,tr.length-1),tv=Math.max(0,tu-tt.length+1);tv<=tp;tv++){var tg=tu-tv,tb=(0|tt.words[tg])*(0|tr.words[tv]),t_=67108863&tb;tc=tc+(tb/67108864|0)|0,td=67108863&(t_=t_+td|0),ts+=(tc=tc+(t_>>>26)|0)>>>26,tc&=67108863}ti.words[tu]=td,ta=tc,tc=ts}return 0!==ta?ti.words[tu]=ta:ti.length--,ti.strip()}function tT(tt,tr,ti){return new tM().mulp(tt,tr,ti)}function tM(tt,tr){this.x=tt,this.y=tr}Math.imul||(tA=tE),tu.prototype.mulTo=function(tt,tr){var ti=this.length+tt.length;return 10===this.length&&10===tt.length?tA(this,tt,tr):ti<63?tE(this,tt,tr):ti<1024?tS(this,tt,tr):tT(this,tt,tr)},tM.prototype.makeRBT=function(tt){for(var tr=Array(tt),ti=tu.prototype._countBits(tt)-1,ta=0;ta<tt;ta++)tr[ta]=this.revBin(ta,ti,tt);return tr},tM.prototype.revBin=function(tt,tr,ti){if(0===tt||tt===ti-1)return tt;for(var ta=0,ts=0;ts<tr;ts++)ta|=(1&tt)<<tr-ts-1,tt>>=1;return ta},tM.prototype.permute=function(tt,tr,ti,ta,ts,tu){for(var tc=0;tc<tu;tc++)ta[tc]=tr[tt[tc]],ts[tc]=ti[tt[tc]]},tM.prototype.transform=function(tt,tr,ti,ta,ts,tu){this.permute(tu,tt,tr,ti,ta,ts);for(var tc=1;tc<ts;tc<<=1)for(var td=tc<<1,tp=Math.cos(2*Math.PI/td),tv=Math.sin(2*Math.PI/td),tg=0;tg<ts;tg+=td)for(var tb=tp,t_=tv,tE=0;tE<tc;tE++){var tA=ti[tg+tE],tS=ta[tg+tE],tT=ti[tg+tE+tc],tM=ta[tg+tE+tc],tR=tb*tT-t_*tM;tM=tb*tM+t_*tT,tT=tR,ti[tg+tE]=tA+tT,ta[tg+tE]=tS+tM,ti[tg+tE+tc]=tA-tT,ta[tg+tE+tc]=tS-tM,tE!==td&&(tR=tp*tb-tv*t_,t_=tp*t_+tv*tb,tb=tR)}},tM.prototype.guessLen13b=function(tt,tr){var ti=1|Math.max(tr,tt),ta=1&ti,ts=0;for(ti=ti/2|0;ti;ti>>>=1)ts++;return 1<<ts+1+ta},tM.prototype.conjugate=function(tt,tr,ti){if(!(ti<=1))for(var ta=0;ta<ti/2;ta++){var ts=tt[ta];tt[ta]=tt[ti-ta-1],tt[ti-ta-1]=ts,ts=tr[ta],tr[ta]=-tr[ti-ta-1],tr[ti-ta-1]=-ts}},tM.prototype.normalize13b=function(tt,tr){for(var ti=0,ta=0;ta<tr/2;ta++){var ts=8192*Math.round(tt[2*ta+1]/tr)+Math.round(tt[2*ta]/tr)+ti;tt[ta]=67108863&ts,ti=ts<67108864?0:ts/67108864|0}return tt},tM.prototype.convert13b=function(tt,tr,ti,ts){for(var tu=0,tc=0;tc<tr;tc++)tu+=0|tt[tc],ti[2*tc]=8191&tu,tu>>>=13,ti[2*tc+1]=8191&tu,tu>>>=13;for(tc=2*tr;tc<ts;++tc)ti[tc]=0;ta(0===tu),ta((-8192&tu)==0)},tM.prototype.stub=function(tt){for(var tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=0;return tr},tM.prototype.mulp=function(tt,tr,ti){var ta=2*this.guessLen13b(tt.length,tr.length),ts=this.makeRBT(ta),tu=this.stub(ta),tc=Array(ta),td=Array(ta),tp=Array(ta),tv=Array(ta),tg=Array(ta),tb=Array(ta),t_=ti.words;t_.length=ta,this.convert13b(tt.words,tt.length,tc,ta),this.convert13b(tr.words,tr.length,tv,ta),this.transform(tc,tu,td,tp,ta,ts),this.transform(tv,tu,tg,tb,ta,ts);for(var tE=0;tE<ta;tE++){var tA=td[tE]*tg[tE]-tp[tE]*tb[tE];tp[tE]=td[tE]*tb[tE]+tp[tE]*tg[tE],td[tE]=tA}return this.conjugate(td,tp,ta),this.transform(td,tp,t_,tu,ta,ts),this.conjugate(t_,tu,ta),this.normalize13b(t_,ta),ti.negative=tt.negative^tr.negative,ti.length=tt.length+tr.length,ti.strip()},tu.prototype.mul=function(tt){var tr=new tu(null);return tr.words=Array(this.length+tt.length),this.mulTo(tt,tr)},tu.prototype.mulf=function(tt){var tr=new tu(null);return tr.words=Array(this.length+tt.length),tT(this,tt,tr)},tu.prototype.imul=function(tt){return this.clone().mulTo(tt,this)},tu.prototype.imuln=function(tt){ta("number"==typeof tt),ta(tt<67108864);for(var tr=0,ti=0;ti<this.length;ti++){var ts=(0|this.words[ti])*tt,tu=(67108863&ts)+(67108863&tr);tr>>=26,tr+=(ts/67108864|0)+(tu>>>26),this.words[ti]=67108863&tu}return 0!==tr&&(this.words[ti]=tr,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 tr=t_(tt);if(0===tr.length)return new tu(1);for(var ti=this,ta=0;ta<tr.length&&0===tr[ta];ta++,ti=ti.sqr());if(++ta<tr.length)for(var ts=ti.sqr();ta<tr.length;ta++,ts=ts.sqr())0!==tr[ta]&&(ti=ti.mul(ts));return ti},tu.prototype.iushln=function(tt){ta("number"==typeof tt&&tt>=0);var tr,ti=tt%26,ts=(tt-ti)/26,tu=67108863>>>26-ti<<26-ti;if(0!==ti){var tc=0;for(tr=0;tr<this.length;tr++){var td=this.words[tr]&tu,tp=(0|this.words[tr])-td<<ti;this.words[tr]=tp|tc,tc=td>>>26-ti}tc&&(this.words[tr]=tc,this.length++)}if(0!==ts){for(tr=this.length-1;tr>=0;tr--)this.words[tr+ts]=this.words[tr];for(tr=0;tr<ts;tr++)this.words[tr]=0;this.length+=ts}return this.strip()},tu.prototype.ishln=function(tt){return ta(0===this.negative),this.iushln(tt)},tu.prototype.iushrn=function(tt,tr,ti){ta("number"==typeof tt&&tt>=0),ts=tr?(tr-tr%26)/26:0;var ts,tu=tt%26,tc=Math.min((tt-tu)/26,this.length),td=67108863^67108863>>>tu<<tu,tp=ti;if(ts-=tc,ts=Math.max(0,ts),tp){for(var tv=0;tv<tc;tv++)tp.words[tv]=this.words[tv];tp.length=tc}if(0===tc);else if(this.length>tc)for(this.length-=tc,tv=0;tv<this.length;tv++)this.words[tv]=this.words[tv+tc];else this.words[0]=0,this.length=1;var tg=0;for(tv=this.length-1;tv>=0&&(0!==tg||tv>=ts);tv--){var tb=0|this.words[tv];this.words[tv]=tg<<26-tu|tb>>>tu,tg=tb&td}return tp&&0!==tg&&(tp.words[tp.length++]=tg),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},tu.prototype.ishrn=function(tt,tr,ti){return ta(0===this.negative),this.iushrn(tt,tr,ti)},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){ta("number"==typeof tt&&tt>=0);var tr=tt%26,ti=(tt-tr)/26,ts=1<<tr;return!(this.length<=ti)&&!!(this.words[ti]&ts)},tu.prototype.imaskn=function(tt){ta("number"==typeof tt&&tt>=0);var tr=tt%26,ti=(tt-tr)/26;if(ta(0===this.negative,"imaskn works only with positive numbers"),this.length<=ti)return this;if(0!==tr&&ti++,this.length=Math.min(ti,this.length),0!==tr){var ts=67108863^67108863>>>tr<<tr;this.words[this.length-1]&=ts}return this.strip()},tu.prototype.maskn=function(tt){return this.clone().imaskn(tt)},tu.prototype.iaddn=function(tt){return(ta("number"==typeof tt),ta(tt<67108864),tt<0)?this.isubn(-tt):0!==this.negative?1===this.length&&(0|this.words[0])<tt?(this.words[0]=tt-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(tt),this.negative=1,this):this._iaddn(tt)},tu.prototype._iaddn=function(tt){this.words[0]+=tt;for(var tr=0;tr<this.length&&this.words[tr]>=67108864;tr++)this.words[tr]-=67108864,tr===this.length-1?this.words[tr+1]=1:this.words[tr+1]++;return this.length=Math.max(this.length,tr+1),this},tu.prototype.isubn=function(tt){if(ta("number"==typeof tt),ta(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 tr=0;tr<this.length&&this.words[tr]<0;tr++)this.words[tr]+=67108864,this.words[tr+1]-=1;return this.strip()},tu.prototype.addn=function(tt){return this.clone().iaddn(tt)},tu.prototype.subn=function(tt){return this.clone().isubn(tt)},tu.prototype.iabs=function(){return this.negative=0,this},tu.prototype.abs=function(){return this.clone().iabs()},tu.prototype._ishlnsubmul=function(tt,tr,ti){var ts,tu,tc=tt.length+ti;this._expand(tc);var td=0;for(ts=0;ts<tt.length;ts++){tu=(0|this.words[ts+ti])+td;var tp=(0|tt.words[ts])*tr;tu-=67108863&tp,td=(tu>>26)-(tp/67108864|0),this.words[ts+ti]=67108863&tu}for(;ts<this.length-ti;ts++)td=(tu=(0|this.words[ts+ti])+td)>>26,this.words[ts+ti]=67108863&tu;if(0===td)return this.strip();for(ta(-1===td),td=0,ts=0;ts<this.length;ts++)td=(tu=-(0|this.words[ts])+td)>>26,this.words[ts]=67108863&tu;return this.negative=1,this.strip()},tu.prototype._wordDiv=function(tt,tr){var ti,ta=this.length-tt.length,ts=this.clone(),tc=tt,td=0|tc.words[tc.length-1];0!=(ta=26-this._countBits(td))&&(tc=tc.ushln(ta),ts.iushln(ta),td=0|tc.words[tc.length-1]);var tp=ts.length-tc.length;if("mod"!==tr){(ti=new tu(null)).length=tp+1,ti.words=Array(ti.length);for(var tv=0;tv<ti.length;tv++)ti.words[tv]=0}var tg=ts.clone()._ishlnsubmul(tc,1,tp);0===tg.negative&&(ts=tg,ti&&(ti.words[tp]=1));for(var tb=tp-1;tb>=0;tb--){var t_=(0|ts.words[tc.length+tb])*67108864+(0|ts.words[tc.length+tb-1]);for(t_=Math.min(t_/td|0,67108863),ts._ishlnsubmul(tc,t_,tb);0!==ts.negative;)t_--,ts.negative=0,ts._ishlnsubmul(tc,1,tb),ts.isZero()||(ts.negative^=1);ti&&(ti.words[tb]=t_)}return ti&&ti.strip(),ts.strip(),"div"!==tr&&0!==ta&&ts.iushrn(ta),{div:ti||null,mod:ts}},tu.prototype.divmod=function(tt,tr,ti){var ts,tc,td;return(ta(!tt.isZero()),this.isZero())?{div:new tu(0),mod:new tu(0)}:0!==this.negative&&0===tt.negative?(td=this.neg().divmod(tt,tr),"mod"!==tr&&(ts=td.div.neg()),"div"!==tr&&(tc=td.mod.neg(),ti&&0!==tc.negative&&tc.iadd(tt)),{div:ts,mod:tc}):0===this.negative&&0!==tt.negative?(td=this.divmod(tt.neg(),tr),"mod"!==tr&&(ts=td.div.neg()),{div:ts,mod:td.mod}):(this.negative&tt.negative)!=0?(td=this.neg().divmod(tt.neg(),tr),"div"!==tr&&(tc=td.mod.neg(),ti&&0!==tc.negative&&tc.isub(tt)),{div:td.div,mod:tc}):tt.length>this.length||0>this.cmp(tt)?{div:new tu(0),mod:this}:1===tt.length?"div"===tr?{div:this.divn(tt.words[0]),mod:null}:"mod"===tr?{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,tr)},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 tr=this.divmod(tt);if(tr.mod.isZero())return tr.div;var ti=0!==tr.div.negative?tr.mod.isub(tt):tr.mod,ta=tt.ushrn(1),ts=tt.andln(1),tu=ti.cmp(ta);return tu<0||1===ts&&0===tu?tr.div:0!==tr.div.negative?tr.div.isubn(1):tr.div.iaddn(1)},tu.prototype.modn=function(tt){ta(tt<=67108863);for(var tr=67108864%tt,ti=0,ts=this.length-1;ts>=0;ts--)ti=(tr*ti+(0|this.words[ts]))%tt;return ti},tu.prototype.idivn=function(tt){ta(tt<=67108863);for(var tr=0,ti=this.length-1;ti>=0;ti--){var ts=(0|this.words[ti])+67108864*tr;this.words[ti]=ts/tt|0,tr=ts%tt}return this.strip()},tu.prototype.divn=function(tt){return this.clone().idivn(tt)},tu.prototype.egcd=function(tt){ta(0===tt.negative),ta(!tt.isZero());var tr=this,ti=tt.clone();tr=0!==tr.negative?tr.umod(tt):tr.clone();for(var ts=new tu(1),tc=new tu(0),td=new tu(0),tp=new tu(1),tv=0;tr.isEven()&&ti.isEven();)tr.iushrn(1),ti.iushrn(1),++tv;for(var tg=ti.clone(),tb=tr.clone();!tr.isZero();){for(var t_=0,tE=1;(tr.words[0]&tE)==0&&t_<26;++t_,tE<<=1);if(t_>0)for(tr.iushrn(t_);t_-- >0;)(ts.isOdd()||tc.isOdd())&&(ts.iadd(tg),tc.isub(tb)),ts.iushrn(1),tc.iushrn(1);for(var tA=0,tS=1;(ti.words[0]&tS)==0&&tA<26;++tA,tS<<=1);if(tA>0)for(ti.iushrn(tA);tA-- >0;)(td.isOdd()||tp.isOdd())&&(td.iadd(tg),tp.isub(tb)),td.iushrn(1),tp.iushrn(1);tr.cmp(ti)>=0?(tr.isub(ti),ts.isub(td),tc.isub(tp)):(ti.isub(tr),td.isub(ts),tp.isub(tc))}return{a:td,b:tp,gcd:ti.iushln(tv)}},tu.prototype._invmp=function(tt){ta(0===tt.negative),ta(!tt.isZero());var tr,ti=this,ts=tt.clone();ti=0!==ti.negative?ti.umod(tt):ti.clone();for(var tc=new tu(1),td=new tu(0),tp=ts.clone();ti.cmpn(1)>0&&ts.cmpn(1)>0;){for(var tv=0,tg=1;(ti.words[0]&tg)==0&&tv<26;++tv,tg<<=1);if(tv>0)for(ti.iushrn(tv);tv-- >0;)tc.isOdd()&&tc.iadd(tp),tc.iushrn(1);for(var tb=0,t_=1;(ts.words[0]&t_)==0&&tb<26;++tb,t_<<=1);if(tb>0)for(ts.iushrn(tb);tb-- >0;)td.isOdd()&&td.iadd(tp),td.iushrn(1);ti.cmp(ts)>=0?(ti.isub(ts),tc.isub(td)):(ts.isub(ti),td.isub(tc))}return 0>(tr=0===ti.cmpn(1)?tc:td).cmpn(0)&&tr.iadd(tt),tr},tu.prototype.gcd=function(tt){if(this.isZero())return tt.abs();if(tt.isZero())return this.abs();var tr=this.clone(),ti=tt.clone();tr.negative=0,ti.negative=0;for(var ta=0;tr.isEven()&&ti.isEven();ta++)tr.iushrn(1),ti.iushrn(1);for(;;){for(;tr.isEven();)tr.iushrn(1);for(;ti.isEven();)ti.iushrn(1);var ts=tr.cmp(ti);if(ts<0){var tu=tr;tr=ti,ti=tu}else if(0===ts||0===ti.cmpn(1))break;tr.isub(ti)}return ti.iushln(ta)},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){ta("number"==typeof tt);var tr=tt%26,ti=(tt-tr)/26,ts=1<<tr;if(this.length<=ti)return this._expand(ti+1),this.words[ti]|=ts,this;for(var tu=ts,tc=ti;0!==tu&&tc<this.length;tc++){var td=0|this.words[tc];td+=tu,tu=td>>>26,td&=67108863,this.words[tc]=td}return 0!==tu&&(this.words[tc]=tu,this.length++),this},tu.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},tu.prototype.cmpn=function(tt){var tr,ti=tt<0;if(0!==this.negative&&!ti)return -1;if(0===this.negative&&ti)return 1;if(this.strip(),this.length>1)tr=1;else{ti&&(tt=-tt),ta(tt<=67108863,"Number is too big");var ts=0|this.words[0];tr=ts===tt?0:ts<tt?-1:1}return 0!==this.negative?0|-tr:tr},tu.prototype.cmp=function(tt){if(0!==this.negative&&0===tt.negative)return -1;if(0===this.negative&&0!==tt.negative)return 1;var tr=this.ucmp(tt);return 0!==this.negative?0|-tr:tr},tu.prototype.ucmp=function(tt){if(this.length>tt.length)return 1;if(this.length<tt.length)return -1;for(var tr=0,ti=this.length-1;ti>=0;ti--){var ta=0|this.words[ti],ts=0|tt.words[ti];if(ta!==ts){ta<ts?tr=-1:ta>ts&&(tr=1);break}}return tr},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 tN(tt)},tu.prototype.toRed=function(tt){return ta(!this.red,"Already a number in reduction context"),ta(0===this.negative,"red works only with positives"),tt.convertTo(this)._forceRed(tt)},tu.prototype.fromRed=function(){return ta(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 ta(!this.red,"Already a number in reduction context"),this._forceRed(tt)},tu.prototype.redAdd=function(tt){return ta(this.red,"redAdd works only with red numbers"),this.red.add(this,tt)},tu.prototype.redIAdd=function(tt){return ta(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,tt)},tu.prototype.redSub=function(tt){return ta(this.red,"redSub works only with red numbers"),this.red.sub(this,tt)},tu.prototype.redISub=function(tt){return ta(this.red,"redISub works only with red numbers"),this.red.isub(this,tt)},tu.prototype.redShl=function(tt){return ta(this.red,"redShl works only with red numbers"),this.red.shl(this,tt)},tu.prototype.redMul=function(tt){return ta(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.mul(this,tt)},tu.prototype.redIMul=function(tt){return ta(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.imul(this,tt)},tu.prototype.redSqr=function(){return ta(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tu.prototype.redISqr=function(){return ta(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tu.prototype.redSqrt=function(){return ta(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tu.prototype.redInvm=function(){return ta(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tu.prototype.redNeg=function(){return ta(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tu.prototype.redPow=function(tt){return ta(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 tI(tt,tr){this.name=tt,this.p=new tu(tr,16),this.n=this.p.bitLength(),this.k=new tu(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function tk(){tI.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function tP(){tI.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function tC(){tI.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function tO(){tI.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function tN(tt){if("string"==typeof tt){var tr=tu._prime(tt);this.m=tr.p,this.prime=tr}else ta(tt.gtn(1),"modulus must be greater than 1"),this.m=tt,this.prime=null}function tB(tt){tN.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)}tI.prototype._tmp=function(){var tt=new tu(null);return tt.words=Array(Math.ceil(this.n/13)),tt},tI.prototype.ireduce=function(tt){var tr,ti=tt;do this.split(ti,this.tmp),tr=(ti=(ti=this.imulK(ti)).iadd(this.tmp)).bitLength();while(tr>this.n);var ta=tr<this.n?-1:ti.ucmp(this.p);return 0===ta?(ti.words[0]=0,ti.length=1):ta>0?ti.isub(this.p):void 0!==ti.strip?ti.strip():ti._strip(),ti},tI.prototype.split=function(tt,tr){tt.iushrn(this.n,0,tr)},tI.prototype.imulK=function(tt){return tt.imul(this.k)},ts(tk,tI),tk.prototype.split=function(tt,tr){for(var ti=4194303,ta=Math.min(tt.length,9),ts=0;ts<ta;ts++)tr.words[ts]=tt.words[ts];if(tr.length=ta,tt.length<=9){tt.words[0]=0,tt.length=1;return}var tu=tt.words[9];for(ts=10,tr.words[tr.length++]=tu&ti;ts<tt.length;ts++){var tc=0|tt.words[ts];tt.words[ts-10]=(tc&ti)<<4|tu>>>22,tu=tc}tu>>>=22,tt.words[ts-10]=tu,0===tu&&tt.length>10?tt.length-=10:tt.length-=9},tk.prototype.imulK=function(tt){tt.words[tt.length]=0,tt.words[tt.length+1]=0,tt.length+=2;for(var tr=0,ti=0;ti<tt.length;ti++){var ta=0|tt.words[ti];tr+=977*ta,tt.words[ti]=67108863&tr,tr=64*ta+(tr/67108864|0)}return 0===tt.words[tt.length-1]&&(tt.length--,0===tt.words[tt.length-1]&&tt.length--),tt},ts(tP,tI),ts(tC,tI),ts(tO,tI),tO.prototype.imulK=function(tt){for(var tr=0,ti=0;ti<tt.length;ti++){var ta=(0|tt.words[ti])*19+tr,ts=67108863&ta;ta>>>=26,tt.words[ti]=ts,tr=ta}return 0!==tr&&(tt.words[tt.length++]=tr),tt},tu._prime=function(tt){var tr;if(tR[tt])return tR[tt];if("k256"===tt)tr=new tk;else if("p224"===tt)tr=new tP;else if("p192"===tt)tr=new tC;else if("p25519"===tt)tr=new tO;else throw Error("Unknown prime "+tt);return tR[tt]=tr,tr},tN.prototype._verify1=function(tt){ta(0===tt.negative,"red works only with positives"),ta(tt.red,"red works only with red numbers")},tN.prototype._verify2=function(tt,tr){ta((tt.negative|tr.negative)==0,"red works only with positives"),ta(tt.red&&tt.red===tr.red,"red works only with red numbers")},tN.prototype.imod=function(tt){return this.prime?this.prime.ireduce(tt)._forceRed(this):tt.umod(this.m)._forceRed(this)},tN.prototype.neg=function(tt){return tt.isZero()?tt.clone():this.m.sub(tt)._forceRed(this)},tN.prototype.add=function(tt,tr){this._verify2(tt,tr);var ti=tt.add(tr);return ti.cmp(this.m)>=0&&ti.isub(this.m),ti._forceRed(this)},tN.prototype.iadd=function(tt,tr){this._verify2(tt,tr);var ti=tt.iadd(tr);return ti.cmp(this.m)>=0&&ti.isub(this.m),ti},tN.prototype.sub=function(tt,tr){this._verify2(tt,tr);var ti=tt.sub(tr);return 0>ti.cmpn(0)&&ti.iadd(this.m),ti._forceRed(this)},tN.prototype.isub=function(tt,tr){this._verify2(tt,tr);var ti=tt.isub(tr);return 0>ti.cmpn(0)&&ti.iadd(this.m),ti},tN.prototype.shl=function(tt,tr){return this._verify1(tt),this.imod(tt.ushln(tr))},tN.prototype.imul=function(tt,tr){return this._verify2(tt,tr),this.imod(tt.imul(tr))},tN.prototype.mul=function(tt,tr){return this._verify2(tt,tr),this.imod(tt.mul(tr))},tN.prototype.isqr=function(tt){return this.imul(tt,tt.clone())},tN.prototype.sqr=function(tt){return this.mul(tt,tt)},tN.prototype.sqrt=function(tt){if(tt.isZero())return tt.clone();var tr=this.m.andln(3);if(ta(tr%2==1),3===tr){var ti=this.m.add(new tu(1)).iushrn(2);return this.pow(tt,ti)}for(var ts=this.m.subn(1),tc=0;!ts.isZero()&&0===ts.andln(1);)tc++,ts.iushrn(1);ta(!ts.isZero());var td=new tu(1).toRed(this),tp=td.redNeg(),tv=this.m.subn(1).iushrn(1),tg=this.m.bitLength();for(tg=new tu(2*tg*tg).toRed(this);0!==this.pow(tg,tv).cmp(tp);)tg.redIAdd(tp);for(var tb=this.pow(tg,ts),t_=this.pow(tt,ts.addn(1).iushrn(1)),tE=this.pow(tt,ts),tA=tc;0!==tE.cmp(td);){for(var tS=tE,tT=0;0!==tS.cmp(td);tT++)tS=tS.redSqr();ta(tT<tA);var tM=this.pow(tb,new tu(1).iushln(tA-tT-1));t_=t_.redMul(tM),tb=tM.redSqr(),tE=tE.redMul(tb),tA=tT}return t_},tN.prototype.invm=function(tt){var tr=tt._invmp(this.m);return 0!==tr.negative?(tr.negative=0,this.imod(tr).redNeg()):this.imod(tr)},tN.prototype.pow=function(tt,tr){if(tr.isZero())return new tu(1).toRed(this);if(0===tr.cmpn(1))return tt.clone();var ti=4,ta=Array(16);ta[0]=new tu(1).toRed(this),ta[1]=tt;for(var ts=2;ts<ta.length;ts++)ta[ts]=this.mul(ta[ts-1],tt);var tc=ta[0],td=0,tp=0,tv=tr.bitLength()%26;for(0===tv&&(tv=26),ts=tr.length-1;ts>=0;ts--){for(var tg=tr.words[ts],tb=tv-1;tb>=0;tb--){var t_=tg>>tb&1;if(tc!==ta[0]&&(tc=this.sqr(tc)),0===t_&&0===td){tp=0;continue}td<<=1,td|=t_,(++tp===ti||0===ts&&0===tb)&&(tc=this.mul(tc,ta[td]),tp=0,td=0)}tv=26}return tc},tN.prototype.convertTo=function(tt){var tr=tt.umod(this.m);return tr===tt?tr.clone():tr},tN.prototype.convertFrom=function(tt){var tr=tt.clone();return tr.red=null,tr},tu.mont=function(tt){return new tB(tt)},ts(tB,tN),tB.prototype.convertTo=function(tt){return this.imod(tt.ushln(this.shift))},tB.prototype.convertFrom=function(tt){var tr=this.imod(tt.mul(this.rinv));return tr.red=null,tr},tB.prototype.imul=function(tt,tr){if(tt.isZero()||tr.isZero())return tt.words[0]=0,tt.length=1,tt;var ti=tt.imul(tr),ta=ti.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ts=ti.isub(ta).iushrn(this.shift),tu=ts;return ts.cmp(this.m)>=0?tu=ts.isub(this.m):0>ts.cmpn(0)&&(tu=ts.iadd(this.m)),tu._forceRed(this)},tB.prototype.mul=function(tt,tr){if(tt.isZero()||tr.isZero())return new tu(0)._forceRed(this);var ti=tt.mul(tr),ta=ti.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ts=ti.isub(ta).iushrn(this.shift),tc=ts;return ts.cmp(this.m)>=0?tc=ts.isub(this.m):0>ts.cmpn(0)&&(tc=ts.iadd(this.m)),tc._forceRed(this)},tB.prototype.invm=function(tt){return this.imod(tt._invmp(this.m).mul(this.r2))._forceRed(this)}}(tt=ti.nmd(tt),this)},1670:function(tt,tr,ti){!function(tt,tr){"use strict";function ta(tt,tr){if(!tt)throw Error(tr||"Assertion failed")}function ts(tt,tr){tt.super_=tr;var ti=function(){};ti.prototype=tr.prototype,tt.prototype=new ti,tt.prototype.constructor=tt}function tu(tt,tr,ti){if(tu.isBN(tt))return tt;this.negative=0,this.words=null,this.length=0,this.red=null,null!==tt&&(("le"===tr||"be"===tr)&&(ti=tr,tr=10),this._init(tt||0,tr||10,ti||"be"))}"object"==typeof tt?tt.exports=tu:tr.BN=tu,tu.BN=tu,tu.wordSize=26;try{tg=ti(4300).Buffer}catch(tt){}function tc(tt,tr,ti){for(var ts=0,tu=Math.min(tt.length,ti),tc=0,td=tr;td<tu;td++){var tp,tv=tt.charCodeAt(td)-48;ts<<=4,ts|=tp=tv>=49&&tv<=54?tv-49+10:tv>=17&&tv<=22?tv-17+10:tv,tc|=tp}return ta(!(240&tc),"Invalid character in "+tt),ts}function td(tt,tr,ti,ts){for(var tu=0,tc=0,td=Math.min(tt.length,ti),tp=tr;tp<td;tp++){var tv=tt.charCodeAt(tp)-48;tu*=ts,tc=tv>=49?tv-49+10:tv>=17?tv-17+10:tv,ta(tv>=0&&tc<ts,"Invalid character"),tu+=tc}return tu}function tp(tt,tr){tt.words=tr.words,tt.length=tr.length,tt.negative=tr.negative,tt.red=tr.red}function tv(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}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,tr){return tt.cmp(tr)>0?tt:tr},tu.min=function(tt,tr){return 0>tt.cmp(tr)?tt:tr},tu.prototype._init=function(tt,tr,ti){if("number"==typeof tt)return this._initNumber(tt,tr,ti);if("object"==typeof tt)return this._initArray(tt,tr,ti);"hex"===tr&&(tr=16),ta(tr===(0|tr)&&tr>=2&&tr<=36);var ts=0;"-"===(tt=tt.toString().replace(/\s+/g,""))[0]&&ts++,16===tr?this._parseHex(tt,ts):this._parseBase(tt,tr,ts),"-"===tt[0]&&(this.negative=1),this._strip(),"le"===ti&&this._initArray(this.toArray(),tr,ti)},tu.prototype._initNumber=function(tt,tr,ti){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):(ta(tt<9007199254740992),this.words=[67108863&tt,tt/67108864&67108863,1],this.length=3),"le"===ti&&this._initArray(this.toArray(),tr,ti)},tu.prototype._initArray=function(tt,tr,ti){if(ta("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 ts,tu,tc=0;tc<this.length;tc++)this.words[tc]=0;var td=0;if("be"===ti)for(tc=tt.length-1,ts=0;tc>=0;tc-=3)tu=tt[tc]|tt[tc-1]<<8|tt[tc-2]<<16,this.words[ts]|=tu<<td&67108863,this.words[ts+1]=tu>>>26-td&67108863,(td+=24)>=26&&(td-=26,ts++);else if("le"===ti)for(tc=0,ts=0;tc<tt.length;tc+=3)tu=tt[tc]|tt[tc+1]<<8|tt[tc+2]<<16,this.words[ts]|=tu<<td&67108863,this.words[ts+1]=tu>>>26-td&67108863,(td+=24)>=26&&(td-=26,ts++);return this._strip()},tu.prototype._parseHex=function(tt,tr){this.length=Math.ceil((tt.length-tr)/6),this.words=Array(this.length);for(var ti,ta,ts=0;ts<this.length;ts++)this.words[ts]=0;var tu=0;for(ts=tt.length-6,ti=0;ts>=tr;ts-=6)ta=tc(tt,ts,ts+6),this.words[ti]|=ta<<tu&67108863,this.words[ti+1]|=ta>>>26-tu&4194303,(tu+=24)>=26&&(tu-=26,ti++);ts+6!==tr&&(ta=tc(tt,tr,ts+6),this.words[ti]|=ta<<tu&67108863,this.words[ti+1]|=ta>>>26-tu&4194303),this._strip()},tu.prototype._parseBase=function(tt,tr,ti){this.words=[0],this.length=1;for(var ta=0,ts=1;ts<=67108863;ts*=tr)ta++;ta--,ts=ts/tr|0;for(var tu=tt.length-ti,tc=tu%ta,tp=Math.min(tu,tu-tc)+ti,tv=0,tg=ti;tg<tp;tg+=ta)tv=td(tt,tg,tg+ta,tr),this.imuln(ts),this.words[0]+tv<67108864?this.words[0]+=tv:this._iaddn(tv);if(0!==tc){var tb=1;for(tv=td(tt,tg,tt.length,tr),tg=0;tg<tc;tg++)tb*=tr;this.imuln(tb),this.words[0]+tv<67108864?this.words[0]+=tv:this._iaddn(tv)}},tu.prototype.copy=function(tt){tt.words=Array(this.length);for(var tr=0;tr<this.length;tr++)tt.words[tr]=this.words[tr];tt.length=this.length,tt.negative=this.negative,tt.red=this.red},tu.prototype._move=function(tt){tp(tt,this)},tu.prototype.clone=function(){var tt=new tu(null);return this.copy(tt),tt},tu.prototype._expand=function(tt){for(;this.length<tt;)this.words[this.length++]=0;return this},tu.prototype._strip=function(){for(;this.length>1&&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")]=tv:tu.prototype.inspect=tv;var tg,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"],t_=[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],tE=[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,tr){if(tr=0|tr||1,16===(tt=tt||10)||"hex"===tt){ti="";for(var ti,ts=0,tu=0,tc=0;tc<this.length;tc++){var td=this.words[tc],tp=((td<<ts|tu)&16777215).toString(16);ti=0!=(tu=td>>>24-ts&16777215)||tc!==this.length-1?tb[6-tp.length]+tp+ti:tp+ti,(ts+=2)>=26&&(ts-=26,tc--)}for(0!==tu&&(ti=tu.toString(16)+ti);ti.length%tr!=0;)ti="0"+ti;return 0!==this.negative&&(ti="-"+ti),ti}if(tt===(0|tt)&&tt>=2&&tt<=36){var tv=t_[tt],tg=tE[tt];ti="";var tA=this.clone();for(tA.negative=0;!tA.isZero();){var tS=tA.modrn(tg).toString(tt);ti=(tA=tA.idivn(tg)).isZero()?tS+ti:tb[tv-tS.length]+tS+ti}for(this.isZero()&&(ti="0"+ti);ti.length%tr!=0;)ti="0"+ti;return 0!==this.negative&&(ti="-"+ti),ti}ta(!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&&ta(!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,tr){return this.toArrayLike(tg,tt,tr)}),tu.prototype.toArray=function(tt,tr){return this.toArrayLike(Array,tt,tr)};var tA=function(tt,tr){return tt.allocUnsafe?tt.allocUnsafe(tr):new tt(tr)};function tS(tt){for(var tr=Array(tt.bitLength()),ti=0;ti<tr.length;ti++){var ta=ti/26|0,ts=ti%26;tr[ti]=tt.words[ta]>>>ts&1}return tr}function tT(tt,tr,ti){ti.negative=tr.negative^tt.negative;var ta=tt.length+tr.length|0;ti.length=ta,ta=ta-1|0;var ts=0|tt.words[0],tu=0|tr.words[0],tc=ts*tu,td=67108863&tc,tp=tc/67108864|0;ti.words[0]=td;for(var tv=1;tv<ta;tv++){for(var tg=tp>>>26,tb=67108863&tp,t_=Math.min(tv,tr.length-1),tE=Math.max(0,tv-tt.length+1);tE<=t_;tE++){var tA=tv-tE|0;tg+=(tc=(ts=0|tt.words[tA])*(tu=0|tr.words[tE])+tb)/67108864|0,tb=67108863&tc}ti.words[tv]=0|tb,tp=0|tg}return 0!==tp?ti.words[tv]=0|tp:ti.length--,ti._strip()}tu.prototype.toArrayLike=function(tt,tr,ti){this._strip();var ts=this.byteLength(),tu=ti||Math.max(1,ts);ta(ts<=tu,"byte array longer than desired length"),ta(tu>0,"Requested array length <= 0");var tc=tA(tt,tu);return this["_toArrayLike"+("le"===tr?"LE":"BE")](tc,ts),tc},tu.prototype._toArrayLikeLE=function(tt,tr){for(var ti=0,ta=0,ts=0,tu=0;ts<this.length;ts++){var tc=this.words[ts]<<tu|ta;tt[ti++]=255&tc,ti<tt.length&&(tt[ti++]=tc>>8&255),ti<tt.length&&(tt[ti++]=tc>>16&255),6===tu?(ti<tt.length&&(tt[ti++]=tc>>24&255),ta=0,tu=0):(ta=tc>>>24,tu+=2)}if(ti<tt.length)for(tt[ti++]=ta;ti<tt.length;)tt[ti++]=0},tu.prototype._toArrayLikeBE=function(tt,tr){for(var ti=tt.length-1,ta=0,ts=0,tu=0;ts<this.length;ts++){var tc=this.words[ts]<<tu|ta;tt[ti--]=255&tc,ti>=0&&(tt[ti--]=tc>>8&255),ti>=0&&(tt[ti--]=tc>>16&255),6===tu?(ti>=0&&(tt[ti--]=tc>>24&255),ta=0,tu=0):(ta=tc>>>24,tu+=2)}if(ti>=0)for(tt[ti--]=ta;ti>=0;)tt[ti--]=0},Math.clz32?tu.prototype._countBits=function(tt){return 32-Math.clz32(tt)}:tu.prototype._countBits=function(tt){var tr=tt,ti=0;return tr>=4096&&(ti+=13,tr>>>=13),tr>=64&&(ti+=7,tr>>>=7),tr>=8&&(ti+=4,tr>>>=4),tr>=2&&(ti+=2,tr>>>=2),ti+tr},tu.prototype._zeroBits=function(tt){if(0===tt)return 26;var tr=tt,ti=0;return(8191&tr)==0&&(ti+=13,tr>>>=13),(127&tr)==0&&(ti+=7,tr>>>=7),(15&tr)==0&&(ti+=4,tr>>>=4),(3&tr)==0&&(ti+=2,tr>>>=2),(1&tr)==0&&ti++,ti},tu.prototype.bitLength=function(){var tt=this.words[this.length-1],tr=this._countBits(tt);return(this.length-1)*26+tr},tu.prototype.zeroBits=function(){if(this.isZero())return 0;for(var tt=0,tr=0;tr<this.length;tr++){var ti=this._zeroBits(this.words[tr]);if(tt+=ti,26!==ti)break}return tt},tu.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},tu.prototype.toTwos=function(tt){return 0!==this.negative?this.abs().inotn(tt).iaddn(1):this.clone()},tu.prototype.fromTwos=function(tt){return this.testn(tt-1)?this.notn(tt).iaddn(1).ineg():this.clone()},tu.prototype.isNeg=function(){return 0!==this.negative},tu.prototype.neg=function(){return this.clone().ineg()},tu.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},tu.prototype.iuor=function(tt){for(;this.length<tt.length;)this.words[this.length++]=0;for(var tr=0;tr<tt.length;tr++)this.words[tr]=this.words[tr]|tt.words[tr];return this._strip()},tu.prototype.ior=function(tt){return ta((this.negative|tt.negative)==0),this.iuor(tt)},tu.prototype.or=function(tt){return this.length>tt.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 tr;tr=this.length>tt.length?tt:this;for(var ti=0;ti<tr.length;ti++)this.words[ti]=this.words[ti]&tt.words[ti];return this.length=tr.length,this._strip()},tu.prototype.iand=function(tt){return ta((this.negative|tt.negative)==0),this.iuand(tt)},tu.prototype.and=function(tt){return this.length>tt.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?(tr=this,ti=tt):(tr=tt,ti=this);for(var tr,ti,ta=0;ta<ti.length;ta++)this.words[ta]=tr.words[ta]^ti.words[ta];if(this!==tr)for(;ta<tr.length;ta++)this.words[ta]=tr.words[ta];return this.length=tr.length,this._strip()},tu.prototype.ixor=function(tt){return ta((this.negative|tt.negative)==0),this.iuxor(tt)},tu.prototype.xor=function(tt){return this.length>tt.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){ta("number"==typeof tt&&tt>=0);var tr=0|Math.ceil(tt/26),ti=tt%26;this._expand(tr),ti>0&&tr--;for(var ts=0;ts<tr;ts++)this.words[ts]=67108863&~this.words[ts];return ti>0&&(this.words[ts]=~this.words[ts]&67108863>>26-ti),this._strip()},tu.prototype.notn=function(tt){return this.clone().inotn(tt)},tu.prototype.setn=function(tt,tr){ta("number"==typeof tt&&tt>=0);var ti=tt/26|0,ts=tt%26;return this._expand(ti+1),tr?this.words[ti]=this.words[ti]|1<<ts:this.words[ti]=this.words[ti]&~(1<<ts),this._strip()},tu.prototype.iadd=function(tt){if(0!==this.negative&&0===tt.negative)return this.negative=0,tr=this.isub(tt),this.negative^=1,this._normSign();if(0===this.negative&&0!==tt.negative)return tt.negative=0,tr=this.isub(tt),tt.negative=1,tr._normSign();this.length>tt.length?(ti=this,ta=tt):(ti=tt,ta=this);for(var tr,ti,ta,ts=0,tu=0;tu<ta.length;tu++)tr=(0|ti.words[tu])+(0|ta.words[tu])+ts,this.words[tu]=67108863&tr,ts=tr>>>26;for(;0!==ts&&tu<ti.length;tu++)tr=(0|ti.words[tu])+ts,this.words[tu]=67108863&tr,ts=tr>>>26;if(this.length=ti.length,0!==ts)this.words[this.length]=ts,this.length++;else if(ti!==this)for(;tu<ti.length;tu++)this.words[tu]=ti.words[tu];return this},tu.prototype.add=function(tt){var tr;return 0!==tt.negative&&0===this.negative?(tt.negative=0,tr=this.sub(tt),tt.negative^=1,tr):0===tt.negative&&0!==this.negative?(this.negative=0,tr=tt.sub(this),this.negative=1,tr):this.length>tt.length?this.clone().iadd(tt):tt.clone().iadd(this)},tu.prototype.isub=function(tt){if(0!==tt.negative){tt.negative=0;var tr,ti,ta=this.iadd(tt);return tt.negative=1,ta._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(tt),this.negative=1,this._normSign();var ts=this.cmp(tt);if(0===ts)return this.negative=0,this.length=1,this.words[0]=0,this;ts>0?(tr=this,ti=tt):(tr=tt,ti=this);for(var tu=0,tc=0;tc<ti.length;tc++)tu=(ta=(0|tr.words[tc])-(0|ti.words[tc])+tu)>>26,this.words[tc]=67108863&ta;for(;0!==tu&&tc<tr.length;tc++)tu=(ta=(0|tr.words[tc])+tu)>>26,this.words[tc]=67108863&ta;if(0===tu&&tc<tr.length&&tr!==this)for(;tc<tr.length;tc++)this.words[tc]=tr.words[tc];return this.length=Math.max(this.length,tc),tr!==this&&(this.negative=1),this._strip()},tu.prototype.sub=function(tt){return this.clone().isub(tt)};var tM=function(tt,tr,ti){var ta,ts,tu,tc=tt.words,td=tr.words,tp=ti.words,tv=0,tg=0|tc[0],tb=8191&tg,t_=tg>>>13,tE=0|tc[1],tA=8191&tE,tS=tE>>>13,tT=0|tc[2],tM=8191&tT,tR=tT>>>13,tI=0|tc[3],tk=8191&tI,tP=tI>>>13,tC=0|tc[4],tO=8191&tC,tN=tC>>>13,tB=0|tc[5],tL=8191&tB,tU=tB>>>13,tD=0|tc[6],tj=8191&tD,tF=tD>>>13,tG=0|tc[7],tH=8191&tG,tV=tG>>>13,tz=0|tc[8],tq=8191&tz,tW=tz>>>13,tY=0|tc[9],tX=8191&tY,tK=tY>>>13,tZ=0|td[0],tQ=8191&tZ,tJ=tZ>>>13,t$=0|td[1],t0=8191&t$,t1=t$>>>13,t2=0|td[2],t3=8191&t2,t6=t2>>>13,t4=0|td[3],t8=8191&t4,t5=t4>>>13,t7=0|td[4],t9=8191&t7,et=t7>>>13,er=0|td[5],en=8191&er,ei=er>>>13,ea=0|td[6],eo=8191&ea,es=ea>>>13,eu=0|td[7],eh=8191&eu,ec=eu>>>13,ef=0|td[8],ed=8191&ef,ep=ef>>>13,ev=0|td[9],em=8191&ev,eg=ev>>>13;ti.negative=tt.negative^tr.negative,ti.length=19;var eb=(tv+(ta=Math.imul(tb,tQ))|0)+((8191&(ts=(ts=Math.imul(tb,tJ))+Math.imul(t_,tQ)|0))<<13)|0;tv=((tu=Math.imul(t_,tJ))+(ts>>>13)|0)+(eb>>>26)|0,eb&=67108863,ta=Math.imul(tA,tQ),ts=(ts=Math.imul(tA,tJ))+Math.imul(tS,tQ)|0,tu=Math.imul(tS,tJ);var ey=(tv+(ta=ta+Math.imul(tb,t0)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t1)|0)+Math.imul(t_,t0)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t1)|0)+(ts>>>13)|0)+(ey>>>26)|0,ey&=67108863,ta=Math.imul(tM,tQ),ts=(ts=Math.imul(tM,tJ))+Math.imul(tR,tQ)|0,tu=Math.imul(tR,tJ),ta=ta+Math.imul(tA,t0)|0,ts=(ts=ts+Math.imul(tA,t1)|0)+Math.imul(tS,t0)|0,tu=tu+Math.imul(tS,t1)|0;var e_=(tv+(ta=ta+Math.imul(tb,t3)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t6)|0)+Math.imul(t_,t3)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t6)|0)+(ts>>>13)|0)+(e_>>>26)|0,e_&=67108863,ta=Math.imul(tk,tQ),ts=(ts=Math.imul(tk,tJ))+Math.imul(tP,tQ)|0,tu=Math.imul(tP,tJ),ta=ta+Math.imul(tM,t0)|0,ts=(ts=ts+Math.imul(tM,t1)|0)+Math.imul(tR,t0)|0,tu=tu+Math.imul(tR,t1)|0,ta=ta+Math.imul(tA,t3)|0,ts=(ts=ts+Math.imul(tA,t6)|0)+Math.imul(tS,t3)|0,tu=tu+Math.imul(tS,t6)|0;var ew=(tv+(ta=ta+Math.imul(tb,t8)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,t5)|0)+Math.imul(t_,t8)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,t5)|0)+(ts>>>13)|0)+(ew>>>26)|0,ew&=67108863,ta=Math.imul(tO,tQ),ts=(ts=Math.imul(tO,tJ))+Math.imul(tN,tQ)|0,tu=Math.imul(tN,tJ),ta=ta+Math.imul(tk,t0)|0,ts=(ts=ts+Math.imul(tk,t1)|0)+Math.imul(tP,t0)|0,tu=tu+Math.imul(tP,t1)|0,ta=ta+Math.imul(tM,t3)|0,ts=(ts=ts+Math.imul(tM,t6)|0)+Math.imul(tR,t3)|0,tu=tu+Math.imul(tR,t6)|0,ta=ta+Math.imul(tA,t8)|0,ts=(ts=ts+Math.imul(tA,t5)|0)+Math.imul(tS,t8)|0,tu=tu+Math.imul(tS,t5)|0;var eE=(tv+(ta=ta+Math.imul(tb,t9)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,et)|0)+Math.imul(t_,t9)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,et)|0)+(ts>>>13)|0)+(eE>>>26)|0,eE&=67108863,ta=Math.imul(tL,tQ),ts=(ts=Math.imul(tL,tJ))+Math.imul(tU,tQ)|0,tu=Math.imul(tU,tJ),ta=ta+Math.imul(tO,t0)|0,ts=(ts=ts+Math.imul(tO,t1)|0)+Math.imul(tN,t0)|0,tu=tu+Math.imul(tN,t1)|0,ta=ta+Math.imul(tk,t3)|0,ts=(ts=ts+Math.imul(tk,t6)|0)+Math.imul(tP,t3)|0,tu=tu+Math.imul(tP,t6)|0,ta=ta+Math.imul(tM,t8)|0,ts=(ts=ts+Math.imul(tM,t5)|0)+Math.imul(tR,t8)|0,tu=tu+Math.imul(tR,t5)|0,ta=ta+Math.imul(tA,t9)|0,ts=(ts=ts+Math.imul(tA,et)|0)+Math.imul(tS,t9)|0,tu=tu+Math.imul(tS,et)|0;var eA=(tv+(ta=ta+Math.imul(tb,en)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ei)|0)+Math.imul(t_,en)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ei)|0)+(ts>>>13)|0)+(eA>>>26)|0,eA&=67108863,ta=Math.imul(tj,tQ),ts=(ts=Math.imul(tj,tJ))+Math.imul(tF,tQ)|0,tu=Math.imul(tF,tJ),ta=ta+Math.imul(tL,t0)|0,ts=(ts=ts+Math.imul(tL,t1)|0)+Math.imul(tU,t0)|0,tu=tu+Math.imul(tU,t1)|0,ta=ta+Math.imul(tO,t3)|0,ts=(ts=ts+Math.imul(tO,t6)|0)+Math.imul(tN,t3)|0,tu=tu+Math.imul(tN,t6)|0,ta=ta+Math.imul(tk,t8)|0,ts=(ts=ts+Math.imul(tk,t5)|0)+Math.imul(tP,t8)|0,tu=tu+Math.imul(tP,t5)|0,ta=ta+Math.imul(tM,t9)|0,ts=(ts=ts+Math.imul(tM,et)|0)+Math.imul(tR,t9)|0,tu=tu+Math.imul(tR,et)|0,ta=ta+Math.imul(tA,en)|0,ts=(ts=ts+Math.imul(tA,ei)|0)+Math.imul(tS,en)|0,tu=tu+Math.imul(tS,ei)|0;var ex=(tv+(ta=ta+Math.imul(tb,eo)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,es)|0)+Math.imul(t_,eo)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,es)|0)+(ts>>>13)|0)+(ex>>>26)|0,ex&=67108863,ta=Math.imul(tH,tQ),ts=(ts=Math.imul(tH,tJ))+Math.imul(tV,tQ)|0,tu=Math.imul(tV,tJ),ta=ta+Math.imul(tj,t0)|0,ts=(ts=ts+Math.imul(tj,t1)|0)+Math.imul(tF,t0)|0,tu=tu+Math.imul(tF,t1)|0,ta=ta+Math.imul(tL,t3)|0,ts=(ts=ts+Math.imul(tL,t6)|0)+Math.imul(tU,t3)|0,tu=tu+Math.imul(tU,t6)|0,ta=ta+Math.imul(tO,t8)|0,ts=(ts=ts+Math.imul(tO,t5)|0)+Math.imul(tN,t8)|0,tu=tu+Math.imul(tN,t5)|0,ta=ta+Math.imul(tk,t9)|0,ts=(ts=ts+Math.imul(tk,et)|0)+Math.imul(tP,t9)|0,tu=tu+Math.imul(tP,et)|0,ta=ta+Math.imul(tM,en)|0,ts=(ts=ts+Math.imul(tM,ei)|0)+Math.imul(tR,en)|0,tu=tu+Math.imul(tR,ei)|0,ta=ta+Math.imul(tA,eo)|0,ts=(ts=ts+Math.imul(tA,es)|0)+Math.imul(tS,eo)|0,tu=tu+Math.imul(tS,es)|0;var eS=(tv+(ta=ta+Math.imul(tb,eh)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ec)|0)+Math.imul(t_,eh)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ec)|0)+(ts>>>13)|0)+(eS>>>26)|0,eS&=67108863,ta=Math.imul(tq,tQ),ts=(ts=Math.imul(tq,tJ))+Math.imul(tW,tQ)|0,tu=Math.imul(tW,tJ),ta=ta+Math.imul(tH,t0)|0,ts=(ts=ts+Math.imul(tH,t1)|0)+Math.imul(tV,t0)|0,tu=tu+Math.imul(tV,t1)|0,ta=ta+Math.imul(tj,t3)|0,ts=(ts=ts+Math.imul(tj,t6)|0)+Math.imul(tF,t3)|0,tu=tu+Math.imul(tF,t6)|0,ta=ta+Math.imul(tL,t8)|0,ts=(ts=ts+Math.imul(tL,t5)|0)+Math.imul(tU,t8)|0,tu=tu+Math.imul(tU,t5)|0,ta=ta+Math.imul(tO,t9)|0,ts=(ts=ts+Math.imul(tO,et)|0)+Math.imul(tN,t9)|0,tu=tu+Math.imul(tN,et)|0,ta=ta+Math.imul(tk,en)|0,ts=(ts=ts+Math.imul(tk,ei)|0)+Math.imul(tP,en)|0,tu=tu+Math.imul(tP,ei)|0,ta=ta+Math.imul(tM,eo)|0,ts=(ts=ts+Math.imul(tM,es)|0)+Math.imul(tR,eo)|0,tu=tu+Math.imul(tR,es)|0,ta=ta+Math.imul(tA,eh)|0,ts=(ts=ts+Math.imul(tA,ec)|0)+Math.imul(tS,eh)|0,tu=tu+Math.imul(tS,ec)|0;var eT=(tv+(ta=ta+Math.imul(tb,ed)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,ep)|0)+Math.imul(t_,ed)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,ep)|0)+(ts>>>13)|0)+(eT>>>26)|0,eT&=67108863,ta=Math.imul(tX,tQ),ts=(ts=Math.imul(tX,tJ))+Math.imul(tK,tQ)|0,tu=Math.imul(tK,tJ),ta=ta+Math.imul(tq,t0)|0,ts=(ts=ts+Math.imul(tq,t1)|0)+Math.imul(tW,t0)|0,tu=tu+Math.imul(tW,t1)|0,ta=ta+Math.imul(tH,t3)|0,ts=(ts=ts+Math.imul(tH,t6)|0)+Math.imul(tV,t3)|0,tu=tu+Math.imul(tV,t6)|0,ta=ta+Math.imul(tj,t8)|0,ts=(ts=ts+Math.imul(tj,t5)|0)+Math.imul(tF,t8)|0,tu=tu+Math.imul(tF,t5)|0,ta=ta+Math.imul(tL,t9)|0,ts=(ts=ts+Math.imul(tL,et)|0)+Math.imul(tU,t9)|0,tu=tu+Math.imul(tU,et)|0,ta=ta+Math.imul(tO,en)|0,ts=(ts=ts+Math.imul(tO,ei)|0)+Math.imul(tN,en)|0,tu=tu+Math.imul(tN,ei)|0,ta=ta+Math.imul(tk,eo)|0,ts=(ts=ts+Math.imul(tk,es)|0)+Math.imul(tP,eo)|0,tu=tu+Math.imul(tP,es)|0,ta=ta+Math.imul(tM,eh)|0,ts=(ts=ts+Math.imul(tM,ec)|0)+Math.imul(tR,eh)|0,tu=tu+Math.imul(tR,ec)|0,ta=ta+Math.imul(tA,ed)|0,ts=(ts=ts+Math.imul(tA,ep)|0)+Math.imul(tS,ed)|0,tu=tu+Math.imul(tS,ep)|0;var eM=(tv+(ta=ta+Math.imul(tb,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tb,eg)|0)+Math.imul(t_,em)|0))<<13)|0;tv=((tu=tu+Math.imul(t_,eg)|0)+(ts>>>13)|0)+(eM>>>26)|0,eM&=67108863,ta=Math.imul(tX,t0),ts=(ts=Math.imul(tX,t1))+Math.imul(tK,t0)|0,tu=Math.imul(tK,t1),ta=ta+Math.imul(tq,t3)|0,ts=(ts=ts+Math.imul(tq,t6)|0)+Math.imul(tW,t3)|0,tu=tu+Math.imul(tW,t6)|0,ta=ta+Math.imul(tH,t8)|0,ts=(ts=ts+Math.imul(tH,t5)|0)+Math.imul(tV,t8)|0,tu=tu+Math.imul(tV,t5)|0,ta=ta+Math.imul(tj,t9)|0,ts=(ts=ts+Math.imul(tj,et)|0)+Math.imul(tF,t9)|0,tu=tu+Math.imul(tF,et)|0,ta=ta+Math.imul(tL,en)|0,ts=(ts=ts+Math.imul(tL,ei)|0)+Math.imul(tU,en)|0,tu=tu+Math.imul(tU,ei)|0,ta=ta+Math.imul(tO,eo)|0,ts=(ts=ts+Math.imul(tO,es)|0)+Math.imul(tN,eo)|0,tu=tu+Math.imul(tN,es)|0,ta=ta+Math.imul(tk,eh)|0,ts=(ts=ts+Math.imul(tk,ec)|0)+Math.imul(tP,eh)|0,tu=tu+Math.imul(tP,ec)|0,ta=ta+Math.imul(tM,ed)|0,ts=(ts=ts+Math.imul(tM,ep)|0)+Math.imul(tR,ed)|0,tu=tu+Math.imul(tR,ep)|0;var eR=(tv+(ta=ta+Math.imul(tA,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tA,eg)|0)+Math.imul(tS,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tS,eg)|0)+(ts>>>13)|0)+(eR>>>26)|0,eR&=67108863,ta=Math.imul(tX,t3),ts=(ts=Math.imul(tX,t6))+Math.imul(tK,t3)|0,tu=Math.imul(tK,t6),ta=ta+Math.imul(tq,t8)|0,ts=(ts=ts+Math.imul(tq,t5)|0)+Math.imul(tW,t8)|0,tu=tu+Math.imul(tW,t5)|0,ta=ta+Math.imul(tH,t9)|0,ts=(ts=ts+Math.imul(tH,et)|0)+Math.imul(tV,t9)|0,tu=tu+Math.imul(tV,et)|0,ta=ta+Math.imul(tj,en)|0,ts=(ts=ts+Math.imul(tj,ei)|0)+Math.imul(tF,en)|0,tu=tu+Math.imul(tF,ei)|0,ta=ta+Math.imul(tL,eo)|0,ts=(ts=ts+Math.imul(tL,es)|0)+Math.imul(tU,eo)|0,tu=tu+Math.imul(tU,es)|0,ta=ta+Math.imul(tO,eh)|0,ts=(ts=ts+Math.imul(tO,ec)|0)+Math.imul(tN,eh)|0,tu=tu+Math.imul(tN,ec)|0,ta=ta+Math.imul(tk,ed)|0,ts=(ts=ts+Math.imul(tk,ep)|0)+Math.imul(tP,ed)|0,tu=tu+Math.imul(tP,ep)|0;var eI=(tv+(ta=ta+Math.imul(tM,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tM,eg)|0)+Math.imul(tR,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tR,eg)|0)+(ts>>>13)|0)+(eI>>>26)|0,eI&=67108863,ta=Math.imul(tX,t8),ts=(ts=Math.imul(tX,t5))+Math.imul(tK,t8)|0,tu=Math.imul(tK,t5),ta=ta+Math.imul(tq,t9)|0,ts=(ts=ts+Math.imul(tq,et)|0)+Math.imul(tW,t9)|0,tu=tu+Math.imul(tW,et)|0,ta=ta+Math.imul(tH,en)|0,ts=(ts=ts+Math.imul(tH,ei)|0)+Math.imul(tV,en)|0,tu=tu+Math.imul(tV,ei)|0,ta=ta+Math.imul(tj,eo)|0,ts=(ts=ts+Math.imul(tj,es)|0)+Math.imul(tF,eo)|0,tu=tu+Math.imul(tF,es)|0,ta=ta+Math.imul(tL,eh)|0,ts=(ts=ts+Math.imul(tL,ec)|0)+Math.imul(tU,eh)|0,tu=tu+Math.imul(tU,ec)|0,ta=ta+Math.imul(tO,ed)|0,ts=(ts=ts+Math.imul(tO,ep)|0)+Math.imul(tN,ed)|0,tu=tu+Math.imul(tN,ep)|0;var ek=(tv+(ta=ta+Math.imul(tk,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tk,eg)|0)+Math.imul(tP,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tP,eg)|0)+(ts>>>13)|0)+(ek>>>26)|0,ek&=67108863,ta=Math.imul(tX,t9),ts=(ts=Math.imul(tX,et))+Math.imul(tK,t9)|0,tu=Math.imul(tK,et),ta=ta+Math.imul(tq,en)|0,ts=(ts=ts+Math.imul(tq,ei)|0)+Math.imul(tW,en)|0,tu=tu+Math.imul(tW,ei)|0,ta=ta+Math.imul(tH,eo)|0,ts=(ts=ts+Math.imul(tH,es)|0)+Math.imul(tV,eo)|0,tu=tu+Math.imul(tV,es)|0,ta=ta+Math.imul(tj,eh)|0,ts=(ts=ts+Math.imul(tj,ec)|0)+Math.imul(tF,eh)|0,tu=tu+Math.imul(tF,ec)|0,ta=ta+Math.imul(tL,ed)|0,ts=(ts=ts+Math.imul(tL,ep)|0)+Math.imul(tU,ed)|0,tu=tu+Math.imul(tU,ep)|0;var eP=(tv+(ta=ta+Math.imul(tO,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tO,eg)|0)+Math.imul(tN,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tN,eg)|0)+(ts>>>13)|0)+(eP>>>26)|0,eP&=67108863,ta=Math.imul(tX,en),ts=(ts=Math.imul(tX,ei))+Math.imul(tK,en)|0,tu=Math.imul(tK,ei),ta=ta+Math.imul(tq,eo)|0,ts=(ts=ts+Math.imul(tq,es)|0)+Math.imul(tW,eo)|0,tu=tu+Math.imul(tW,es)|0,ta=ta+Math.imul(tH,eh)|0,ts=(ts=ts+Math.imul(tH,ec)|0)+Math.imul(tV,eh)|0,tu=tu+Math.imul(tV,ec)|0,ta=ta+Math.imul(tj,ed)|0,ts=(ts=ts+Math.imul(tj,ep)|0)+Math.imul(tF,ed)|0,tu=tu+Math.imul(tF,ep)|0;var eC=(tv+(ta=ta+Math.imul(tL,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tL,eg)|0)+Math.imul(tU,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tU,eg)|0)+(ts>>>13)|0)+(eC>>>26)|0,eC&=67108863,ta=Math.imul(tX,eo),ts=(ts=Math.imul(tX,es))+Math.imul(tK,eo)|0,tu=Math.imul(tK,es),ta=ta+Math.imul(tq,eh)|0,ts=(ts=ts+Math.imul(tq,ec)|0)+Math.imul(tW,eh)|0,tu=tu+Math.imul(tW,ec)|0,ta=ta+Math.imul(tH,ed)|0,ts=(ts=ts+Math.imul(tH,ep)|0)+Math.imul(tV,ed)|0,tu=tu+Math.imul(tV,ep)|0;var eO=(tv+(ta=ta+Math.imul(tj,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tj,eg)|0)+Math.imul(tF,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tF,eg)|0)+(ts>>>13)|0)+(eO>>>26)|0,eO&=67108863,ta=Math.imul(tX,eh),ts=(ts=Math.imul(tX,ec))+Math.imul(tK,eh)|0,tu=Math.imul(tK,ec),ta=ta+Math.imul(tq,ed)|0,ts=(ts=ts+Math.imul(tq,ep)|0)+Math.imul(tW,ed)|0,tu=tu+Math.imul(tW,ep)|0;var eN=(tv+(ta=ta+Math.imul(tH,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tH,eg)|0)+Math.imul(tV,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tV,eg)|0)+(ts>>>13)|0)+(eN>>>26)|0,eN&=67108863,ta=Math.imul(tX,ed),ts=(ts=Math.imul(tX,ep))+Math.imul(tK,ed)|0,tu=Math.imul(tK,ep);var eB=(tv+(ta=ta+Math.imul(tq,em)|0)|0)+((8191&(ts=(ts=ts+Math.imul(tq,eg)|0)+Math.imul(tW,em)|0))<<13)|0;tv=((tu=tu+Math.imul(tW,eg)|0)+(ts>>>13)|0)+(eB>>>26)|0,eB&=67108863;var eL=(tv+(ta=Math.imul(tX,em))|0)+((8191&(ts=(ts=Math.imul(tX,eg))+Math.imul(tK,em)|0))<<13)|0;return tv=((tu=Math.imul(tK,eg))+(ts>>>13)|0)+(eL>>>26)|0,eL&=67108863,tp[0]=eb,tp[1]=ey,tp[2]=e_,tp[3]=ew,tp[4]=eE,tp[5]=eA,tp[6]=ex,tp[7]=eS,tp[8]=eT,tp[9]=eM,tp[10]=eR,tp[11]=eI,tp[12]=ek,tp[13]=eP,tp[14]=eC,tp[15]=eO,tp[16]=eN,tp[17]=eB,tp[18]=eL,0!==tv&&(tp[19]=tv,ti.length++),ti};function tR(tt,tr,ti){ti.negative=tr.negative^tt.negative,ti.length=tt.length+tr.length;for(var ta=0,ts=0,tu=0;tu<ti.length-1;tu++){var tc=ts;ts=0;for(var td=67108863&ta,tp=Math.min(tu,tr.length-1),tv=Math.max(0,tu-tt.length+1);tv<=tp;tv++){var tg=tu-tv,tb=(0|tt.words[tg])*(0|tr.words[tv]),t_=67108863&tb;tc=tc+(tb/67108864|0)|0,td=67108863&(t_=t_+td|0),ts+=(tc=tc+(t_>>>26)|0)>>>26,tc&=67108863}ti.words[tu]=td,ta=tc,tc=ts}return 0!==ta?ti.words[tu]=ta:ti.length--,ti._strip()}function tI(tt,tr,ti){return tR(tt,tr,ti)}function tk(tt,tr){this.x=tt,this.y=tr}Math.imul||(tM=tT),tu.prototype.mulTo=function(tt,tr){var ti=this.length+tt.length;return 10===this.length&&10===tt.length?tM(this,tt,tr):ti<63?tT(this,tt,tr):ti<1024?tR(this,tt,tr):tI(this,tt,tr)},tk.prototype.makeRBT=function(tt){for(var tr=Array(tt),ti=tu.prototype._countBits(tt)-1,ta=0;ta<tt;ta++)tr[ta]=this.revBin(ta,ti,tt);return tr},tk.prototype.revBin=function(tt,tr,ti){if(0===tt||tt===ti-1)return tt;for(var ta=0,ts=0;ts<tr;ts++)ta|=(1&tt)<<tr-ts-1,tt>>=1;return ta},tk.prototype.permute=function(tt,tr,ti,ta,ts,tu){for(var tc=0;tc<tu;tc++)ta[tc]=tr[tt[tc]],ts[tc]=ti[tt[tc]]},tk.prototype.transform=function(tt,tr,ti,ta,ts,tu){this.permute(tu,tt,tr,ti,ta,ts);for(var tc=1;tc<ts;tc<<=1)for(var td=tc<<1,tp=Math.cos(2*Math.PI/td),tv=Math.sin(2*Math.PI/td),tg=0;tg<ts;tg+=td)for(var tb=tp,t_=tv,tE=0;tE<tc;tE++){var tA=ti[tg+tE],tS=ta[tg+tE],tT=ti[tg+tE+tc],tM=ta[tg+tE+tc],tR=tb*tT-t_*tM;tM=tb*tM+t_*tT,tT=tR,ti[tg+tE]=tA+tT,ta[tg+tE]=tS+tM,ti[tg+tE+tc]=tA-tT,ta[tg+tE+tc]=tS-tM,tE!==td&&(tR=tp*tb-tv*t_,t_=tp*t_+tv*tb,tb=tR)}},tk.prototype.guessLen13b=function(tt,tr){var ti=1|Math.max(tr,tt),ta=1&ti,ts=0;for(ti=ti/2|0;ti;ti>>>=1)ts++;return 1<<ts+1+ta},tk.prototype.conjugate=function(tt,tr,ti){if(!(ti<=1))for(var ta=0;ta<ti/2;ta++){var ts=tt[ta];tt[ta]=tt[ti-ta-1],tt[ti-ta-1]=ts,ts=tr[ta],tr[ta]=-tr[ti-ta-1],tr[ti-ta-1]=-ts}},tk.prototype.normalize13b=function(tt,tr){for(var ti=0,ta=0;ta<tr/2;ta++){var ts=8192*Math.round(tt[2*ta+1]/tr)+Math.round(tt[2*ta]/tr)+ti;tt[ta]=67108863&ts,ti=ts<67108864?0:ts/67108864|0}return tt},tk.prototype.convert13b=function(tt,tr,ti,ts){for(var tu=0,tc=0;tc<tr;tc++)tu+=0|tt[tc],ti[2*tc]=8191&tu,tu>>>=13,ti[2*tc+1]=8191&tu,tu>>>=13;for(tc=2*tr;tc<ts;++tc)ti[tc]=0;ta(0===tu),ta((-8192&tu)==0)},tk.prototype.stub=function(tt){for(var tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=0;return tr},tk.prototype.mulp=function(tt,tr,ti){var ta=2*this.guessLen13b(tt.length,tr.length),ts=this.makeRBT(ta),tu=this.stub(ta),tc=Array(ta),td=Array(ta),tp=Array(ta),tv=Array(ta),tg=Array(ta),tb=Array(ta),t_=ti.words;t_.length=ta,this.convert13b(tt.words,tt.length,tc,ta),this.convert13b(tr.words,tr.length,tv,ta),this.transform(tc,tu,td,tp,ta,ts),this.transform(tv,tu,tg,tb,ta,ts);for(var tE=0;tE<ta;tE++){var tA=td[tE]*tg[tE]-tp[tE]*tb[tE];tp[tE]=td[tE]*tb[tE]+tp[tE]*tg[tE],td[tE]=tA}return this.conjugate(td,tp,ta),this.transform(td,tp,t_,tu,ta,ts),this.conjugate(t_,tu,ta),this.normalize13b(t_,ta),ti.negative=tt.negative^tr.negative,ti.length=tt.length+tr.length,ti._strip()},tu.prototype.mul=function(tt){var tr=new tu(null);return tr.words=Array(this.length+tt.length),this.mulTo(tt,tr)},tu.prototype.mulf=function(tt){var tr=new tu(null);return tr.words=Array(this.length+tt.length),tI(this,tt,tr)},tu.prototype.imul=function(tt){return this.clone().mulTo(tt,this)},tu.prototype.imuln=function(tt){var tr=tt<0;tr&&(tt=-tt),ta("number"==typeof tt),ta(tt<67108864);for(var ti=0,ts=0;ts<this.length;ts++){var tu=(0|this.words[ts])*tt,tc=(67108863&tu)+(67108863&ti);ti>>=26,ti+=(tu/67108864|0)+(tc>>>26),this.words[ts]=67108863&tc}return 0!==ti&&(this.words[ts]=ti,this.length++),tr?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 tr=tS(tt);if(0===tr.length)return new tu(1);for(var ti=this,ta=0;ta<tr.length&&0===tr[ta];ta++,ti=ti.sqr());if(++ta<tr.length)for(var ts=ti.sqr();ta<tr.length;ta++,ts=ts.sqr())0!==tr[ta]&&(ti=ti.mul(ts));return ti},tu.prototype.iushln=function(tt){ta("number"==typeof tt&&tt>=0);var tr,ti=tt%26,ts=(tt-ti)/26,tu=67108863>>>26-ti<<26-ti;if(0!==ti){var tc=0;for(tr=0;tr<this.length;tr++){var td=this.words[tr]&tu,tp=(0|this.words[tr])-td<<ti;this.words[tr]=tp|tc,tc=td>>>26-ti}tc&&(this.words[tr]=tc,this.length++)}if(0!==ts){for(tr=this.length-1;tr>=0;tr--)this.words[tr+ts]=this.words[tr];for(tr=0;tr<ts;tr++)this.words[tr]=0;this.length+=ts}return this._strip()},tu.prototype.ishln=function(tt){return ta(0===this.negative),this.iushln(tt)},tu.prototype.iushrn=function(tt,tr,ti){ta("number"==typeof tt&&tt>=0),ts=tr?(tr-tr%26)/26:0;var ts,tu=tt%26,tc=Math.min((tt-tu)/26,this.length),td=67108863^67108863>>>tu<<tu,tp=ti;if(ts-=tc,ts=Math.max(0,ts),tp){for(var tv=0;tv<tc;tv++)tp.words[tv]=this.words[tv];tp.length=tc}if(0===tc);else if(this.length>tc)for(this.length-=tc,tv=0;tv<this.length;tv++)this.words[tv]=this.words[tv+tc];else this.words[0]=0,this.length=1;var tg=0;for(tv=this.length-1;tv>=0&&(0!==tg||tv>=ts);tv--){var tb=0|this.words[tv];this.words[tv]=tg<<26-tu|tb>>>tu,tg=tb&td}return tp&&0!==tg&&(tp.words[tp.length++]=tg),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},tu.prototype.ishrn=function(tt,tr,ti){return ta(0===this.negative),this.iushrn(tt,tr,ti)},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){ta("number"==typeof tt&&tt>=0);var tr=tt%26,ti=(tt-tr)/26,ts=1<<tr;return!(this.length<=ti)&&!!(this.words[ti]&ts)},tu.prototype.imaskn=function(tt){ta("number"==typeof tt&&tt>=0);var tr=tt%26,ti=(tt-tr)/26;if(ta(0===this.negative,"imaskn works only with positive numbers"),this.length<=ti)return this;if(0!==tr&&ti++,this.length=Math.min(ti,this.length),0!==tr){var ts=67108863^67108863>>>tr<<tr;this.words[this.length-1]&=ts}return this._strip()},tu.prototype.maskn=function(tt){return this.clone().imaskn(tt)},tu.prototype.iaddn=function(tt){return(ta("number"==typeof tt),ta(tt<67108864),tt<0)?this.isubn(-tt):0!==this.negative?1===this.length&&(0|this.words[0])<=tt?(this.words[0]=tt-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(tt),this.negative=1,this):this._iaddn(tt)},tu.prototype._iaddn=function(tt){this.words[0]+=tt;for(var tr=0;tr<this.length&&this.words[tr]>=67108864;tr++)this.words[tr]-=67108864,tr===this.length-1?this.words[tr+1]=1:this.words[tr+1]++;return this.length=Math.max(this.length,tr+1),this},tu.prototype.isubn=function(tt){if(ta("number"==typeof tt),ta(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 tr=0;tr<this.length&&this.words[tr]<0;tr++)this.words[tr]+=67108864,this.words[tr+1]-=1;return this._strip()},tu.prototype.addn=function(tt){return this.clone().iaddn(tt)},tu.prototype.subn=function(tt){return this.clone().isubn(tt)},tu.prototype.iabs=function(){return this.negative=0,this},tu.prototype.abs=function(){return this.clone().iabs()},tu.prototype._ishlnsubmul=function(tt,tr,ti){var ts,tu,tc=tt.length+ti;this._expand(tc);var td=0;for(ts=0;ts<tt.length;ts++){tu=(0|this.words[ts+ti])+td;var tp=(0|tt.words[ts])*tr;tu-=67108863&tp,td=(tu>>26)-(tp/67108864|0),this.words[ts+ti]=67108863&tu}for(;ts<this.length-ti;ts++)td=(tu=(0|this.words[ts+ti])+td)>>26,this.words[ts+ti]=67108863&tu;if(0===td)return this._strip();for(ta(-1===td),td=0,ts=0;ts<this.length;ts++)td=(tu=-(0|this.words[ts])+td)>>26,this.words[ts]=67108863&tu;return this.negative=1,this._strip()},tu.prototype._wordDiv=function(tt,tr){var ti,ta=this.length-tt.length,ts=this.clone(),tc=tt,td=0|tc.words[tc.length-1];0!=(ta=26-this._countBits(td))&&(tc=tc.ushln(ta),ts.iushln(ta),td=0|tc.words[tc.length-1]);var tp=ts.length-tc.length;if("mod"!==tr){(ti=new tu(null)).length=tp+1,ti.words=Array(ti.length);for(var tv=0;tv<ti.length;tv++)ti.words[tv]=0}var tg=ts.clone()._ishlnsubmul(tc,1,tp);0===tg.negative&&(ts=tg,ti&&(ti.words[tp]=1));for(var tb=tp-1;tb>=0;tb--){var t_=(0|ts.words[tc.length+tb])*67108864+(0|ts.words[tc.length+tb-1]);for(t_=Math.min(t_/td|0,67108863),ts._ishlnsubmul(tc,t_,tb);0!==ts.negative;)t_--,ts.negative=0,ts._ishlnsubmul(tc,1,tb),ts.isZero()||(ts.negative^=1);ti&&(ti.words[tb]=t_)}return ti&&ti._strip(),ts._strip(),"div"!==tr&&0!==ta&&ts.iushrn(ta),{div:ti||null,mod:ts}},tu.prototype.divmod=function(tt,tr,ti){var ts,tc,td;return(ta(!tt.isZero()),this.isZero())?{div:new tu(0),mod:new tu(0)}:0!==this.negative&&0===tt.negative?(td=this.neg().divmod(tt,tr),"mod"!==tr&&(ts=td.div.neg()),"div"!==tr&&(tc=td.mod.neg(),ti&&0!==tc.negative&&tc.iadd(tt)),{div:ts,mod:tc}):0===this.negative&&0!==tt.negative?(td=this.divmod(tt.neg(),tr),"mod"!==tr&&(ts=td.div.neg()),{div:ts,mod:td.mod}):(this.negative&tt.negative)!=0?(td=this.neg().divmod(tt.neg(),tr),"div"!==tr&&(tc=td.mod.neg(),ti&&0!==tc.negative&&tc.isub(tt)),{div:td.div,mod:tc}):tt.length>this.length||0>this.cmp(tt)?{div:new tu(0),mod:this}:1===tt.length?"div"===tr?{div:this.divn(tt.words[0]),mod:null}:"mod"===tr?{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,tr)},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 tr=this.divmod(tt);if(tr.mod.isZero())return tr.div;var ti=0!==tr.div.negative?tr.mod.isub(tt):tr.mod,ta=tt.ushrn(1),ts=tt.andln(1),tu=ti.cmp(ta);return tu<0||1===ts&&0===tu?tr.div:0!==tr.div.negative?tr.div.isubn(1):tr.div.iaddn(1)},tu.prototype.modrn=function(tt){var tr=tt<0;tr&&(tt=-tt),ta(tt<=67108863);for(var ti=67108864%tt,ts=0,tu=this.length-1;tu>=0;tu--)ts=(ti*ts+(0|this.words[tu]))%tt;return tr?-ts:ts},tu.prototype.modn=function(tt){return this.modrn(tt)},tu.prototype.idivn=function(tt){var tr=tt<0;tr&&(tt=-tt),ta(tt<=67108863);for(var ti=0,ts=this.length-1;ts>=0;ts--){var tu=(0|this.words[ts])+67108864*ti;this.words[ts]=tu/tt|0,ti=tu%tt}return this._strip(),tr?this.ineg():this},tu.prototype.divn=function(tt){return this.clone().idivn(tt)},tu.prototype.egcd=function(tt){ta(0===tt.negative),ta(!tt.isZero());var tr=this,ti=tt.clone();tr=0!==tr.negative?tr.umod(tt):tr.clone();for(var ts=new tu(1),tc=new tu(0),td=new tu(0),tp=new tu(1),tv=0;tr.isEven()&&ti.isEven();)tr.iushrn(1),ti.iushrn(1),++tv;for(var tg=ti.clone(),tb=tr.clone();!tr.isZero();){for(var t_=0,tE=1;(tr.words[0]&tE)==0&&t_<26;++t_,tE<<=1);if(t_>0)for(tr.iushrn(t_);t_-- >0;)(ts.isOdd()||tc.isOdd())&&(ts.iadd(tg),tc.isub(tb)),ts.iushrn(1),tc.iushrn(1);for(var tA=0,tS=1;(ti.words[0]&tS)==0&&tA<26;++tA,tS<<=1);if(tA>0)for(ti.iushrn(tA);tA-- >0;)(td.isOdd()||tp.isOdd())&&(td.iadd(tg),tp.isub(tb)),td.iushrn(1),tp.iushrn(1);tr.cmp(ti)>=0?(tr.isub(ti),ts.isub(td),tc.isub(tp)):(ti.isub(tr),td.isub(ts),tp.isub(tc))}return{a:td,b:tp,gcd:ti.iushln(tv)}},tu.prototype._invmp=function(tt){ta(0===tt.negative),ta(!tt.isZero());var tr,ti=this,ts=tt.clone();ti=0!==ti.negative?ti.umod(tt):ti.clone();for(var tc=new tu(1),td=new tu(0),tp=ts.clone();ti.cmpn(1)>0&&ts.cmpn(1)>0;){for(var tv=0,tg=1;(ti.words[0]&tg)==0&&tv<26;++tv,tg<<=1);if(tv>0)for(ti.iushrn(tv);tv-- >0;)tc.isOdd()&&tc.iadd(tp),tc.iushrn(1);for(var tb=0,t_=1;(ts.words[0]&t_)==0&&tb<26;++tb,t_<<=1);if(tb>0)for(ts.iushrn(tb);tb-- >0;)td.isOdd()&&td.iadd(tp),td.iushrn(1);ti.cmp(ts)>=0?(ti.isub(ts),tc.isub(td)):(ts.isub(ti),td.isub(tc))}return 0>(tr=0===ti.cmpn(1)?tc:td).cmpn(0)&&tr.iadd(tt),tr},tu.prototype.gcd=function(tt){if(this.isZero())return tt.abs();if(tt.isZero())return this.abs();var tr=this.clone(),ti=tt.clone();tr.negative=0,ti.negative=0;for(var ta=0;tr.isEven()&&ti.isEven();ta++)tr.iushrn(1),ti.iushrn(1);for(;;){for(;tr.isEven();)tr.iushrn(1);for(;ti.isEven();)ti.iushrn(1);var ts=tr.cmp(ti);if(ts<0){var tu=tr;tr=ti,ti=tu}else if(0===ts||0===ti.cmpn(1))break;tr.isub(ti)}return ti.iushln(ta)},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){ta("number"==typeof tt);var tr=tt%26,ti=(tt-tr)/26,ts=1<<tr;if(this.length<=ti)return this._expand(ti+1),this.words[ti]|=ts,this;for(var tu=ts,tc=ti;0!==tu&&tc<this.length;tc++){var td=0|this.words[tc];td+=tu,tu=td>>>26,td&=67108863,this.words[tc]=td}return 0!==tu&&(this.words[tc]=tu,this.length++),this},tu.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},tu.prototype.cmpn=function(tt){var tr,ti=tt<0;if(0!==this.negative&&!ti)return -1;if(0===this.negative&&ti)return 1;if(this._strip(),this.length>1)tr=1;else{ti&&(tt=-tt),ta(tt<=67108863,"Number is too big");var ts=0|this.words[0];tr=ts===tt?0:ts<tt?-1:1}return 0!==this.negative?0|-tr:tr},tu.prototype.cmp=function(tt){if(0!==this.negative&&0===tt.negative)return -1;if(0===this.negative&&0!==tt.negative)return 1;var tr=this.ucmp(tt);return 0!==this.negative?0|-tr:tr},tu.prototype.ucmp=function(tt){if(this.length>tt.length)return 1;if(this.length<tt.length)return -1;for(var tr=0,ti=this.length-1;ti>=0;ti--){var ta=0|this.words[ti],ts=0|tt.words[ti];if(ta!==ts){ta<ts?tr=-1:ta>ts&&(tr=1);break}}return tr},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 tU(tt)},tu.prototype.toRed=function(tt){return ta(!this.red,"Already a number in reduction context"),ta(0===this.negative,"red works only with positives"),tt.convertTo(this)._forceRed(tt)},tu.prototype.fromRed=function(){return ta(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 ta(!this.red,"Already a number in reduction context"),this._forceRed(tt)},tu.prototype.redAdd=function(tt){return ta(this.red,"redAdd works only with red numbers"),this.red.add(this,tt)},tu.prototype.redIAdd=function(tt){return ta(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,tt)},tu.prototype.redSub=function(tt){return ta(this.red,"redSub works only with red numbers"),this.red.sub(this,tt)},tu.prototype.redISub=function(tt){return ta(this.red,"redISub works only with red numbers"),this.red.isub(this,tt)},tu.prototype.redShl=function(tt){return ta(this.red,"redShl works only with red numbers"),this.red.shl(this,tt)},tu.prototype.redMul=function(tt){return ta(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.mul(this,tt)},tu.prototype.redIMul=function(tt){return ta(this.red,"redMul works only with red numbers"),this.red._verify2(this,tt),this.red.imul(this,tt)},tu.prototype.redSqr=function(){return ta(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},tu.prototype.redISqr=function(){return ta(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},tu.prototype.redSqrt=function(){return ta(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},tu.prototype.redInvm=function(){return ta(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},tu.prototype.redNeg=function(){return ta(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},tu.prototype.redPow=function(tt){return ta(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 tC(tt,tr){this.name=tt,this.p=new tu(tr,16),this.n=this.p.bitLength(),this.k=new tu(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function tO(){tC.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function tN(){tC.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function tB(){tC.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function tL(){tC.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function tU(tt){if("string"==typeof tt){var tr=tu._prime(tt);this.m=tr.p,this.prime=tr}else ta(tt.gtn(1),"modulus must be greater than 1"),this.m=tt,this.prime=null}function tD(tt){tU.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 tr,ti=tt;do this.split(ti,this.tmp),tr=(ti=(ti=this.imulK(ti)).iadd(this.tmp)).bitLength();while(tr>this.n);var ta=tr<this.n?-1:ti.ucmp(this.p);return 0===ta?(ti.words[0]=0,ti.length=1):ta>0?ti.isub(this.p):void 0!==ti.strip?ti.strip():ti._strip(),ti},tC.prototype.split=function(tt,tr){tt.iushrn(this.n,0,tr)},tC.prototype.imulK=function(tt){return tt.imul(this.k)},ts(tO,tC),tO.prototype.split=function(tt,tr){for(var ti=4194303,ta=Math.min(tt.length,9),ts=0;ts<ta;ts++)tr.words[ts]=tt.words[ts];if(tr.length=ta,tt.length<=9){tt.words[0]=0,tt.length=1;return}var tu=tt.words[9];for(ts=10,tr.words[tr.length++]=tu&ti;ts<tt.length;ts++){var tc=0|tt.words[ts];tt.words[ts-10]=(tc&ti)<<4|tu>>>22,tu=tc}tu>>>=22,tt.words[ts-10]=tu,0===tu&&tt.length>10?tt.length-=10:tt.length-=9},tO.prototype.imulK=function(tt){tt.words[tt.length]=0,tt.words[tt.length+1]=0,tt.length+=2;for(var tr=0,ti=0;ti<tt.length;ti++){var ta=0|tt.words[ti];tr+=977*ta,tt.words[ti]=67108863&tr,tr=64*ta+(tr/67108864|0)}return 0===tt.words[tt.length-1]&&(tt.length--,0===tt.words[tt.length-1]&&tt.length--),tt},ts(tN,tC),ts(tB,tC),ts(tL,tC),tL.prototype.imulK=function(tt){for(var tr=0,ti=0;ti<tt.length;ti++){var ta=(0|tt.words[ti])*19+tr,ts=67108863&ta;ta>>>=26,tt.words[ti]=ts,tr=ta}return 0!==tr&&(tt.words[tt.length++]=tr),tt},tu._prime=function(tt){var tr;if(tP[tt])return tP[tt];if("k256"===tt)tr=new tO;else if("p224"===tt)tr=new tN;else if("p192"===tt)tr=new tB;else if("p25519"===tt)tr=new tL;else throw Error("Unknown prime "+tt);return tP[tt]=tr,tr},tU.prototype._verify1=function(tt){ta(0===tt.negative,"red works only with positives"),ta(tt.red,"red works only with red numbers")},tU.prototype._verify2=function(tt,tr){ta((tt.negative|tr.negative)==0,"red works only with positives"),ta(tt.red&&tt.red===tr.red,"red works only with red numbers")},tU.prototype.imod=function(tt){return this.prime?this.prime.ireduce(tt)._forceRed(this):(tp(tt,tt.umod(this.m)._forceRed(this)),tt)},tU.prototype.neg=function(tt){return tt.isZero()?tt.clone():this.m.sub(tt)._forceRed(this)},tU.prototype.add=function(tt,tr){this._verify2(tt,tr);var ti=tt.add(tr);return ti.cmp(this.m)>=0&&ti.isub(this.m),ti._forceRed(this)},tU.prototype.iadd=function(tt,tr){this._verify2(tt,tr);var ti=tt.iadd(tr);return ti.cmp(this.m)>=0&&ti.isub(this.m),ti},tU.prototype.sub=function(tt,tr){this._verify2(tt,tr);var ti=tt.sub(tr);return 0>ti.cmpn(0)&&ti.iadd(this.m),ti._forceRed(this)},tU.prototype.isub=function(tt,tr){this._verify2(tt,tr);var ti=tt.isub(tr);return 0>ti.cmpn(0)&&ti.iadd(this.m),ti},tU.prototype.shl=function(tt,tr){return this._verify1(tt),this.imod(tt.ushln(tr))},tU.prototype.imul=function(tt,tr){return this._verify2(tt,tr),this.imod(tt.imul(tr))},tU.prototype.mul=function(tt,tr){return this._verify2(tt,tr),this.imod(tt.mul(tr))},tU.prototype.isqr=function(tt){return this.imul(tt,tt.clone())},tU.prototype.sqr=function(tt){return this.mul(tt,tt)},tU.prototype.sqrt=function(tt){if(tt.isZero())return tt.clone();var tr=this.m.andln(3);if(ta(tr%2==1),3===tr){var ti=this.m.add(new tu(1)).iushrn(2);return this.pow(tt,ti)}for(var ts=this.m.subn(1),tc=0;!ts.isZero()&&0===ts.andln(1);)tc++,ts.iushrn(1);ta(!ts.isZero());var td=new tu(1).toRed(this),tp=td.redNeg(),tv=this.m.subn(1).iushrn(1),tg=this.m.bitLength();for(tg=new tu(2*tg*tg).toRed(this);0!==this.pow(tg,tv).cmp(tp);)tg.redIAdd(tp);for(var tb=this.pow(tg,ts),t_=this.pow(tt,ts.addn(1).iushrn(1)),tE=this.pow(tt,ts),tA=tc;0!==tE.cmp(td);){for(var tS=tE,tT=0;0!==tS.cmp(td);tT++)tS=tS.redSqr();ta(tT<tA);var tM=this.pow(tb,new tu(1).iushln(tA-tT-1));t_=t_.redMul(tM),tb=tM.redSqr(),tE=tE.redMul(tb),tA=tT}return t_},tU.prototype.invm=function(tt){var tr=tt._invmp(this.m);return 0!==tr.negative?(tr.negative=0,this.imod(tr).redNeg()):this.imod(tr)},tU.prototype.pow=function(tt,tr){if(tr.isZero())return new tu(1).toRed(this);if(0===tr.cmpn(1))return tt.clone();var ti=4,ta=Array(16);ta[0]=new tu(1).toRed(this),ta[1]=tt;for(var ts=2;ts<ta.length;ts++)ta[ts]=this.mul(ta[ts-1],tt);var tc=ta[0],td=0,tp=0,tv=tr.bitLength()%26;for(0===tv&&(tv=26),ts=tr.length-1;ts>=0;ts--){for(var tg=tr.words[ts],tb=tv-1;tb>=0;tb--){var t_=tg>>tb&1;if(tc!==ta[0]&&(tc=this.sqr(tc)),0===t_&&0===td){tp=0;continue}td<<=1,td|=t_,(++tp===ti||0===ts&&0===tb)&&(tc=this.mul(tc,ta[td]),tp=0,td=0)}tv=26}return tc},tU.prototype.convertTo=function(tt){var tr=tt.umod(this.m);return tr===tt?tr.clone():tr},tU.prototype.convertFrom=function(tt){var tr=tt.clone();return tr.red=null,tr},tu.mont=function(tt){return new tD(tt)},ts(tD,tU),tD.prototype.convertTo=function(tt){return this.imod(tt.ushln(this.shift))},tD.prototype.convertFrom=function(tt){var tr=this.imod(tt.mul(this.rinv));return tr.red=null,tr},tD.prototype.imul=function(tt,tr){if(tt.isZero()||tr.isZero())return tt.words[0]=0,tt.length=1,tt;var ti=tt.imul(tr),ta=ti.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ts=ti.isub(ta).iushrn(this.shift),tu=ts;return ts.cmp(this.m)>=0?tu=ts.isub(this.m):0>ts.cmpn(0)&&(tu=ts.iadd(this.m)),tu._forceRed(this)},tD.prototype.mul=function(tt,tr){if(tt.isZero()||tr.isZero())return new tu(0)._forceRed(this);var ti=tt.mul(tr),ta=ti.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),ts=ti.isub(ta).iushrn(this.shift),tc=ts;return ts.cmp(this.m)>=0?tc=ts.isub(this.m):0>ts.cmpn(0)&&(tc=ts.iadd(this.m)),tc._forceRed(this)},tD.prototype.invm=function(tt){return this.imod(tt._invmp(this.m).mul(this.r2))._forceRed(this)}}(tt=ti.nmd(tt),this)},3500:function(tt,tr,ti){var ta;function ts(tt){this.rand=tt}if(tt.exports=function(tt){return ta||(ta=new ts(null)),ta.generate(tt)},tt.exports.Rand=ts,ts.prototype.generate=function(tt){return this._rand(tt)},ts.prototype._rand=function(tt){if(this.rand.getBytes)return this.rand.getBytes(tt);for(var tr=new Uint8Array(tt),ti=0;ti<tr.length;ti++)tr[ti]=this.rand.getByte();return tr},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?ts.prototype._rand=function(tt){var tr=new Uint8Array(tt);return self.crypto.getRandomValues(tr),tr}:self.msCrypto&&self.msCrypto.getRandomValues?ts.prototype._rand=function(tt){var tr=new Uint8Array(tt);return self.msCrypto.getRandomValues(tr),tr}:"object"==typeof window&&(ts.prototype._rand=function(){throw Error("Not implemented yet")});else try{var tu=ti(6113);if("function"!=typeof tu.randomBytes)throw Error("Not supported");ts.prototype._rand=function(tt){return tu.randomBytes(tt)}}catch(tt){}},1387:function(tt,tr,ti){var ta=ti(6911).Buffer;function ts(tt){ta.isBuffer(tt)||(tt=ta.from(tt));for(var tr=tt.length/4|0,ti=Array(tr),ts=0;ts<tr;ts++)ti[ts]=tt.readUInt32BE(4*ts);return ti}function tu(tt){for(var tr=0;tr<tt.length;tt++)tt[tr]=0}function tc(tt,tr,ti,ta,ts){for(var tu,tc,td,tp,tv=ti[0],tg=ti[1],tb=ti[2],t_=ti[3],tE=tt[0]^tr[0],tA=tt[1]^tr[1],tS=tt[2]^tr[2],tT=tt[3]^tr[3],tM=4,tR=1;tR<ts;tR++)tu=tv[tE>>>24]^tg[tA>>>16&255]^tb[tS>>>8&255]^t_[255&tT]^tr[tM++],tc=tv[tA>>>24]^tg[tS>>>16&255]^tb[tT>>>8&255]^t_[255&tE]^tr[tM++],td=tv[tS>>>24]^tg[tT>>>16&255]^tb[tE>>>8&255]^t_[255&tA]^tr[tM++],tp=tv[tT>>>24]^tg[tE>>>16&255]^tb[tA>>>8&255]^t_[255&tS]^tr[tM++],tE=tu,tA=tc,tS=td,tT=tp;return tu=(ta[tE>>>24]<<24|ta[tA>>>16&255]<<16|ta[tS>>>8&255]<<8|ta[255&tT])^tr[tM++],tc=(ta[tA>>>24]<<24|ta[tS>>>16&255]<<16|ta[tT>>>8&255]<<8|ta[255&tE])^tr[tM++],[tu>>>=0,tc>>>=0,td=((ta[tS>>>24]<<24|ta[tT>>>16&255]<<16|ta[tE>>>8&255]<<8|ta[255&tA])^tr[tM++])>>>0,tp=((ta[tT>>>24]<<24|ta[tE>>>16&255]<<16|ta[tA>>>8&255]<<8|ta[255&tS])^tr[tM++])>>>0]}var td=[0,1,2,4,8,16,32,64,128,27,54],tp=function(){for(var tt=Array(256),tr=0;tr<256;tr++)tr<128?tt[tr]=tr<<1:tt[tr]=tr<<1^283;for(var ti=[],ta=[],ts=[[],[],[],[]],tu=[[],[],[],[]],tc=0,td=0,tp=0;tp<256;++tp){var tv=td^td<<1^td<<2^td<<3^td<<4;tv=tv>>>8^255&tv^99,ti[tc]=tv,ta[tv]=tc;var tg=tt[tc],tb=tt[tg],t_=tt[tb],tE=257*tt[tv]^16843008*tv;ts[0][tc]=tE<<24|tE>>>8,ts[1][tc]=tE<<16|tE>>>16,ts[2][tc]=tE<<8|tE>>>24,ts[3][tc]=tE,tE=16843009*t_^65537*tb^257*tg^16843008*tc,tu[0][tv]=tE<<24|tE>>>8,tu[1][tv]=tE<<16|tE>>>16,tu[2][tv]=tE<<8|tE>>>24,tu[3][tv]=tE,0===tc?tc=td=1:(tc=tg^tt[tt[tt[t_^tg]]],td^=tt[tt[td]])}return{SBOX:ti,INV_SBOX:ta,SUB_MIX:ts,INV_SUB_MIX:tu}}();function tv(tt){this._key=ts(tt),this._reset()}tv.blockSize=16,tv.keySize=32,tv.prototype.blockSize=tv.blockSize,tv.prototype.keySize=tv.keySize,tv.prototype._reset=function(){for(var tt=this._key,tr=tt.length,ti=tr+6,ta=(ti+1)*4,ts=[],tu=0;tu<tr;tu++)ts[tu]=tt[tu];for(tu=tr;tu<ta;tu++){var tc=ts[tu-1];tu%tr==0?(tc=tc<<8|tc>>>24,tc=(tp.SBOX[tc>>>24]<<24|tp.SBOX[tc>>>16&255]<<16|tp.SBOX[tc>>>8&255]<<8|tp.SBOX[255&tc])^td[tu/tr|0]<<24):tr>6&&tu%tr==4&&(tc=tp.SBOX[tc>>>24]<<24|tp.SBOX[tc>>>16&255]<<16|tp.SBOX[tc>>>8&255]<<8|tp.SBOX[255&tc]),ts[tu]=ts[tu-tr]^tc}for(var tv=[],tg=0;tg<ta;tg++){var tb=ta-tg,t_=ts[tb-(tg%4?0:4)];tg<4||tb<=4?tv[tg]=t_:tv[tg]=tp.INV_SUB_MIX[0][tp.SBOX[t_>>>24]]^tp.INV_SUB_MIX[1][tp.SBOX[t_>>>16&255]]^tp.INV_SUB_MIX[2][tp.SBOX[t_>>>8&255]]^tp.INV_SUB_MIX[3][tp.SBOX[255&t_]]}this._nRounds=ti,this._keySchedule=ts,this._invKeySchedule=tv},tv.prototype.encryptBlockRaw=function(tt){return tc(tt=ts(tt),this._keySchedule,tp.SUB_MIX,tp.SBOX,this._nRounds)},tv.prototype.encryptBlock=function(tt){var tr=this.encryptBlockRaw(tt),ti=ta.allocUnsafe(16);return ti.writeUInt32BE(tr[0],0),ti.writeUInt32BE(tr[1],4),ti.writeUInt32BE(tr[2],8),ti.writeUInt32BE(tr[3],12),ti},tv.prototype.decryptBlock=function(tt){var tr=(tt=ts(tt))[1];tt[1]=tt[3],tt[3]=tr;var ti=tc(tt,this._invKeySchedule,tp.INV_SUB_MIX,tp.INV_SBOX,this._nRounds),tu=ta.allocUnsafe(16);return tu.writeUInt32BE(ti[0],0),tu.writeUInt32BE(ti[3],4),tu.writeUInt32BE(ti[2],8),tu.writeUInt32BE(ti[1],12),tu},tv.prototype.scrub=function(){tu(this._keySchedule),tu(this._invKeySchedule),tu(this._key)},tt.exports.AES=tv},6624:function(tt,tr,ti){var ta=ti(1387),ts=ti(6911).Buffer,tu=ti(1043),tc=ti(3782),td=ti(7225),tp=ti(4734),tv=ti(598);function tg(tt,tr){var ti=0;tt.length!==tr.length&&ti++;for(var ta=Math.min(tt.length,tr.length),ts=0;ts<ta;++ts)ti+=tt[ts]^tr[ts];return ti}function tb(tt,tr,ti){if(12===tr.length)return tt._finID=ts.concat([tr,ts.from([0,0,0,1])]),ts.concat([tr,ts.from([0,0,0,2])]);var ta=new td(ti),tu=tr.length,tc=tu%16;ta.update(tr),tc&&(tc=16-tc,ta.update(ts.alloc(tc,0))),ta.update(ts.alloc(8,0));var tp=8*tu,tg=ts.alloc(8);tg.writeUIntBE(tp,0,8),ta.update(tg),tt._finID=ta.state;var tb=ts.from(tt._finID);return tv(tb),tb}function t_(tt,tr,ti,tc){tu.call(this);var tp=ts.alloc(4,0);this._cipher=new ta.AES(tr);var tv=this._cipher.encryptBlock(tp);this._ghash=new td(tv),ti=tb(this,ti,tv),this._prev=ts.from(ti),this._cache=ts.allocUnsafe(0),this._secCache=ts.allocUnsafe(0),this._decrypt=tc,this._alen=0,this._len=0,this._mode=tt,this._authTag=null,this._called=!1}tc(t_,tu),t_.prototype._update=function(tt){if(!this._called&&this._alen){var tr=16-this._alen%16;tr<16&&(tr=ts.alloc(tr,0),this._ghash.update(tr))}this._called=!0;var ti=this._mode.encrypt(this,tt);return this._decrypt?this._ghash.update(tt):this._ghash.update(ti),this._len+=tt.length,ti},t_.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var tt=tp(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&tg(tt,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=tt,this._cipher.scrub()},t_.prototype.getAuthTag=function(){if(this._decrypt||!ts.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},t_.prototype.setAuthTag=function(tt){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=tt},t_.prototype.setAAD=function(tt){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(tt),this._alen+=tt.length},tt.exports=t_},6594:function(tt,tr,ti){var ta=ti(2),ts=ti(2598),tu=ti(5866);function tc(){return Object.keys(tu)}tr.createCipher=tr.Cipher=ta.createCipher,tr.createCipheriv=tr.Cipheriv=ta.createCipheriv,tr.createDecipher=tr.Decipher=ts.createDecipher,tr.createDecipheriv=tr.Decipheriv=ts.createDecipheriv,tr.listCiphers=tr.getCiphers=tc},2598:function(tt,tr,ti){var ta=ti(6624),ts=ti(6911).Buffer,tu=ti(6370),tc=ti(126),td=ti(1043),tp=ti(1387),tv=ti(8368);function tg(tt,tr,ti){td.call(this),this._cache=new tb,this._last=void 0,this._cipher=new tp.AES(tr),this._prev=ts.from(ti),this._mode=tt,this._autopadding=!0}function tb(){this.cache=ts.allocUnsafe(0)}function t_(tt){var tr=tt[15];if(tr<1||tr>16)throw Error("unable to decrypt data");for(var ti=-1;++ti<tr;)if(tt[ti+(16-tr)]!==tr)throw Error("unable to decrypt data");if(16!==tr)return tt.slice(0,16-tr)}function tE(tt,tr,ti){var td=tu[tt.toLowerCase()];if(!td)throw TypeError("invalid suite type");if("string"==typeof ti&&(ti=ts.from(ti)),"GCM"!==td.mode&&ti.length!==td.iv)throw TypeError("invalid iv length "+ti.length);if("string"==typeof tr&&(tr=ts.from(tr)),tr.length!==td.key/8)throw TypeError("invalid key length "+tr.length);return"stream"===td.type?new tc(td.module,tr,ti,!0):"auth"===td.type?new ta(td.module,tr,ti,!0):new tg(td.module,tr,ti)}function tA(tt,tr){var ti=tu[tt.toLowerCase()];if(!ti)throw TypeError("invalid suite type");var ta=tv(tr,!1,ti.key,ti.iv);return tE(tt,ta.key,ta.iv)}ti(3782)(tg,td),tg.prototype._update=function(tt){this._cache.add(tt);for(var tr,ti,ta=[];tr=this._cache.get(this._autopadding);)ti=this._mode.decrypt(this,tr),ta.push(ti);return ts.concat(ta)},tg.prototype._final=function(){var tt=this._cache.flush();if(this._autopadding)return t_(this._mode.decrypt(this,tt));if(tt)throw Error("data not multiple of block length")},tg.prototype.setAutoPadding=function(tt){return this._autopadding=!!tt,this},tb.prototype.add=function(tt){this.cache=ts.concat([this.cache,tt])},tb.prototype.get=function(tt){var tr;if(tt){if(this.cache.length>16)return tr=this.cache.slice(0,16),this.cache=this.cache.slice(16),tr}else if(this.cache.length>=16)return tr=this.cache.slice(0,16),this.cache=this.cache.slice(16),tr;return null},tb.prototype.flush=function(){if(this.cache.length)return this.cache},tr.createDecipher=tA,tr.createDecipheriv=tE},2:function(tt,tr,ti){var ta=ti(6370),ts=ti(6624),tu=ti(6911).Buffer,tc=ti(126),td=ti(1043),tp=ti(1387),tv=ti(8368);function tg(tt,tr,ti){td.call(this),this._cache=new t_,this._cipher=new tp.AES(tr),this._prev=tu.from(ti),this._mode=tt,this._autopadding=!0}ti(3782)(tg,td),tg.prototype._update=function(tt){this._cache.add(tt);for(var tr,ti,ta=[];tr=this._cache.get();)ti=this._mode.encrypt(this,tr),ta.push(ti);return tu.concat(ta)};var tb=tu.alloc(16,16);function t_(){this.cache=tu.allocUnsafe(0)}function tE(tt,tr,ti){var td=ta[tt.toLowerCase()];if(!td)throw TypeError("invalid suite type");if("string"==typeof tr&&(tr=tu.from(tr)),tr.length!==td.key/8)throw TypeError("invalid key length "+tr.length);if("string"==typeof ti&&(ti=tu.from(ti)),"GCM"!==td.mode&&ti.length!==td.iv)throw TypeError("invalid iv length "+ti.length);return"stream"===td.type?new tc(td.module,tr,ti):"auth"===td.type?new ts(td.module,tr,ti):new tg(td.module,tr,ti)}function tA(tt,tr){var ti=ta[tt.toLowerCase()];if(!ti)throw TypeError("invalid suite type");var ts=tv(tr,!1,ti.key,ti.iv);return tE(tt,ts.key,ts.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(tb))throw this._cipher.scrub(),Error("data not multiple of block length")},tg.prototype.setAutoPadding=function(tt){return this._autopadding=!!tt,this},t_.prototype.add=function(tt){this.cache=tu.concat([this.cache,tt])},t_.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},t_.prototype.flush=function(){for(var tt=16-this.cache.length,tr=tu.allocUnsafe(tt),ti=-1;++ti<tt;)tr.writeUInt8(tt,ti);return tu.concat([this.cache,tr])},tr.createCipheriv=tE,tr.createCipher=tA},7225:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ta.alloc(16,0);function tu(tt){return[tt.readUInt32BE(0),tt.readUInt32BE(4),tt.readUInt32BE(8),tt.readUInt32BE(12)]}function tc(tt){var tr=ta.allocUnsafe(16);return tr.writeUInt32BE(tt[0]>>>0,0),tr.writeUInt32BE(tt[1]>>>0,4),tr.writeUInt32BE(tt[2]>>>0,8),tr.writeUInt32BE(tt[3]>>>0,12),tr}function td(tt){this.h=tt,this.state=ta.alloc(16,0),this.cache=ta.allocUnsafe(0)}td.prototype.ghash=function(tt){for(var tr=-1;++tr<tt.length;)this.state[tr]^=tt[tr];this._multiply()},td.prototype._multiply=function(){for(var tt,tr,ti=tu(this.h),ta=[0,0,0,0],ts=-1;++ts<128;){for((this.state[~~(ts/8)]&1<<7-ts%8)!=0&&(ta[0]^=ti[0],ta[1]^=ti[1],ta[2]^=ti[2],ta[3]^=ti[3]),tr=(1&ti[3])!=0,tt=3;tt>0;tt--)ti[tt]=ti[tt]>>>1|(1&ti[tt-1])<<31;ti[0]=ti[0]>>>1,tr&&(ti[0]=-520093696^ti[0])}this.state=tc(ta)},td.prototype.update=function(tt){var tr;for(this.cache=ta.concat([this.cache,tt]);this.cache.length>=16;)tr=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tr)},td.prototype.final=function(tt,tr){return this.cache.length&&this.ghash(ta.concat([this.cache,ts],16)),this.ghash(tc([0,tt,0,tr])),this.state},tt.exports=td},598:function(tt){function tr(tt){for(var tr,ti=tt.length;ti--;)if(255===(tr=tt.readUInt8(ti)))tt.writeUInt8(0,ti);else{tr++,tt.writeUInt8(tr,ti);break}}tt.exports=tr},9825:function(tt,tr,ti){var ta=ti(4734);tr.encrypt=function(tt,tr){var ti=ta(tr,tt._prev);return tt._prev=tt._cipher.encryptBlock(ti),tt._prev},tr.decrypt=function(tt,tr){var ti=tt._prev;return tt._prev=tr,ta(tt._cipher.decryptBlock(tr),ti)}},321:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(4734);function tu(tt,tr,ti){var tu=tr.length,tc=ts(tr,tt._cache);return tt._cache=tt._cache.slice(tu),tt._prev=ta.concat([tt._prev,ti?tr:tc]),tc}tr.encrypt=function(tt,tr,ti){for(var ts,tc=ta.allocUnsafe(0);tr.length;)if(0===tt._cache.length&&(tt._cache=tt._cipher.encryptBlock(tt._prev),tt._prev=ta.allocUnsafe(0)),tt._cache.length<=tr.length)ts=tt._cache.length,tc=ta.concat([tc,tu(tt,tr.slice(0,ts),ti)]),tr=tr.slice(ts);else{tc=ta.concat([tc,tu(tt,tr,ti)]);break}return tc}},3147:function(tt,tr,ti){var ta=ti(6911).Buffer;function ts(tt,tr,ti){for(var ta,ts,tc,td=-1,tp=8,tv=0;++td<tp;)ta=tt._cipher.encryptBlock(tt._prev),ts=tr&1<<7-td?128:0,tv+=(128&(tc=ta[0]^ts))>>td%8,tt._prev=tu(tt._prev,ti?ts:tc);return tv}function tu(tt,tr){var ti=tt.length,ts=-1,tu=ta.allocUnsafe(tt.length);for(tt=ta.concat([tt,ta.from([tr])]);++ts<ti;)tu[ts]=tt[ts]<<1|tt[ts+1]>>7;return tu}tr.encrypt=function(tt,tr,ti){for(var tu=tr.length,tc=ta.allocUnsafe(tu),td=-1;++td<tu;)tc[td]=ts(tt,tr[td],ti);return tc}},2430:function(tt,tr,ti){var ta=ti(6911).Buffer;function ts(tt,tr,ti){var ts=tt._cipher.encryptBlock(tt._prev)[0]^tr;return tt._prev=ta.concat([tt._prev.slice(1),ta.from([ti?tr:ts])]),ts}tr.encrypt=function(tt,tr,ti){for(var tu=tr.length,tc=ta.allocUnsafe(tu),td=-1;++td<tu;)tc[td]=ts(tt,tr[td],ti);return tc}},3361:function(tt,tr,ti){var ta=ti(4734),ts=ti(6911).Buffer,tu=ti(598);function tc(tt){var tr=tt._cipher.encryptBlockRaw(tt._prev);return tu(tt._prev),tr}var td=16;tr.encrypt=function(tt,tr){var ti=Math.ceil(tr.length/td),tu=tt._cache.length;tt._cache=ts.concat([tt._cache,ts.allocUnsafe(ti*td)]);for(var tp=0;tp<ti;tp++){var tv=tc(tt),tg=tu+tp*td;tt._cache.writeUInt32BE(tv[0],tg+0),tt._cache.writeUInt32BE(tv[1],tg+4),tt._cache.writeUInt32BE(tv[2],tg+8),tt._cache.writeUInt32BE(tv[3],tg+12)}var tb=tt._cache.slice(0,tr.length);return tt._cache=tt._cache.slice(tr.length),ta(tr,tb)}},1590:function(tt,tr){tr.encrypt=function(tt,tr){return tt._cipher.encryptBlock(tr)},tr.decrypt=function(tt,tr){return tt._cipher.decryptBlock(tr)}},6370:function(tt,tr,ti){var ta={ECB:ti(1590),CBC:ti(9825),CFB:ti(321),CFB8:ti(2430),CFB1:ti(3147),OFB:ti(3412),CTR:ti(3361),GCM:ti(3361)},ts=ti(5866);for(var tu in ts)ts[tu].module=ta[ts[tu].mode];tt.exports=ts},3412:function(tt,tr,ti){var ta=ti(4734);function tu(tt){return tt._prev=tt._cipher.encryptBlock(tt._prev),tt._prev}tr.encrypt=function(tt,tr){for(;tt._cache.length<tr.length;)tt._cache=ts.concat([tt._cache,tu(tt)]);var ti=tt._cache.slice(0,tr.length);return tt._cache=tt._cache.slice(tr.length),ta(tr,ti)}},126:function(tt,tr,ti){var ta=ti(1387),ts=ti(6911).Buffer,tu=ti(1043);function tc(tt,tr,ti,tc){tu.call(this),this._cipher=new ta.AES(tr),this._prev=ts.from(ti),this._cache=ts.allocUnsafe(0),this._secCache=ts.allocUnsafe(0),this._decrypt=tc,this._mode=tt}ti(3782)(tc,tu),tc.prototype._update=function(tt){return this._mode.encrypt(this,tt,this._decrypt)},tc.prototype._final=function(){this._cipher.scrub()},tt.exports=tc},8996:function(tt,tr,ti){var ta=ti(5238),ts=ti(6594),tu=ti(6370),tc=ti(6280),td=ti(8368);function tp(tt,tr){if(tu[tt=tt.toLowerCase()])ti=tu[tt].key,ta=tu[tt].iv;else if(tc[tt])ti=8*tc[tt].key,ta=tc[tt].iv;else throw TypeError("invalid suite type");var ti,ta,ts=td(tr,!1,ti,ta);return tg(tt,ts.key,ts.iv)}function tv(tt,tr){if(tu[tt=tt.toLowerCase()])ti=tu[tt].key,ta=tu[tt].iv;else if(tc[tt])ti=8*tc[tt].key,ta=tc[tt].iv;else throw TypeError("invalid suite type");var ti,ta,ts=td(tr,!1,ti,ta);return tb(tt,ts.key,ts.iv)}function tg(tt,tr,ti){if(tu[tt=tt.toLowerCase()])return ts.createCipheriv(tt,tr,ti);if(tc[tt])return new ta({key:tr,iv:ti,mode:tt});throw TypeError("invalid suite type")}function tb(tt,tr,ti){if(tu[tt=tt.toLowerCase()])return ts.createDecipheriv(tt,tr,ti);if(tc[tt])return new ta({key:tr,iv:ti,mode:tt,decrypt:!0});throw TypeError("invalid suite type")}function t_(){return Object.keys(tc).concat(ts.getCiphers())}tr.createCipher=tr.Cipher=tp,tr.createCipheriv=tr.Cipheriv=tg,tr.createDecipher=tr.Decipher=tv,tr.createDecipheriv=tr.Decipheriv=tb,tr.listCiphers=tr.getCiphers=t_},5238:function(tt,tr,ti){var ta=ti(1043),ts=ti(9536),tu=ti(3782),tc=ti(6911).Buffer,td={"des-ede3-cbc":ts.CBC.instantiate(ts.EDE),"des-ede3":ts.EDE,"des-ede-cbc":ts.CBC.instantiate(ts.EDE),"des-ede":ts.EDE,"des-cbc":ts.CBC.instantiate(ts.DES),"des-ecb":ts.DES};function tp(tt){ta.call(this);var tr,ti=tt.mode.toLowerCase(),ts=td[ti];tr=tt.decrypt?"decrypt":"encrypt";var tu=tt.key;tc.isBuffer(tu)||(tu=tc.from(tu)),("des-ede"===ti||"des-ede-cbc"===ti)&&(tu=tc.concat([tu,tu.slice(0,8)]));var tp=tt.iv;tc.isBuffer(tp)||(tp=tc.from(tp)),this._des=ts.create({key:tu,iv:tp,type:tr})}td.des=td["des-cbc"],td.des3=td["des-ede3-cbc"],tt.exports=tp,tu(tp,ta),tp.prototype._update=function(tt){return tc.from(this._des.update(tt))},tp.prototype._final=function(){return tc.from(this._des.final())}},6280:function(tt,tr){tr["des-ecb"]={key:8,iv:0},tr["des-cbc"]=tr.des={key:8,iv:8},tr["des-ede3-cbc"]=tr.des3={key:24,iv:8},tr["des-ede3"]={key:24,iv:0},tr["des-ede-cbc"]={key:16,iv:8},tr["des-ede"]={key:16,iv:0}},7166:function(tt,tr,ti){var ta=ti(711),tu=ti(7223);function tc(tt){var tr=tp(tt);return{blinder:tr.toRed(ta.mont(tt.modulus)).redPow(new ta(tt.publicExponent)).fromRed(),unblinder:tr.invm(tt.modulus)}}function td(tt,tr){var ti=tc(tr),tu=tr.modulus.byteLength();ta.mont(tr.modulus);var td=new ta(tt).mul(ti.blinder).umod(tr.modulus),tp=td.toRed(ta.mont(tr.prime1)),tv=td.toRed(ta.mont(tr.prime2)),tg=tr.coefficient,tb=tr.prime1,t_=tr.prime2,tE=tp.redPow(tr.exponent1),tA=tv.redPow(tr.exponent2);tE=tE.fromRed(),tA=tA.fromRed();var tS=tE.isub(tA).imul(tg).umod(tb);return tS.imul(t_),tA.iadd(tS),new ts(tA.imul(ti.unblinder).umod(tr.modulus).toArray(!1,tu))}function tp(tt){for(var tr=tt.modulus.byteLength(),ti=new ta(tu(tr));ti.cmp(tt.modulus)>=0||!ti.umod(tt.prime1)||!ti.umod(tt.prime2);)ti=new ta(tu(tr));return ti}tt.exports=td,td.getr=tp},9276:function(tt,tr,ti){tt.exports=ti(2908)},4078:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(9739),tu=ti(3726),tc=ti(3782),td=ti(9807),tp=ti(4013),tv=ti(2908);function tg(tt){tu.Writable.call(this);var tr=tv[tt];if(!tr)throw Error("Unknown message digest");this._hashType=tr.hash,this._hash=ts(tr.hash),this._tag=tr.id,this._signType=tr.sign}function tb(tt){tu.Writable.call(this);var tr=tv[tt];if(!tr)throw Error("Unknown message digest");this._hash=ts(tr.hash),this._tag=tr.id,this._signType=tr.sign}function t_(tt){return new tg(tt)}function tE(tt){return new tb(tt)}Object.keys(tv).forEach(function(tt){tv[tt].id=ta.from(tv[tt].id,"hex"),tv[tt.toLowerCase()]=tv[tt]}),tc(tg,tu.Writable),tg.prototype._write=function(tt,tr,ti){this._hash.update(tt),ti()},tg.prototype.update=function(tt,tr){return"string"==typeof tt&&(tt=ta.from(tt,tr)),this._hash.update(tt),this},tg.prototype.sign=function(tt,tr){this.end();var ti=td(this._hash.digest(),tt,this._hashType,this._signType,this._tag);return tr?ti.toString(tr):ti},tc(tb,tu.Writable),tb.prototype._write=function(tt,tr,ti){this._hash.update(tt),ti()},tb.prototype.update=function(tt,tr){return"string"==typeof tt&&(tt=ta.from(tt,tr)),this._hash.update(tt),this},tb.prototype.verify=function(tt,tr,ti){return"string"==typeof tr&&(tr=ta.from(tr,ti)),this.end(),tp(tr,this._hash.digest(),tt,this._signType,this._tag)},tt.exports={Sign:t_,Verify:tE,createSign:t_,createVerify:tE}},9807:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(4873),tu=ti(7166),tc=ti(949).ec,td=ti(1670),tp=ti(9902),tv=ti(9267);function tg(tt,tr,ti,ts,tc){var td=tp(tr);if(td.curve){if("ecdsa"!==ts&&"ecdsa/rsa"!==ts)throw Error("wrong private key type");return tb(tt,td)}if("dsa"===td.type){if("dsa"!==ts)throw Error("wrong private key type");return t_(tt,td,ti)}if("rsa"!==ts&&"ecdsa/rsa"!==ts)throw Error("wrong private key type");tt=ta.concat([tc,tt]);for(var tv=td.modulus.byteLength(),tg=[0,1];tt.length+tg.length+1<tv;)tg.push(255);tg.push(0);for(var tE=-1;++tE<tt.length;)tg.push(tt[tE]);return tu(tg,td)}function tb(tt,tr){var ti=tv[tr.curve.join(".")];if(!ti)throw Error("unknown curve "+tr.curve.join("."));var ts=new tc(ti).keyFromPrivate(tr.privateKey).sign(tt);return ta.from(ts.toDER())}function t_(tt,tr,ti){for(var ta,ts=tr.params.priv_key,tu=tr.params.p,tc=tr.params.q,tp=tr.params.g,tv=new td(0),tg=tS(tt,tc).mod(tc),tb=!1,t_=tA(ts,tc,tt,ti);!1===tb;)tv=tR(tp,ta=tM(tc,t_,ti),tu,tc),0===(tb=ta.invm(tc).imul(tg.add(ts.mul(tv))).mod(tc)).cmpn(0)&&(tb=!1,tv=new td(0));return tE(tv,tb)}function tE(tt,tr){tt=tt.toArray(),tr=tr.toArray(),128&tt[0]&&(tt=[0].concat(tt)),128&tr[0]&&(tr=[0].concat(tr));var ti=[48,tt.length+tr.length+4,2,tt.length];return ti=ti.concat(tt,[2,tr.length],tr),ta.from(ti)}function tA(tt,tr,ti,tu){if((tt=ta.from(tt.toArray())).length<tr.byteLength()){var tc=ta.alloc(tr.byteLength()-tt.length);tt=ta.concat([tc,tt])}var td=ti.length,tp=tT(ti,tr),tv=ta.alloc(td);tv.fill(1);var tg=ta.alloc(td);return tg=ts(tu,tg).update(tv).update(ta.from([0])).update(tt).update(tp).digest(),tv=ts(tu,tg).update(tv).digest(),tg=ts(tu,tg).update(tv).update(ta.from([1])).update(tt).update(tp).digest(),tv=ts(tu,tg).update(tv).digest(),{k:tg,v:tv}}function tS(tt,tr){var ti=new td(tt),ta=(tt.length<<3)-tr.bitLength();return ta>0&&ti.ishrn(ta),ti}function tT(tt,tr){tt=(tt=tS(tt,tr)).mod(tr);var ti=ta.from(tt.toArray());if(ti.length<tr.byteLength()){var ts=ta.alloc(tr.byteLength()-ti.length);ti=ta.concat([ts,ti])}return ti}function tM(tt,tr,ti){var tu,tc;do{for(tu=ta.alloc(0);8*tu.length<tt.bitLength();)tr.v=ts(ti,tr.k).update(tr.v).digest(),tu=ta.concat([tu,tr.v]);tc=tS(tu,tt),tr.k=ts(ti,tr.k).update(tr.v).update(ta.from([0])).digest(),tr.v=ts(ti,tr.k).update(tr.v).digest()}while(-1!==tc.cmp(tt));return tc}function tR(tt,tr,ti,ta){return tt.toRed(td.mont(ti)).redPow(tr).fromRed().mod(ta)}tt.exports=tg,tt.exports.getKey=tA,tt.exports.makeKey=tM},4013:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(1670),tu=ti(949).ec,tc=ti(9902),td=ti(9267);function tp(tt,tr,ti,tu,td){var tp=tc(ti);if("ec"===tp.type){if("ecdsa"!==tu&&"ecdsa/rsa"!==tu)throw Error("wrong public key type");return tv(tt,tr,tp)}if("dsa"===tp.type){if("dsa"!==tu)throw Error("wrong public key type");return tg(tt,tr,tp)}if("rsa"!==tu&&"ecdsa/rsa"!==tu)throw Error("wrong public key type");tr=ta.concat([td,tr]);for(var tb=tp.modulus.byteLength(),t_=[1],tE=0;tr.length+t_.length+2<tb;)t_.push(255),tE++;t_.push(0);for(var tA=-1;++tA<tr.length;)t_.push(tr[tA]);t_=ta.from(t_);var tS=ts.mont(tp.modulus);tt=(tt=new ts(tt).toRed(tS)).redPow(new ts(tp.publicExponent));var tT=tE<8?1:0;for(tb=Math.min((tt=ta.from(tt.fromRed().toArray())).length,t_.length),tt.length!==t_.length&&(tT=1),tA=-1;++tA<tb;)tT|=tt[tA]^t_[tA];return 0===tT}function tv(tt,tr,ti){var ta=td[ti.data.algorithm.curve.join(".")];if(!ta)throw Error("unknown curve "+ti.data.algorithm.curve.join("."));var ts=new tu(ta),tc=ti.data.subjectPrivateKey.data;return ts.verify(tr,tt,tc)}function tg(tt,tr,ti){var ta=ti.data.p,tu=ti.data.q,td=ti.data.g,tp=ti.data.pub_key,tv=tc.signature.decode(tt,"der"),tg=tv.s,t_=tv.r;tb(tg,tu),tb(t_,tu);var tE=ts.mont(ta),tA=tg.invm(tu);return 0===td.toRed(tE).redPow(new ts(tr).mul(tA).mod(tu)).fromRed().mul(tp.toRed(tE).redPow(t_.mul(tA).mod(tu)).fromRed()).mod(ta).mod(tu).cmp(t_)}function tb(tt,tr){if(0>=tt.cmpn(0)||tt.cmp(tr)>=tr)throw Error("invalid sig")}tt.exports=tp},4734:function(tt){tt.exports=function(tt,tr){for(var ti=Math.min(tt.length,tr.length),ta=new ts(ti),tu=0;tu<ti;++tu)ta[tu]=tt[tu]^tr[tu];return ta}},1043:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(2781).Transform,tu=ti(1576).StringDecoder;function tc(tt){ts.call(this),this.hashMode="string"==typeof tt,this.hashMode?this[tt]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}ti(3782)(tc,ts),tc.prototype.update=function(tt,tr,ti){"string"==typeof tt&&(tt=ta.from(tt,tr));var ts=this._update(tt);return this.hashMode?this:(ti&&(ts=this._toString(ts,ti)),ts)},tc.prototype.setAutoPadding=function(){},tc.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},tc.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},tc.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},tc.prototype._transform=function(tt,tr,ti){var ta;try{this.hashMode?this._update(tt):this.push(this._update(tt))}catch(tt){ta=tt}finally{ti(ta)}},tc.prototype._flush=function(tt){var tr;try{this.push(this.__final())}catch(tt){tr=tt}tt(tr)},tc.prototype._finalOrDigest=function(tt){var tr=this.__final()||ta.alloc(0);return tt&&(tr=this._toString(tr,tt,!0)),tr},tc.prototype._toString=function(tt,tr,ti){if(this._decoder||(this._decoder=new tu(tr),this._encoding=tr),this._encoding!==tr)throw Error("can't switch encodings");var ta=this._decoder.write(tt);return ti&&(ta+=this._decoder.end()),ta},tt.exports=tc},9942:function(tt,tr,ti){var ta=ti(949),tu=ti(711);tt.exports=function(tt){return new td(tt)};var tc={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function td(tt){this.curveType=tc[tt],this.curveType||(this.curveType={name:tt}),this.curve=new ta.ec(this.curveType.name),this.keys=void 0}function tp(tt,tr,ti){Array.isArray(tt)||(tt=tt.toArray());var ta=new ts(tt);if(ti&&ta.length<ti){var tu=new ts(ti-ta.length);tu.fill(0),ta=ts.concat([tu,ta])}return tr?ta.toString(tr):ta}tc.p224=tc.secp224r1,tc.p256=tc.secp256r1=tc.prime256v1,tc.p192=tc.secp192r1=tc.prime192v1,tc.p384=tc.secp384r1,tc.p521=tc.secp521r1,td.prototype.generateKeys=function(tt,tr){return this.keys=this.curve.genKeyPair(),this.getPublicKey(tt,tr)},td.prototype.computeSecret=function(tt,tr,ti){return tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr)),tp(this.curve.keyFromPublic(tt).getPublic().mul(this.keys.getPrivate()).getX(),ti,this.curveType.byteLength)},td.prototype.getPublicKey=function(tt,tr){var ti=this.keys.getPublic("compressed"===tr,!0);return"hybrid"===tr&&(ti[ti.length-1]%2?ti[0]=7:ti[0]=6),tp(ti,tt)},td.prototype.getPrivateKey=function(tt){return tp(this.keys.getPrivate(),tt)},td.prototype.setPublicKey=function(tt,tr){return tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr)),this.keys._importPublic(tt),this},td.prototype.setPrivateKey=function(tt,tr){tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr));var ti=new tu(tt);return ti=ti.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ti),this}},9739:function(tt,tr,ti){"use strict";var ta=ti(3782),ts=ti(3533),tu=ti(3225),tc=ti(4371),td=ti(1043);function tp(tt){td.call(this,"digest"),this._hash=tt}ta(tp,td),tp.prototype._update=function(tt){this._hash.update(tt)},tp.prototype._final=function(){return this._hash.digest()},tt.exports=function(tt){return"md5"===(tt=tt.toLowerCase())?new ts:"rmd160"===tt||"ripemd160"===tt?new tu:new tp(tc(tt))}},450:function(tt,tr,ti){var ta=ti(3533);tt.exports=function(tt){return new ta().update(tt).digest()}},4873:function(tt,tr,ti){"use strict";var ta=ti(3782),ts=ti(8119),tu=ti(1043),tc=ti(6911).Buffer,td=ti(450),tp=ti(3225),tv=ti(4371),tg=tc.alloc(128);function tb(tt,tr){tu.call(this,"digest"),"string"==typeof tr&&(tr=tc.from(tr));var ti="sha512"===tt||"sha384"===tt?128:64;this._alg=tt,this._key=tr,tr.length>ti?tr=("rmd160"===tt?new tp:tv(tt)).update(tr).digest():tr.length<ti&&(tr=tc.concat([tr,tg],ti));for(var ta=this._ipad=tc.allocUnsafe(ti),ts=this._opad=tc.allocUnsafe(ti),td=0;td<ti;td++)ta[td]=54^tr[td],ts[td]=92^tr[td];this._hash="rmd160"===tt?new tp:tv(tt),this._hash.update(ta)}ta(tb,tu),tb.prototype._update=function(tt){this._hash.update(tt)},tb.prototype._final=function(){var tt=this._hash.digest();return("rmd160"===this._alg?new tp:tv(this._alg)).update(this._opad).update(tt).digest()},tt.exports=function(tt,tr){return"rmd160"===(tt=tt.toLowerCase())||"ripemd160"===tt?new tb("rmd160",tr):"md5"===tt?new ts(td,tr):new tb(tt,tr)}},8119:function(tt,tr,ti){"use strict";var ta=ti(3782),ts=ti(6911).Buffer,tu=ti(1043),tc=ts.alloc(128),td=64;function tp(tt,tr){tu.call(this,"digest"),"string"==typeof tr&&(tr=ts.from(tr)),this._alg=tt,this._key=tr,tr.length>td?tr=tt(tr):tr.length<td&&(tr=ts.concat([tr,tc],td));for(var ti=this._ipad=ts.allocUnsafe(td),ta=this._opad=ts.allocUnsafe(td),tp=0;tp<td;tp++)ti[tp]=54^tr[tp],ta[tp]=92^tr[tp];this._hash=[ti]}ta(tp,tu),tp.prototype._update=function(tt){this._hash.push(tt)},tp.prototype._final=function(){var tt=this._alg(ts.concat(this._hash));return this._alg(ts.concat([this._opad,tt]))},tt.exports=tp},9536:function(tt,tr,ti){"use strict";tr.utils=ti(5334),tr.Cipher=ti(9876),tr.DES=ti(1016),tr.CBC=ti(8641),tr.EDE=ti(6159)},8641:function(tt,tr,ti){"use strict";var ta=ti(3523),ts=ti(3782),tu={};function tc(tt){ta.equal(tt.length,8,"Invalid IV length"),this.iv=Array(8);for(var tr=0;tr<this.iv.length;tr++)this.iv[tr]=tt[tr]}function td(tt){function tr(tr){tt.call(this,tr),this._cbcInit()}ts(tr,tt);for(var ti=Object.keys(tu),ta=0;ta<ti.length;ta++){var tc=ti[ta];tr.prototype[tc]=tu[tc]}return tr.create=function(tt){return new tr(tt)},tr}tr.instantiate=td,tu._cbcInit=function(){var tt=new tc(this.options.iv);this._cbcState=tt},tu._update=function(tt,tr,ti,ta){var ts=this._cbcState,tu=this.constructor.super_.prototype,tc=ts.iv;if("encrypt"===this.type){for(var td=0;td<this.blockSize;td++)tc[td]^=tt[tr+td];tu._update.call(this,tc,0,ti,ta);for(var td=0;td<this.blockSize;td++)tc[td]=ti[ta+td]}else{tu._update.call(this,tt,tr,ti,ta);for(var td=0;td<this.blockSize;td++)ti[ta+td]^=tc[td];for(var td=0;td<this.blockSize;td++)tc[td]=tt[tr+td]}}},9876:function(tt,tr,ti){"use strict";var ta=ti(3523);function ts(tt){this.options=tt,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}tt.exports=ts,ts.prototype._init=function(){},ts.prototype.update=function(tt){return 0===tt.length?[]:"decrypt"===this.type?this._updateDecrypt(tt):this._updateEncrypt(tt)},ts.prototype._buffer=function(tt,tr){for(var ti=Math.min(this.buffer.length-this.bufferOff,tt.length-tr),ta=0;ta<ti;ta++)this.buffer[this.bufferOff+ta]=tt[tr+ta];return this.bufferOff+=ti,ti},ts.prototype._flushBuffer=function(tt,tr){return this._update(this.buffer,0,tt,tr),this.bufferOff=0,this.blockSize},ts.prototype._updateEncrypt=function(tt){var tr=0,ti=0,ta=Array(((this.bufferOff+tt.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(tr+=this._buffer(tt,tr),this.bufferOff===this.buffer.length&&(ti+=this._flushBuffer(ta,ti)));for(var ts=tt.length-(tt.length-tr)%this.blockSize;tr<ts;tr+=this.blockSize)this._update(tt,tr,ta,ti),ti+=this.blockSize;for(;tr<tt.length;tr++,this.bufferOff++)this.buffer[this.bufferOff]=tt[tr];return ta},ts.prototype._updateDecrypt=function(tt){for(var tr=0,ti=0,ta=Math.ceil((this.bufferOff+tt.length)/this.blockSize)-1,ts=Array(ta*this.blockSize);ta>0;ta--)tr+=this._buffer(tt,tr),ti+=this._flushBuffer(ts,ti);return tr+=this._buffer(tt,tr),ts},ts.prototype.final=function(tt){var tr,ti;return(tt&&(tr=this.update(tt)),ti="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),tr)?tr.concat(ti):ti},ts.prototype._pad=function(tt,tr){if(0===tr)return!1;for(;tr<tt.length;)tt[tr++]=0;return!0},ts.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var tt=Array(this.blockSize);return this._update(this.buffer,0,tt,0),tt},ts.prototype._unpad=function(tt){return tt},ts.prototype._finalDecrypt=function(){ta.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var tt=Array(this.blockSize);return this._flushBuffer(tt,0),this._unpad(tt)}},1016:function(tt,tr,ti){"use strict";var ta=ti(3523),ts=ti(3782),tu=ti(5334),tc=ti(9876);function td(){this.tmp=[,,],this.keys=null}function tp(tt){tc.call(this,tt);var tr=new td;this._desState=tr,this.deriveKeys(tr,tt.key)}ts(tp,tc),tt.exports=tp,tp.create=function(tt){return new tp(tt)};var tv=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];tp.prototype.deriveKeys=function(tt,tr){tt.keys=Array(32),ta.equal(tr.length,this.blockSize,"Invalid key length");var ti=tu.readUInt32BE(tr,0),ts=tu.readUInt32BE(tr,4);tu.pc1(ti,ts,tt.tmp,0),ti=tt.tmp[0],ts=tt.tmp[1];for(var tc=0;tc<tt.keys.length;tc+=2){var td=tv[tc>>>1];ti=tu.r28shl(ti,td),ts=tu.r28shl(ts,td),tu.pc2(ti,ts,tt.keys,tc)}},tp.prototype._update=function(tt,tr,ti,ta){var ts=this._desState,tc=tu.readUInt32BE(tt,tr),td=tu.readUInt32BE(tt,tr+4);tu.ip(tc,td,ts.tmp,0),tc=ts.tmp[0],td=ts.tmp[1],"encrypt"===this.type?this._encrypt(ts,tc,td,ts.tmp,0):this._decrypt(ts,tc,td,ts.tmp,0),tc=ts.tmp[0],td=ts.tmp[1],tu.writeUInt32BE(ti,tc,ta),tu.writeUInt32BE(ti,td,ta+4)},tp.prototype._pad=function(tt,tr){for(var ti=tt.length-tr,ta=tr;ta<tt.length;ta++)tt[ta]=ti;return!0},tp.prototype._unpad=function(tt){for(var tr=tt[tt.length-1],ti=tt.length-tr;ti<tt.length;ti++)ta.equal(tt[ti],tr);return tt.slice(0,tt.length-tr)},tp.prototype._encrypt=function(tt,tr,ti,ta,ts){for(var tc=tr,td=ti,tp=0;tp<tt.keys.length;tp+=2){var tv=tt.keys[tp],tg=tt.keys[tp+1];tu.expand(td,tt.tmp,0),tv^=tt.tmp[0],tg^=tt.tmp[1];var tb=tu.substitute(tv,tg),t_=tu.permute(tb),tE=td;td=(tc^t_)>>>0,tc=tE}tu.rip(td,tc,ta,ts)},tp.prototype._decrypt=function(tt,tr,ti,ta,ts){for(var tc=ti,td=tr,tp=tt.keys.length-2;tp>=0;tp-=2){var tv=tt.keys[tp],tg=tt.keys[tp+1];tu.expand(tc,tt.tmp,0),tv^=tt.tmp[0],tg^=tt.tmp[1];var tb=tu.substitute(tv,tg),t_=tu.permute(tb),tE=tc;tc=(td^t_)>>>0,td=tE}tu.rip(tc,td,ta,ts)}},6159:function(tt,tr,ti){"use strict";var ta=ti(3523),ts=ti(3782),tu=ti(9876),tc=ti(1016);function td(tt,tr){ta.equal(tr.length,24,"Invalid key length");var ti=tr.slice(0,8),ts=tr.slice(8,16),tu=tr.slice(16,24);"encrypt"===tt?this.ciphers=[tc.create({type:"encrypt",key:ti}),tc.create({type:"decrypt",key:ts}),tc.create({type:"encrypt",key:tu})]:this.ciphers=[tc.create({type:"decrypt",key:tu}),tc.create({type:"encrypt",key:ts}),tc.create({type:"decrypt",key:ti})]}function tp(tt){tu.call(this,tt);var tr=new td(this.type,this.options.key);this._edeState=tr}ts(tp,tu),tt.exports=tp,tp.create=function(tt){return new tp(tt)},tp.prototype._update=function(tt,tr,ti,ta){var ts=this._edeState;ts.ciphers[0]._update(tt,tr,ti,ta),ts.ciphers[1]._update(ti,ta,ti,ta),ts.ciphers[2]._update(ti,ta,ti,ta)},tp.prototype._pad=tc.prototype._pad,tp.prototype._unpad=tc.prototype._unpad},5334:function(tt,tr){"use strict";tr.readUInt32BE=function(tt,tr){return(tt[0+tr]<<24|tt[1+tr]<<16|tt[2+tr]<<8|tt[3+tr])>>>0},tr.writeUInt32BE=function(tt,tr,ti){tt[0+ti]=tr>>>24,tt[1+ti]=tr>>>16&255,tt[2+ti]=tr>>>8&255,tt[3+ti]=255&tr},tr.ip=function(tt,tr,ti,ta){for(var ts=0,tu=0,tc=6;tc>=0;tc-=2){for(var td=0;td<=24;td+=8)ts<<=1,ts|=tr>>>td+tc&1;for(var td=0;td<=24;td+=8)ts<<=1,ts|=tt>>>td+tc&1}for(var tc=6;tc>=0;tc-=2){for(var td=1;td<=25;td+=8)tu<<=1,tu|=tr>>>td+tc&1;for(var td=1;td<=25;td+=8)tu<<=1,tu|=tt>>>td+tc&1}ti[ta+0]=ts>>>0,ti[ta+1]=tu>>>0},tr.rip=function(tt,tr,ti,ta){for(var ts=0,tu=0,tc=0;tc<4;tc++)for(var td=24;td>=0;td-=8)ts<<=1,ts|=tr>>>td+tc&1,ts<<=1,ts|=tt>>>td+tc&1;for(var tc=4;tc<8;tc++)for(var td=24;td>=0;td-=8)tu<<=1,tu|=tr>>>td+tc&1,tu<<=1,tu|=tt>>>td+tc&1;ti[ta+0]=ts>>>0,ti[ta+1]=tu>>>0},tr.pc1=function(tt,tr,ti,ta){for(var ts=0,tu=0,tc=7;tc>=5;tc--){for(var td=0;td<=24;td+=8)ts<<=1,ts|=tr>>td+tc&1;for(var td=0;td<=24;td+=8)ts<<=1,ts|=tt>>td+tc&1}for(var td=0;td<=24;td+=8)ts<<=1,ts|=tr>>td+tc&1;for(var tc=1;tc<=3;tc++){for(var td=0;td<=24;td+=8)tu<<=1,tu|=tr>>td+tc&1;for(var td=0;td<=24;td+=8)tu<<=1,tu|=tt>>td+tc&1}for(var td=0;td<=24;td+=8)tu<<=1,tu|=tt>>td+tc&1;ti[ta+0]=ts>>>0,ti[ta+1]=tu>>>0},tr.r28shl=function(tt,tr){return tt<<tr&268435455|tt>>>28-tr};var ti=[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];tr.pc2=function(tt,tr,ta,ts){for(var tu=0,tc=0,td=ti.length>>>1,tp=0;tp<td;tp++)tu<<=1,tu|=tt>>>ti[tp]&1;for(var tp=td;tp<ti.length;tp++)tc<<=1,tc|=tr>>>ti[tp]&1;ta[ts+0]=tu>>>0,ta[ts+1]=tc>>>0},tr.expand=function(tt,tr,ti){var ta=0,ts=0;ta=(1&tt)<<5|tt>>>27;for(var tu=23;tu>=15;tu-=4)ta<<=6,ta|=tt>>>tu&63;for(var tu=11;tu>=3;tu-=4)ts|=tt>>>tu&63,ts<<=6;ts|=(31&tt)<<1|tt>>>31,tr[ti+0]=ta>>>0,tr[ti+1]=ts>>>0};var ta=[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];tr.substitute=function(tt,tr){for(var ti=0,ts=0;ts<4;ts++){var tu=tt>>>18-6*ts&63,tc=ta[64*ts+tu];ti<<=4,ti|=tc}for(var ts=0;ts<4;ts++){var tu=tr>>>18-6*ts&63,tc=ta[256+64*ts+tu];ti<<=4,ti|=tc}return ti>>>0};var ts=[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];tr.permute=function(tt){for(var tr=0,ti=0;ti<ts.length;ti++)tr<<=1,tr|=tt>>>ts[ti]&1;return tr>>>0},tr.padSplit=function(tt,tr,ti){for(var ta=tt.toString(2);ta.length<tr;)ta="0"+ta;for(var ts=[],tu=0;tu<tr;tu+=ti)ts.push(ta.slice(tu,tu+ti));return ts.join(" ")}},6587:function(tt,tr,ti){var ta=ti(296),tu=ti(7992),tc=ti(373);function td(tt){var tr=new ts(tu[tt].prime,"hex"),ti=new ts(tu[tt].gen,"hex");return new tc(tr,ti)}var tp={binary:!0,hex:!0,base64:!0};function tv(tt,tr,ti,tu){return ts.isBuffer(tr)||void 0===tp[tr]?tv(tt,"binary",tr,ti):(tr=tr||"binary",tu=tu||"binary",ti=ti||new ts([2]),ts.isBuffer(ti)||(ti=new ts(ti,tu)),"number"==typeof tt)?new tc(ta(tt,ti),ti,!0):(ts.isBuffer(tt)||(tt=new ts(tt,tr)),new tc(tt,ti,!0))}tr.DiffieHellmanGroup=tr.createDiffieHellmanGroup=tr.getDiffieHellman=td,tr.createDiffieHellman=tr.DiffieHellman=tv},373:function(tt,tr,ti){var ta=ti(711),tu=new(ti(1354)),tc=new ta(24),td=new ta(11),tp=new ta(10),tv=new ta(3),tg=new ta(7),tb=ti(296),t_=ti(7223);function tE(tt,tr){return tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr)),this._pub=new ta(tt),this}function tA(tt,tr){return tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr)),this._priv=new ta(tt),this}tt.exports=tM;var tS={};function tT(tt,tr){var ti,ta=tr.toString("hex"),ts=[ta,tt.toString(16)].join("_");if(ts in tS)return tS[ts];var t_=0;if(tt.isEven()||!tb.simpleSieve||!tb.fermatTest(tt)||!tu.test(tt))return t_+=1,"02"===ta||"05"===ta?t_+=8:t_+=4,tS[ts]=t_,t_;switch(tu.test(tt.shrn(1))||(t_+=2),ta){case"02":tt.mod(tc).cmp(td)&&(t_+=8);break;case"05":(ti=tt.mod(tp)).cmp(tv)&&ti.cmp(tg)&&(t_+=8);break;default:t_+=4}return tS[ts]=t_,t_}function tM(tt,tr,ti){this.setGenerator(tr),this.__prime=new ta(tt),this._prime=ta.mont(this.__prime),this._primeLen=tt.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ti?(this.setPublicKey=tE,this.setPrivateKey=tA):this._primeCode=8}function tR(tt,tr){var ti=new ts(tt.toArray());return tr?ti.toString(tr):ti}Object.defineProperty(tM.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=tT(this.__prime,this.__gen)),this._primeCode}}),tM.prototype.generateKeys=function(){return this._priv||(this._priv=new ta(t_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},tM.prototype.computeSecret=function(tt){var tr=(tt=(tt=new ta(tt)).toRed(this._prime)).redPow(this._priv).fromRed(),ti=new ts(tr.toArray()),tu=this.getPrime();if(ti.length<tu.length){var tc=new ts(tu.length-ti.length);tc.fill(0),ti=ts.concat([tc,ti])}return ti},tM.prototype.getPublicKey=function(tt){return tR(this._pub,tt)},tM.prototype.getPrivateKey=function(tt){return tR(this._priv,tt)},tM.prototype.getPrime=function(tt){return tR(this.__prime,tt)},tM.prototype.getGenerator=function(tt){return tR(this._gen,tt)},tM.prototype.setGenerator=function(tt,tr){return tr=tr||"utf8",ts.isBuffer(tt)||(tt=new ts(tt,tr)),this.__gen=tt,this._gen=new ta(tt),this}},296:function(tt,tr,ti){var ta=ti(7223);tt.exports=tR,tR.simpleSieve=tT,tR.fermatTest=tM;var ts=ti(711),tu=new ts(24),tc=new(ti(1354)),td=new ts(1),tp=new ts(2),tv=new ts(5);new ts(16),new ts(8);var tg=new ts(10),tb=new ts(3);new ts(7);var t_=new ts(11),tE=new ts(4);new ts(12);var tA=null;function tS(){if(null!==tA)return tA;var tt=1048576,tr=[];tr[0]=2;for(var ti=1,ta=3;ta<tt;ta+=2){for(var ts=Math.ceil(Math.sqrt(ta)),tu=0;tu<ti&&tr[tu]<=ts&&ta%tr[tu]!=0;tu++);ti!==tu&&tr[tu]<=ts||(tr[ti++]=ta)}return tA=tr,tr}function tT(tt){for(var tr=tS(),ti=0;ti<tr.length;ti++)if(0===tt.modn(tr[ti])){if(0!==tt.cmpn(tr[ti]))return!1;break}return!0}function tM(tt){var tr=ts.mont(tt);return 0===tp.toRed(tr).redPow(tt.subn(1)).fromRed().cmpn(1)}function tR(tt,tr){var ti,tA;if(tt<16)return new ts(2===tr||5===tr?[140,123]:[140,39]);for(tr=new ts(tr);;){for(ti=new ts(ta(Math.ceil(tt/8)));ti.bitLength()>tt;)ti.ishrn(1);if(ti.isEven()&&ti.iadd(td),ti.testn(1)||ti.iadd(tp),tr.cmp(tp)){if(!tr.cmp(tv))for(;ti.mod(tg).cmp(tb);)ti.iadd(tE)}else for(;ti.mod(tu).cmp(t_);)ti.iadd(tE);if(tT(tA=ti.shrn(1))&&tT(ti)&&tM(tA)&&tM(ti)&&tc.test(tA)&&tc.test(ti))return ti}}},949:function(tt,tr,ti){"use strict";var ta=tr;ta.version=ti(2531).i8,ta.utils=ti(4401),ta.rand=ti(3500),ta.curve=ti(9359),ta.curves=ti(6226),ta.ec=ti(4088),ta.eddsa=ti(8511)},2727:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(4401),tu=ts.getNAF,tc=ts.getJSF,td=ts.assert;function tp(tt,tr){this.type=tt,this.p=new ta(tr.p,16),this.red=tr.prime?ta.red(tr.prime):ta.mont(this.p),this.zero=new ta(0).toRed(this.red),this.one=new ta(1).toRed(this.red),this.two=new ta(2).toRed(this.red),this.n=tr.n&&new ta(tr.n,16),this.g=tr.g&&this.pointFromJSON(tr.g,tr.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var ti=this.n&&this.p.div(this.n);!ti||ti.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function tv(tt,tr){this.curve=tt,this.type=tr,this.precomputed=null}tt.exports=tp,tp.prototype.point=function(){throw Error("Not implemented")},tp.prototype.validate=function(){throw Error("Not implemented")},tp.prototype._fixedNafMul=function(tt,tr){td(tt.precomputed);var ti=tt._getDoubles(),ta=tu(tr,1,this._bitLength),ts=(1<<ti.step+1)-(ti.step%2==0?2:1);ts/=3;for(var tc=[],tp=0;tp<ta.length;tp+=ti.step){for(var tv=0,tr=tp+ti.step-1;tr>=tp;tr--)tv=(tv<<1)+ta[tr];tc.push(tv)}for(var tg=this.jpoint(null,null,null),tb=this.jpoint(null,null,null),t_=ts;t_>0;t_--){for(var tp=0;tp<tc.length;tp++){var tv=tc[tp];tv===t_?tb=tb.mixedAdd(ti.points[tp]):tv===-t_&&(tb=tb.mixedAdd(ti.points[tp].neg()))}tg=tg.add(tb)}return tg.toP()},tp.prototype._wnafMul=function(tt,tr){var ti=4,ta=tt._getNAFPoints(ti);ti=ta.wnd;for(var ts=ta.points,tc=tu(tr,ti,this._bitLength),tp=this.jpoint(null,null,null),tv=tc.length-1;tv>=0;tv--){for(var tr=0;tv>=0&&0===tc[tv];tv--)tr++;if(tv>=0&&tr++,tp=tp.dblp(tr),tv<0)break;var tg=tc[tv];td(0!==tg),tp="affine"===tt.type?tg>0?tp.mixedAdd(ts[tg-1>>1]):tp.mixedAdd(ts[-tg-1>>1].neg()):tg>0?tp.add(ts[tg-1>>1]):tp.add(ts[-tg-1>>1].neg())}return"affine"===tt.type?tp.toP():tp},tp.prototype._wnafMulAdd=function(tt,tr,ti,ta,ts){for(var td=this._wnafT1,tp=this._wnafT2,tv=this._wnafT3,tg=0,tb=0;tb<ta;tb++){var t_=tr[tb],tE=t_._getNAFPoints(tt);td[tb]=tE.wnd,tp[tb]=tE.points}for(var tb=ta-1;tb>=1;tb-=2){var tA=tb-1,tS=tb;if(1!==td[tA]||1!==td[tS]){tv[tA]=tu(ti[tA],td[tA],this._bitLength),tv[tS]=tu(ti[tS],td[tS],this._bitLength),tg=Math.max(tv[tA].length,tg),tg=Math.max(tv[tS].length,tg);continue}var tT=[tr[tA],null,null,tr[tS]];0===tr[tA].y.cmp(tr[tS].y)?(tT[1]=tr[tA].add(tr[tS]),tT[2]=tr[tA].toJ().mixedAdd(tr[tS].neg())):0===tr[tA].y.cmp(tr[tS].y.redNeg())?(tT[1]=tr[tA].toJ().mixedAdd(tr[tS]),tT[2]=tr[tA].add(tr[tS].neg())):(tT[1]=tr[tA].toJ().mixedAdd(tr[tS]),tT[2]=tr[tA].toJ().mixedAdd(tr[tS].neg()));var tM=[-3,-1,-5,-7,0,7,5,1,3],tR=tc(ti[tA],ti[tS]);tg=Math.max(tR[0].length,tg),tv[tA]=Array(tg),tv[tS]=Array(tg);for(var tI=0;tI<tg;tI++){var tk=0|tR[0][tI],tP=0|tR[1][tI];tv[tA][tI]=tM[(tk+1)*3+(tP+1)],tv[tS][tI]=0,tp[tA]=tT}}for(var tC=this.jpoint(null,null,null),tO=this._wnafT4,tb=tg;tb>=0;tb--){for(var tN=0;tb>=0;){for(var tB=!0,tI=0;tI<ta;tI++)tO[tI]=0|tv[tI][tb],0!==tO[tI]&&(tB=!1);if(!tB)break;tN++,tb--}if(tb>=0&&tN++,tC=tC.dblp(tN),tb<0)break;for(var tI=0;tI<ta;tI++){var t_,tL=tO[tI];0!==tL&&(tL>0?t_=tp[tI][tL-1>>1]:tL<0&&(t_=tp[tI][-tL-1>>1].neg()),tC="affine"===t_.type?tC.mixedAdd(t_):tC.add(t_))}}for(var tb=0;tb<ta;tb++)tp[tb]=null;return ts?tC:tC.toP()},tp.BasePoint=tv,tv.prototype.eq=function(){throw Error("Not implemented")},tv.prototype.validate=function(){return this.curve.validate(this)},tp.prototype.decodePoint=function(tt,tr){tt=ts.toArray(tt,tr);var ti=this.p.byteLength();if((4===tt[0]||6===tt[0]||7===tt[0])&&tt.length-1==2*ti)return 6===tt[0]?td(tt[tt.length-1]%2==0):7===tt[0]&&td(tt[tt.length-1]%2==1),this.point(tt.slice(1,1+ti),tt.slice(1+ti,1+2*ti));if((2===tt[0]||3===tt[0])&&tt.length-1===ti)return this.pointFromX(tt.slice(1,1+ti),3===tt[0]);throw Error("Unknown point format")},tv.prototype.encodeCompressed=function(tt){return this.encode(tt,!0)},tv.prototype._encode=function(tt){var tr=this.curve.p.byteLength(),ti=this.getX().toArray("be",tr);return tt?[this.getY().isEven()?2:3].concat(ti):[4].concat(ti,this.getY().toArray("be",tr))},tv.prototype.encode=function(tt,tr){return ts.encode(this._encode(tr),tt)},tv.prototype.precompute=function(tt){if(this.precomputed)return this;var tr={doubles:null,naf:null,beta:null};return tr.naf=this._getNAFPoints(8),tr.doubles=this._getDoubles(4,tt),tr.beta=this._getBeta(),this.precomputed=tr,this},tv.prototype._hasDoubles=function(tt){if(!this.precomputed)return!1;var tr=this.precomputed.doubles;return!!tr&&tr.points.length>=Math.ceil((tt.bitLength()+1)/tr.step)},tv.prototype._getDoubles=function(tt,tr){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var ti=[this],ta=this,ts=0;ts<tr;ts+=tt){for(var tu=0;tu<tt;tu++)ta=ta.dbl();ti.push(ta)}return{step:tt,points:ti}},tv.prototype._getNAFPoints=function(tt){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var tr=[this],ti=(1<<tt)-1,ta=1===ti?null:this.dbl(),ts=1;ts<ti;ts++)tr[ts]=tr[ts-1].add(ta);return{wnd:tt,points:tr}},tv.prototype._getBeta=function(){return null},tv.prototype.dblp=function(tt){for(var tr=this,ti=0;ti<tt;ti++)tr=tr.dbl();return tr}},2705:function(tt,tr,ti){"use strict";var ta=ti(4401),ts=ti(711),tu=ti(3782),tc=ti(2727),td=ta.assert;function tp(tt){this.twisted=(0|tt.a)!=1,this.mOneA=this.twisted&&(0|tt.a)==-1,this.extended=this.mOneA,tc.call(this,"edwards",tt),this.a=new ts(tt.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ts(tt.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ts(tt.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),td(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|tt.c)==1}function tv(tt,tr,ti,ta,tu){tc.BasePoint.call(this,tt,"projective"),null===tr&&null===ti&&null===ta?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ts(tr,16),this.y=new ts(ti,16),this.z=ta?new ts(ta,16):this.curve.one,this.t=tu&&new ts(tu,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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}tu(tp,tc),tt.exports=tp,tp.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)},tp.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)},tp.prototype.jpoint=function(tt,tr,ti,ta){return this.point(tt,tr,ti,ta)},tp.prototype.pointFromX=function(tt,tr){(tt=new ts(tt,16)).red||(tt=tt.toRed(this.red));var ti=tt.redSqr(),ta=this.c2.redSub(this.a.redMul(ti)),tu=this.one.redSub(this.c2.redMul(this.d).redMul(ti)),tc=ta.redMul(tu.redInvm()),td=tc.redSqrt();if(0!==td.redSqr().redSub(tc).cmp(this.zero))throw Error("invalid point");var tp=td.fromRed().isOdd();return(tr&&!tp||!tr&&tp)&&(td=td.redNeg()),this.point(tt,td)},tp.prototype.pointFromY=function(tt,tr){(tt=new ts(tt,16)).red||(tt=tt.toRed(this.red));var ti=tt.redSqr(),ta=ti.redSub(this.c2),tu=ti.redMul(this.d).redMul(this.c2).redSub(this.a),tc=ta.redMul(tu.redInvm());if(0===tc.cmp(this.zero)){if(!tr)return this.point(this.zero,tt);throw Error("invalid point")}var td=tc.redSqrt();if(0!==td.redSqr().redSub(tc).cmp(this.zero))throw Error("invalid point");return td.fromRed().isOdd()!==tr&&(td=td.redNeg()),this.point(td,tt)},tp.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var tr=tt.x.redSqr(),ti=tt.y.redSqr(),ta=tr.redMul(this.a).redAdd(ti),ts=this.c2.redMul(this.one.redAdd(this.d.redMul(tr).redMul(ti)));return 0===ta.cmp(ts)},tu(tv,tc.BasePoint),tp.prototype.pointFromJSON=function(tt){return tv.fromJSON(this,tt)},tp.prototype.point=function(tt,tr,ti,ta){return new tv(this,tt,tr,ti,ta)},tv.fromJSON=function(tt,tr){return new tv(tt,tr[0],tr[1],tr[2])},tv.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},tv.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},tv.prototype._extDbl=function(){var tt=this.x.redSqr(),tr=this.y.redSqr(),ti=this.z.redSqr();ti=ti.redIAdd(ti);var ta=this.curve._mulA(tt),ts=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(tr),tu=ta.redAdd(tr),tc=tu.redSub(ti),td=ta.redSub(tr),tp=ts.redMul(tc),tv=tu.redMul(td),tg=ts.redMul(td),tb=tc.redMul(tu);return this.curve.point(tp,tv,tb,tg)},tv.prototype._projDbl=function(){var tt,tr,ti,ta=this.x.redAdd(this.y).redSqr(),ts=this.x.redSqr(),tu=this.y.redSqr();if(this.curve.twisted){var tc=this.curve._mulA(ts),td=tc.redAdd(tu);if(this.zOne)tt=ta.redSub(ts).redSub(tu).redMul(td.redSub(this.curve.two)),tr=td.redMul(tc.redSub(tu)),ti=td.redSqr().redSub(td).redSub(td);else{var tp=this.z.redSqr(),tv=td.redSub(tp).redISub(tp);tt=ta.redSub(ts).redISub(tu).redMul(tv),tr=td.redMul(tc.redSub(tu)),ti=td.redMul(tv)}}else{var tc=ts.redAdd(tu),tp=this.curve._mulC(this.z).redSqr(),tv=tc.redSub(tp).redSub(tp);tt=this.curve._mulC(ta.redISub(tc)).redMul(tv),tr=this.curve._mulC(tc).redMul(ts.redISub(tu)),ti=tc.redMul(tv)}return this.curve.point(tt,tr,ti)},tv.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},tv.prototype._extAdd=function(tt){var tr=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),ti=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),ta=this.t.redMul(this.curve.dd).redMul(tt.t),ts=this.z.redMul(tt.z.redAdd(tt.z)),tu=ti.redSub(tr),tc=ts.redSub(ta),td=ts.redAdd(ta),tp=ti.redAdd(tr),tv=tu.redMul(tc),tg=td.redMul(tp),tb=tu.redMul(tp),t_=tc.redMul(td);return this.curve.point(tv,tg,t_,tb)},tv.prototype._projAdd=function(tt){var tr,ti,ta=this.z.redMul(tt.z),ts=ta.redSqr(),tu=this.x.redMul(tt.x),tc=this.y.redMul(tt.y),td=this.curve.d.redMul(tu).redMul(tc),tp=ts.redSub(td),tv=ts.redAdd(td),tg=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(tu).redISub(tc),tb=ta.redMul(tp).redMul(tg);return this.curve.twisted?(tr=ta.redMul(tv).redMul(tc.redSub(this.curve._mulA(tu))),ti=tp.redMul(tv)):(tr=ta.redMul(tv).redMul(tc.redSub(tu)),ti=this.curve._mulC(tp).redMul(tv)),this.curve.point(tb,tr,ti)},tv.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)},tv.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)},tv.prototype.mulAdd=function(tt,tr,ti){return this.curve._wnafMulAdd(1,[this,tr],[tt,ti],2,!1)},tv.prototype.jmulAdd=function(tt,tr,ti){return this.curve._wnafMulAdd(1,[this,tr],[tt,ti],2,!0)},tv.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},tv.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},tv.prototype.getX=function(){return this.normalize(),this.x.fromRed()},tv.prototype.getY=function(){return this.normalize(),this.y.fromRed()},tv.prototype.eq=function(tt){return this===tt||0===this.getX().cmp(tt.getX())&&0===this.getY().cmp(tt.getY())},tv.prototype.eqXToP=function(tt){var tr=tt.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(tr))return!0;for(var ti=tt.clone(),ta=this.curve.redN.redMul(this.z);;){if(ti.iadd(this.curve.n),ti.cmp(this.curve.p)>=0)return!1;if(tr.redIAdd(ta),0===this.x.cmp(tr))return!0}},tv.prototype.toP=tv.prototype.normalize,tv.prototype.mixedAdd=tv.prototype.add},9359:function(tt,tr,ti){"use strict";var ta=tr;ta.base=ti(2727),ta.short=ti(4720),ta.mont=ti(6653),ta.edwards=ti(2705)},6653:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(3782),tu=ti(2727),tc=ti(4401);function td(tt){tu.call(this,"mont",tt),this.a=new ta(tt.a,16).toRed(this.red),this.b=new ta(tt.b,16).toRed(this.red),this.i4=new ta(4).toRed(this.red).redInvm(),this.two=new ta(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function tp(tt,tr,ti){tu.BasePoint.call(this,tt,"projective"),null===tr&&null===ti?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ta(tr,16),this.z=new ta(ti,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}ts(td,tu),tt.exports=td,td.prototype.validate=function(tt){var tr=tt.normalize().x,ti=tr.redSqr(),ta=ti.redMul(tr).redAdd(ti.redMul(this.a)).redAdd(tr);return 0===ta.redSqrt().redSqr().cmp(ta)},ts(tp,tu.BasePoint),td.prototype.decodePoint=function(tt,tr){return this.point(tc.toArray(tt,tr),1)},td.prototype.point=function(tt,tr){return new tp(this,tt,tr)},td.prototype.pointFromJSON=function(tt){return tp.fromJSON(this,tt)},tp.prototype.precompute=function(){},tp.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},tp.fromJSON=function(tt,tr){return new tp(tt,tr[0],tr[1]||tt.one)},tp.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},tp.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},tp.prototype.dbl=function(){var tt=this.x.redAdd(this.z).redSqr(),tr=this.x.redSub(this.z).redSqr(),ti=tt.redSub(tr),ta=tt.redMul(tr),ts=ti.redMul(tr.redAdd(this.curve.a24.redMul(ti)));return this.curve.point(ta,ts)},tp.prototype.add=function(){throw Error("Not supported on Montgomery curve")},tp.prototype.diffAdd=function(tt,tr){var ti=this.x.redAdd(this.z),ta=this.x.redSub(this.z),ts=tt.x.redAdd(tt.z),tu=tt.x.redSub(tt.z).redMul(ti),tc=ts.redMul(ta),td=tr.z.redMul(tu.redAdd(tc).redSqr()),tp=tr.x.redMul(tu.redISub(tc).redSqr());return this.curve.point(td,tp)},tp.prototype.mul=function(tt){for(var tr=tt.clone(),ti=this,ta=this.curve.point(null,null),ts=this,tu=[];0!==tr.cmpn(0);tr.iushrn(1))tu.push(tr.andln(1));for(var tc=tu.length-1;tc>=0;tc--)0===tu[tc]?(ti=ti.diffAdd(ta,ts),ta=ta.dbl()):(ta=ti.diffAdd(ta,ts),ti=ti.dbl());return ta},tp.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},tp.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},tp.prototype.eq=function(tt){return 0===this.getX().cmp(tt.getX())},tp.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},tp.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(tt,tr,ti){"use strict";var ta=ti(4401),ts=ti(711),tu=ti(3782),tc=ti(2727),td=ta.assert;function tp(tt){tc.call(this,"short",tt),this.a=new ts(tt.a,16).toRed(this.red),this.b=new ts(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 tv(tt,tr,ti,ta){tc.BasePoint.call(this,tt,"affine"),null===tr&&null===ti?(this.x=null,this.y=null,this.inf=!0):(this.x=new ts(tr,16),this.y=new ts(ti,16),ta&&(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,tr,ti,ta){tc.BasePoint.call(this,tt,"jacobian"),null===tr&&null===ti&&null===ta?(this.x=this.curve.one,this.y=this.curve.one,this.z=new ts(0)):(this.x=new ts(tr,16),this.y=new ts(ti,16),this.z=new ts(ta,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(tp,tc),tt.exports=tp,tp.prototype._getEndomorphism=function(tt){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(tt.beta)tr=new ts(tt.beta,16).toRed(this.red);else{var tr,ti,ta,tu=this._getEndoRoots(this.p);tr=(tr=0>tu[0].cmp(tu[1])?tu[0]:tu[1]).toRed(this.red)}if(tt.lambda)ti=new ts(tt.lambda,16);else{var tc=this._getEndoRoots(this.n);0===this.g.mul(tc[0]).x.cmp(this.g.x.redMul(tr))?ti=tc[0]:(ti=tc[1],td(0===this.g.mul(ti).x.cmp(this.g.x.redMul(tr))))}return ta=tt.basis?tt.basis.map(function(tt){return{a:new ts(tt.a,16),b:new ts(tt.b,16)}}):this._getEndoBasis(ti),{beta:tr,lambda:ti,basis:ta}}},tp.prototype._getEndoRoots=function(tt){var tr=tt===this.p?this.red:ts.mont(tt),ti=new ts(2).toRed(tr).redInvm(),ta=ti.redNeg(),tu=new ts(3).toRed(tr).redNeg().redSqrt().redMul(ti);return[ta.redAdd(tu).fromRed(),ta.redSub(tu).fromRed()]},tp.prototype._getEndoBasis=function(tt){for(var tr,ti,ta,tu,tc,td,tp,tv,tg,tb=this.n.ushrn(Math.floor(this.n.bitLength()/2)),t_=tt,tE=this.n.clone(),tA=new ts(1),tS=new ts(0),tT=new ts(0),tM=new ts(1),tR=0;0!==t_.cmpn(0);){var tI=tE.div(t_);tv=tE.sub(tI.mul(t_)),tg=tT.sub(tI.mul(tA));var tk=tM.sub(tI.mul(tS));if(!ta&&0>tv.cmp(tb))tr=tp.neg(),ti=tA,ta=tv.neg(),tu=tg;else if(ta&&2==++tR)break;tp=tv,tE=t_,t_=tv,tT=tA,tA=tg,tM=tS,tS=tk}tc=tv.neg(),td=tg;var tP=ta.sqr().add(tu.sqr());return tc.sqr().add(td.sqr()).cmp(tP)>=0&&(tc=tr,td=ti),ta.negative&&(ta=ta.neg(),tu=tu.neg()),tc.negative&&(tc=tc.neg(),td=td.neg()),[{a:ta,b:tu},{a:tc,b:td}]},tp.prototype._endoSplit=function(tt){var tr=this.endo.basis,ti=tr[0],ta=tr[1],ts=ta.b.mul(tt).divRound(this.n),tu=ti.b.neg().mul(tt).divRound(this.n),tc=ts.mul(ti.a),td=tu.mul(ta.a),tp=ts.mul(ti.b),tv=tu.mul(ta.b);return{k1:tt.sub(tc).sub(td),k2:tp.add(tv).neg()}},tp.prototype.pointFromX=function(tt,tr){(tt=new ts(tt,16)).red||(tt=tt.toRed(this.red));var ti=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),ta=ti.redSqrt();if(0!==ta.redSqr().redSub(ti).cmp(this.zero))throw Error("invalid point");var tu=ta.fromRed().isOdd();return(tr&&!tu||!tr&&tu)&&(ta=ta.redNeg()),this.point(tt,ta)},tp.prototype.validate=function(tt){if(tt.inf)return!0;var tr=tt.x,ti=tt.y,ta=this.a.redMul(tr),ts=tr.redSqr().redMul(tr).redIAdd(ta).redIAdd(this.b);return 0===ti.redSqr().redISub(ts).cmpn(0)},tp.prototype._endoWnafMulAdd=function(tt,tr,ti){for(var ta=this._endoWnafT1,ts=this._endoWnafT2,tu=0;tu<tt.length;tu++){var tc=this._endoSplit(tr[tu]),td=tt[tu],tp=td._getBeta();tc.k1.negative&&(tc.k1.ineg(),td=td.neg(!0)),tc.k2.negative&&(tc.k2.ineg(),tp=tp.neg(!0)),ta[2*tu]=td,ta[2*tu+1]=tp,ts[2*tu]=tc.k1,ts[2*tu+1]=tc.k2}for(var tv=this._wnafMulAdd(1,ta,ts,2*tu,ti),tg=0;tg<2*tu;tg++)ta[tg]=null,ts[tg]=null;return tv},tu(tv,tc.BasePoint),tp.prototype.point=function(tt,tr,ti){return new tv(this,tt,tr,ti)},tp.prototype.pointFromJSON=function(tt,tr){return tv.fromJSON(this,tt,tr)},tv.prototype._getBeta=function(){if(this.curve.endo){var tt=this.precomputed;if(tt&&tt.beta)return tt.beta;var tr=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(tt){var ti=this.curve,ta=function(tt){return ti.point(tt.x.redMul(ti.endo.beta),tt.y)};tt.beta=tr,tr.precomputed={beta:null,naf:tt.naf&&{wnd:tt.naf.wnd,points:tt.naf.points.map(ta)},doubles:tt.doubles&&{step:tt.doubles.step,points:tt.doubles.points.map(ta)}}}return tr}},tv.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},tv.fromJSON=function(tt,tr,ti){"string"==typeof tr&&(tr=JSON.parse(tr));var ta=tt.point(tr[0],tr[1],ti);if(!tr[2])return ta;function ts(tr){return tt.point(tr[0],tr[1],ti)}var tu=tr[2];return ta.precomputed={beta:null,doubles:tu.doubles&&{step:tu.doubles.step,points:[ta].concat(tu.doubles.points.map(ts))},naf:tu.naf&&{wnd:tu.naf.wnd,points:[ta].concat(tu.naf.points.map(ts))}},ta},tv.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},tv.prototype.isInfinity=function(){return this.inf},tv.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 tr=this.y.redSub(tt.y);0!==tr.cmpn(0)&&(tr=tr.redMul(this.x.redSub(tt.x).redInvm()));var ti=tr.redSqr().redISub(this.x).redISub(tt.x),ta=tr.redMul(this.x.redSub(ti)).redISub(this.y);return this.curve.point(ti,ta)},tv.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 tr=this.curve.a,ti=this.x.redSqr(),ta=tt.redInvm(),ts=ti.redAdd(ti).redIAdd(ti).redIAdd(tr).redMul(ta),tu=ts.redSqr().redISub(this.x.redAdd(this.x)),tc=ts.redMul(this.x.redSub(tu)).redISub(this.y);return this.curve.point(tu,tc)},tv.prototype.getX=function(){return this.x.fromRed()},tv.prototype.getY=function(){return this.y.fromRed()},tv.prototype.mul=function(tt){return(tt=new ts(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)},tv.prototype.mulAdd=function(tt,tr,ti){var ta=[this,tr],ts=[tt,ti];return this.curve.endo?this.curve._endoWnafMulAdd(ta,ts):this.curve._wnafMulAdd(1,ta,ts,2)},tv.prototype.jmulAdd=function(tt,tr,ti){var ta=[this,tr],ts=[tt,ti];return this.curve.endo?this.curve._endoWnafMulAdd(ta,ts,!0):this.curve._wnafMulAdd(1,ta,ts,2,!0)},tv.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))},tv.prototype.neg=function(tt){if(this.inf)return this;var tr=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var ti=this.precomputed,ta=function(tt){return tt.neg()};tr.precomputed={naf:ti.naf&&{wnd:ti.naf.wnd,points:ti.naf.points.map(ta)},doubles:ti.doubles&&{step:ti.doubles.step,points:ti.doubles.points.map(ta)}}}return tr},tv.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},tu(tg,tc.BasePoint),tp.prototype.jpoint=function(tt,tr,ti){return new tg(this,tt,tr,ti)},tg.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),tr=tt.redSqr(),ti=this.x.redMul(tr),ta=this.y.redMul(tr).redMul(tt);return this.curve.point(ti,ta)},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 tr=tt.z.redSqr(),ti=this.z.redSqr(),ta=this.x.redMul(tr),ts=tt.x.redMul(ti),tu=this.y.redMul(tr.redMul(tt.z)),tc=tt.y.redMul(ti.redMul(this.z)),td=ta.redSub(ts),tp=tu.redSub(tc);if(0===td.cmpn(0))return 0!==tp.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var tv=td.redSqr(),tg=tv.redMul(td),tb=ta.redMul(tv),t_=tp.redSqr().redIAdd(tg).redISub(tb).redISub(tb),tE=tp.redMul(tb.redISub(t_)).redISub(tu.redMul(tg)),tA=this.z.redMul(tt.z).redMul(td);return this.curve.jpoint(t_,tE,tA)},tg.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var tr=this.z.redSqr(),ti=this.x,ta=tt.x.redMul(tr),ts=this.y,tu=tt.y.redMul(tr).redMul(this.z),tc=ti.redSub(ta),td=ts.redSub(tu);if(0===tc.cmpn(0))return 0!==td.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var tp=tc.redSqr(),tv=tp.redMul(tc),tg=ti.redMul(tp),tb=td.redSqr().redIAdd(tv).redISub(tg).redISub(tg),t_=td.redMul(tg.redISub(tb)).redISub(ts.redMul(tv)),tE=this.z.redMul(tc);return this.curve.jpoint(tb,t_,tE)},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 tr=this,ti=0;ti<tt;ti++)tr=tr.dbl();return tr}for(var ta=this.curve.a,ts=this.curve.tinv,tu=this.x,tc=this.y,td=this.z,tp=td.redSqr().redSqr(),tv=tc.redAdd(tc),ti=0;ti<tt;ti++){var tg=tu.redSqr(),tb=tv.redSqr(),t_=tb.redSqr(),tE=tg.redAdd(tg).redIAdd(tg).redIAdd(ta.redMul(tp)),tA=tu.redMul(tb),tS=tE.redSqr().redISub(tA.redAdd(tA)),tT=tA.redISub(tS),tM=tE.redMul(tT);tM=tM.redIAdd(tM).redISub(t_);var tR=tv.redMul(td);ti+1<tt&&(tp=tp.redMul(t_)),tu=tS,td=tR,tv=tM}return this.curve.jpoint(tu,tv.redMul(ts),td)},tg.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},tg.prototype._zeroDbl=function(){if(this.zOne){var tt,tr,ti,ta=this.x.redSqr(),ts=this.y.redSqr(),tu=ts.redSqr(),tc=this.x.redAdd(ts).redSqr().redISub(ta).redISub(tu);tc=tc.redIAdd(tc);var td=ta.redAdd(ta).redIAdd(ta),tp=td.redSqr().redISub(tc).redISub(tc),tv=tu.redIAdd(tu);tv=(tv=tv.redIAdd(tv)).redIAdd(tv),tt=tp,tr=td.redMul(tc.redISub(tp)).redISub(tv),ti=this.y.redAdd(this.y)}else{var tg=this.x.redSqr(),tb=this.y.redSqr(),t_=tb.redSqr(),tE=this.x.redAdd(tb).redSqr().redISub(tg).redISub(t_);tE=tE.redIAdd(tE);var tA=tg.redAdd(tg).redIAdd(tg),tS=tA.redSqr(),tT=t_.redIAdd(t_);tT=(tT=tT.redIAdd(tT)).redIAdd(tT),tt=tS.redISub(tE).redISub(tE),tr=tA.redMul(tE.redISub(tt)).redISub(tT),ti=(ti=this.y.redMul(this.z)).redIAdd(ti)}return this.curve.jpoint(tt,tr,ti)},tg.prototype._threeDbl=function(){if(this.zOne){var tt,tr,ti,ta=this.x.redSqr(),ts=this.y.redSqr(),tu=ts.redSqr(),tc=this.x.redAdd(ts).redSqr().redISub(ta).redISub(tu);tc=tc.redIAdd(tc);var td=ta.redAdd(ta).redIAdd(ta).redIAdd(this.curve.a),tp=td.redSqr().redISub(tc).redISub(tc);tt=tp;var tv=tu.redIAdd(tu);tv=(tv=tv.redIAdd(tv)).redIAdd(tv),tr=td.redMul(tc.redISub(tp)).redISub(tv),ti=this.y.redAdd(this.y)}else{var tg=this.z.redSqr(),tb=this.y.redSqr(),t_=this.x.redMul(tb),tE=this.x.redSub(tg).redMul(this.x.redAdd(tg));tE=tE.redAdd(tE).redIAdd(tE);var tA=t_.redIAdd(t_),tS=(tA=tA.redIAdd(tA)).redAdd(tA);tt=tE.redSqr().redISub(tS),ti=this.y.redAdd(this.z).redSqr().redISub(tb).redISub(tg);var tT=tb.redSqr();tT=(tT=(tT=tT.redIAdd(tT)).redIAdd(tT)).redIAdd(tT),tr=tE.redMul(tA.redISub(tt)).redISub(tT)}return this.curve.jpoint(tt,tr,ti)},tg.prototype._dbl=function(){var tt=this.curve.a,tr=this.x,ti=this.y,ta=this.z,ts=ta.redSqr().redSqr(),tu=tr.redSqr(),tc=ti.redSqr(),td=tu.redAdd(tu).redIAdd(tu).redIAdd(tt.redMul(ts)),tp=tr.redAdd(tr),tv=(tp=tp.redIAdd(tp)).redMul(tc),tg=td.redSqr().redISub(tv.redAdd(tv)),tb=tv.redISub(tg),t_=tc.redSqr();t_=(t_=(t_=t_.redIAdd(t_)).redIAdd(t_)).redIAdd(t_);var tE=td.redMul(tb).redISub(t_),tA=ti.redAdd(ti).redMul(ta);return this.curve.jpoint(tg,tE,tA)},tg.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var tt=this.x.redSqr(),tr=this.y.redSqr(),ti=this.z.redSqr(),ta=tr.redSqr(),ts=tt.redAdd(tt).redIAdd(tt),tu=ts.redSqr(),tc=this.x.redAdd(tr).redSqr().redISub(tt).redISub(ta),td=(tc=(tc=(tc=tc.redIAdd(tc)).redAdd(tc).redIAdd(tc)).redISub(tu)).redSqr(),tp=ta.redIAdd(ta);tp=(tp=(tp=tp.redIAdd(tp)).redIAdd(tp)).redIAdd(tp);var tv=ts.redIAdd(tc).redSqr().redISub(tu).redISub(td).redISub(tp),tg=tr.redMul(tv);tg=(tg=tg.redIAdd(tg)).redIAdd(tg);var tb=this.x.redMul(td).redISub(tg);tb=(tb=tb.redIAdd(tb)).redIAdd(tb);var t_=this.y.redMul(tv.redMul(tp.redISub(tv)).redISub(tc.redMul(td)));t_=(t_=(t_=t_.redIAdd(t_)).redIAdd(t_)).redIAdd(t_);var tE=this.z.redAdd(tc).redSqr().redISub(ti).redISub(td);return this.curve.jpoint(tb,t_,tE)},tg.prototype.mul=function(tt,tr){return tt=new ts(tt,tr),this.curve._wnafMul(this,tt)},tg.prototype.eq=function(tt){if("affine"===tt.type)return this.eq(tt.toJ());if(this===tt)return!0;var tr=this.z.redSqr(),ti=tt.z.redSqr();if(0!==this.x.redMul(ti).redISub(tt.x.redMul(tr)).cmpn(0))return!1;var ta=tr.redMul(this.z),ts=ti.redMul(tt.z);return 0===this.y.redMul(ts).redISub(tt.y.redMul(ta)).cmpn(0)},tg.prototype.eqXToP=function(tt){var tr=this.z.redSqr(),ti=tt.toRed(this.curve.red).redMul(tr);if(0===this.x.cmp(ti))return!0;for(var ta=tt.clone(),ts=this.curve.redN.redMul(tr);;){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}},tg.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},tg.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(tt,tr,ti){"use strict";var ta,ts=tr,tu=ti(7028),tc=ti(9359),td=ti(4401).assert;function tp(tt){"short"===tt.type?this.curve=new tc.short(tt):"edwards"===tt.type?this.curve=new tc.edwards(tt):this.curve=new tc.mont(tt),this.g=this.curve.g,this.n=this.curve.n,this.hash=tt.hash,td(this.g.validate(),"Invalid curve"),td(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function tv(tt,tr){Object.defineProperty(ts,tt,{configurable:!0,enumerable:!0,get:function(){var ti=new tp(tr);return Object.defineProperty(ts,tt,{configurable:!0,enumerable:!0,value:ti}),ti}})}ts.PresetCurve=tp,tv("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"]}),tv("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"]}),tv("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"]}),tv("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"]}),tv("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"]}),tv("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"]}),tv("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{ta=ti(9702)}catch(tt){ta=void 0}tv("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",ta]})},4088:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(4910),tu=ti(4401),tc=ti(6226),td=ti(3500),tp=tu.assert,tv=ti(4724),tg=ti(7526);function tb(tt){if(!(this instanceof tb))return new tb(tt);"string"==typeof tt&&(tp(tc.hasOwnProperty(tt),"Unknown curve "+tt),tt=tc[tt]),tt instanceof tc.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=tb,tb.prototype.keyPair=function(tt){return new tv(this,tt)},tb.prototype.keyFromPrivate=function(tt,tr){return tv.fromPrivate(this,tt,tr)},tb.prototype.keyFromPublic=function(tt,tr){return tv.fromPublic(this,tt,tr)},tb.prototype.genKeyPair=function(tt){tt||(tt={});for(var tr=new ts({hash:this.hash,pers:tt.pers,persEnc:tt.persEnc||"utf8",entropy:tt.entropy||td(this.hash.hmacStrength),entropyEnc:tt.entropy&&tt.entropyEnc||"utf8",nonce:this.n.toArray()}),ti=this.n.byteLength(),tu=this.n.sub(new ta(2));;){var tc=new ta(tr.generate(ti));if(!(tc.cmp(tu)>0))return tc.iaddn(1),this.keyFromPrivate(tc)}},tb.prototype._truncateToN=function(tt,tr){var ti=8*tt.byteLength()-this.n.bitLength();return(ti>0&&(tt=tt.ushrn(ti)),!tr&&tt.cmp(this.n)>=0)?tt.sub(this.n):tt},tb.prototype.sign=function(tt,tr,ti,tu){"object"==typeof ti&&(tu=ti,ti=null),tu||(tu={}),tr=this.keyFromPrivate(tr,ti),tt=this._truncateToN(new ta(tt,16));for(var tc=this.n.byteLength(),td=tr.getPrivate().toArray("be",tc),tp=tt.toArray("be",tc),tv=new ts({hash:this.hash,entropy:td,nonce:tp,pers:tu.pers,persEnc:tu.persEnc||"utf8"}),tb=this.n.sub(new ta(1)),t_=0;;t_++){var tE=tu.k?tu.k(t_):new ta(tv.generate(this.n.byteLength()));if(!(0>=(tE=this._truncateToN(tE,!0)).cmpn(1)||tE.cmp(tb)>=0)){var tA=this.g.mul(tE);if(!tA.isInfinity()){var tS=tA.getX(),tT=tS.umod(this.n);if(0!==tT.cmpn(0)){var tM=tE.invm(this.n).mul(tT.mul(tr.getPrivate()).iadd(tt));if(0!==(tM=tM.umod(this.n)).cmpn(0)){var tR=(tA.getY().isOdd()?1:0)|(0!==tS.cmp(tT)?2:0);return tu.canonical&&tM.cmp(this.nh)>0&&(tM=this.n.sub(tM),tR^=1),new tg({r:tT,s:tM,recoveryParam:tR})}}}}}},tb.prototype.verify=function(tt,tr,ti,ts){tt=this._truncateToN(new ta(tt,16)),ti=this.keyFromPublic(ti,ts);var tu=(tr=new tg(tr,"hex")).r,tc=tr.s;if(0>tu.cmpn(1)||tu.cmp(this.n)>=0||0>tc.cmpn(1)||tc.cmp(this.n)>=0)return!1;var td=tc.invm(this.n),tp=td.mul(tt).umod(this.n),tv=td.mul(tu).umod(this.n);if(!this.curve._maxwellTrick){var tb=this.g.mulAdd(tp,ti.getPublic(),tv);return!tb.isInfinity()&&0===tb.getX().umod(this.n).cmp(tu)}var tb=this.g.jmulAdd(tp,ti.getPublic(),tv);return!tb.isInfinity()&&tb.eqXToP(tu)},tb.prototype.recoverPubKey=function(tt,tr,ti,ts){tp((3&ti)===ti,"The recovery param is more than two bits"),tr=new tg(tr,ts);var tu=this.n,tc=new ta(tt),td=tr.r,tv=tr.s,tb=1&ti,t_=ti>>1;if(td.cmp(this.curve.p.umod(this.curve.n))>=0&&t_)throw Error("Unable to find sencond key candinate");td=t_?this.curve.pointFromX(td.add(this.curve.n),tb):this.curve.pointFromX(td,tb);var tE=tr.r.invm(tu),tA=tu.sub(tc).mul(tE).umod(tu),tS=tv.mul(tE).umod(tu);return this.g.mulAdd(tA,td,tS)},tb.prototype.getKeyRecoveryParam=function(tt,tr,ti,ta){if(null!==(tr=new tg(tr,ta)).recoveryParam)return tr.recoveryParam;for(var ts,tu=0;tu<4;tu++){try{ts=this.recoverPubKey(tt,tr,tu)}catch(tt){continue}if(ts.eq(ti))return tu}throw Error("Unable to find valid recovery factor")}},4724:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(4401).assert;function tu(tt,tr){this.ec=tt,this.priv=null,this.pub=null,tr.priv&&this._importPrivate(tr.priv,tr.privEnc),tr.pub&&this._importPublic(tr.pub,tr.pubEnc)}tt.exports=tu,tu.fromPublic=function(tt,tr,ti){return tr instanceof tu?tr:new tu(tt,{pub:tr,pubEnc:ti})},tu.fromPrivate=function(tt,tr,ti){return tr instanceof tu?tr:new tu(tt,{priv:tr,privEnc:ti})},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,tr){return("string"==typeof tt&&(tr=tt,tt=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),tr)?this.pub.encode(tr,tt):this.pub},tu.prototype.getPrivate=function(tt){return"hex"===tt?this.priv.toString(16,2):this.priv},tu.prototype._importPrivate=function(tt,tr){this.priv=new ta(tt,tr||16),this.priv=this.priv.umod(this.ec.curve.n)},tu.prototype._importPublic=function(tt,tr){if(tt.x||tt.y){"mont"===this.ec.curve.type?ts(tt.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&ts(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,tr)},tu.prototype.derive=function(tt){return tt.mul(this.priv).getX()},tu.prototype.sign=function(tt,tr,ti){return this.ec.sign(tt,this,tr,ti)},tu.prototype.verify=function(tt,tr){return this.ec.verify(tt,tr,this)},tu.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(4401),tu=ts.assert;function tc(tt,tr){if(tt instanceof tc)return tt;this._importDER(tt,tr)||(tu(tt.r&&tt.s,"Signature without r or s"),this.r=new ta(tt.r,16),this.s=new ta(tt.s,16),void 0===tt.recoveryParam?this.recoveryParam=null:this.recoveryParam=tt.recoveryParam)}function td(){this.place=0}function tp(tt,tr){var ti=tt[tr.place++];if(!(128&ti))return ti;var ta=15&ti;if(0===ta||ta>4)return!1;for(var ts=0,tu=0,tc=tr.place;tu<ta;tu++,tc++)ts<<=8,ts|=tt[tc],ts>>>=0;return!(ts<=127)&&(tr.place=tc,ts)}function tv(tt){for(var tr=0,ti=tt.length-1;!tt[tr]&&!(128&tt[tr+1])&&tr<ti;)tr++;return 0===tr?tt:tt.slice(tr)}function tg(tt,tr){if(tr<128){tt.push(tr);return}var ti=1+(Math.log(tr)/Math.LN2>>>3);for(tt.push(128|ti);--ti;)tt.push(tr>>>(ti<<3)&255);tt.push(tr)}tt.exports=tc,tc.prototype._importDER=function(tt,tr){tt=ts.toArray(tt,tr);var ti=new td;if(48!==tt[ti.place++])return!1;var tu=tp(tt,ti);if(!1===tu||tu+ti.place!==tt.length||2!==tt[ti.place++])return!1;var tc=tp(tt,ti);if(!1===tc)return!1;var tv=tt.slice(ti.place,tc+ti.place);if(ti.place+=tc,2!==tt[ti.place++])return!1;var tg=tp(tt,ti);if(!1===tg||tt.length!==tg+ti.place)return!1;var tb=tt.slice(ti.place,tg+ti.place);if(0===tv[0]){if(!(128&tv[1]))return!1;tv=tv.slice(1)}if(0===tb[0]){if(!(128&tb[1]))return!1;tb=tb.slice(1)}return this.r=new ta(tv),this.s=new ta(tb),this.recoveryParam=null,!0},tc.prototype.toDER=function(tt){var tr=this.r.toArray(),ti=this.s.toArray();for(128&tr[0]&&(tr=[0].concat(tr)),128&ti[0]&&(ti=[0].concat(ti)),tr=tv(tr),ti=tv(ti);!ti[0]&&!(128&ti[1]);)ti=ti.slice(1);var ta=[2];tg(ta,tr.length),(ta=ta.concat(tr)).push(2),tg(ta,ti.length);var tu=ta.concat(ti),tc=[48];return tg(tc,tu.length),tc=tc.concat(tu),ts.encode(tc,tt)}},8511:function(tt,tr,ti){"use strict";var ta=ti(7028),ts=ti(6226),tu=ti(4401),tc=tu.assert,td=tu.parseBytes,tp=ti(9917),tv=ti(9314);function tg(tt){if(tc("ed25519"===tt,"only tested with ed25519 so far"),!(this instanceof tg))return new tg(tt);var tt=ts[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=ta.sha512}tt.exports=tg,tg.prototype.sign=function(tt,tr){tt=td(tt);var ti=this.keyFromSecret(tr),ta=this.hashInt(ti.messagePrefix(),tt),ts=this.g.mul(ta),tu=this.encodePoint(ts),tc=this.hashInt(tu,ti.pubBytes(),tt).mul(ti.priv()),tp=ta.add(tc).umod(this.curve.n);return this.makeSignature({R:ts,S:tp,Rencoded:tu})},tg.prototype.verify=function(tt,tr,ti){tt=td(tt),tr=this.makeSignature(tr);var ta=this.keyFromPublic(ti),ts=this.hashInt(tr.Rencoded(),ta.pubBytes(),tt),tu=this.g.mul(tr.S());return tr.R().add(ta.pub().mul(ts)).eq(tu)},tg.prototype.hashInt=function(){for(var tt=this.hash(),tr=0;tr<arguments.length;tr++)tt.update(arguments[tr]);return tu.intFromLE(tt.digest()).umod(this.curve.n)},tg.prototype.keyFromPublic=function(tt){return tp.fromPublic(this,tt)},tg.prototype.keyFromSecret=function(tt){return tp.fromSecret(this,tt)},tg.prototype.makeSignature=function(tt){return tt instanceof tv?tt:new tv(this,tt)},tg.prototype.encodePoint=function(tt){var tr=tt.getY().toArray("le",this.encodingLength);return tr[this.encodingLength-1]|=tt.getX().isOdd()?128:0,tr},tg.prototype.decodePoint=function(tt){var tr=(tt=tu.parseBytes(tt)).length-1,ti=tt.slice(0,tr).concat(-129&tt[tr]),ta=(128&tt[tr])!=0,ts=tu.intFromLE(ti);return this.curve.pointFromY(ts,ta)},tg.prototype.encodeInt=function(tt){return tt.toArray("le",this.encodingLength)},tg.prototype.decodeInt=function(tt){return tu.intFromLE(tt)},tg.prototype.isPoint=function(tt){return tt instanceof this.pointClass}},9917:function(tt,tr,ti){"use strict";var ta=ti(4401),ts=ta.assert,tu=ta.parseBytes,tc=ta.cachedProperty;function td(tt,tr){this.eddsa=tt,this._secret=tu(tr.secret),tt.isPoint(tr.pub)?this._pub=tr.pub:this._pubBytes=tu(tr.pub)}td.fromPublic=function(tt,tr){return tr instanceof td?tr:new td(tt,{pub:tr})},td.fromSecret=function(tt,tr){return tr instanceof td?tr:new td(tt,{secret:tr})},td.prototype.secret=function(){return this._secret},tc(td,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),tc(td,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),tc(td,"privBytes",function(){var tt=this.eddsa,tr=this.hash(),ti=tt.encodingLength-1,ta=tr.slice(0,tt.encodingLength);return ta[0]&=248,ta[ti]&=127,ta[ti]|=64,ta}),tc(td,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),tc(td,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),tc(td,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),td.prototype.sign=function(tt){return ts(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)},td.prototype.verify=function(tt,tr){return this.eddsa.verify(tt,tr,this)},td.prototype.getSecret=function(tt){return ts(this._secret,"KeyPair is public only"),ta.encode(this.secret(),tt)},td.prototype.getPublic=function(tt){return ta.encode(this.pubBytes(),tt)},tt.exports=td},9314:function(tt,tr,ti){"use strict";var ta=ti(711),ts=ti(4401),tu=ts.assert,tc=ts.cachedProperty,td=ts.parseBytes;function tp(tt,tr){this.eddsa=tt,"object"!=typeof tr&&(tr=td(tr)),Array.isArray(tr)&&(tr={R:tr.slice(0,tt.encodingLength),S:tr.slice(tt.encodingLength)}),tu(tr.R&&tr.S,"Signature without R or S"),tt.isPoint(tr.R)&&(this._R=tr.R),tr.S instanceof ta&&(this._S=tr.S),this._Rencoded=Array.isArray(tr.R)?tr.R:tr.Rencoded,this._Sencoded=Array.isArray(tr.S)?tr.S:tr.Sencoded}tc(tp,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),tc(tp,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),tc(tp,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),tc(tp,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),tp.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},tp.prototype.toHex=function(){return ts.encode(this.toBytes(),"hex").toUpperCase()},tt.exports=tp},9702:function(tt){tt.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},4401:function(tt,tr,ti){"use strict";var ta=tr,ts=ti(711),tu=ti(3523),tc=ti(6545);function td(tt,tr,ti){var ta=Array(Math.max(tt.bitLength(),ti)+1);ta.fill(0);for(var ts=1<<tr+1,tu=tt.clone(),tc=0;tc<ta.length;tc++){var td,tp=tu.andln(ts-1);tu.isOdd()?(td=tp>(ts>>1)-1?(ts>>1)-tp:tp,tu.isubn(td)):td=0,ta[tc]=td,tu.iushrn(1)}return ta}function tp(tt,tr){var ti=[[],[]];tt=tt.clone(),tr=tr.clone();for(var ta=0,ts=0;tt.cmpn(-ta)>0||tr.cmpn(-ts)>0;){var tu,tc,td=tt.andln(3)+ta&3,tp=tr.andln(3)+ts&3;if(3===td&&(td=-1),3===tp&&(tp=-1),(1&td)==0)tu=0;else{var tv=tt.andln(7)+ta&7;tu=(3===tv||5===tv)&&2===tp?-td:td}if(ti[0].push(tu),(1&tp)==0)tc=0;else{var tv=tr.andln(7)+ts&7;tc=(3===tv||5===tv)&&2===td?-tp:tp}ti[1].push(tc),2*ta===tu+1&&(ta=1-ta),2*ts===tc+1&&(ts=1-ts),tt.iushrn(1),tr.iushrn(1)}return ti}function tv(tt,tr,ti){var ta="_"+tr;tt.prototype[tr]=function(){return void 0!==this[ta]?this[ta]:this[ta]=ti.call(this)}}function tg(tt){return"string"==typeof tt?ta.toArray(tt,"hex"):tt}function tb(tt){return new ts(tt,"hex","le")}ta.assert=tu,ta.toArray=tc.toArray,ta.zero2=tc.zero2,ta.toHex=tc.toHex,ta.encode=tc.encode,ta.getNAF=td,ta.getJSF=tp,ta.cachedProperty=tv,ta.parseBytes=tg,ta.intFromLE=tb},8368:function(tt,tr,ti){var ta=ti(6911).Buffer,ts=ti(3533);function tu(tt,tr,ti,tu){if(ta.isBuffer(tt)||(tt=ta.from(tt,"binary")),tr&&(ta.isBuffer(tr)||(tr=ta.from(tr,"binary")),8!==tr.length))throw RangeError("salt should be Buffer with 8 byte length");for(var tc=ti/8,td=ta.alloc(tc),tp=ta.alloc(tu||0),tv=ta.alloc(0);tc>0||tu>0;){var tg=new ts;tg.update(tv),tg.update(tt),tr&&tg.update(tr),tv=tg.digest();var tb=0;if(tc>0){var t_=td.length-tc;tb=Math.min(tc,tv.length),tv.copy(td,t_,0,tb),tc-=tb}if(tb<tv.length&&tu>0){var tE=tp.length-tu,tA=Math.min(tu,tv.length-tb);tv.copy(tp,tE,tb,tb+tA),tu-=tA}}return tv.fill(0),{key:td,iv:tp}}tt.exports=tu},9029:function(tt,tr,ti){"use strict";var ta=ti(6911).Buffer,ts=ti(3726).Transform;function tu(tt,tr){if(!ta.isBuffer(tt)&&"string"!=typeof tt)throw TypeError(tr+" must be a string or a buffer")}function tc(tt){ts.call(this),this._block=ta.allocUnsafe(tt),this._blockSize=tt,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}ti(3782)(tc,ts),tc.prototype._transform=function(tt,tr,ti){var ta=null;try{this.update(tt,tr)}catch(tt){ta=tt}ti(ta)},tc.prototype._flush=function(tt){var tr=null;try{this.push(this.digest())}catch(tt){tr=tt}tt(tr)},tc.prototype.update=function(tt,tr){if(tu(tt,"Data"),this._finalized)throw Error("Digest already called");ta.isBuffer(tt)||(tt=ta.from(tt,tr));for(var ti=this._block,ts=0;this._blockOffset+tt.length-ts>=this._blockSize;){for(var tc=this._blockOffset;tc<this._blockSize;)ti[tc++]=tt[ts++];this._update(),this._blockOffset=0}for(;ts<tt.length;)ti[this._blockOffset++]=tt[ts++];for(var td=0,tp=8*tt.length;tp>0;++td)this._length[td]+=tp,(tp=this._length[td]/4294967296|0)>0&&(this._length[td]-=4294967296*tp);return this},tc.prototype._update=function(){throw Error("_update is not implemented")},tc.prototype.digest=function(tt){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var tr=this._digest();void 0!==tt&&(tr=tr.toString(tt)),this._block.fill(0),this._blockOffset=0;for(var ti=0;ti<4;++ti)this._length[ti]=0;return tr},tc.prototype._digest=function(){throw Error("_digest is not implemented")},tt.exports=tc},7028:function(tt,tr,ti){var ta=tr;ta.utils=ti(263),ta.common=ti(1330),ta.sha=ti(301),ta.ripemd=ti(3079),ta.hmac=ti(3092),ta.sha1=ta.sha.sha1,ta.sha256=ta.sha.sha256,ta.sha224=ta.sha.sha224,ta.sha384=ta.sha.sha384,ta.sha512=ta.sha.sha512,ta.ripemd160=ta.ripemd.ripemd160},1330:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(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}tr.BlockHash=tu,tu.prototype.update=function(tt,tr){if(tt=ta.toArray(tt,tr),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){var ti=(tt=this.pending).length%this._delta8;this.pending=tt.slice(tt.length-ti,tt.length),0===this.pending.length&&(this.pending=null),tt=ta.join32(tt,0,tt.length-ti,this.endian);for(var ts=0;ts<tt.length;ts+=this._delta32)this._update(tt,ts,ts+this._delta32)}return this},tu.prototype.digest=function(tt){return this.update(this._pad()),ts(null===this.pending),this._digest(tt)},tu.prototype._pad=function(){var tt=this.pendingTotal,tr=this._delta8,ti=tr-(tt+this.padLength)%tr,ta=Array(ti+this.padLength);ta[0]=128;for(var ts=1;ts<ti;ts++)ta[ts]=0;if(tt<<=3,"big"===this.endian){for(var tu=8;tu<this.padLength;tu++)ta[ts++]=0;ta[ts++]=0,ta[ts++]=0,ta[ts++]=0,ta[ts++]=0,ta[ts++]=tt>>>24&255,ta[ts++]=tt>>>16&255,ta[ts++]=tt>>>8&255,ta[ts++]=255&tt}else for(tu=8,ta[ts++]=255&tt,ta[ts++]=tt>>>8&255,ta[ts++]=tt>>>16&255,ta[ts++]=tt>>>24&255,ta[ts++]=0,ta[ts++]=0,ta[ts++]=0,ta[ts++]=0;tu<this.padLength;tu++)ta[ts++]=0;return ta}},3092:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(3523);function tu(tt,tr,ti){if(!(this instanceof tu))return new tu(tt,tr,ti);this.Hash=tt,this.blockSize=tt.blockSize/8,this.outSize=tt.outSize/8,this.inner=null,this.outer=null,this._init(ta.toArray(tr,ti))}tt.exports=tu,tu.prototype._init=function(tt){tt.length>this.blockSize&&(tt=new this.Hash().update(tt).digest()),ts(tt.length<=this.blockSize);for(var tr=tt.length;tr<this.blockSize;tr++)tt.push(0);for(tr=0;tr<tt.length;tr++)tt[tr]^=54;for(tr=0,this.inner=new this.Hash().update(tt);tr<tt.length;tr++)tt[tr]^=106;this.outer=new this.Hash().update(tt)},tu.prototype.update=function(tt,tr){return this.inner.update(tt,tr),this},tu.prototype.digest=function(tt){return this.outer.update(this.inner.digest()),this.outer.digest(tt)}},3079:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1330),tu=ta.rotl32,tc=ta.sum32,td=ta.sum32_3,tp=ta.sum32_4,tv=ts.BlockHash;function tg(){if(!(this instanceof tg))return new tg;tv.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function tb(tt,tr,ti,ta){return tt<=15?tr^ti^ta:tt<=31?tr&ti|~tr&ta:tt<=47?(tr|~ti)^ta:tt<=63?tr&ta|ti&~ta:tr^(ti|~ta)}function t_(tt){return tt<=15?0:tt<=31?1518500249:tt<=47?1859775393:tt<=63?2400959708:2840853838}function tE(tt){return tt<=15?1352829926:tt<=31?1548603684:tt<=47?1836072691:tt<=63?2053994217:0}ta.inherits(tg,tv),tr.ripemd160=tg,tg.blockSize=512,tg.outSize=160,tg.hmacStrength=192,tg.padLength=64,tg.prototype._update=function(tt,tr){for(var ti=this.h[0],ta=this.h[1],ts=this.h[2],tv=this.h[3],tg=this.h[4],tR=ti,tI=ta,tk=ts,tP=tv,tC=tg,tO=0;tO<80;tO++){var tN=tc(tu(tp(ti,tb(tO,ta,ts,tv),tt[tA[tO]+tr],t_(tO)),tT[tO]),tg);ti=tg,tg=tv,tv=tu(ts,10),ts=ta,ta=tN,tN=tc(tu(tp(tR,tb(79-tO,tI,tk,tP),tt[tS[tO]+tr],tE(tO)),tM[tO]),tC),tR=tC,tC=tP,tP=tu(tk,10),tk=tI,tI=tN}tN=td(this.h[1],ts,tP),this.h[1]=td(this.h[2],tv,tC),this.h[2]=td(this.h[3],tg,tR),this.h[3]=td(this.h[4],ti,tI),this.h[4]=td(this.h[0],ta,tk),this.h[0]=tN},tg.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h,"little"):ta.split32(this.h,"little")};var tA=[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],tS=[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],tT=[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],tM=[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]},301:function(tt,tr,ti){"use strict";tr.sha1=ti(2742),tr.sha224=ti(7105),tr.sha256=ti(1525),tr.sha384=ti(9948),tr.sha512=ti(1319)},2742:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1330),tu=ti(2975),tc=ta.rotl32,td=ta.sum32,tp=ta.sum32_5,tv=tu.ft_1,tg=ts.BlockHash,tb=[1518500249,1859775393,2400959708,3395469782];function t_(){if(!(this instanceof t_))return new t_;tg.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}ta.inherits(t_,tg),tt.exports=t_,t_.blockSize=512,t_.outSize=160,t_.hmacStrength=80,t_.padLength=64,t_.prototype._update=function(tt,tr){for(var ti=this.W,ta=0;ta<16;ta++)ti[ta]=tt[tr+ta];for(;ta<ti.length;ta++)ti[ta]=tc(ti[ta-3]^ti[ta-8]^ti[ta-14]^ti[ta-16],1);var ts=this.h[0],tu=this.h[1],tg=this.h[2],t_=this.h[3],tE=this.h[4];for(ta=0;ta<ti.length;ta++){var tA=~~(ta/20),tS=tp(tc(ts,5),tv(tA,tu,tg,t_),tE,ti[ta],tb[tA]);tE=t_,t_=tg,tg=tc(tu,30),tu=ts,ts=tS}this.h[0]=td(this.h[0],ts),this.h[1]=td(this.h[1],tu),this.h[2]=td(this.h[2],tg),this.h[3]=td(this.h[3],t_),this.h[4]=td(this.h[4],tE)},t_.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h,"big"):ta.split32(this.h,"big")}},7105:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1525);function tu(){if(!(this instanceof tu))return new tu;ts.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ta.inherits(tu,ts),tt.exports=tu,tu.blockSize=512,tu.outSize=224,tu.hmacStrength=192,tu.padLength=64,tu.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h.slice(0,7),"big"):ta.split32(this.h.slice(0,7),"big")}},1525:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1330),tu=ti(2975),tc=ti(3523),td=ta.sum32,tp=ta.sum32_4,tv=ta.sum32_5,tg=tu.ch32,tb=tu.maj32,t_=tu.s0_256,tE=tu.s1_256,tA=tu.g0_256,tS=tu.g1_256,tT=ts.BlockHash,tM=[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];function tR(){if(!(this instanceof tR))return new tR;tT.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=tM,this.W=Array(64)}ta.inherits(tR,tT),tt.exports=tR,tR.blockSize=512,tR.outSize=256,tR.hmacStrength=192,tR.padLength=64,tR.prototype._update=function(tt,tr){for(var ti=this.W,ta=0;ta<16;ta++)ti[ta]=tt[tr+ta];for(;ta<ti.length;ta++)ti[ta]=tp(tS(ti[ta-2]),ti[ta-7],tA(ti[ta-15]),ti[ta-16]);var ts=this.h[0],tu=this.h[1],tT=this.h[2],tM=this.h[3],tR=this.h[4],tI=this.h[5],tk=this.h[6],tP=this.h[7];for(tc(this.k.length===ti.length),ta=0;ta<ti.length;ta++){var tC=tv(tP,tE(tR),tg(tR,tI,tk),this.k[ta],ti[ta]),tO=td(t_(ts),tb(ts,tu,tT));tP=tk,tk=tI,tI=tR,tR=td(tM,tC),tM=tT,tT=tu,tu=ts,ts=td(tC,tO)}this.h[0]=td(this.h[0],ts),this.h[1]=td(this.h[1],tu),this.h[2]=td(this.h[2],tT),this.h[3]=td(this.h[3],tM),this.h[4]=td(this.h[4],tR),this.h[5]=td(this.h[5],tI),this.h[6]=td(this.h[6],tk),this.h[7]=td(this.h[7],tP)},tR.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h,"big"):ta.split32(this.h,"big")}},9948:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1319);function tu(){if(!(this instanceof tu))return new tu;ts.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ta.inherits(tu,ts),tt.exports=tu,tu.blockSize=1024,tu.outSize=384,tu.hmacStrength=192,tu.padLength=128,tu.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h.slice(0,12),"big"):ta.split32(this.h.slice(0,12),"big")}},1319:function(tt,tr,ti){"use strict";var ta=ti(263),ts=ti(1330),tu=ti(3523),tc=ta.rotr64_hi,td=ta.rotr64_lo,tp=ta.shr64_hi,tv=ta.shr64_lo,tg=ta.sum64,tb=ta.sum64_hi,t_=ta.sum64_lo,tE=ta.sum64_4_hi,tA=ta.sum64_4_lo,tS=ta.sum64_5_hi,tT=ta.sum64_5_lo,tM=ts.BlockHash,tR=[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];function tI(){if(!(this instanceof tI))return new tI;tM.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=tR,this.W=Array(160)}function tk(tt,tr,ti,ta,ts){var tu=tt&ti^~tt&ts;return tu<0&&(tu+=4294967296),tu}function tP(tt,tr,ti,ta,ts,tu){var tc=tr&ta^~tr&tu;return tc<0&&(tc+=4294967296),tc}function tC(tt,tr,ti,ta,ts){var tu=tt&ti^tt&ts^ti&ts;return tu<0&&(tu+=4294967296),tu}function tO(tt,tr,ti,ta,ts,tu){var tc=tr&ta^tr&tu^ta&tu;return tc<0&&(tc+=4294967296),tc}function tN(tt,tr){var ti=tc(tt,tr,28)^tc(tr,tt,2)^tc(tr,tt,7);return ti<0&&(ti+=4294967296),ti}function tB(tt,tr){var ti=td(tt,tr,28)^td(tr,tt,2)^td(tr,tt,7);return ti<0&&(ti+=4294967296),ti}function tL(tt,tr){var ti=tc(tt,tr,14)^tc(tt,tr,18)^tc(tr,tt,9);return ti<0&&(ti+=4294967296),ti}function tU(tt,tr){var ti=td(tt,tr,14)^td(tt,tr,18)^td(tr,tt,9);return ti<0&&(ti+=4294967296),ti}function tD(tt,tr){var ti=tc(tt,tr,1)^tc(tt,tr,8)^tp(tt,tr,7);return ti<0&&(ti+=4294967296),ti}function tj(tt,tr){var ti=td(tt,tr,1)^td(tt,tr,8)^tv(tt,tr,7);return ti<0&&(ti+=4294967296),ti}function tF(tt,tr){var ti=tc(tt,tr,19)^tc(tr,tt,29)^tp(tt,tr,6);return ti<0&&(ti+=4294967296),ti}function tG(tt,tr){var ti=td(tt,tr,19)^td(tr,tt,29)^tv(tt,tr,6);return ti<0&&(ti+=4294967296),ti}ta.inherits(tI,tM),tt.exports=tI,tI.blockSize=1024,tI.outSize=512,tI.hmacStrength=192,tI.padLength=128,tI.prototype._prepareBlock=function(tt,tr){for(var ti=this.W,ta=0;ta<32;ta++)ti[ta]=tt[tr+ta];for(;ta<ti.length;ta+=2){var ts=tF(ti[ta-4],ti[ta-3]),tu=tG(ti[ta-4],ti[ta-3]),tc=ti[ta-14],td=ti[ta-13],tp=tD(ti[ta-30],ti[ta-29]),tv=tj(ti[ta-30],ti[ta-29]),tg=ti[ta-32],tb=ti[ta-31];ti[ta]=tE(ts,tu,tc,td,tp,tv,tg,tb),ti[ta+1]=tA(ts,tu,tc,td,tp,tv,tg,tb)}},tI.prototype._update=function(tt,tr){this._prepareBlock(tt,tr);var ti=this.W,ta=this.h[0],ts=this.h[1],tc=this.h[2],td=this.h[3],tp=this.h[4],tv=this.h[5],tE=this.h[6],tA=this.h[7],tM=this.h[8],tR=this.h[9],tI=this.h[10],tD=this.h[11],tj=this.h[12],tF=this.h[13],tG=this.h[14],tH=this.h[15];tu(this.k.length===ti.length);for(var tV=0;tV<ti.length;tV+=2){var tz=tG,tq=tH,tW=tL(tM,tR),tY=tU(tM,tR),tX=tk(tM,tR,tI,tD,tj,tF),tK=tP(tM,tR,tI,tD,tj,tF),tZ=this.k[tV],tQ=this.k[tV+1],tJ=ti[tV],t$=ti[tV+1],t0=tS(tz,tq,tW,tY,tX,tK,tZ,tQ,tJ,t$),t1=tT(tz,tq,tW,tY,tX,tK,tZ,tQ,tJ,t$);tz=tN(ta,ts),tq=tB(ta,ts),tW=tC(ta,ts,tc,td,tp,tv),tY=tO(ta,ts,tc,td,tp,tv);var t2=tb(tz,tq,tW,tY),t3=t_(tz,tq,tW,tY);tG=tj,tH=tF,tj=tI,tF=tD,tI=tM,tD=tR,tM=tb(tE,tA,t0,t1),tR=t_(tA,tA,t0,t1),tE=tp,tA=tv,tp=tc,tv=td,tc=ta,td=ts,ta=tb(t0,t1,t2,t3),ts=t_(t0,t1,t2,t3)}tg(this.h,0,ta,ts),tg(this.h,2,tc,td),tg(this.h,4,tp,tv),tg(this.h,6,tE,tA),tg(this.h,8,tM,tR),tg(this.h,10,tI,tD),tg(this.h,12,tj,tF),tg(this.h,14,tG,tH)},tI.prototype._digest=function(tt){return"hex"===tt?ta.toHex32(this.h,"big"):ta.split32(this.h,"big")}},2975:function(tt,tr,ti){"use strict";var ta=ti(263).rotr32;function ts(tt,tr,ti,ta){return 0===tt?tu(tr,ti,ta):1===tt||3===tt?td(tr,ti,ta):2===tt?tc(tr,ti,ta):void 0}function tu(tt,tr,ti){return tt&tr^~tt&ti}function tc(tt,tr,ti){return tt&tr^tt&ti^tr&ti}function td(tt,tr,ti){return tt^tr^ti}function tp(tt){return ta(tt,2)^ta(tt,13)^ta(tt,22)}function tv(tt){return ta(tt,6)^ta(tt,11)^ta(tt,25)}function tg(tt){return ta(tt,7)^ta(tt,18)^tt>>>3}function tb(tt){return ta(tt,17)^ta(tt,19)^tt>>>10}tr.ft_1=ts,tr.ch32=tu,tr.maj32=tc,tr.p32=td,tr.s0_256=tp,tr.s1_256=tv,tr.g0_256=tg,tr.g1_256=tb},263:function(tt,tr,ti){"use strict";var ta=ti(3523),ts=ti(3782);function tu(tt,tr){return(64512&tt.charCodeAt(tr))==55296&&!(tr<0)&&!(tr+1>=tt.length)&&(64512&tt.charCodeAt(tr+1))==56320}function tc(tt,tr){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var ti=[];if("string"==typeof tt){if(tr){if("hex"===tr)for((tt=tt.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(tt="0"+tt),ts=0;ts<tt.length;ts+=2)ti.push(parseInt(tt[ts]+tt[ts+1],16))}else for(var ta=0,ts=0;ts<tt.length;ts++){var tc=tt.charCodeAt(ts);tc<128?ti[ta++]=tc:tc<2048?(ti[ta++]=tc>>6|192,ti[ta++]=63&tc|128):tu(tt,ts)?(tc=65536+((1023&tc)<<10)+(1023&tt.charCodeAt(++ts)),ti[ta++]=tc>>18|240,ti[ta++]=tc>>12&63|128,ti[ta++]=tc>>6&63|128,ti[ta++]=63&tc|128):(ti[ta++]=tc>>12|224,ti[ta++]=tc>>6&63|128,ti[ta++]=63&tc|128)}}else for(ts=0;ts<tt.length;ts++)ti[ts]=0|tt[ts];return ti}function td(tt){for(var tr="",ti=0;ti<tt.length;ti++)tr+=tg(tt[ti].toString(16));return tr}function tp(tt){return(tt>>>24|tt>>>8&65280|tt<<8&16711680|(255&tt)<<24)>>>0}function tv(tt,tr){for(var ti="",ta=0;ta<tt.length;ta++){var ts=tt[ta];"little"===tr&&(ts=tp(ts)),ti+=tb(ts.toString(16))}return ti}function tg(tt){return 1===tt.length?"0"+tt:tt}function tb(tt){if(7===tt.length)return"0"+tt;if(6===tt.length)return"00"+tt;if(5===tt.length)return"000"+tt;if(4===tt.length)return"0000"+tt;if(3===tt.length)return"00000"+tt;if(2===tt.length)return"000000"+tt;if(1===tt.length)return"0000000"+tt;else return tt}function t_(tt,tr,ti,ts){var tu,tc=ti-tr;ta(tc%4==0);for(var td=Array(tc/4),tp=0,tv=tr;tp<td.length;tp++,tv+=4)tu="big"===ts?tt[tv]<<24|tt[tv+1]<<16|tt[tv+2]<<8|tt[tv+3]:tt[tv+3]<<24|tt[tv+2]<<16|tt[tv+1]<<8|tt[tv],td[tp]=tu>>>0;return td}function tE(tt,tr){for(var ti=Array(4*tt.length),ta=0,ts=0;ta<tt.length;ta++,ts+=4){var tu=tt[ta];"big"===tr?(ti[ts]=tu>>>24,ti[ts+1]=tu>>>16&255,ti[ts+2]=tu>>>8&255,ti[ts+3]=255&tu):(ti[ts+3]=tu>>>24,ti[ts+2]=tu>>>16&255,ti[ts+1]=tu>>>8&255,ti[ts]=255&tu)}return ti}function tA(tt,tr){return tt>>>tr|tt<<32-tr}function tS(tt,tr){return tt<<tr|tt>>>32-tr}function tT(tt,tr){return tt+tr>>>0}function tM(tt,tr,ti){return tt+tr+ti>>>0}function tR(tt,tr,ti,ta){return tt+tr+ti+ta>>>0}function tI(tt,tr,ti,ta,ts){return tt+tr+ti+ta+ts>>>0}function tk(tt,tr,ti,ta){var ts=tt[tr],tu=ta+tt[tr+1]>>>0,tc=(tu<ta?1:0)+ti+ts;tt[tr]=tc>>>0,tt[tr+1]=tu}function tP(tt,tr,ti,ta){return(tr+ta>>>0<tr?1:0)+tt+ti>>>0}function tC(tt,tr,ti,ta){return tr+ta>>>0}function tO(tt,tr,ti,ta,ts,tu,tc,td){var tp,tv=tr;return tt+ti+ts+tc+(tp=0+((tv=tv+ta>>>0)<tr?1:0)+((tv=tv+tu>>>0)<tu?1:0)+((tv=tv+td>>>0)<td?1:0))>>>0}function tN(tt,tr,ti,ta,ts,tu,tc,td){return tr+ta+tu+td>>>0}function tB(tt,tr,ti,ta,ts,tu,tc,td,tp,tv){var tg,tb=tr;return tt+ti+ts+tc+tp+(tg=0+((tb=tb+ta>>>0)<tr?1:0)+((tb=tb+tu>>>0)<tu?1:0)+((tb=tb+td>>>0)<td?1:0)+((tb=tb+tv>>>0)<tv?1:0))>>>0}function tL(tt,tr,ti,ta,ts,tu,tc,td,tp,tv){return tr+ta+tu+td+tv>>>0}function tU(tt,tr,ti){return(tr<<32-ti|tt>>>ti)>>>0}function tD(tt,tr,ti){return(tt<<32-ti|tr>>>ti)>>>0}function tj(tt,tr,ti){return tt>>>ti}function tF(tt,tr,ti){return(tt<<32-ti|tr>>>ti)>>>0}tr.inherits=ts,tr.toArray=tc,tr.toHex=td,tr.htonl=tp,tr.toHex32=tv,tr.zero2=tg,tr.zero8=tb,tr.join32=t_,tr.split32=tE,tr.rotr32=tA,tr.rotl32=tS,tr.sum32=tT,tr.sum32_3=tM,tr.sum32_4=tR,tr.sum32_5=tI,tr.sum64=tk,tr.sum64_hi=tP,tr.sum64_lo=tC,tr.sum64_4_hi=tO,tr.sum64_4_lo=tN,tr.sum64_5_hi=tB,tr.sum64_5_lo=tL,tr.rotr64_hi=tU,tr.rotr64_lo=tD,tr.shr64_hi=tj,tr.shr64_lo=tF},4910:function(tt,tr,ti){"use strict";var ta=ti(7028),ts=ti(6545),tu=ti(3523);function tc(tt){if(!(this instanceof tc))return new tc(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 tr=ts.toArray(tt.entropy,tt.entropyEnc||"hex"),ti=ts.toArray(tt.nonce,tt.nonceEnc||"hex"),ta=ts.toArray(tt.pers,tt.persEnc||"hex");tu(tr.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tr,ti,ta)}tt.exports=tc,tc.prototype._init=function(tt,tr,ti){var ta=tt.concat(tr).concat(ti);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var ts=0;ts<this.V.length;ts++)this.K[ts]=0,this.V[ts]=1;this._update(ta),this._reseed=1,this.reseedInterval=281474976710656},tc.prototype._hmac=function(){return new ta.hmac(this.hash,this.K)},tc.prototype._update=function(tt){var tr=this._hmac().update(this.V).update([0]);tt&&(tr=tr.update(tt)),this.K=tr.digest(),this.V=this._hmac().update(this.V).digest(),tt&&(this.K=this._hmac().update(this.V).update([1]).update(tt).digest(),this.V=this._hmac().update(this.V).digest())},tc.prototype.reseed=function(tt,tr,ti,ta){"string"!=typeof tr&&(ta=ti,ti=tr,tr=null),tt=ts.toArray(tt,tr),ti=ts.toArray(ti,ta),tu(tt.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(ti||[])),this._reseed=1},tc.prototype.generate=function(tt,tr,ti,ta){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof tr&&(ta=ti,ti=tr,tr=null),ti&&(ti=ts.toArray(ti,ta||"hex"),this._update(ti));for(var tu=[];tu.length<tt;)this.V=this._hmac().update(this.V).digest(),tu=tu.concat(this.V);var tc=tu.slice(0,tt);return this._update(ti),this._reseed++,ts.encode(tc,tr)}},3782:function(tt){"function"==typeof Object.create?tt.exports=function(tt,tr){tr&&(tt.super_=tr,tt.prototype=Object.create(tr.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(tt,tr){if(tr){tt.super_=tr;var ti=function(){};ti.prototype=tr.prototype,tt.prototype=new ti,tt.prototype.constructor=tt}}},3533:function(tt,tr,ti){"use strict";var ta=ti(3782),ts=ti(9029),tu=ti(6911).Buffer,tc=Array(16);function td(){ts.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function tp(tt,tr){return tt<<tr|tt>>>32-tr}function tv(tt,tr,ti,ta,ts,tu,tc){return tp(tt+(tr&ti|~tr&ta)+ts+tu|0,tc)+tr|0}function tg(tt,tr,ti,ta,ts,tu,tc){return tp(tt+(tr&ta|ti&~ta)+ts+tu|0,tc)+tr|0}function tb(tt,tr,ti,ta,ts,tu,tc){return tp(tt+(tr^ti^ta)+ts+tu|0,tc)+tr|0}function t_(tt,tr,ti,ta,ts,tu,tc){return tp(tt+(ti^(tr|~ta))+ts+tu|0,tc)+tr|0}ta(td,ts),td.prototype._update=function(){for(var tt=tc,tr=0;tr<16;++tr)tt[tr]=this._block.readInt32LE(4*tr);var ti=this._a,ta=this._b,ts=this._c,tu=this._d;ti=tv(ti,ta,ts,tu,tt[0],3614090360,7),tu=tv(tu,ti,ta,ts,tt[1],3905402710,12),ts=tv(ts,tu,ti,ta,tt[2],606105819,17),ta=tv(ta,ts,tu,ti,tt[3],3250441966,22),ti=tv(ti,ta,ts,tu,tt[4],4118548399,7),tu=tv(tu,ti,ta,ts,tt[5],1200080426,12),ts=tv(ts,tu,ti,ta,tt[6],2821735955,17),ta=tv(ta,ts,tu,ti,tt[7],4249261313,22),ti=tv(ti,ta,ts,tu,tt[8],1770035416,7),tu=tv(tu,ti,ta,ts,tt[9],2336552879,12),ts=tv(ts,tu,ti,ta,tt[10],4294925233,17),ta=tv(ta,ts,tu,ti,tt[11],2304563134,22),ti=tv(ti,ta,ts,tu,tt[12],1804603682,7),tu=tv(tu,ti,ta,ts,tt[13],4254626195,12),ts=tv(ts,tu,ti,ta,tt[14],2792965006,17),ta=tv(ta,ts,tu,ti,tt[15],1236535329,22),ti=tg(ti,ta,ts,tu,tt[1],4129170786,5),tu=tg(tu,ti,ta,ts,tt[6],3225465664,9),ts=tg(ts,tu,ti,ta,tt[11],643717713,14),ta=tg(ta,ts,tu,ti,tt[0],3921069994,20),ti=tg(ti,ta,ts,tu,tt[5],3593408605,5),tu=tg(tu,ti,ta,ts,tt[10],38016083,9),ts=tg(ts,tu,ti,ta,tt[15],3634488961,14),ta=tg(ta,ts,tu,ti,tt[4],3889429448,20),ti=tg(ti,ta,ts,tu,tt[9],568446438,5),tu=tg(tu,ti,ta,ts,tt[14],3275163606,9),ts=tg(ts,tu,ti,ta,tt[3],4107603335,14),ta=tg(ta,ts,tu,ti,tt[8],1163531501,20),ti=tg(ti,ta,ts,tu,tt[13],2850285829,5),tu=tg(tu,ti,ta,ts,tt[2],4243563512,9),ts=tg(ts,tu,ti,ta,tt[7],1735328473,14),ta=tg(ta,ts,tu,ti,tt[12],2368359562,20),ti=tb(ti,ta,ts,tu,tt[5],4294588738,4),tu=tb(tu,ti,ta,ts,tt[8],2272392833,11),ts=tb(ts,tu,ti,ta,tt[11],1839030562,16),ta=tb(ta,ts,tu,ti,tt[14],4259657740,23),ti=tb(ti,ta,ts,tu,tt[1],2763975236,4),tu=tb(tu,ti,ta,ts,tt[4],1272893353,11),ts=tb(ts,tu,ti,ta,tt[7],4139469664,16),ta=tb(ta,ts,tu,ti,tt[10],3200236656,23),ti=tb(ti,ta,ts,tu,tt[13],681279174,4),tu=tb(tu,ti,ta,ts,tt[0],3936430074,11),ts=tb(ts,tu,ti,ta,tt[3],3572445317,16),ta=tb(ta,ts,tu,ti,tt[6],76029189,23),ti=tb(ti,ta,ts,tu,tt[9],3654602809,4),tu=tb(tu,ti,ta,ts,tt[12],3873151461,11),ts=tb(ts,tu,ti,ta,tt[15],530742520,16),ta=tb(ta,ts,tu,ti,tt[2],3299628645,23),ti=t_(ti,ta,ts,tu,tt[0],4096336452,6),tu=t_(tu,ti,ta,ts,tt[7],1126891415,10),ts=t_(ts,tu,ti,ta,tt[14],2878612391,15),ta=t_(ta,ts,tu,ti,tt[5],4237533241,21),ti=t_(ti,ta,ts,tu,tt[12],1700485571,6),tu=t_(tu,ti,ta,ts,tt[3],2399980690,10),ts=t_(ts,tu,ti,ta,tt[10],4293915773,15),ta=t_(ta,ts,tu,ti,tt[1],2240044497,21),ti=t_(ti,ta,ts,tu,tt[8],1873313359,6),tu=t_(tu,ti,ta,ts,tt[15],4264355552,10),ts=t_(ts,tu,ti,ta,tt[6],2734768916,15),ta=t_(ta,ts,tu,ti,tt[13],1309151649,21),ti=t_(ti,ta,ts,tu,tt[4],4149444226,6),tu=t_(tu,ti,ta,ts,tt[11],3174756917,10),ts=t_(ts,tu,ti,ta,tt[2],718787259,15),ta=t_(ta,ts,tu,ti,tt[9],3951481745,21),this._a=this._a+ti|0,this._b=this._b+ta|0,this._c=this._c+ts|0,this._d=this._d+tu|0},td.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=td},1354:function(tt,tr,ti){var ta=ti(711),ts=ti(3500);function tu(tt){this.rand=tt||new ts.Rand}tt.exports=tu,tu.create=function(tt){return new tu(tt)},tu.prototype._randbelow=function(tt){var tr=Math.ceil(tt.bitLength()/8);do var ti=new ta(this.rand.generate(tr));while(ti.cmp(tt)>=0);return ti},tu.prototype._randrange=function(tt,tr){var ti=tr.sub(tt);return tt.add(this._randbelow(ti))},tu.prototype.test=function(tt,tr,ti){var ts=tt.bitLength(),tu=ta.mont(tt),tc=new ta(1).toRed(tu);tr||(tr=Math.max(1,ts/48|0));for(var td=tt.subn(1),tp=0;!td.testn(tp);tp++);for(var tv=tt.shrn(tp),tg=td.toRed(tu),tb=!0;tr>0;tr--){var t_=this._randrange(new ta(2),td);ti&&ti(t_);var tE=t_.toRed(tu).redPow(tv);if(0!==tE.cmp(tc)&&0!==tE.cmp(tg)){for(var tA=1;tA<tp;tA++){if(0===(tE=tE.redSqr()).cmp(tc))return!1;if(0===tE.cmp(tg))break}if(tA===tp)return!1}}return tb},tu.prototype.getDivisor=function(tt,tr){var ti=tt.bitLength(),ts=ta.mont(tt),tu=new ta(1).toRed(ts);tr||(tr=Math.max(1,ti/48|0));for(var tc=tt.subn(1),td=0;!tc.testn(td);td++);for(var tp=tt.shrn(td),tv=tc.toRed(ts);tr>0;tr--){var tg=this._randrange(new ta(2),tc),tb=tt.gcd(tg);if(0!==tb.cmpn(1))return tb;var t_=tg.toRed(ts).redPow(tp);if(0!==t_.cmp(tu)&&0!==t_.cmp(tv)){for(var tE=1;tE<td;tE++){if(0===(t_=t_.redSqr()).cmp(tu))return t_.fromRed().subn(1).gcd(tt);if(0===t_.cmp(tv))break}if(tE===td)return(t_=t_.redSqr()).fromRed().subn(1).gcd(tt)}}return!1}},3523:function(tt){function tr(tt,tr){if(!tt)throw Error(tr||"Assertion failed")}tt.exports=tr,tr.equal=function(tt,tr,ti){if(tt!=tr)throw Error(ti||"Assertion failed: "+tt+" != "+tr)}},6545:function(tt,tr){"use strict";var ti=tr;function ta(tt,tr){if(Array.isArray(tt))return tt.slice();if(!tt)return[];var ti=[];if("string"!=typeof tt){for(var ta=0;ta<tt.length;ta++)ti[ta]=0|tt[ta];return ti}if("hex"===tr){(tt=tt.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(tt="0"+tt);for(var ta=0;ta<tt.length;ta+=2)ti.push(parseInt(tt[ta]+tt[ta+1],16))}else for(var ta=0;ta<tt.length;ta++){var ts=tt.charCodeAt(ta),tu=ts>>8,tc=255&ts;tu?ti.push(tu,tc):ti.push(tc)}return ti}function ts(tt){return 1===tt.length?"0"+tt:tt}function tu(tt){for(var tr="",ti=0;ti<tt.length;ti++)tr+=ts(tt[ti].toString(16));return tr}ti.toArray=ta,ti.zero2=ts,ti.toHex=tu,ti.encode=function(tt,tr){return"hex"===tr?tu(tt):tt}},8687:function(tt,tr,ti){"use strict";var ta=ti(7160);tr.certificate=ti(8782);var ts=ta.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});tr.RSAPrivateKey=ts;var tu=ta.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});tr.RSAPublicKey=tu;var tc=ta.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(td),this.key("subjectPublicKey").bitstr())});tr.PublicKey=tc;var td=ta.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),tp=ta.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(td),this.key("subjectPrivateKey").octstr())});tr.PrivateKey=tp;var tv=ta.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});tr.EncryptedPrivateKey=tv;var tg=ta.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});tr.DSAPrivateKey=tg,tr.DSAparam=ta.define("DSAparam",function(){this.int()});var tb=ta.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(t_),this.key("publicKey").optional().explicit(1).bitstr())});tr.ECPrivateKey=tb;var t_=ta.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});tr.signature=ta.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(tt,tr,ti){"use strict";var ta=ti(7160),ts=ta.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),tu=ta.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),tc=ta.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),td=ta.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(tc),this.key("subjectPublicKey").bitstr())}),tp=ta.define("RelativeDistinguishedName",function(){this.setof(tu)}),tv=ta.define("RDNSequence",function(){this.seqof(tp)}),tg=ta.define("Name",function(){this.choice({rdnSequence:this.use(tv)})}),tb=ta.define("Validity",function(){this.seq().obj(this.key("notBefore").use(ts),this.key("notAfter").use(ts))}),t_=ta.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),tE=ta.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(tc),this.key("issuer").use(tg),this.key("validity").use(tb),this.key("subject").use(tg),this.key("subjectPublicKeyInfo").use(td),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(t_).optional())}),tA=ta.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(tE),this.key("signatureAlgorithm").use(tc),this.key("signatureValue").bitstr())});tt.exports=tA},6501:function(tt,tr,ti){var ta=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,ts=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,tu=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,tc=ti(8368),td=ti(6594),tp=ti(6911).Buffer;tt.exports=function(tt,tr){var ti,tv=tt.toString(),tg=tv.match(ta);if(tg){var tb="aes"+tg[1],t_=tp.from(tg[2],"hex"),tE=tp.from(tg[3].replace(/[\r\n]/g,""),"base64"),tA=tc(tr,t_.slice(0,8),parseInt(tg[1],10)).key,tS=[],tT=td.createDecipheriv(tb,tA,t_);tS.push(tT.update(tE)),tS.push(tT.final()),ti=tp.concat(tS)}else{var tM=tv.match(tu);ti=new tp(tM[2].replace(/[\r\n]/g,""),"base64")}return{tag:tv.match(ts)[1],data:ti}}},9902:function(tt,tr,ti){var ta=ti(8687),ts=ti(2510),tu=ti(6501),tc=ti(6594),td=ti(4978),tp=ti(6911).Buffer;function tv(tt){"object"!=typeof tt||tp.isBuffer(tt)||(tr=tt.passphrase,tt=tt.key),"string"==typeof tt&&(tt=tp.from(tt));var tr,ti,ts,tc=tu(tt,tr),td=tc.tag,tv=tc.data;switch(td){case"CERTIFICATE":ts=ta.certificate.decode(tv,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(ts||(ts=ta.PublicKey.decode(tv,"der")),ti=ts.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return ta.RSAPublicKey.decode(ts.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return ts.subjectPrivateKey=ts.subjectPublicKey,{type:"ec",data:ts};case"1.2.840.10040.4.1":return ts.algorithm.params.pub_key=ta.DSAparam.decode(ts.subjectPublicKey.data,"der"),{type:"dsa",data:ts.algorithm.params};default:throw Error("unknown key id "+ti)}throw Error("unknown key type "+td);case"ENCRYPTED PRIVATE KEY":tv=tg(tv=ta.EncryptedPrivateKey.decode(tv,"der"),tr);case"PRIVATE KEY":switch(ti=(ts=ta.PrivateKey.decode(tv,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return ta.RSAPrivateKey.decode(ts.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:ts.algorithm.curve,privateKey:ta.ECPrivateKey.decode(ts.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return ts.algorithm.params.priv_key=ta.DSAparam.decode(ts.subjectPrivateKey,"der"),{type:"dsa",params:ts.algorithm.params};default:throw Error("unknown key id "+ti)}throw Error("unknown key type "+td);case"RSA PUBLIC KEY":return ta.RSAPublicKey.decode(tv,"der");case"RSA PRIVATE KEY":return ta.RSAPrivateKey.decode(tv,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ta.DSAPrivateKey.decode(tv,"der")};case"EC PRIVATE KEY":return{curve:(tv=ta.ECPrivateKey.decode(tv,"der")).parameters.value,privateKey:tv.privateKey};default:throw Error("unknown key type "+td)}}function tg(tt,tr){var ti=tt.algorithm.decrypt.kde.kdeparams.salt,ta=parseInt(tt.algorithm.decrypt.kde.kdeparams.iters.toString(),10),tu=ts[tt.algorithm.decrypt.cipher.algo.join(".")],tv=tt.algorithm.decrypt.cipher.iv,tg=tt.subjectPrivateKey,tb=parseInt(tu.split("-")[1],10)/8,t_=td.pbkdf2Sync(tr,ti,ta,tb,"sha1"),tE=tc.createDecipheriv(tu,t_,tv),tA=[];return tA.push(tE.update(tg)),tA.push(tE.final()),tp.concat(tA)}tt.exports=tv,tv.signature=ta.signature},4978:function(tt,tr,ti){var ta=ti(6113),ts=ti(5349),tu=ti(7007),tc=ti(5407);function td(tt,tr,ti,td,tp,tv){if(ts(ti,td),tt=tc(tt,tu,"Password"),tr=tc(tr,tu,"Salt"),"function"==typeof tp&&(tv=tp,tp="sha1"),"function"!=typeof tv)throw Error("No callback provided to pbkdf2");return ta.pbkdf2(tt,tr,ti,td,tp,tv)}function tp(tt,tr,ti,td,tp){return ts(ti,td),tt=tc(tt,tu,"Password"),tr=tc(tr,tu,"Salt"),tp=tp||"sha1",ta.pbkdf2Sync(tt,tr,ti,td,tp)}ta.pbkdf2Sync&&-1!==ta.pbkdf2Sync.toString().indexOf("keylen, digest")?(tr.pbkdf2Sync=tp,tr.pbkdf2=td):(tr.pbkdf2Sync=ti(2127),tr.pbkdf2=ti(9601))},9601:function(tt,tr,ta){var ts,tc=ta(6911).Buffer,td=ta(5349),tp=ta(7007),tv=ta(2127),tg=ta(5407),tb=ti.g.crypto&&ti.g.crypto.subtle,t_={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},tE=[];function tA(tt){if(ti.g.process&&!ti.g.process.browser||!tb||!tb.importKey||!tb.deriveBits)return Promise.resolve(!1);if(void 0!==tE[tt])return tE[tt];var tr=tS(ts=ts||tc.alloc(8),ts,10,128,tt).then(function(){return!0}).catch(function(){return!1});return tE[tt]=tr,tr}function tS(tt,tr,ti,ta,ts){return tb.importKey("raw",tt,{name:"PBKDF2"},!1,["deriveBits"]).then(function(tt){return tb.deriveBits({name:"PBKDF2",salt:tr,iterations:ti,hash:{name:ts}},tt,ta<<3)}).then(function(tt){return tc.from(tt)})}function tT(tt,tr){tt.then(function(tt){tu.nextTick(function(){tr(null,tt)})},function(tt){tu.nextTick(function(){tr(tt)})})}tt.exports=function(tt,tr,ta,ts,tc,tb){"function"==typeof tc&&(tb=tc,tc=void 0);var tE=t_[(tc=tc||"sha1").toLowerCase()];if(!tE||"function"!=typeof ti.g.Promise)return tu.nextTick(function(){var ti;try{ti=tv(tt,tr,ta,ts,tc)}catch(tt){return tb(tt)}tb(null,ti)});if(td(ta,ts),tt=tg(tt,tp,"Password"),tr=tg(tr,tp,"Salt"),"function"!=typeof tb)throw Error("No callback provided to pbkdf2");tT(tA(tE).then(function(ti){return ti?tS(tt,tr,ta,ts,tE):tv(tt,tr,ta,ts,tc)}),tb)}},7007:function(tt){var tr;tr="utf-8",tt.exports=tr},5349:function(tt){var tr=1073741823;tt.exports=function(tt,ti){if("number"!=typeof tt)throw TypeError("Iterations not a number");if(tt<0)throw TypeError("Bad iterations");if("number"!=typeof ti)throw TypeError("Key length not a number");if(ti<0||ti>tr||ti!=ti)throw TypeError("Bad key length")}},2127:function(tt,tr,ti){var ta={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},ts=ti(4873),tu=ti(6911).Buffer,tc=ti(5349),td=ti(7007),tp=ti(5407);function tv(tt,tr,ti,tv,tg){tc(ti,tv),tt=tp(tt,td,"Password"),tr=tp(tr,td,"Salt"),tg=tg||"sha1";var tb=tu.allocUnsafe(tv),t_=tu.allocUnsafe(tr.length+4);tr.copy(t_,0,0,tr.length);for(var tE=0,tA=ta[tg],tS=Math.ceil(tv/tA),tT=1;tT<=tS;tT++){t_.writeUInt32BE(tT,tr.length);for(var tM=ts(tg,tt).update(t_).digest(),tR=tM,tI=1;tI<ti;tI++){tR=ts(tg,tt).update(tR).digest();for(var tk=0;tk<tA;tk++)tM[tk]^=tR[tk]}tM.copy(tb,tE),tE+=tA}return tb}tt.exports=tv},5407:function(tt,tr,ti){var ta=ti(6911).Buffer;tt.exports=function(tt,tr,ti){if(ta.isBuffer(tt))return tt;if("string"==typeof tt)return ta.from(tt,tr);if(ArrayBuffer.isView(tt))return ta.from(tt.buffer);throw TypeError(ti+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(tt,tr,ti){tr.publicEncrypt=ti(3995),tr.privateDecrypt=ti(4366),tr.privateEncrypt=function(tt,ti){return tr.publicEncrypt(tt,ti,!0)},tr.publicDecrypt=function(tt,ti){return tr.privateDecrypt(tt,ti,!0)}},5520:function(tt,tr,ti){var ta=ti(9739),ts=ti(6911).Buffer;function tu(tt){var tr=ts.allocUnsafe(4);return tr.writeUInt32BE(tt,0),tr}tt.exports=function(tt,tr){for(var ti,tc=ts.alloc(0),td=0;tc.length<tr;)ti=tu(td++),tc=ts.concat([tc,ta("sha1").update(tt).update(ti).digest()]);return tc.slice(0,tr)}},4366:function(tt,tr,ti){var ta=ti(9902),ts=ti(5520),tu=ti(6386),tc=ti(711),td=ti(7166),tp=ti(9739),tv=ti(1607),tg=ti(6911).Buffer;function tb(tt,tr){var ti=tt.modulus.byteLength(),ta=tp("sha1").update(tg.alloc(0)).digest(),tc=ta.length;if(0!==tr[0])throw Error("decryption error");var td=tr.slice(1,tc+1),tv=tr.slice(tc+1),tb=tu(td,ts(tv,tc)),t_=tu(tv,ts(tb,ti-tc-1));if(tE(ta,t_.slice(0,tc)))throw Error("decryption error");for(var tA=tc;0===t_[tA];)tA++;if(1!==t_[tA++])throw Error("decryption error");return t_.slice(tA)}function t_(tt,tr,ti){for(var ta=tr.slice(0,2),ts=2,tu=0;0!==tr[ts++];)if(ts>=tr.length){tu++;break}var tc=tr.slice(2,ts-1);if(("0002"!==ta.toString("hex")&&!ti||"0001"!==ta.toString("hex")&&ti)&&tu++,tc.length<8&&tu++,tu)throw Error("decryption error");return tr.slice(ts)}function tE(tt,tr){tt=tg.from(tt),tr=tg.from(tr);var ti=0,ta=tt.length;tt.length!==tr.length&&(ti++,ta=Math.min(tt.length,tr.length));for(var ts=-1;++ts<ta;)ti+=tt[ts]^tr[ts];return ti}tt.exports=function(tt,tr,ti){ts=tt.padding?tt.padding:ti?1:4;var ts,tu,tp=ta(tt),tE=tp.modulus.byteLength();if(tr.length>tE||new tc(tr).cmp(tp.modulus)>=0)throw Error("decryption error");tu=ti?tv(new tc(tr),tp):td(tr,tp);var tA=tg.alloc(tE-tu.length);if(tu=tg.concat([tA,tu],tE),4===ts)return tb(tp,tu);if(1===ts)return t_(tp,tu,ti);if(3===ts)return tu;throw Error("unknown padding")}},3995:function(tt,tr,ti){var ta=ti(9902),ts=ti(7223),tu=ti(9739),tc=ti(5520),td=ti(6386),tp=ti(711),tv=ti(1607),tg=ti(7166),tb=ti(6911).Buffer;function t_(tt,tr){var ti=tt.modulus.byteLength(),ta=tr.length,tv=tu("sha1").update(tb.alloc(0)).digest(),tg=tv.length,t_=2*tg;if(ta>ti-t_-2)throw Error("message too long");var tE=tb.alloc(ti-ta-t_-2),tA=ti-tg-1,tS=ts(tg),tT=td(tb.concat([tv,tE,tb.alloc(1,1),tr],tA),tc(tS,tA)),tM=td(tS,tc(tT,tg));return new tp(tb.concat([tb.alloc(1),tM,tT],ti))}function tE(tt,tr,ti){var ta,ts=tr.length,tu=tt.modulus.byteLength();if(ts>tu-11)throw Error("message too long");return ta=ti?tb.alloc(tu-ts-3,255):tA(tu-ts-3),new tp(tb.concat([tb.from([0,ti?1:2]),ta,tb.alloc(1),tr],tu))}function tA(tt){for(var tr,ti=tb.allocUnsafe(tt),ta=0,tu=ts(2*tt),tc=0;ta<tt;)tc===tu.length&&(tu=ts(2*tt),tc=0),(tr=tu[tc++])&&(ti[ta++]=tr);return ti}tt.exports=function(tt,tr,ti){ts=tt.padding?tt.padding:ti?1:4;var ts,tu,tc=ta(tt);if(4===ts)tu=t_(tc,tr);else if(1===ts)tu=tE(tc,tr,ti);else if(3===ts){if((tu=new tp(tr)).cmp(tc.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return ti?tg(tu,tc):tv(tu,tc)}},1607:function(tt,tr,ti){var ta=ti(711),ts=ti(6911).Buffer;function tu(tt,tr){return ts.from(tt.toRed(ta.mont(tr.modulus)).redPow(new ta(tr.publicExponent)).fromRed().toArray())}tt.exports=tu},6386:function(tt){tt.exports=function(tt,tr){for(var ti=tt.length,ta=-1;++ta<ti;)tt[ta]^=tr[ta];return tt}},7223:function(tt,tr,ta){"use strict";var ts=65536,tc=4294967295;function td(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var tp=ta(6911).Buffer,tv=ti.g.crypto||ti.g.msCrypto;function tg(tt,tr){if(tt>tc)throw RangeError("requested too many random bytes");var ti=tp.allocUnsafe(tt);if(tt>0){if(tt>ts)for(var ta=0;ta<tt;ta+=ts)tv.getRandomValues(ti.slice(ta,ta+ts));else tv.getRandomValues(ti)}return"function"==typeof tr?tu.nextTick(function(){tr(null,ti)}):ti}tv&&tv.getRandomValues?tt.exports=tg:tt.exports=td},6445:function(tt,tr,ta){"use strict";function ts(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var tc=ta(6911);ta(7223);var td=tc.Buffer,tp=tc.kMaxLength,tv=ti.g.crypto||ti.g.msCrypto,tg=4294967295;function tb(tt,tr){if("number"!=typeof tt||tt!=tt)throw TypeError("offset must be a number");if(tt>tg||tt<0)throw TypeError("offset must be a uint32");if(tt>tp||tt>tr)throw RangeError("offset out of range")}function t_(tt,tr,ti){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+tr>ti||tt>tp)throw RangeError("buffer too small")}function tE(tt,tr,ta,ts){if(!td.isBuffer(tt)&&!(tt instanceof ti.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof tr)ts=tr,tr=0,ta=tt.length;else if("function"==typeof ta)ts=ta,ta=tt.length-tr;else if("function"!=typeof ts)throw TypeError('"cb" argument must be a function');return tb(tr,tt.length),t_(ta,tr,tt.length),tA(tt,tr,ta,ts)}function tA(tt,tr,ti,ta){var ts=tt.buffer,tc=new Uint8Array(ts,tr,ti);if(tv.getRandomValues(tc),ta){tu.nextTick(function(){ta(null,tt)});return}return tt}function tS(tt,tr,ta){if(void 0===tr&&(tr=0),!td.isBuffer(tt)&&!(tt instanceof ti.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return tb(tr,tt.length),void 0===ta&&(ta=tt.length-tr),t_(ta,tr,tt.length),tA(tt,tr,ta)}tv&&tv.getRandomValues?(tr.randomFill=tE,tr.randomFillSync=tS):(tr.randomFill=ts,tr.randomFillSync=ts)},4646:function(tt){"use strict";var tr={};function ti(tt,ti,ta){function ts(tt,tr,ta){return"string"==typeof ti?ti:ti(tt,tr,ta)}ta||(ta=Error);var tu=function(tt){tv(ti,tt);var tr=t_(ti);function ti(tt,ta,tu){return tp(this,ti),tr.call(this,ts(tt,ta,tu))}return td(ti)}(ta);tu.prototype.name=ta.name,tu.prototype.code=tt,tr[tt]=tu}function ta(tt,tr){if(!Array.isArray(tt))return"of ".concat(tr," ").concat(String(tt));var ti=tt.length;return(tt=tt.map(function(tt){return String(tt)}),ti>2)?"one of ".concat(tr," ").concat(tt.slice(0,ti-1).join(", "),", or ")+tt[ti-1]:2===ti?"one of ".concat(tr," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(tr," ").concat(tt[0])}function ts(tt,tr,ti){return tt.substr(!ti||ti<0?0:+ti,tr.length)===tr}function tu(tt,tr,ti){return(void 0===ti||ti>tt.length)&&(ti=tt.length),tt.substring(ti-tr.length,ti)===tr}function tc(tt,tr,ti){return"number"!=typeof ti&&(ti=0),!(ti+tr.length>tt.length)&&-1!==tt.indexOf(tr,ti)}ti("ERR_INVALID_OPT_VALUE",function(tt,tr){return'The value "'+tr+'" is invalid for option "'+tt+'"'},TypeError),ti("ERR_INVALID_ARG_TYPE",function(tt,tr,ti){if("string"==typeof tr&&ts(tr,"not ")?(td="must not be",tr=tr.replace(/^not /,"")):td="must be",tu(tt," argument"))tp="The ".concat(tt," ").concat(td," ").concat(ta(tr,"type"));else{var td,tp,tv=tc(tt,".")?"property":"argument";tp='The "'.concat(tt,'" ').concat(tv," ").concat(td," ").concat(ta(tr,"type"))}return tp+". Received type ".concat(typeof ti)},TypeError),ti("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ti("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),ti("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ti("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),ti("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ti("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ti("ERR_STREAM_WRITE_AFTER_END","write after end"),ti("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ti("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),ti("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tt.exports.q=tr},2403:function(tt,tr,ti){"use strict";var ta=Object.keys||function(tt){var tr=[];for(var ti in tt)tr.push(ti);return tr};tt.exports=tg;var ts=ti(1709),tc=ti(7337);ti(3782)(tg,ts);for(var td=ta(tc.prototype),tp=0;tp<td.length;tp++){var tv=td[tp];tg.prototype[tv]||(tg.prototype[tv]=tc.prototype[tv])}function tg(tt){if(!(this instanceof tg))return new tg(tt);ts.call(this,tt),tc.call(this,tt),this.allowHalfOpen=!0,tt&&(!1===tt.readable&&(this.readable=!1),!1===tt.writable&&(this.writable=!1),!1===tt.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",tb)))}function tb(){this._writableState.ended||tu.nextTick(t_,this)}function t_(tt){tt.end()}Object.defineProperty(tg.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(tg.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tg.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tg.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(tt){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=tt,this._writableState.destroyed=tt)}})},7889:function(tt,tr,ti){"use strict";tt.exports=ts;var ta=ti(1170);function ts(tt){if(!(this instanceof ts))return new ts(tt);ta.call(this,tt)}ti(3782)(ts,ta),ts.prototype._transform=function(tt,tr,ti){ti(null,tt)}},1709:function(tt,tr,ta){"use strict";tt.exports=tj,tj.ReadableState=tD,ta(2361).EventEmitter;var ts,tc,td,tp,tv,tg=function(tt,tr){return tt.listeners(tr).length},tb=ta(4678),t_=ta(4300).Buffer,tE=ti.g.Uint8Array||function(){};function tA(tt){return t_.from(tt)}function tS(tt){return t_.isBuffer(tt)||tt instanceof tE}var tT=ta(3837);tc=tT&&tT.debuglog?tT.debuglog("stream"):function(){};var tM=ta(4379),tR=ta(7025),tI=ta(6776).getHighWaterMark,tk=ta(4646).q,tP=tk.ERR_INVALID_ARG_TYPE,tC=tk.ERR_STREAM_PUSH_AFTER_EOF,tO=tk.ERR_METHOD_NOT_IMPLEMENTED,tN=tk.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ta(3782)(tj,tb);var tB=tR.errorOrDestroy,tL=["error","close","destroy","pause","resume"];function tU(tt,tr,ti){if("function"==typeof tt.prependListener)return tt.prependListener(tr,ti);tt._events&&tt._events[tr]?Array.isArray(tt._events[tr])?tt._events[tr].unshift(ti):tt._events[tr]=[ti,tt._events[tr]]:tt.on(tr,ti)}function tD(tt,tr,ti){ts=ts||ta(2403),tt=tt||{},"boolean"!=typeof ti&&(ti=tr instanceof ts),this.objectMode=!!tt.objectMode,ti&&(this.objectMode=this.objectMode||!!tt.readableObjectMode),this.highWaterMark=tI(this,tt,"readableHighWaterMark",ti),this.buffer=new tM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==tt.emitClose,this.autoDestroy=!!tt.autoDestroy,this.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(td||(td=ta(3704).s),this.decoder=new td(tt.encoding),this.encoding=tt.encoding)}function tj(tt){if(ts=ts||ta(2403),!(this instanceof tj))return new tj(tt);var tr=this instanceof ts;this._readableState=new tD(tt,this,tr),this.readable=!0,tt&&("function"==typeof tt.read&&(this._read=tt.read),"function"==typeof tt.destroy&&(this._destroy=tt.destroy)),tb.call(this)}function tF(tt,tr,ti,ta,ts){tc("readableAddChunk",tr);var tu,td=tt._readableState;if(null===tr)td.reading=!1,tW(tt,td);else if(ts||(tu=tH(td,tr)),tu)tB(tt,tu);else if(td.objectMode||tr&&tr.length>0){if("string"==typeof tr||td.objectMode||Object.getPrototypeOf(tr)===t_.prototype||(tr=tA(tr)),ta)td.endEmitted?tB(tt,new tN):tG(tt,td,tr,!0);else if(td.ended)tB(tt,new tC);else{if(td.destroyed)return!1;td.reading=!1,td.decoder&&!ti?(tr=td.decoder.write(tr),td.objectMode||0!==tr.length?tG(tt,td,tr,!1):tK(tt,td)):tG(tt,td,tr,!1)}}else ta||(td.reading=!1,tK(tt,td));return!td.ended&&(td.length<td.highWaterMark||0===td.length)}function tG(tt,tr,ti,ta){tr.flowing&&0===tr.length&&!tr.sync?(tr.awaitDrain=0,tt.emit("data",ti)):(tr.length+=tr.objectMode?1:ti.length,ta?tr.buffer.unshift(ti):tr.buffer.push(ti),tr.needReadable&&tY(tt)),tK(tt,tr)}function tH(tt,tr){var ti;return tS(tr)||"string"==typeof tr||void 0===tr||tt.objectMode||(ti=new tP("chunk",["string","Buffer","Uint8Array"],tr)),ti}Object.defineProperty(tj.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(tt){this._readableState&&(this._readableState.destroyed=tt)}}),tj.prototype.destroy=tR.destroy,tj.prototype._undestroy=tR.undestroy,tj.prototype._destroy=function(tt,tr){tr(tt)},tj.prototype.push=function(tt,tr){var ti,ta=this._readableState;return ta.objectMode?ti=!0:"string"==typeof tt&&((tr=tr||ta.defaultEncoding)!==ta.encoding&&(tt=t_.from(tt,tr),tr=""),ti=!0),tF(this,tt,tr,!1,ti)},tj.prototype.unshift=function(tt){return tF(this,tt,null,!0,!1)},tj.prototype.isPaused=function(){return!1===this._readableState.flowing},tj.prototype.setEncoding=function(tt){td||(td=ta(3704).s);var tr=new td(tt);this._readableState.decoder=tr,this._readableState.encoding=this._readableState.decoder.encoding;for(var ti=this._readableState.buffer.head,ts="";null!==ti;)ts+=tr.write(ti.data),ti=ti.next;return this._readableState.buffer.clear(),""!==ts&&this._readableState.buffer.push(ts),this._readableState.length=ts.length,this};var tV=1073741824;function tz(tt){return tt>=tV?tt=tV:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function tq(tt,tr){return tt<=0||0===tr.length&&tr.ended?0:tr.objectMode?1:tt!=tt?tr.flowing&&tr.length?tr.buffer.head.data.length:tr.length:(tt>tr.highWaterMark&&(tr.highWaterMark=tz(tt)),tt<=tr.length)?tt:tr.ended?tr.length:(tr.needReadable=!0,0)}function tW(tt,tr){if(tc("onEofChunk"),!tr.ended){if(tr.decoder){var ti=tr.decoder.end();ti&&ti.length&&(tr.buffer.push(ti),tr.length+=tr.objectMode?1:ti.length)}tr.ended=!0,tr.sync?tY(tt):(tr.needReadable=!1,tr.emittedReadable||(tr.emittedReadable=!0,tX(tt)))}}function tY(tt){var tr=tt._readableState;tc("emitReadable",tr.needReadable,tr.emittedReadable),tr.needReadable=!1,tr.emittedReadable||(tc("emitReadable",tr.flowing),tr.emittedReadable=!0,tu.nextTick(tX,tt))}function tX(tt){var tr=tt._readableState;tc("emitReadable_",tr.destroyed,tr.length,tr.ended),!tr.destroyed&&(tr.length||tr.ended)&&(tt.emit("readable"),tr.emittedReadable=!1),tr.needReadable=!tr.flowing&&!tr.ended&&tr.length<=tr.highWaterMark,t2(tt)}function tK(tt,tr){tr.readingMore||(tr.readingMore=!0,tu.nextTick(tZ,tt,tr))}function tZ(tt,tr){for(;!tr.reading&&!tr.ended&&(tr.length<tr.highWaterMark||tr.flowing&&0===tr.length);){var ti=tr.length;if(tc("maybeReadMore read 0"),tt.read(0),ti===tr.length)break}tr.readingMore=!1}function tQ(tt){return function(){var tr=tt._readableState;tc("pipeOnDrain",tr.awaitDrain),tr.awaitDrain&&tr.awaitDrain--,0===tr.awaitDrain&&tg(tt,"data")&&(tr.flowing=!0,t2(tt))}}function tJ(tt){var tr=tt._readableState;tr.readableListening=tt.listenerCount("readable")>0,tr.resumeScheduled&&!tr.paused?tr.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function t$(tt){tc("readable nexttick read 0"),tt.read(0)}function t0(tt,tr){tr.resumeScheduled||(tr.resumeScheduled=!0,tu.nextTick(t1,tt,tr))}function t1(tt,tr){tc("resume",tr.reading),tr.reading||tt.read(0),tr.resumeScheduled=!1,tt.emit("resume"),t2(tt),tr.flowing&&!tr.reading&&tt.read(0)}function t2(tt){var tr=tt._readableState;for(tc("flow",tr.flowing);tr.flowing&&null!==tt.read(););}function t3(tt,tr){var ti;return 0===tr.length?null:(tr.objectMode?ti=tr.buffer.shift():!tt||tt>=tr.length?(ti=tr.decoder?tr.buffer.join(""):1===tr.buffer.length?tr.buffer.first():tr.buffer.concat(tr.length),tr.buffer.clear()):ti=tr.buffer.consume(tt,tr.decoder),ti)}function t6(tt){var tr=tt._readableState;tc("endReadable",tr.endEmitted),tr.endEmitted||(tr.ended=!0,tu.nextTick(t4,tr,tt))}function t4(tt,tr){if(tc("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&0===tt.length&&(tt.endEmitted=!0,tr.readable=!1,tr.emit("end"),tt.autoDestroy)){var ti=tr._writableState;(!ti||ti.autoDestroy&&ti.finished)&&tr.destroy()}}function t8(tt,tr){for(var ti=0,ta=tt.length;ti<ta;ti++)if(tt[ti]===tr)return ti;return -1}tj.prototype.read=function(tt){tc("read",tt),tt=parseInt(tt,10);var tr,ti=this._readableState,ta=tt;if(0!==tt&&(ti.emittedReadable=!1),0===tt&&ti.needReadable&&((0!==ti.highWaterMark?ti.length>=ti.highWaterMark:ti.length>0)||ti.ended))return tc("read: emitReadable",ti.length,ti.ended),0===ti.length&&ti.ended?t6(this):tY(this),null;if(0===(tt=tq(tt,ti))&&ti.ended)return 0===ti.length&&t6(this),null;var ts=ti.needReadable;return tc("need readable",ts),(0===ti.length||ti.length-tt<ti.highWaterMark)&&tc("length less than watermark",ts=!0),ti.ended||ti.reading?tc("reading or ended",ts=!1):ts&&(tc("do read"),ti.reading=!0,ti.sync=!0,0===ti.length&&(ti.needReadable=!0),this._read(ti.highWaterMark),ti.sync=!1,ti.reading||(tt=tq(ta,ti))),null===(tr=tt>0?t3(tt,ti):null)?(ti.needReadable=ti.length<=ti.highWaterMark,tt=0):(ti.length-=tt,ti.awaitDrain=0),0===ti.length&&(ti.ended||(ti.needReadable=!0),ta!==tt&&ti.ended&&t6(this)),null!==tr&&this.emit("data",tr),tr},tj.prototype._read=function(tt){tB(this,new tO("_read()"))},tj.prototype.pipe=function(tt,tr){var ti=this,ta=this._readableState;switch(ta.pipesCount){case 0:ta.pipes=tt;break;case 1:ta.pipes=[ta.pipes,tt];break;default:ta.pipes.push(tt)}ta.pipesCount+=1,tc("pipe count=%d opts=%j",ta.pipesCount,tr);var ts=tr&&!1===tr.end||tt===tu.stdout||tt===tu.stderr?tM:tp;function td(tt,tr){tc("onunpipe"),tt===ti&&tr&&!1===tr.hasUnpiped&&(tr.hasUnpiped=!0,t_())}function tp(){tc("onend"),tt.end()}ta.endEmitted?tu.nextTick(ts):ti.once("end",ts),tt.on("unpipe",td);var tv=tQ(ti);tt.on("drain",tv);var tb=!1;function t_(){tc("cleanup"),tt.removeListener("close",tS),tt.removeListener("finish",tT),tt.removeListener("drain",tv),tt.removeListener("error",tA),tt.removeListener("unpipe",td),ti.removeListener("end",tp),ti.removeListener("end",tM),ti.removeListener("data",tE),tb=!0,ta.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&tv()}function tE(tr){tc("ondata");var ts=tt.write(tr);tc("dest.write",ts),!1===ts&&((1===ta.pipesCount&&ta.pipes===tt||ta.pipesCount>1&&-1!==t8(ta.pipes,tt))&&!tb&&(tc("false write response, pause",ta.awaitDrain),ta.awaitDrain++),ti.pause())}function tA(tr){tc("onerror",tr),tM(),tt.removeListener("error",tA),0===tg(tt,"error")&&tB(tt,tr)}function tS(){tt.removeListener("finish",tT),tM()}function tT(){tc("onfinish"),tt.removeListener("close",tS),tM()}function tM(){tc("unpipe"),ti.unpipe(tt)}return ti.on("data",tE),tU(tt,"error",tA),tt.once("close",tS),tt.once("finish",tT),tt.emit("pipe",ti),ta.flowing||(tc("pipe resume"),ti.resume()),tt},tj.prototype.unpipe=function(tt){var tr=this._readableState,ti={hasUnpiped:!1};if(0===tr.pipesCount)return this;if(1===tr.pipesCount)return tt&&tt!==tr.pipes||(tt||(tt=tr.pipes),tr.pipes=null,tr.pipesCount=0,tr.flowing=!1,tt&&tt.emit("unpipe",this,ti)),this;if(!tt){var ta=tr.pipes,ts=tr.pipesCount;tr.pipes=null,tr.pipesCount=0,tr.flowing=!1;for(var tu=0;tu<ts;tu++)ta[tu].emit("unpipe",this,{hasUnpiped:!1});return this}var tc=t8(tr.pipes,tt);return -1===tc||(tr.pipes.splice(tc,1),tr.pipesCount-=1,1===tr.pipesCount&&(tr.pipes=tr.pipes[0]),tt.emit("unpipe",this,ti)),this},tj.prototype.on=function(tt,tr){var ti=tb.prototype.on.call(this,tt,tr),ta=this._readableState;return"data"===tt?(ta.readableListening=this.listenerCount("readable")>0,!1!==ta.flowing&&this.resume()):"readable"!==tt||ta.endEmitted||ta.readableListening||(ta.readableListening=ta.needReadable=!0,ta.flowing=!1,ta.emittedReadable=!1,tc("on readable",ta.length,ta.reading),ta.length?tY(this):ta.reading||tu.nextTick(t$,this)),ti},tj.prototype.addListener=tj.prototype.on,tj.prototype.removeListener=function(tt,tr){var ti=tb.prototype.removeListener.call(this,tt,tr);return"readable"===tt&&tu.nextTick(tJ,this),ti},tj.prototype.removeAllListeners=function(tt){var tr=tb.prototype.removeAllListeners.apply(this,arguments);return("readable"===tt||void 0===tt)&&tu.nextTick(tJ,this),tr},tj.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(tc("resume"),tt.flowing=!tt.readableListening,t0(this,tt)),tt.paused=!1,this},tj.prototype.pause=function(){return tc("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(tc("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},tj.prototype.wrap=function(tt){var tr=this,ti=this._readableState,ta=!1;for(var ts in tt.on("end",function(){if(tc("wrapped end"),ti.decoder&&!ti.ended){var tt=ti.decoder.end();tt&&tt.length&&tr.push(tt)}tr.push(null)}),tt.on("data",function(ts){tc("wrapped data"),ti.decoder&&(ts=ti.decoder.write(ts)),(!ti.objectMode||null!=ts)&&(ti.objectMode||ts&&ts.length)&&(tr.push(ts)||(ta=!0,tt.pause()))}),tt)void 0===this[ts]&&"function"==typeof tt[ts]&&(this[ts]=function(tr){return function(){return tt[tr].apply(tt,arguments)}}(ts));for(var tu=0;tu<tL.length;tu++)tt.on(tL[tu],this.emit.bind(this,tL[tu]));return this._read=function(tr){tc("wrapped _read",tr),ta&&(ta=!1,tt.resume())},this},"function"==typeof Symbol&&(tj.prototype[Symbol.asyncIterator]=function(){return void 0===tp&&(tp=ta(6871)),tp(this)}),Object.defineProperty(tj.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(tj.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(tj.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(tt){this._readableState&&(this._readableState.flowing=tt)}}),tj._fromList=t3,Object.defineProperty(tj.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(tj.from=function(tt,tr){return void 0===tv&&(tv=ta(9727)),tv(tj,tt,tr)})},1170:function(tt,tr,ti){"use strict";tt.exports=tg;var ta=ti(4646).q,ts=ta.ERR_METHOD_NOT_IMPLEMENTED,tu=ta.ERR_MULTIPLE_CALLBACK,tc=ta.ERR_TRANSFORM_ALREADY_TRANSFORMING,td=ta.ERR_TRANSFORM_WITH_LENGTH_0,tp=ti(2403);function tv(tt,tr){var ti=this._transformState;ti.transforming=!1;var ta=ti.writecb;if(null===ta)return this.emit("error",new tu);ti.writechunk=null,ti.writecb=null,null!=tr&&this.push(tr),ta(tt);var ts=this._readableState;ts.reading=!1,(ts.needReadable||ts.length<ts.highWaterMark)&&this._read(ts.highWaterMark)}function tg(tt){if(!(this instanceof tg))return new tg(tt);tp.call(this,tt),this._transformState={afterTransform:tv.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,tt&&("function"==typeof tt.transform&&(this._transform=tt.transform),"function"==typeof tt.flush&&(this._flush=tt.flush)),this.on("prefinish",tb)}function tb(){var tt=this;"function"!=typeof this._flush||this._readableState.destroyed?t_(this,null,null):this._flush(function(tr,ti){t_(tt,tr,ti)})}function t_(tt,tr,ti){if(tr)return tt.emit("error",tr);if(null!=ti&&tt.push(ti),tt._writableState.length)throw new td;if(tt._transformState.transforming)throw new tc;return tt.push(null)}ti(3782)(tg,tp),tg.prototype.push=function(tt,tr){return this._transformState.needTransform=!1,tp.prototype.push.call(this,tt,tr)},tg.prototype._transform=function(tt,tr,ti){ti(new ts("_transform()"))},tg.prototype._write=function(tt,tr,ti){var ta=this._transformState;if(ta.writecb=ti,ta.writechunk=tt,ta.writeencoding=tr,!ta.transforming){var ts=this._readableState;(ta.needTransform||ts.needReadable||ts.length<ts.highWaterMark)&&this._read(ts.highWaterMark)}},tg.prototype._read=function(tt){var tr=this._transformState;null===tr.writechunk||tr.transforming?tr.needTransform=!0:(tr.transforming=!0,this._transform(tr.writechunk,tr.writeencoding,tr.afterTransform))},tg.prototype._destroy=function(tt,tr){tp.prototype._destroy.call(this,tt,function(tt){tr(tt)})}},7337:function(tt,tr,ta){"use strict";function ts(tt){var tr=this;this.next=null,this.entry=null,this.finish=function(){t1(tr,tt)}}tt.exports=tD,tD.WritableState=tU;var tc,td,tp={deprecate:ta(6769)},tv=ta(4678),tg=ta(4300).Buffer,tb=ti.g.Uint8Array||function(){};function t_(tt){return tg.from(tt)}function tE(tt){return tg.isBuffer(tt)||tt instanceof tb}var tA=ta(7025),tS=ta(6776).getHighWaterMark,tT=ta(4646).q,tM=tT.ERR_INVALID_ARG_TYPE,tR=tT.ERR_METHOD_NOT_IMPLEMENTED,tI=tT.ERR_MULTIPLE_CALLBACK,tk=tT.ERR_STREAM_CANNOT_PIPE,tP=tT.ERR_STREAM_DESTROYED,tC=tT.ERR_STREAM_NULL_VALUES,tO=tT.ERR_STREAM_WRITE_AFTER_END,tN=tT.ERR_UNKNOWN_ENCODING,tB=tA.errorOrDestroy;function tL(){}function tU(tt,tr,ti){tc=tc||ta(2403),tt=tt||{},"boolean"!=typeof ti&&(ti=tr instanceof tc),this.objectMode=!!tt.objectMode,ti&&(this.objectMode=this.objectMode||!!tt.writableObjectMode),this.highWaterMark=tS(this,tt,"writableHighWaterMark",ti),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var tu=!1===tt.decodeStrings;this.decodeStrings=!tu,this.defaultEncoding=tt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(tt){tW(tr,tt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==tt.emitClose,this.autoDestroy=!!tt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ts(this)}function tD(tt){var tr=this instanceof(tc=tc||ta(2403));if(!tr&&!td.call(tD,this))return new tD(tt);this._writableState=new tU(tt,this,tr),this.writable=!0,tt&&("function"==typeof tt.write&&(this._write=tt.write),"function"==typeof tt.writev&&(this._writev=tt.writev),"function"==typeof tt.destroy&&(this._destroy=tt.destroy),"function"==typeof tt.final&&(this._final=tt.final)),tv.call(this)}function tj(tt,tr){var ti=new tO;tB(tt,ti),tu.nextTick(tr,ti)}function tF(tt,tr,ti,ta){var ts;return null===ti?ts=new tC:"string"==typeof ti||tr.objectMode||(ts=new tM("chunk",["string","Buffer"],ti)),!ts||(tB(tt,ts),tu.nextTick(ta,ts),!1)}function tG(tt,tr,ti){return tt.objectMode||!1===tt.decodeStrings||"string"!=typeof tr||(tr=tg.from(tr,ti)),tr}function tH(tt,tr,ti,ta,ts,tu){if(!ti){var tc=tG(tr,ta,ts);ta!==tc&&(ti=!0,ts="buffer",ta=tc)}var td=tr.objectMode?1:ta.length;tr.length+=td;var tp=tr.length<tr.highWaterMark;if(tp||(tr.needDrain=!0),tr.writing||tr.corked){var tv=tr.lastBufferedRequest;tr.lastBufferedRequest={chunk:ta,encoding:ts,isBuf:ti,callback:tu,next:null},tv?tv.next=tr.lastBufferedRequest:tr.bufferedRequest=tr.lastBufferedRequest,tr.bufferedRequestCount+=1}else tV(tt,tr,!1,td,ta,ts,tu);return tp}function tV(tt,tr,ti,ta,ts,tu,tc){tr.writelen=ta,tr.writecb=tc,tr.writing=!0,tr.sync=!0,tr.destroyed?tr.onwrite(new tP("write")):ti?tt._writev(ts,tr.onwrite):tt._write(ts,tu,tr.onwrite),tr.sync=!1}function tz(tt,tr,ti,ta,ts){--tr.pendingcb,ti?(tu.nextTick(ts,ta),tu.nextTick(t$,tt,tr),tt._writableState.errorEmitted=!0,tB(tt,ta)):(ts(ta),tt._writableState.errorEmitted=!0,tB(tt,ta),t$(tt,tr))}function tq(tt){tt.writing=!1,tt.writecb=null,tt.length-=tt.writelen,tt.writelen=0}function tW(tt,tr){var ti=tt._writableState,ta=ti.sync,ts=ti.writecb;if("function"!=typeof ts)throw new tI;if(tq(ti),tr)tz(tt,ti,ta,tr,ts);else{var tc=tZ(ti)||tt.destroyed;tc||ti.corked||ti.bufferProcessing||!ti.bufferedRequest||tK(tt,ti),ta?tu.nextTick(tY,tt,ti,tc,ts):tY(tt,ti,tc,ts)}}function tY(tt,tr,ti,ta){ti||tX(tt,tr),tr.pendingcb--,ta(),t$(tt,tr)}function tX(tt,tr){0===tr.length&&tr.needDrain&&(tr.needDrain=!1,tt.emit("drain"))}function tK(tt,tr){tr.bufferProcessing=!0;var ti=tr.bufferedRequest;if(tt._writev&&ti&&ti.next){var ta=Array(tr.bufferedRequestCount),tu=tr.corkedRequestsFree;tu.entry=ti;for(var tc=0,td=!0;ti;)ta[tc]=ti,ti.isBuf||(td=!1),ti=ti.next,tc+=1;ta.allBuffers=td,tV(tt,tr,!0,tr.length,ta,"",tu.finish),tr.pendingcb++,tr.lastBufferedRequest=null,tu.next?(tr.corkedRequestsFree=tu.next,tu.next=null):tr.corkedRequestsFree=new ts(tr),tr.bufferedRequestCount=0}else{for(;ti;){var tp=ti.chunk,tv=ti.encoding,tg=ti.callback,tb=tr.objectMode?1:tp.length;if(tV(tt,tr,!1,tb,tp,tv,tg),ti=ti.next,tr.bufferedRequestCount--,tr.writing)break}null===ti&&(tr.lastBufferedRequest=null)}tr.bufferedRequest=ti,tr.bufferProcessing=!1}function tZ(tt){return tt.ending&&0===tt.length&&null===tt.bufferedRequest&&!tt.finished&&!tt.writing}function tQ(tt,tr){tt._final(function(ti){tr.pendingcb--,ti&&tB(tt,ti),tr.prefinished=!0,tt.emit("prefinish"),t$(tt,tr)})}function tJ(tt,tr){tr.prefinished||tr.finalCalled||("function"!=typeof tt._final||tr.destroyed?(tr.prefinished=!0,tt.emit("prefinish")):(tr.pendingcb++,tr.finalCalled=!0,tu.nextTick(tQ,tt,tr)))}function t$(tt,tr){var ti=tZ(tr);if(ti&&(tJ(tt,tr),0===tr.pendingcb&&(tr.finished=!0,tt.emit("finish"),tr.autoDestroy))){var ta=tt._readableState;(!ta||ta.autoDestroy&&ta.endEmitted)&&tt.destroy()}return ti}function t0(tt,tr,ti){tr.ending=!0,t$(tt,tr),ti&&(tr.finished?tu.nextTick(ti):tt.once("finish",ti)),tr.ended=!0,tt.writable=!1}function t1(tt,tr,ti){var ta=tt.entry;for(tt.entry=null;ta;){var ts=ta.callback;tr.pendingcb--,ts(ti),ta=ta.next}tr.corkedRequestsFree.next=tt}ta(3782)(tD,tv),tU.prototype.getBuffer=function(){for(var tt=this.bufferedRequest,tr=[];tt;)tr.push(tt),tt=tt.next;return tr},function(){try{Object.defineProperty(tU.prototype,"buffer",{get:tp.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(tt){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(td=Function.prototype[Symbol.hasInstance],Object.defineProperty(tD,Symbol.hasInstance,{value:function(tt){return!!td.call(this,tt)||this===tD&&tt&&tt._writableState instanceof tU}})):td=function(tt){return tt instanceof this},tD.prototype.pipe=function(){tB(this,new tk)},tD.prototype.write=function(tt,tr,ti){var ta=this._writableState,ts=!1,tu=!ta.objectMode&&tE(tt);return tu&&!tg.isBuffer(tt)&&(tt=t_(tt)),"function"==typeof tr&&(ti=tr,tr=null),tu?tr="buffer":tr||(tr=ta.defaultEncoding),"function"!=typeof ti&&(ti=tL),ta.ending?tj(this,ti):(tu||tF(this,ta,tt,ti))&&(ta.pendingcb++,ts=tH(this,ta,tu,tt,tr,ti)),ts},tD.prototype.cork=function(){this._writableState.corked++},tD.prototype.uncork=function(){var tt=this._writableState;!tt.corked||(tt.corked--,tt.writing||tt.corked||tt.bufferProcessing||!tt.bufferedRequest||tK(this,tt))},tD.prototype.setDefaultEncoding=function(tt){if("string"==typeof tt&&(tt=tt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((tt+"").toLowerCase())>-1))throw new tN(tt);return this._writableState.defaultEncoding=tt,this},Object.defineProperty(tD.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tD.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),tD.prototype._write=function(tt,tr,ti){ti(new tR("_write()"))},tD.prototype._writev=null,tD.prototype.end=function(tt,tr,ti){var ta=this._writableState;return"function"==typeof tt?(ti=tt,tt=null,tr=null):"function"==typeof tr&&(ti=tr,tr=null),null!=tt&&this.write(tt,tr),ta.corked&&(ta.corked=1,this.uncork()),ta.ending||t0(this,ta,ti),this},Object.defineProperty(tD.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tD.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(tt){this._writableState&&(this._writableState.destroyed=tt)}}),tD.prototype.destroy=tA.destroy,tD.prototype._undestroy=tA.undestroy,tD.prototype._destroy=function(tt,tr){tr(tt)}},6871:function(tt,tr,ti){"use strict";function ta(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}var ts,tc=ti(9698),td=Symbol("lastResolve"),tp=Symbol("lastReject"),tv=Symbol("error"),tg=Symbol("ended"),tb=Symbol("lastPromise"),t_=Symbol("handlePromise"),tE=Symbol("stream");function tA(tt,tr){return{value:tt,done:tr}}function tS(tt){var tr=tt[td];if(null!==tr){var ti=tt[tE].read();null!==ti&&(tt[tb]=null,tt[td]=null,tt[tp]=null,tr(tA(ti,!1)))}}function tT(tt){tu.nextTick(tS,tt)}function tM(tt,tr){return function(ti,ta){tt.then(function(){if(tr[tg]){ti(tA(void 0,!0));return}tr[t_](ti,ta)},ta)}}var tR=Object.getPrototypeOf(function(){}),tI=Object.setPrototypeOf((ta(ts={get stream(){return this[tE]},next:function(){var tt,tr=this,ti=this[tv];if(null!==ti)return Promise.reject(ti);if(this[tg])return Promise.resolve(tA(void 0,!0));if(this[tE].destroyed)return new Promise(function(tt,ti){tu.nextTick(function(){tr[tv]?ti(tr[tv]):tt(tA(void 0,!0))})});var ta=this[tb];if(ta)tt=new Promise(tM(ta,this));else{var ts=this[tE].read();if(null!==ts)return Promise.resolve(tA(ts,!1));tt=new Promise(this[t_])}return this[tb]=tt,tt}},Symbol.asyncIterator,function(){return this}),ta(ts,"return",function(){var tt=this;return new Promise(function(tr,ti){tt[tE].destroy(null,function(tt){if(tt){ti(tt);return}tr(tA(void 0,!0))})})}),ts),tR),tk=function(tt){var tr,ti=Object.create(tI,(ta(tr={},tE,{value:tt,writable:!0}),ta(tr,td,{value:null,writable:!0}),ta(tr,tp,{value:null,writable:!0}),ta(tr,tv,{value:null,writable:!0}),ta(tr,tg,{value:tt._readableState.endEmitted,writable:!0}),ta(tr,t_,{value:function(tt,tr){var ta=ti[tE].read();ta?(ti[tb]=null,ti[td]=null,ti[tp]=null,tt(tA(ta,!1))):(ti[td]=tt,ti[tp]=tr)},writable:!0}),tr));return ti[tb]=null,tc(tt,function(tt){if(tt&&"ERR_STREAM_PREMATURE_CLOSE"!==tt.code){var tr=ti[tp];null!==tr&&(ti[tb]=null,ti[td]=null,ti[tp]=null,tr(tt)),ti[tv]=tt;return}var ta=ti[td];null!==ta&&(ti[tb]=null,ti[td]=null,ti[tp]=null,ta(tA(void 0,!0))),ti[tg]=!0}),tt.on("readable",tT.bind(null,ti)),ti};tt.exports=tk},4379:function(tt,tr,ti){"use strict";function ta(tt,tr){var ti=Object.keys(tt);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tt);tr&&(ta=ta.filter(function(tr){return Object.getOwnPropertyDescriptor(tt,tr).enumerable})),ti.push.apply(ti,ta)}return ti}function ts(tt){for(var tr=1;tr<arguments.length;tr++){var ti=null!=arguments[tr]?arguments[tr]:{};tr%2?ta(Object(ti),!0).forEach(function(tr){tu(tt,tr,ti[tr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(ti)):ta(Object(ti)).forEach(function(tr){Object.defineProperty(tt,tr,Object.getOwnPropertyDescriptor(ti,tr))})}return tt}function tu(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}function tc(tt,tr){if(!(tt instanceof tr))throw TypeError("Cannot call a class as a function")}function td(tt,tr){for(var ti=0;ti<tr.length;ti++){var ta=tr[ti];ta.enumerable=ta.enumerable||!1,ta.configurable=!0,"value"in ta&&(ta.writable=!0),Object.defineProperty(tt,ta.key,ta)}}function tp(tt,tr,ti){return tr&&td(tt.prototype,tr),ti&&td(tt,ti),tt}var tv=ti(4300).Buffer,tg=ti(3837).inspect,tb=tg&&tg.custom||"inspect";function t_(tt,tr,ti){tv.prototype.copy.call(tt,tr,ti)}tt.exports=function(){function tt(){tc(this,tt),this.head=null,this.tail=null,this.length=0}return tp(tt,[{key:"push",value:function(tt){var tr={data:tt,next:null};this.length>0?this.tail.next=tr:this.head=tr,this.tail=tr,++this.length}},{key:"unshift",value:function(tt){var tr={data:tt,next:this.head};0===this.length&&(this.tail=tr),this.head=tr,++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 tr=this.head,ti=""+tr.data;tr=tr.next;)ti+=tt+tr.data;return ti}},{key:"concat",value:function(tt){if(0===this.length)return tv.alloc(0);for(var tr=tv.allocUnsafe(tt>>>0),ti=this.head,ta=0;ti;)t_(ti.data,tr,ta),ta+=ti.data.length,ti=ti.next;return tr}},{key:"consume",value:function(tt,tr){var ti;return tt<this.head.data.length?(ti=this.head.data.slice(0,tt),this.head.data=this.head.data.slice(tt)):ti=tt===this.head.data.length?this.shift():tr?this._getString(tt):this._getBuffer(tt),ti}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(tt){var tr=this.head,ti=1,ta=tr.data;for(tt-=ta.length;tr=tr.next;){var ts=tr.data,tu=tt>ts.length?ts.length:tt;if(tu===ts.length?ta+=ts:ta+=ts.slice(0,tt),0==(tt-=tu)){tu===ts.length?(++ti,tr.next?this.head=tr.next:this.head=this.tail=null):(this.head=tr,tr.data=ts.slice(tu));break}++ti}return this.length-=ti,ta}},{key:"_getBuffer",value:function(tt){var tr=tv.allocUnsafe(tt),ti=this.head,ta=1;for(ti.data.copy(tr),tt-=ti.data.length;ti=ti.next;){var ts=ti.data,tu=tt>ts.length?ts.length:tt;if(ts.copy(tr,tr.length-tt,0,tu),0==(tt-=tu)){tu===ts.length?(++ta,ti.next?this.head=ti.next:this.head=this.tail=null):(this.head=ti,ti.data=ts.slice(tu));break}++ta}return this.length-=ta,tr}},{key:tb,value:function(tt,tr){return tg(this,ts({},tr,{depth:0,customInspect:!1}))}}]),tt}()},7025:function(tt){"use strict";function tr(tt,tr){var ts=this,td=this._readableState&&this._readableState.destroyed,tp=this._writableState&&this._writableState.destroyed;return td||tp?(tr?tr(tt):tt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,tu.nextTick(tc,this,tt)):tu.nextTick(tc,this,tt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(tt||null,function(tt){!tr&&tt?ts._writableState?ts._writableState.errorEmitted?tu.nextTick(ta,ts):(ts._writableState.errorEmitted=!0,tu.nextTick(ti,ts,tt)):tu.nextTick(ti,ts,tt):tr?(tu.nextTick(ta,ts),tr(tt)):tu.nextTick(ta,ts)}),this)}function ti(tt,tr){tc(tt,tr),ta(tt)}function ta(tt){(!tt._writableState||tt._writableState.emitClose)&&(!tt._readableState||tt._readableState.emitClose)&&tt.emit("close")}function ts(){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 tc(tt,tr){tt.emit("error",tr)}function td(tt,tr){var ti=tt._readableState,ta=tt._writableState;ti&&ti.autoDestroy||ta&&ta.autoDestroy?tt.destroy(tr):tt.emit("error",tr)}tt.exports={destroy:tr,undestroy:ts,errorOrDestroy:td}},9698:function(tt,tr,ti){"use strict";var ta=ti(4646).q.ERR_STREAM_PREMATURE_CLOSE;function ts(tt){var tr=!1;return function(){if(!tr){tr=!0;for(var ti=arguments.length,ta=Array(ti),ts=0;ts<ti;ts++)ta[ts]=arguments[ts];tt.apply(this,ta)}}}function tu(){}function tc(tt){return tt.setHeader&&"function"==typeof tt.abort}function td(tt,tr,ti){if("function"==typeof tr)return td(tt,null,tr);tr||(tr={}),ti=ts(ti||tu);var tp=tr.readable||!1!==tr.readable&&tt.readable,tv=tr.writable||!1!==tr.writable&&tt.writable,tg=function(){tt.writable||t_()},tb=tt._writableState&&tt._writableState.finished,t_=function(){tv=!1,tb=!0,tp||ti.call(tt)},tE=tt._readableState&&tt._readableState.endEmitted,tA=function(){tp=!1,tE=!0,tv||ti.call(tt)},tS=function(tr){ti.call(tt,tr)},tT=function(){var tr;return tp&&!tE?(tt._readableState&&tt._readableState.ended||(tr=new ta),ti.call(tt,tr)):tv&&!tb?(tt._writableState&&tt._writableState.ended||(tr=new ta),ti.call(tt,tr)):void 0},tM=function(){tt.req.on("finish",t_)};return tc(tt)?(tt.on("complete",t_),tt.on("abort",tT),tt.req?tM():tt.on("request",tM)):tv&&!tt._writableState&&(tt.on("end",tg),tt.on("close",tg)),tt.on("end",tA),tt.on("finish",t_),!1!==tr.error&&tt.on("error",tS),tt.on("close",tT),function(){tt.removeListener("complete",t_),tt.removeListener("abort",tT),tt.removeListener("request",tM),tt.req&&tt.req.removeListener("finish",t_),tt.removeListener("end",tg),tt.removeListener("close",tg),tt.removeListener("finish",t_),tt.removeListener("end",tA),tt.removeListener("error",tS),tt.removeListener("close",tT)}}tt.exports=td},9727:function(tt,tr,ti){"use strict";function ta(tt,tr,ti,ta,ts,tu,tc){try{var td=tt[tu](tc),tp=td.value}catch(tt){ti(tt);return}td.done?tr(tp):Promise.resolve(tp).then(ta,ts)}function ts(tt){return function(){var tr=this,ti=arguments;return new Promise(function(ts,tu){var tc=tt.apply(tr,ti);function td(tt){ta(tc,ts,tu,td,tp,"next",tt)}function tp(tt){ta(tc,ts,tu,td,tp,"throw",tt)}td(void 0)})}}function tu(tt,tr){var ti=Object.keys(tt);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tt);tr&&(ta=ta.filter(function(tr){return Object.getOwnPropertyDescriptor(tt,tr).enumerable})),ti.push.apply(ti,ta)}return ti}function td(tt){for(var tr=1;tr<arguments.length;tr++){var ti=null!=arguments[tr]?arguments[tr]:{};tr%2?tu(Object(ti),!0).forEach(function(tr){tp(tt,tr,ti[tr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(ti)):tu(Object(ti)).forEach(function(tr){Object.defineProperty(tt,tr,Object.getOwnPropertyDescriptor(ti,tr))})}return tt}function tp(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}var tv=ti(4646).q.ERR_INVALID_ARG_TYPE;function tg(tt,tr,ti){if(tr&&"function"==typeof tr.next)ta=tr;else if(tr&&tr[Symbol.asyncIterator])ta=tr[Symbol.asyncIterator]();else if(tr&&tr[Symbol.iterator])ta=tr[Symbol.iterator]();else throw new tv("iterable",["Iterable"],tr);var ta,tu=new tt(td({objectMode:!0},ti)),tp=!1;function tg(){return tb.apply(this,arguments)}function tb(){return(tb=ts(tc.mark(function tt(){var tr,ti;return tc.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.prev=0,tt.next=3,ta.next();case 3:if(ti=(tr=tt.sent).value,!tr.done){tt.next=10;break}tu.push(null),tt.next=19;break;case 10:return tt.t0=tu,tt.next=13,ti;case 13:if(tt.t1=tt.sent,!tt.t0.push.call(tt.t0,tt.t1)){tt.next=18;break}tg(),tt.next=19;break;case 18:tp=!1;case 19:tt.next=24;break;case 21:tt.prev=21,tt.t2=tt.catch(0),tu.destroy(tt.t2);case 24:case"end":return tt.stop()}},tt,null,[[0,21]])}))).apply(this,arguments)}return tu._read=function(){tp||(tp=!0,tg())},tu}tt.exports=tg},8442:function(tt,tr,ti){"use strict";function ta(tt){var tr=!1;return function(){tr||(tr=!0,tt.apply(void 0,arguments))}}var ts,tu=ti(4646).q,tc=tu.ERR_MISSING_ARGS,td=tu.ERR_STREAM_DESTROYED;function tp(tt){if(tt)throw tt}function tv(tt){return tt.setHeader&&"function"==typeof tt.abort}function tg(tt,tr,tu,tc){tc=ta(tc);var tp=!1;tt.on("close",function(){tp=!0}),void 0===ts&&(ts=ti(9698)),ts(tt,{readable:tr,writable:tu},function(tt){if(tt)return tc(tt);tp=!0,tc()});var tg=!1;return function(tr){if(!tp&&!tg){if(tg=!0,tv(tt))return tt.abort();if("function"==typeof tt.destroy)return tt.destroy();tc(tr||new td("pipe"))}}}function tb(tt){tt()}function t_(tt,tr){return tt.pipe(tr)}function tE(tt){return tt.length&&"function"==typeof tt[tt.length-1]?tt.pop():tp}function tA(){for(var tt,tr=arguments.length,ti=Array(tr),ta=0;ta<tr;ta++)ti[ta]=arguments[ta];var ts=tE(ti);if(Array.isArray(ti[0])&&(ti=ti[0]),ti.length<2)throw new tc("streams");var tu=ti.map(function(tr,ta){var tc=ta<ti.length-1;return tg(tr,tc,ta>0,function(tr){tt||(tt=tr),tr&&tu.forEach(tb),tc||(tu.forEach(tb),ts(tt))})});return ti.reduce(t_)}tt.exports=tA},6776:function(tt,tr,ti){"use strict";var ta=ti(4646).q.ERR_INVALID_OPT_VALUE;function ts(tt,tr,ti){return null!=tt.highWaterMark?tt.highWaterMark:tr?tt[ti]:null}function tu(tt,tr,ti,tu){var tc=ts(tr,tu,ti);if(null!=tc){if(!(isFinite(tc)&&Math.floor(tc)===tc)||tc<0){var td=tu?ti:"highWaterMark";throw new ta(td,tc)}return Math.floor(tc)}return tt.objectMode?16:16384}tt.exports={getHighWaterMark:tu}},4678:function(tt,tr,ti){tt.exports=ti(2781)},3726:function(tt,tr,ti){var ta=ti(2781);"disable"===tu.env.READABLE_STREAM&&ta?(tt.exports=ta.Readable,Object.assign(tt.exports,ta),tt.exports.Stream=ta):((tr=tt.exports=ti(1709)).Stream=ta||tr,tr.Readable=tr,tr.Writable=ti(7337),tr.Duplex=ti(2403),tr.Transform=ti(1170),tr.PassThrough=ti(7889),tr.finished=ti(9698),tr.pipeline=ti(8442))},3225:function(tt,tr,ti){"use strict";var ta=ti(4300).Buffer,ts=ti(3782),tu=ti(9029),tc=Array(16),td=[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],tp=[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],tv=[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],tb=[0,1518500249,1859775393,2400959708,2840853838],t_=[1352829926,1548603684,1836072691,2053994217,0];function tE(){tu.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function tA(tt,tr){return tt<<tr|tt>>>32-tr}function tS(tt,tr,ti,ta,ts,tu,tc,td){return tA(tt+(tr^ti^ta)+tu+tc|0,td)+ts|0}function tT(tt,tr,ti,ta,ts,tu,tc,td){return tA(tt+(tr&ti|~tr&ta)+tu+tc|0,td)+ts|0}function tM(tt,tr,ti,ta,ts,tu,tc,td){return tA(tt+((tr|~ti)^ta)+tu+tc|0,td)+ts|0}function tR(tt,tr,ti,ta,ts,tu,tc,td){return tA(tt+(tr&ta|ti&~ta)+tu+tc|0,td)+ts|0}function tI(tt,tr,ti,ta,ts,tu,tc,td){return tA(tt+(tr^(ti|~ta))+tu+tc|0,td)+ts|0}ts(tE,tu),tE.prototype._update=function(){for(var tt,tr,ti=tc,ta=0;ta<16;++ta)ti[ta]=this._block.readInt32LE(4*ta);for(var ts=0|this._a,tu=0|this._b,tE=0|this._c,tk=0|this._d,tP=0|this._e,tC=0|this._a,tO=0|this._b,tN=0|this._c,tB=0|this._d,tL=0|this._e,tU=0;tU<80;tU+=1)tU<16?(tt=tS(ts,tu,tE,tk,tP,ti[td[tU]],tb[0],tv[tU]),tr=tI(tC,tO,tN,tB,tL,ti[tp[tU]],t_[0],tg[tU])):tU<32?(tt=tT(ts,tu,tE,tk,tP,ti[td[tU]],tb[1],tv[tU]),tr=tR(tC,tO,tN,tB,tL,ti[tp[tU]],t_[1],tg[tU])):tU<48?(tt=tM(ts,tu,tE,tk,tP,ti[td[tU]],tb[2],tv[tU]),tr=tM(tC,tO,tN,tB,tL,ti[tp[tU]],t_[2],tg[tU])):tU<64?(tt=tR(ts,tu,tE,tk,tP,ti[td[tU]],tb[3],tv[tU]),tr=tT(tC,tO,tN,tB,tL,ti[tp[tU]],t_[3],tg[tU])):(tt=tI(ts,tu,tE,tk,tP,ti[td[tU]],tb[4],tv[tU]),tr=tS(tC,tO,tN,tB,tL,ti[tp[tU]],t_[4],tg[tU])),ts=tP,tP=tk,tk=tA(tE,10),tE=tu,tu=tt,tC=tL,tL=tB,tB=tA(tN,10),tN=tO,tO=tr;var tD=this._b+tE+tB|0;this._b=this._c+tk+tL|0,this._c=this._d+tP+tC|0,this._d=this._e+ts+tO|0,this._e=this._a+tu+tN|0,this._a=tD},tE.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=ta.alloc?ta.alloc(20):new ta(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=tE},5055:function(tt,tr,ti){var ta=ti(4300),ts=ta.Buffer;function tu(tt,tr){for(var ti in tt)tr[ti]=tt[ti]}function tc(tt,tr,ti){return ts(tt,tr,ti)}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?tt.exports=ta:(tu(ta,tr),tr.Buffer=tc),tc.prototype=Object.create(ts.prototype),tu(ts,tc),tc.from=function(tt,tr,ti){if("number"==typeof tt)throw TypeError("Argument must not be a number");return ts(tt,tr,ti)},tc.alloc=function(tt,tr,ti){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ta=ts(tt);return void 0!==tr?"string"==typeof ti?ta.fill(tr,ti):ta.fill(tr):ta.fill(0),ta},tc.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts(tt)},tc.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ta.SlowBuffer(tt)}},6911:function(tt,tr,ti){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ta=ti(4300),ts=ta.Buffer;function tu(tt,tr){for(var ti in tt)tr[ti]=tt[ti]}function tc(tt,tr,ti){return ts(tt,tr,ti)}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?tt.exports=ta:(tu(ta,tr),tr.Buffer=tc),tc.prototype=Object.create(ts.prototype),tu(ts,tc),tc.from=function(tt,tr,ti){if("number"==typeof tt)throw TypeError("Argument must not be a number");return ts(tt,tr,ti)},tc.alloc=function(tt,tr,ti){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ta=ts(tt);return void 0!==tr?"string"==typeof ti?ta.fill(tr,ti):ta.fill(tr):ta.fill(0),ta},tc.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts(tt)},tc.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ta.SlowBuffer(tt)}},2858:function(tt,tr,ti){var ta=ti(6911).Buffer;function ts(tt,tr){this._block=ta.alloc(tt),this._finalSize=tr,this._blockSize=tt,this._len=0}ts.prototype.update=function(tt,tr){"string"==typeof tt&&(tr=tr||"utf8",tt=ta.from(tt,tr));for(var ti=this._block,ts=this._blockSize,tu=tt.length,tc=this._len,td=0;td<tu;){for(var tp=tc%ts,tv=Math.min(tu-td,ts-tp),tg=0;tg<tv;tg++)ti[tp+tg]=tt[td+tg];tc+=tv,td+=tv,tc%ts==0&&this._update(ti)}return this._len+=tu,this},ts.prototype.digest=function(tt){var tr=this._len%this._blockSize;this._block[tr]=128,this._block.fill(0,tr+1),tr>=this._finalSize&&(this._update(this._block),this._block.fill(0));var ti=8*this._len;if(ti<=4294967295)this._block.writeUInt32BE(ti,this._blockSize-4);else{var ta=(4294967295&ti)>>>0,ts=(ti-ta)/4294967296;this._block.writeUInt32BE(ts,this._blockSize-8),this._block.writeUInt32BE(ta,this._blockSize-4)}this._update(this._block);var tu=this._hash();return tt?tu.toString(tt):tu},ts.prototype._update=function(){throw Error("_update must be implemented by subclass")},tt.exports=ts},4371:function(tt,tr,ti){var ta=tt.exports=function(tt){var tr=ta[tt=tt.toLowerCase()];if(!tr)throw Error(tt+" is not supported (we accept pull requests)");return new tr};ta.sha=ti(4018),ta.sha1=ti(4179),ta.sha224=ti(532),ta.sha256=ti(1843),ta.sha384=ti(7455),ta.sha512=ti(9934)},4018:function(tt,tr,ti){var ta=ti(3782),ts=ti(2858),tu=ti(6911).Buffer,tc=[1518500249,1859775393,-1894007588,-899497514],td=Array(80);function tp(){this.init(),this._w=td,ts.call(this,64,56)}function tv(tt){return tt<<5|tt>>>27}function tg(tt){return tt<<30|tt>>>2}function tb(tt,tr,ti,ta){return 0===tt?tr&ti|~tr&ta:2===tt?tr&ti|tr&ta|ti&ta:tr^ti^ta}ta(tp,ts),tp.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},tp.prototype._update=function(tt){for(var tr=this._w,ti=0|this._a,ta=0|this._b,ts=0|this._c,tu=0|this._d,td=0|this._e,tp=0;tp<16;++tp)tr[tp]=tt.readInt32BE(4*tp);for(;tp<80;++tp)tr[tp]=tr[tp-3]^tr[tp-8]^tr[tp-14]^tr[tp-16];for(var t_=0;t_<80;++t_){var tE=~~(t_/20),tA=tv(ti)+tb(tE,ta,ts,tu)+td+tr[t_]+tc[tE]|0;td=tu,tu=ts,ts=tg(ta),ta=ti,ti=tA}this._a=ti+this._a|0,this._b=ta+this._b|0,this._c=ts+this._c|0,this._d=tu+this._d|0,this._e=td+this._e|0},tp.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=tp},4179:function(tt,tr,ti){var ta=ti(3782),ts=ti(2858),tu=ti(6911).Buffer,tc=[1518500249,1859775393,-1894007588,-899497514],td=Array(80);function tp(){this.init(),this._w=td,ts.call(this,64,56)}function tv(tt){return tt<<1|tt>>>31}function tg(tt){return tt<<5|tt>>>27}function tb(tt){return tt<<30|tt>>>2}function t_(tt,tr,ti,ta){return 0===tt?tr&ti|~tr&ta:2===tt?tr&ti|tr&ta|ti&ta:tr^ti^ta}ta(tp,ts),tp.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},tp.prototype._update=function(tt){for(var tr=this._w,ti=0|this._a,ta=0|this._b,ts=0|this._c,tu=0|this._d,td=0|this._e,tp=0;tp<16;++tp)tr[tp]=tt.readInt32BE(4*tp);for(;tp<80;++tp)tr[tp]=tv(tr[tp-3]^tr[tp-8]^tr[tp-14]^tr[tp-16]);for(var tE=0;tE<80;++tE){var tA=~~(tE/20),tS=tg(ti)+t_(tA,ta,ts,tu)+td+tr[tE]+tc[tA]|0;td=tu,tu=ts,ts=tb(ta),ta=ti,ti=tS}this._a=ti+this._a|0,this._b=ta+this._b|0,this._c=ts+this._c|0,this._d=tu+this._d|0,this._e=td+this._e|0},tp.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=tp},532:function(tt,tr,ti){var ta=ti(3782),ts=ti(1843),tu=ti(2858),tc=ti(6911).Buffer,td=Array(64);function tp(){this.init(),this._w=td,tu.call(this,64,56)}ta(tp,ts),tp.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},tp.prototype._hash=function(){var tt=tc.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=tp},1843:function(tt,tr,ti){var ta=ti(3782),ts=ti(2858),tu=ti(6911).Buffer,tc=[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],td=Array(64);function tp(){this.init(),this._w=td,ts.call(this,64,56)}function tv(tt,tr,ti){return ti^tt&(tr^ti)}function tg(tt,tr,ti){return tt&tr|ti&(tt|tr)}function tb(tt){return(tt>>>2|tt<<30)^(tt>>>13|tt<<19)^(tt>>>22|tt<<10)}function t_(tt){return(tt>>>6|tt<<26)^(tt>>>11|tt<<21)^(tt>>>25|tt<<7)}function tE(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}ta(tp,ts),tp.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},tp.prototype._update=function(tt){for(var tr=this._w,ti=0|this._a,ta=0|this._b,ts=0|this._c,tu=0|this._d,td=0|this._e,tp=0|this._f,tS=0|this._g,tT=0|this._h,tM=0;tM<16;++tM)tr[tM]=tt.readInt32BE(4*tM);for(;tM<64;++tM)tr[tM]=tA(tr[tM-2])+tr[tM-7]+tE(tr[tM-15])+tr[tM-16]|0;for(var tR=0;tR<64;++tR){var tI=tT+t_(td)+tv(td,tp,tS)+tc[tR]+tr[tR]|0,tk=tb(ti)+tg(ti,ta,ts)|0;tT=tS,tS=tp,tp=td,td=tu+tI|0,tu=ts,ts=ta,ta=ti,ti=tI+tk|0}this._a=ti+this._a|0,this._b=ta+this._b|0,this._c=ts+this._c|0,this._d=tu+this._d|0,this._e=td+this._e|0,this._f=tp+this._f|0,this._g=tS+this._g|0,this._h=tT+this._h|0},tp.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=tp},7455:function(tt,tr,ti){var ta=ti(3782),ts=ti(9934),tu=ti(2858),tc=ti(6911).Buffer,td=Array(160);function tp(){this.init(),this._w=td,tu.call(this,128,112)}ta(tp,ts),tp.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},tp.prototype._hash=function(){var tt=tc.allocUnsafe(48);function tr(tr,ti,ta){tt.writeInt32BE(tr,ta),tt.writeInt32BE(ti,ta+4)}return tr(this._ah,this._al,0),tr(this._bh,this._bl,8),tr(this._ch,this._cl,16),tr(this._dh,this._dl,24),tr(this._eh,this._el,32),tr(this._fh,this._fl,40),tt},tt.exports=tp},9934:function(tt,tr,ti){var ta=ti(3782),ts=ti(2858),tu=ti(6911).Buffer,tc=[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],td=Array(160);function tp(){this.init(),this._w=td,ts.call(this,128,112)}function tv(tt,tr,ti){return ti^tt&(tr^ti)}function tg(tt,tr,ti){return tt&tr|ti&(tt|tr)}function tb(tt,tr){return(tt>>>28|tr<<4)^(tr>>>2|tt<<30)^(tr>>>7|tt<<25)}function t_(tt,tr){return(tt>>>14|tr<<18)^(tt>>>18|tr<<14)^(tr>>>9|tt<<23)}function tE(tt,tr){return(tt>>>1|tr<<31)^(tt>>>8|tr<<24)^tt>>>7}function tA(tt,tr){return(tt>>>1|tr<<31)^(tt>>>8|tr<<24)^(tt>>>7|tr<<25)}function tS(tt,tr){return(tt>>>19|tr<<13)^(tr>>>29|tt<<3)^tt>>>6}function tT(tt,tr){return(tt>>>19|tr<<13)^(tr>>>29|tt<<3)^(tt>>>6|tr<<26)}function tM(tt,tr){return tt>>>0<tr>>>0?1:0}ta(tp,ts),tp.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},tp.prototype._update=function(tt){for(var tr=this._w,ti=0|this._ah,ta=0|this._bh,ts=0|this._ch,tu=0|this._dh,td=0|this._eh,tp=0|this._fh,tR=0|this._gh,tI=0|this._hh,tk=0|this._al,tP=0|this._bl,tC=0|this._cl,tO=0|this._dl,tN=0|this._el,tB=0|this._fl,tL=0|this._gl,tU=0|this._hl,tD=0;tD<32;tD+=2)tr[tD]=tt.readInt32BE(4*tD),tr[tD+1]=tt.readInt32BE(4*tD+4);for(;tD<160;tD+=2){var tj=tr[tD-30],tF=tr[tD-30+1],tG=tE(tj,tF),tH=tA(tF,tj);tj=tr[tD-4],tF=tr[tD-4+1];var tV=tS(tj,tF),tz=tT(tF,tj),tq=tr[tD-14],tW=tr[tD-14+1],tY=tr[tD-32],tX=tr[tD-32+1],tK=tH+tW|0,tZ=tG+tq+tM(tK,tH)|0;tZ=(tZ=tZ+tV+tM(tK=tK+tz|0,tz)|0)+tY+tM(tK=tK+tX|0,tX)|0,tr[tD]=tZ,tr[tD+1]=tK}for(var tQ=0;tQ<160;tQ+=2){tZ=tr[tQ],tK=tr[tQ+1];var tJ=tg(ti,ta,ts),t$=tg(tk,tP,tC),t0=tb(ti,tk),t1=tb(tk,ti),t2=t_(td,tN),t3=t_(tN,td),t6=tc[tQ],t4=tc[tQ+1],t8=tv(td,tp,tR),t5=tv(tN,tB,tL),t7=tU+t3|0,t9=tI+t2+tM(t7,tU)|0;t9=(t9=(t9=t9+t8+tM(t7=t7+t5|0,t5)|0)+t6+tM(t7=t7+t4|0,t4)|0)+tZ+tM(t7=t7+tK|0,tK)|0;var et=t1+t$|0,er=t0+tJ+tM(et,t1)|0;tI=tR,tU=tL,tR=tp,tL=tB,tp=td,tB=tN,td=tu+t9+tM(tN=tO+t7|0,tO)|0,tu=ts,tO=tC,ts=ta,tC=tP,ta=ti,tP=tk,ti=t9+er+tM(tk=t7+et|0,t7)|0}this._al=this._al+tk|0,this._bl=this._bl+tP|0,this._cl=this._cl+tC|0,this._dl=this._dl+tO|0,this._el=this._el+tN|0,this._fl=this._fl+tB|0,this._gl=this._gl+tL|0,this._hl=this._hl+tU|0,this._ah=this._ah+ti+tM(this._al,tk)|0,this._bh=this._bh+ta+tM(this._bl,tP)|0,this._ch=this._ch+ts+tM(this._cl,tC)|0,this._dh=this._dh+tu+tM(this._dl,tO)|0,this._eh=this._eh+td+tM(this._el,tN)|0,this._fh=this._fh+tp+tM(this._fl,tB)|0,this._gh=this._gh+tR+tM(this._gl,tL)|0,this._hh=this._hh+tI+tM(this._hl,tU)|0},tp.prototype._hash=function(){var tt=tu.allocUnsafe(64);function tr(tr,ti,ta){tt.writeInt32BE(tr,ta),tt.writeInt32BE(ti,ta+4)}return tr(this._ah,this._al,0),tr(this._bh,this._bl,8),tr(this._ch,this._cl,16),tr(this._dh,this._dl,24),tr(this._eh,this._el,32),tr(this._fh,this._fl,40),tr(this._gh,this._gl,48),tr(this._hh,this._hl,56),tt},tt.exports=tp},3704:function(tt,tr,ti){"use strict";var ta=ti(5055).Buffer,ts=ta.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 tr;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(tr)return;tt=(""+tt).toLowerCase(),tr=!0}}function tc(tt){var tr=tu(tt);if("string"!=typeof tr&&(ta.isEncoding===ts||!ts(tt)))throw Error("Unknown encoding: "+tt);return tr||tt}function td(tt){var tr;switch(this.encoding=tc(tt),this.encoding){case"utf16le":this.text=tA,this.end=tS,tr=4;break;case"utf8":this.fillLast=tb,tr=4;break;case"base64":this.text=tT,this.end=tM,tr=3;break;default:this.write=tR,this.end=tI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ta.allocUnsafe(tr)}function tp(tt){return tt<=127?0:tt>>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tv(tt,tr,ti){var ta=tr.length-1;if(ta<ti)return 0;var ts=tp(tr[ta]);return ts>=0?(ts>0&&(tt.lastNeed=ts-1),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(tt.lastNeed=ts-2),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(2===ts?ts=0:tt.lastNeed=ts-3),ts):0}function tg(tt,tr,ti){if((192&tr[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&tr.length>1){if((192&tr[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&tr.length>2&&(192&tr[2])!=128)return tt.lastNeed=2,"�"}}function tb(tt){var tr=this.lastTotal-this.lastNeed,ti=tg(this,tt,tr);return void 0!==ti?ti:this.lastNeed<=tt.length?(tt.copy(this.lastChar,tr,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,tr,0,tt.length),this.lastNeed-=tt.length)}function t_(tt,tr){var ti=tv(this,tt,tr);if(!this.lastNeed)return tt.toString("utf8",tr);this.lastTotal=ti;var ta=tt.length-(ti-this.lastNeed);return tt.copy(this.lastChar,0,ta),tt.toString("utf8",tr,ta)}function tE(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+"�":tr}function tA(tt,tr){if((tt.length-tr)%2==0){var ti=tt.toString("utf16le",tr);if(ti){var ta=ti.charCodeAt(ti.length-1);if(ta>=55296&&ta<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ti.slice(0,-1)}return ti}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",tr,tt.length-1)}function tS(tt){var tr=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ti=this.lastTotal-this.lastNeed;return tr+this.lastChar.toString("utf16le",0,ti)}return tr}function tT(tt,tr){var ti=(tt.length-tr)%3;return 0===ti?tt.toString("base64",tr):(this.lastNeed=3-ti,this.lastTotal=3,1===ti?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",tr,tt.length-ti))}function tM(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+this.lastChar.toString("base64",0,3-this.lastNeed):tr}function tR(tt){return tt.toString(this.encoding)}function tI(tt){return tt&&tt.length?this.write(tt):""}tr.s=td,td.prototype.write=function(tt){var tr,ti;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(tr=this.fillLast(tt)))return"";ti=this.lastNeed,this.lastNeed=0}else ti=0;return ti<tt.length?tr?tr+this.text(tt,ti):this.text(tt,ti):tr||""},td.prototype.end=tE,td.prototype.text=t_,td.prototype.fillLast=function(tt){if(this.lastNeed<=tt.length)return tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,tt.length),this.lastNeed-=tt.length}},6769:function(tt){function tr(tt,tr){if(ta("noDeprecation"))return tt;var ti=!1;return function(){if(!ti){if(ta("throwDeprecation"))throw Error(tr);ta("traceDeprecation")?console.trace(tr):console.warn(tr),ti=!0}return tt.apply(this,arguments)}}function ta(tt){try{if(!ti.g.localStorage)return!1}catch(tt){return!1}var tr=ti.g.localStorage[tt];return null!=tr&&"true"===String(tr).toLowerCase()}tt.exports=tr},4300:function(tt){"use strict";tt.exports=ti(84406)},6113:function(tt){"use strict";tt.exports=ti(60417)},2361:function(tt){"use strict";tt.exports=ti(51988)},2781:function(tt){"use strict";tt.exports=ti(23423)},1576:function(tt){"use strict";tt.exports=ti(76887)},3837:function(tt){"use strict";tt.exports=ti(15890)},6144:function(tt){"use strict";tt.exports=ti(79286)},5866:function(tt){"use strict";tt.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(tt){"use strict";tt.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(tt){"use strict";tt.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(tt){"use strict";tt.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(tt){"use strict";tt.exports={i8:"6.5.3"}},2510:function(tt){"use strict";tt.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},tg={};function tb(tt){var ti=tg[tt];if(void 0!==ti)return ti.exports;var ta=tg[tt]={id:tt,loaded:!1,exports:{}},ts=!0;try{tr[tt].call(ta.exports,ta,ta.exports,tb),ts=!1}finally{ts&&delete tg[tt]}return ta.loaded=!0,ta.exports}!function(){tb.nmd=function(tt){return tt.paths=[],tt.children||(tt.children=[]),tt}}(),tb.ab=ta+"/";var tE={};!function(){"use strict";var tt=tE;tt.randomBytes=tt.rng=tt.pseudoRandomBytes=tt.prng=tb(7223),tt.createHash=tt.Hash=tb(9739),tt.createHmac=tt.Hmac=tb(4873);var tr=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(tb(9276)));tt.getHashes=function(){return tr};var ti=tb(4978);tt.pbkdf2=ti.pbkdf2,tt.pbkdf2Sync=ti.pbkdf2Sync;var ta=tb(8996);tt.Cipher=ta.Cipher,tt.createCipher=ta.createCipher,tt.Cipheriv=ta.Cipheriv,tt.createCipheriv=ta.createCipheriv,tt.Decipher=ta.Decipher,tt.createDecipher=ta.createDecipher,tt.Decipheriv=ta.Decipheriv,tt.createDecipheriv=ta.createDecipheriv,tt.getCiphers=ta.getCiphers,tt.listCiphers=ta.listCiphers;var ts=tb(6587);tt.DiffieHellmanGroup=ts.DiffieHellmanGroup,tt.createDiffieHellmanGroup=ts.createDiffieHellmanGroup,tt.getDiffieHellman=ts.getDiffieHellman,tt.createDiffieHellman=ts.createDiffieHellman,tt.DiffieHellman=ts.DiffieHellman;var tu=tb(4078);tt.createSign=tu.createSign,tt.Sign=tu.Sign,tt.createVerify=tu.createVerify,tt.Verify=tu.Verify,tt.createECDH=tb(9942);var tc=tb(9783);tt.publicEncrypt=tc.publicEncrypt,tt.privateEncrypt=tc.privateEncrypt,tt.publicDecrypt=tc.publicDecrypt,tt.privateDecrypt=tc.privateDecrypt;var td=tb(6445);tt.randomFill=td.randomFill,tt.randomFillSync=td.randomFillSync,tt.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},tt.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),tt.exports=tE}()},51988:function(tt){var tr="/";!function(){"use strict";var ti={864:function(tt){var tr,ti="object"==typeof Reflect?Reflect:null,ta=ti&&"function"==typeof ti.apply?ti.apply:function(tt,tr,ti){return Function.prototype.apply.call(tt,tr,ti)};function ts(tt){console&&console.warn&&console.warn(tt)}tr=ti&&"function"==typeof ti.ownKeys?ti.ownKeys:Object.getOwnPropertySymbols?function(tt){return Object.getOwnPropertyNames(tt).concat(Object.getOwnPropertySymbols(tt))}:function(tt){return Object.getOwnPropertyNames(tt)};var tu=Number.isNaN||function(tt){return tt!=tt};function tc(){tc.init.call(this)}tt.exports=tc,tt.exports.once=tR,tc.EventEmitter=tc,tc.prototype._events=void 0,tc.prototype._eventsCount=0,tc.prototype._maxListeners=void 0;var td=10;function tp(tt){if("function"!=typeof tt)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof tt)}function tv(tt){return void 0===tt._maxListeners?tc.defaultMaxListeners:tt._maxListeners}function tg(tt,tr,ti,ta){if(tp(ti),void 0===(tc=tt._events)?(tc=tt._events=Object.create(null),tt._eventsCount=0):(void 0!==tc.newListener&&(tt.emit("newListener",tr,ti.listener?ti.listener:ti),tc=tt._events),td=tc[tr]),void 0===td)td=tc[tr]=ti,++tt._eventsCount;else if("function"==typeof td?td=tc[tr]=ta?[ti,td]:[td,ti]:ta?td.unshift(ti):td.push(ti),(tu=tv(tt))>0&&td.length>tu&&!td.warned){td.warned=!0;var tu,tc,td,tg=Error("Possible EventEmitter memory leak detected. "+td.length+" "+String(tr)+" listeners added. Use emitter.setMaxListeners() to increase limit");tg.name="MaxListenersExceededWarning",tg.emitter=tt,tg.type=tr,tg.count=td.length,ts(tg)}return tt}function tb(){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 t_(tt,tr,ti){var ta={fired:!1,wrapFn:void 0,target:tt,type:tr,listener:ti},ts=tb.bind(ta);return ts.listener=ti,ta.wrapFn=ts,ts}function tE(tt,tr,ti){var ta=tt._events;if(void 0===ta)return[];var ts=ta[tr];return void 0===ts?[]:"function"==typeof ts?ti?[ts.listener||ts]:[ts]:ti?tM(ts):tS(ts,ts.length)}function tA(tt){var tr=this._events;if(void 0!==tr){var ti=tr[tt];if("function"==typeof ti)return 1;if(void 0!==ti)return ti.length}return 0}function tS(tt,tr){for(var ti=Array(tr),ta=0;ta<tr;++ta)ti[ta]=tt[ta];return ti}function tT(tt,tr){for(;tr+1<tt.length;tr++)tt[tr]=tt[tr+1];tt.pop()}function tM(tt){for(var tr=Array(tt.length),ti=0;ti<tr.length;++ti)tr[ti]=tt[ti].listener||tt[ti];return tr}function tR(tt,tr){return new Promise(function(ti,ta){function ts(ti){tt.removeListener(tr,tu),ta(ti)}function tu(){"function"==typeof tt.removeListener&&tt.removeListener("error",ts),ti([].slice.call(arguments))}tk(tt,tr,tu,{once:!0}),"error"!==tr&&tI(tt,ts,{once:!0})})}function tI(tt,tr,ti){"function"==typeof tt.on&&tk(tt,"error",tr,ti)}function tk(tt,tr,ti,ta){if("function"==typeof tt.on)ta.once?tt.once(tr,ti):tt.on(tr,ti);else if("function"==typeof tt.addEventListener)tt.addEventListener(tr,function ts(tu){ta.once&&tt.removeEventListener(tr,ts),ti(tu)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof tt)}Object.defineProperty(tc,"defaultMaxListeners",{enumerable:!0,get:function(){return td},set:function(tt){if("number"!=typeof tt||tt<0||tu(tt))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+tt+".");td=tt}}),tc.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},tc.prototype.setMaxListeners=function(tt){if("number"!=typeof tt||tt<0||tu(tt))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+tt+".");return this._maxListeners=tt,this},tc.prototype.getMaxListeners=function(){return tv(this)},tc.prototype.emit=function(tt){for(var tr=[],ti=1;ti<arguments.length;ti++)tr.push(arguments[ti]);var ts="error"===tt,tu=this._events;if(void 0!==tu)ts=ts&&void 0===tu.error;else if(!ts)return!1;if(ts){if(tr.length>0&&(tc=tr[0]),tc instanceof Error)throw tc;var tc,td=Error("Unhandled error."+(tc?" ("+tc.message+")":""));throw td.context=tc,td}var tp=tu[tt];if(void 0===tp)return!1;if("function"==typeof tp)ta(tp,this,tr);else for(var tv=tp.length,tg=tS(tp,tv),ti=0;ti<tv;++ti)ta(tg[ti],this,tr);return!0},tc.prototype.addListener=function(tt,tr){return tg(this,tt,tr,!1)},tc.prototype.on=tc.prototype.addListener,tc.prototype.prependListener=function(tt,tr){return tg(this,tt,tr,!0)},tc.prototype.once=function(tt,tr){return tp(tr),this.on(tt,t_(this,tt,tr)),this},tc.prototype.prependOnceListener=function(tt,tr){return tp(tr),this.prependListener(tt,t_(this,tt,tr)),this},tc.prototype.removeListener=function(tt,tr){var ti,ta,ts,tu,tc;if(tp(tr),void 0===(ta=this._events)||void 0===(ti=ta[tt]))return this;if(ti===tr||ti.listener===tr)0==--this._eventsCount?this._events=Object.create(null):(delete ta[tt],ta.removeListener&&this.emit("removeListener",tt,ti.listener||tr));else if("function"!=typeof ti){for(ts=-1,tu=ti.length-1;tu>=0;tu--)if(ti[tu]===tr||ti[tu].listener===tr){tc=ti[tu].listener,ts=tu;break}if(ts<0)return this;0===ts?ti.shift():tT(ti,ts),1===ti.length&&(ta[tt]=ti[0]),void 0!==ta.removeListener&&this.emit("removeListener",tt,tc||tr)}return this},tc.prototype.off=tc.prototype.removeListener,tc.prototype.removeAllListeners=function(tt){var tr,ti,ta;if(void 0===(ti=this._events))return this;if(void 0===ti.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ti[tt]&&(0==--this._eventsCount?this._events=Object.create(null):delete ti[tt]),this;if(0==arguments.length){var ts,tu=Object.keys(ti);for(ta=0;ta<tu.length;++ta)"removeListener"!==(ts=tu[ta])&&this.removeAllListeners(ts);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(tr=ti[tt]))this.removeListener(tt,tr);else if(void 0!==tr)for(ta=tr.length-1;ta>=0;ta--)this.removeListener(tt,tr[ta]);return this},tc.prototype.listeners=function(tt){return tE(this,tt,!0)},tc.prototype.rawListeners=function(tt){return tE(this,tt,!1)},tc.listenerCount=function(tt,tr){return"function"==typeof tt.listenerCount?tt.listenerCount(tr):tA.call(tt,tr)},tc.prototype.listenerCount=tA,tc.prototype.eventNames=function(){return this._eventsCount>0?tr(this._events):[]}}},ta={};function ts(tt){var tr=ta[tt];if(void 0!==tr)return tr.exports;var tu=ta[tt]={exports:{}},tc=!0;try{ti[tt](tu,tu.exports,ts),tc=!1}finally{tc&&delete ta[tt]}return tu.exports}ts.ab=tr+"/";var tu=ts(864);tt.exports=tu}()},94453:function(tt,tr,ti){var ta="/";!function(){var tr={452:function(tt){"use strict";tt.exports=ti(84320)}},ts={};function tu(tt){var ti=ts[tt];if(void 0!==ti)return ti.exports;var ta=ts[tt]={exports:{}},tc=!0;try{tr[tt](ta,ta.exports,tu),tc=!1}finally{tc&&delete ts[tt]}return ta.exports}tu.ab=ta+"/";var tc={};!function(){var tt,tr=tc,ti=(tt=tu(452))&&"object"==typeof tt&&"default"in tt?tt.default:tt,ta=/https?|ftp|gopher|file/;function ts(tt){"string"==typeof tt&&(tt=tI(tt));var tr=function(tt,tr,ti){var ta=tt.auth,ts=tt.hostname,tu=tt.protocol||"",tc=tt.pathname||"",td=tt.hash||"",tp=tt.query||"",tv=!1;ta=ta?encodeURIComponent(ta).replace(/%3A/i,":")+"@":"",tt.host?tv=ta+tt.host:ts&&(tv=ta+(~ts.indexOf(":")?"["+ts+"]":ts),tt.port&&(tv+=":"+tt.port)),tp&&"object"==typeof tp&&(tp=tr.encode(tp));var tg=tt.search||tp&&"?"+tp||"";return tu&&":"!==tu.substr(-1)&&(tu+=":"),tt.slashes||(!tu||ti.test(tu))&&!1!==tv?(tv="//"+(tv||""),tc&&"/"!==tc[0]&&(tc="/"+tc)):tv||(tv=""),td&&"#"!==td[0]&&(td="#"+td),tg&&"?"!==tg[0]&&(tg="?"+tg),{protocol:tu,host:tv,pathname:tc=tc.replace(/[?#]/g,encodeURIComponent),search:tg=tg.replace("#","%23"),hash:td}}(tt,ti,ta);return""+tr.protocol+tr.host+tr.pathname+tr.search+tr.hash}var td="http://",tp="w.w",tv=td+tp,tg=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,tb=/https?|ftp|gopher|file/;function t_(tt,tr){var ti="string"==typeof tt?tI(tt):tt;tt="object"==typeof tt?ts(tt):tt;var ta=tI(tr),tu="";ti.protocol&&!ti.slashes&&(tu=ti.protocol,tt=tt.replace(ti.protocol,""),tu+="/"===tr[0]||"/"===tt[0]?"/":""),tu&&ta.protocol&&(tu="",ta.slashes||(tu=ta.protocol,tr=tr.replace(ta.protocol,"")));var tc=tt.match(tg);tc&&!ta.protocol&&(tt=tt.substr((tu=tc[1]+(tc[2]||"")).length),/^\/\/[^/]/.test(tr)&&(tu=tu.slice(0,-1)));var tp=new URL(tt,tv+"/"),t_=new URL(tr,tp).toString().replace(tv,""),tE=ta.protocol||ti.protocol;return tE+=ti.slashes||ta.slashes?"//":"",!tu&&tE?t_=t_.replace(td,tE):tu&&(t_=t_.replace(td,"")),tb.test(t_)||~tr.indexOf(".")||"/"===tt.slice(-1)||"/"===tr.slice(-1)||"/"!==t_.slice(-1)||(t_=t_.slice(0,-1)),tu&&(t_=tu+("/"===t_[0]?t_.substr(1):t_)),t_}function tE(){}tE.prototype.parse=tI,tE.prototype.format=ts,tE.prototype.resolve=t_,tE.prototype.resolveObject=t_;var tA=/^https?|ftp|gopher|file/,tS=/^(.*?)([#?].*)/,tT=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,tM=/^([a-z0-9.+-]*:)?\/\/\/*/i,tR=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function tI(tt,tr,ta){if(void 0===tr&&(tr=!1),void 0===ta&&(ta=!1),tt&&"object"==typeof tt&&tt instanceof tE)return tt;var tu=(tt=tt.trim()).match(tS);tt=tu?tu[1].replace(/\\/g,"/")+tu[2]:tt.replace(/\\/g,"/"),tR.test(tt)&&"/"!==tt.slice(-1)&&(tt+="/");var tc=!/(^javascript)/.test(tt)&&tt.match(tT),td=tM.test(tt),tg="";tc&&(tA.test(tc[1])||(tg=tc[1].toLowerCase(),tt=""+tc[2]+tc[3]),tc[2]||(td=!1,tA.test(tc[1])?(tg=tc[1],tt=""+tc[3]):tt="//"+tc[3]),3!==tc[2].length&&1!==tc[2].length||(tg=tc[1],tt="/"+tc[3]));var tb,t_=(tu?tu[1]:tt).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),tI=t_&&t_[1],tk=new tE,tP="",tC="";try{tb=new URL(tt)}catch(tr){tP=tr,tg||ta||!/^\/\//.test(tt)||/^\/\/.+[@.]/.test(tt)||(tC="/",tt=tt.substr(1));try{tb=new URL(tt,tv)}catch(tt){return tk.protocol=tg,tk.href=tg,tk}}tk.slashes=td&&!tC,tk.host=tb.host===tp?"":tb.host,tk.hostname=tb.hostname===tp?"":tb.hostname.replace(/(\[|\])/g,""),tk.protocol=tP?tg||null:tb.protocol,tk.search=tb.search.replace(/\\/g,"%5C"),tk.hash=tb.hash.replace(/\\/g,"%5C");var tO=tt.split("#");!tk.search&&~tO[0].indexOf("?")&&(tk.search="?"),tk.hash||""!==tO[1]||(tk.hash="#"),tk.query=tr?ti.decode(tb.search.substr(1)):tk.search.substr(1),tk.pathname=tC+(tc?function(tt){return tt.replace(/['^|`]/g,function(tt){return"%"+tt.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(tt,tr){try{return decodeURIComponent(tr).split("").map(function(tt){var tr=tt.charCodeAt();return tr>256||/^[a-z0-9]$/i.test(tt)?tt:"%"+tr.toString(16).toUpperCase()}).join("")}catch(tt){return tr}})}(tb.pathname):tb.pathname),"about:"===tk.protocol&&"blank"===tk.pathname&&(tk.protocol="",tk.pathname=""),tP&&"/"!==tt[0]&&(tk.pathname=tk.pathname.substr(1)),tg&&!tA.test(tg)&&"/"!==tt.slice(-1)&&"/"===tk.pathname&&(tk.pathname=""),tk.path=tk.pathname+tk.search,tk.auth=[tb.username,tb.password].map(decodeURIComponent).filter(Boolean).join(":"),tk.port=tb.port,tI&&!tk.host.endsWith(tI)&&(tk.host+=tI,tk.port=tI.slice(1)),tk.href=tC?""+tk.pathname+tk.search+tk.hash:ts(tk);var tN=/^(file)/.test(tk.href)?["host","hostname"]:[];return Object.keys(tk).forEach(function(tt){~tN.indexOf(tt)||(tk[tt]=tk[tt]||null)}),tk}tr.parse=tI,tr.format=ts,tr.resolve=t_,tr.resolveObject=function(tt,tr){return tI(t_(tt,tr))},tr.Url=tE}(),tt.exports=tc}()},36299:function(tt){var tr="/";!function(){var ti={229:function(tt){var tr,ti,ta,ts=tt.exports={};function tu(){throw Error("setTimeout has not been defined")}function tc(){throw Error("clearTimeout has not been defined")}function td(tt){if(tr===setTimeout)return setTimeout(tt,0);if((tr===tu||!tr)&&setTimeout)return tr=setTimeout,setTimeout(tt,0);try{return tr(tt,0)}catch(ti){try{return tr.call(null,tt,0)}catch(ti){return tr.call(this,tt,0)}}}function tp(tt){if(ti===clearTimeout)return clearTimeout(tt);if((ti===tc||!ti)&&clearTimeout)return ti=clearTimeout,clearTimeout(tt);try{return ti(tt)}catch(tr){try{return ti.call(null,tt)}catch(tr){return ti.call(this,tt)}}}!function(){try{tr="function"==typeof setTimeout?setTimeout:tu}catch(tt){tr=tu}try{ti="function"==typeof clearTimeout?clearTimeout:tc}catch(tt){ti=tc}}();var tv=[],tg=!1,tb=-1;function t_(){tg&&ta&&(tg=!1,ta.length?tv=ta.concat(tv):tb=-1,tv.length&&tE())}function tE(){if(!tg){var tt=td(t_);tg=!0;for(var tr=tv.length;tr;){for(ta=tv,tv=[];++tb<tr;)ta&&ta[tb].run();tb=-1,tr=tv.length}ta=null,tg=!1,tp(tt)}}function tA(tt,tr){this.fun=tt,this.array=tr}function tS(){}ts.nextTick=function(tt){var tr=Array(arguments.length-1);if(arguments.length>1)for(var ti=1;ti<arguments.length;ti++)tr[ti-1]=arguments[ti];tv.push(new tA(tt,tr)),1!==tv.length||tg||td(tE)},tA.prototype.run=function(){this.fun.apply(null,this.array)},ts.title="browser",ts.browser=!0,ts.env={},ts.argv=[],ts.version="",ts.versions={},ts.on=tS,ts.addListener=tS,ts.once=tS,ts.off=tS,ts.removeListener=tS,ts.removeAllListeners=tS,ts.emit=tS,ts.prependListener=tS,ts.prependOnceListener=tS,ts.listeners=function(tt){return[]},ts.binding=function(tt){throw Error("process.binding is not supported")},ts.cwd=function(){return"/"},ts.chdir=function(tt){throw Error("process.chdir is not supported")},ts.umask=function(){return 0}}},ta={};function ts(tt){var tr=ta[tt];if(void 0!==tr)return tr.exports;var tu=ta[tt]={exports:{}},tc=!0;try{ti[tt](tu,tu.exports,ts),tc=!1}finally{tc&&delete ta[tt]}return tu.exports}ts.ab=tr+"/";var tu=ts(229);tt.exports=tu}()},84320:function(tt){var tr="/";!function(){"use strict";var ti={815:function(tt){function tr(tt,tr){return Object.prototype.hasOwnProperty.call(tt,tr)}tt.exports=function(tt,ta,ts,tu){ta=ta||"&",ts=ts||"=";var tc={};if("string"!=typeof tt||0===tt.length)return tc;var td=/\+/g;tt=tt.split(ta);var tp=1e3;tu&&"number"==typeof tu.maxKeys&&(tp=tu.maxKeys);var tv=tt.length;tp>0&&tv>tp&&(tv=tp);for(var tg=0;tg<tv;++tg){var tb,t_,tE,tA,tS=tt[tg].replace(td,"%20"),tT=tS.indexOf(ts);tT>=0?(tb=tS.substr(0,tT),t_=tS.substr(tT+1)):(tb=tS,t_=""),tE=decodeURIComponent(tb),tA=decodeURIComponent(t_),tr(tc,tE)?ti(tc[tE])?tc[tE].push(tA):tc[tE]=[tc[tE],tA]:tc[tE]=tA}return tc};var ti=Array.isArray||function(tt){return"[object Array]"===Object.prototype.toString.call(tt)}},577:function(tt){var tr=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,tc,td){return(tu=tu||"&",tc=tc||"=",null===tt&&(tt=void 0),"object"==typeof tt)?ta(ts(tt),function(ts){var td=encodeURIComponent(tr(ts))+tc;return ti(tt[ts])?ta(tt[ts],function(tt){return td+encodeURIComponent(tr(tt))}).join(tu):td+encodeURIComponent(tr(tt[ts]))}).join(tu):td?encodeURIComponent(tr(td))+tc+encodeURIComponent(tr(tt)):""};var ti=Array.isArray||function(tt){return"[object Array]"===Object.prototype.toString.call(tt)};function ta(tt,tr){if(tt.map)return tt.map(tr);for(var ti=[],ta=0;ta<tt.length;ta++)ti.push(tr(tt[ta],ta));return ti}var ts=Object.keys||function(tt){var tr=[];for(var ti in tt)Object.prototype.hasOwnProperty.call(tt,ti)&&tr.push(ti);return tr}}},ta={};function ts(tt){var tr=ta[tt];if(void 0!==tr)return tr.exports;var tu=ta[tt]={exports:{}},tc=!0;try{ti[tt](tu,tu.exports,ts),tc=!1}finally{tc&&delete ta[tt]}return tu.exports}ts.ab=tr+"/";var tu={};!function(){var tt=tu;tt.decode=tt.parse=ts(815),tt.encode=tt.stringify=ts(577)}(),tt.exports=tu}()},23423:function(tt,tr,ti){var ta="/",ts=ti(42907),tu=ti(73857),tc=ti(12117),td=ti(67048),tp=ti(29449),tv=ti(1959),tg=ti(25422);function tb(tt){var tr=t_();return function(){var ti,ta=tg(tt);if(tr){var ts=tg(this).constructor;ti=Reflect.construct(ta,arguments,ts)}else ti=ta.apply(this,arguments);return tv(this,ti)}}function t_(){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 tr={782:function(tt){"function"==typeof Object.create?tt.exports=function(tt,tr){tr&&(tt.super_=tr,tt.prototype=Object.create(tr.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(tt,tr){if(tr){tt.super_=tr;var ti=function(){};ti.prototype=tr.prototype,tt.prototype=new ti,tt.prototype.constructor=tt}}},646:function(tt){"use strict";var tr={};function ti(tt,ti,ta){function ts(tt,tr,ta){return"string"==typeof ti?ti:ti(tt,tr,ta)}ta||(ta=Error);var tu=function(tt){tp(ti,tt);var tr=tb(ti);function ti(tt,ta,tu){return td(this,ti),tr.call(this,ts(tt,ta,tu))}return tc(ti)}(ta);tu.prototype.name=ta.name,tu.prototype.code=tt,tr[tt]=tu}function ta(tt,tr){if(!Array.isArray(tt))return"of ".concat(tr," ").concat(String(tt));var ti=tt.length;return(tt=tt.map(function(tt){return String(tt)}),ti>2)?"one of ".concat(tr," ").concat(tt.slice(0,ti-1).join(", "),", or ")+tt[ti-1]:2===ti?"one of ".concat(tr," ").concat(tt[0]," or ").concat(tt[1]):"of ".concat(tr," ").concat(tt[0])}function ts(tt,tr,ti){return tt.substr(!ti||ti<0?0:+ti,tr.length)===tr}function tu(tt,tr,ti){return(void 0===ti||ti>tt.length)&&(ti=tt.length),tt.substring(ti-tr.length,ti)===tr}function tv(tt,tr,ti){return"number"!=typeof ti&&(ti=0),!(ti+tr.length>tt.length)&&-1!==tt.indexOf(tr,ti)}ti("ERR_INVALID_OPT_VALUE",function(tt,tr){return'The value "'+tr+'" is invalid for option "'+tt+'"'},TypeError),ti("ERR_INVALID_ARG_TYPE",function(tt,tr,ti){if("string"==typeof tr&&ts(tr,"not ")?(tc="must not be",tr=tr.replace(/^not /,"")):tc="must be",tu(tt," argument"))td="The ".concat(tt," ").concat(tc," ").concat(ta(tr,"type"));else{var tc,td,tp=tv(tt,".")?"property":"argument";td='The "'.concat(tt,'" ').concat(tp," ").concat(tc," ").concat(ta(tr,"type"))}return td+". Received type ".concat(typeof ti)},TypeError),ti("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ti("ERR_METHOD_NOT_IMPLEMENTED",function(tt){return"The "+tt+" method is not implemented"}),ti("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ti("ERR_STREAM_DESTROYED",function(tt){return"Cannot call "+tt+" after a stream was destroyed"}),ti("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ti("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ti("ERR_STREAM_WRITE_AFTER_END","write after end"),ti("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ti("ERR_UNKNOWN_ENCODING",function(tt){return"Unknown encoding: "+tt},TypeError),ti("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tt.exports.q=tr},403:function(tt,tr,ti){"use strict";var ta=Object.keys||function(tt){var tr=[];for(var ti in tt)tr.push(ti);return tr};tt.exports=tg;var tu=ti(709),tc=ti(337);ti(782)(tg,tu);for(var td=ta(tc.prototype),tp=0;tp<td.length;tp++){var tv=td[tp];tg.prototype[tv]||(tg.prototype[tv]=tc.prototype[tv])}function tg(tt){if(!(this instanceof tg))return new tg(tt);tu.call(this,tt),tc.call(this,tt),this.allowHalfOpen=!0,tt&&(!1===tt.readable&&(this.readable=!1),!1===tt.writable&&(this.writable=!1),!1===tt.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",tb)))}function tb(){this._writableState.ended||ts.nextTick(t_,this)}function t_(tt){tt.end()}Object.defineProperty(tg.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(tg.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tg.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tg.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(tt){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=tt,this._writableState.destroyed=tt)}})},889:function(tt,tr,ti){"use strict";tt.exports=ts;var ta=ti(170);function ts(tt){if(!(this instanceof ts))return new ts(tt);ta.call(this,tt)}ti(782)(ts,ta),ts.prototype._transform=function(tt,tr,ti){ti(null,tt)}},709:function(tt,tr,ta){"use strict";tt.exports=tj,tj.ReadableState=tD,ta(361).EventEmitter;var tu,tc,td,tp,tv,tg=function(tt,tr){return tt.listeners(tr).length},tb=ta(678),t_=ta(300).Buffer,tE=ti.g.Uint8Array||function(){};function tA(tt){return t_.from(tt)}function tS(tt){return t_.isBuffer(tt)||tt instanceof tE}var tT=ta(837);tc=tT&&tT.debuglog?tT.debuglog("stream"):function(){};var tM=ta(379),tR=ta(25),tI=ta(776).getHighWaterMark,tk=ta(646).q,tP=tk.ERR_INVALID_ARG_TYPE,tC=tk.ERR_STREAM_PUSH_AFTER_EOF,tO=tk.ERR_METHOD_NOT_IMPLEMENTED,tN=tk.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ta(782)(tj,tb);var tB=tR.errorOrDestroy,tL=["error","close","destroy","pause","resume"];function tU(tt,tr,ti){if("function"==typeof tt.prependListener)return tt.prependListener(tr,ti);tt._events&&tt._events[tr]?Array.isArray(tt._events[tr])?tt._events[tr].unshift(ti):tt._events[tr]=[ti,tt._events[tr]]:tt.on(tr,ti)}function tD(tt,tr,ti){tu=tu||ta(403),tt=tt||{},"boolean"!=typeof ti&&(ti=tr instanceof tu),this.objectMode=!!tt.objectMode,ti&&(this.objectMode=this.objectMode||!!tt.readableObjectMode),this.highWaterMark=tI(this,tt,"readableHighWaterMark",ti),this.buffer=new tM,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==tt.emitClose,this.autoDestroy=!!tt.autoDestroy,this.destroyed=!1,this.defaultEncoding=tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,tt.encoding&&(td||(td=ta(704).s),this.decoder=new td(tt.encoding),this.encoding=tt.encoding)}function tj(tt){if(tu=tu||ta(403),!(this instanceof tj))return new tj(tt);var tr=this instanceof tu;this._readableState=new tD(tt,this,tr),this.readable=!0,tt&&("function"==typeof tt.read&&(this._read=tt.read),"function"==typeof tt.destroy&&(this._destroy=tt.destroy)),tb.call(this)}function tF(tt,tr,ti,ta,ts){tc("readableAddChunk",tr);var tu,td=tt._readableState;if(null===tr)td.reading=!1,tW(tt,td);else if(ts||(tu=tH(td,tr)),tu)tB(tt,tu);else if(td.objectMode||tr&&tr.length>0){if("string"==typeof tr||td.objectMode||Object.getPrototypeOf(tr)===t_.prototype||(tr=tA(tr)),ta)td.endEmitted?tB(tt,new tN):tG(tt,td,tr,!0);else if(td.ended)tB(tt,new tC);else{if(td.destroyed)return!1;td.reading=!1,td.decoder&&!ti?(tr=td.decoder.write(tr),td.objectMode||0!==tr.length?tG(tt,td,tr,!1):tK(tt,td)):tG(tt,td,tr,!1)}}else ta||(td.reading=!1,tK(tt,td));return!td.ended&&(td.length<td.highWaterMark||0===td.length)}function tG(tt,tr,ti,ta){tr.flowing&&0===tr.length&&!tr.sync?(tr.awaitDrain=0,tt.emit("data",ti)):(tr.length+=tr.objectMode?1:ti.length,ta?tr.buffer.unshift(ti):tr.buffer.push(ti),tr.needReadable&&tY(tt)),tK(tt,tr)}function tH(tt,tr){var ti;return tS(tr)||"string"==typeof tr||void 0===tr||tt.objectMode||(ti=new tP("chunk",["string","Buffer","Uint8Array"],tr)),ti}Object.defineProperty(tj.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(tt){this._readableState&&(this._readableState.destroyed=tt)}}),tj.prototype.destroy=tR.destroy,tj.prototype._undestroy=tR.undestroy,tj.prototype._destroy=function(tt,tr){tr(tt)},tj.prototype.push=function(tt,tr){var ti,ta=this._readableState;return ta.objectMode?ti=!0:"string"==typeof tt&&((tr=tr||ta.defaultEncoding)!==ta.encoding&&(tt=t_.from(tt,tr),tr=""),ti=!0),tF(this,tt,tr,!1,ti)},tj.prototype.unshift=function(tt){return tF(this,tt,null,!0,!1)},tj.prototype.isPaused=function(){return!1===this._readableState.flowing},tj.prototype.setEncoding=function(tt){td||(td=ta(704).s);var tr=new td(tt);this._readableState.decoder=tr,this._readableState.encoding=this._readableState.decoder.encoding;for(var ti=this._readableState.buffer.head,ts="";null!==ti;)ts+=tr.write(ti.data),ti=ti.next;return this._readableState.buffer.clear(),""!==ts&&this._readableState.buffer.push(ts),this._readableState.length=ts.length,this};var tV=1073741824;function tz(tt){return tt>=tV?tt=tV:(tt--,tt|=tt>>>1,tt|=tt>>>2,tt|=tt>>>4,tt|=tt>>>8,tt|=tt>>>16,tt++),tt}function tq(tt,tr){return tt<=0||0===tr.length&&tr.ended?0:tr.objectMode?1:tt!=tt?tr.flowing&&tr.length?tr.buffer.head.data.length:tr.length:(tt>tr.highWaterMark&&(tr.highWaterMark=tz(tt)),tt<=tr.length)?tt:tr.ended?tr.length:(tr.needReadable=!0,0)}function tW(tt,tr){if(tc("onEofChunk"),!tr.ended){if(tr.decoder){var ti=tr.decoder.end();ti&&ti.length&&(tr.buffer.push(ti),tr.length+=tr.objectMode?1:ti.length)}tr.ended=!0,tr.sync?tY(tt):(tr.needReadable=!1,tr.emittedReadable||(tr.emittedReadable=!0,tX(tt)))}}function tY(tt){var tr=tt._readableState;tc("emitReadable",tr.needReadable,tr.emittedReadable),tr.needReadable=!1,tr.emittedReadable||(tc("emitReadable",tr.flowing),tr.emittedReadable=!0,ts.nextTick(tX,tt))}function tX(tt){var tr=tt._readableState;tc("emitReadable_",tr.destroyed,tr.length,tr.ended),!tr.destroyed&&(tr.length||tr.ended)&&(tt.emit("readable"),tr.emittedReadable=!1),tr.needReadable=!tr.flowing&&!tr.ended&&tr.length<=tr.highWaterMark,t2(tt)}function tK(tt,tr){tr.readingMore||(tr.readingMore=!0,ts.nextTick(tZ,tt,tr))}function tZ(tt,tr){for(;!tr.reading&&!tr.ended&&(tr.length<tr.highWaterMark||tr.flowing&&0===tr.length);){var ti=tr.length;if(tc("maybeReadMore read 0"),tt.read(0),ti===tr.length)break}tr.readingMore=!1}function tQ(tt){return function(){var tr=tt._readableState;tc("pipeOnDrain",tr.awaitDrain),tr.awaitDrain&&tr.awaitDrain--,0===tr.awaitDrain&&tg(tt,"data")&&(tr.flowing=!0,t2(tt))}}function tJ(tt){var tr=tt._readableState;tr.readableListening=tt.listenerCount("readable")>0,tr.resumeScheduled&&!tr.paused?tr.flowing=!0:tt.listenerCount("data")>0&&tt.resume()}function t$(tt){tc("readable nexttick read 0"),tt.read(0)}function t0(tt,tr){tr.resumeScheduled||(tr.resumeScheduled=!0,ts.nextTick(t1,tt,tr))}function t1(tt,tr){tc("resume",tr.reading),tr.reading||tt.read(0),tr.resumeScheduled=!1,tt.emit("resume"),t2(tt),tr.flowing&&!tr.reading&&tt.read(0)}function t2(tt){var tr=tt._readableState;for(tc("flow",tr.flowing);tr.flowing&&null!==tt.read(););}function t3(tt,tr){var ti;return 0===tr.length?null:(tr.objectMode?ti=tr.buffer.shift():!tt||tt>=tr.length?(ti=tr.decoder?tr.buffer.join(""):1===tr.buffer.length?tr.buffer.first():tr.buffer.concat(tr.length),tr.buffer.clear()):ti=tr.buffer.consume(tt,tr.decoder),ti)}function t6(tt){var tr=tt._readableState;tc("endReadable",tr.endEmitted),tr.endEmitted||(tr.ended=!0,ts.nextTick(t4,tr,tt))}function t4(tt,tr){if(tc("endReadableNT",tt.endEmitted,tt.length),!tt.endEmitted&&0===tt.length&&(tt.endEmitted=!0,tr.readable=!1,tr.emit("end"),tt.autoDestroy)){var ti=tr._writableState;(!ti||ti.autoDestroy&&ti.finished)&&tr.destroy()}}function t8(tt,tr){for(var ti=0,ta=tt.length;ti<ta;ti++)if(tt[ti]===tr)return ti;return -1}tj.prototype.read=function(tt){tc("read",tt),tt=parseInt(tt,10);var tr,ti=this._readableState,ta=tt;if(0!==tt&&(ti.emittedReadable=!1),0===tt&&ti.needReadable&&((0!==ti.highWaterMark?ti.length>=ti.highWaterMark:ti.length>0)||ti.ended))return tc("read: emitReadable",ti.length,ti.ended),0===ti.length&&ti.ended?t6(this):tY(this),null;if(0===(tt=tq(tt,ti))&&ti.ended)return 0===ti.length&&t6(this),null;var ts=ti.needReadable;return tc("need readable",ts),(0===ti.length||ti.length-tt<ti.highWaterMark)&&tc("length less than watermark",ts=!0),ti.ended||ti.reading?tc("reading or ended",ts=!1):ts&&(tc("do read"),ti.reading=!0,ti.sync=!0,0===ti.length&&(ti.needReadable=!0),this._read(ti.highWaterMark),ti.sync=!1,ti.reading||(tt=tq(ta,ti))),null===(tr=tt>0?t3(tt,ti):null)?(ti.needReadable=ti.length<=ti.highWaterMark,tt=0):(ti.length-=tt,ti.awaitDrain=0),0===ti.length&&(ti.ended||(ti.needReadable=!0),ta!==tt&&ti.ended&&t6(this)),null!==tr&&this.emit("data",tr),tr},tj.prototype._read=function(tt){tB(this,new tO("_read()"))},tj.prototype.pipe=function(tt,tr){var ti=this,ta=this._readableState;switch(ta.pipesCount){case 0:ta.pipes=tt;break;case 1:ta.pipes=[ta.pipes,tt];break;default:ta.pipes.push(tt)}ta.pipesCount+=1,tc("pipe count=%d opts=%j",ta.pipesCount,tr);var tu=tr&&!1===tr.end||tt===ts.stdout||tt===ts.stderr?tM:tp;function td(tt,tr){tc("onunpipe"),tt===ti&&tr&&!1===tr.hasUnpiped&&(tr.hasUnpiped=!0,t_())}function tp(){tc("onend"),tt.end()}ta.endEmitted?ts.nextTick(tu):ti.once("end",tu),tt.on("unpipe",td);var tv=tQ(ti);tt.on("drain",tv);var tb=!1;function t_(){tc("cleanup"),tt.removeListener("close",tS),tt.removeListener("finish",tT),tt.removeListener("drain",tv),tt.removeListener("error",tA),tt.removeListener("unpipe",td),ti.removeListener("end",tp),ti.removeListener("end",tM),ti.removeListener("data",tE),tb=!0,ta.awaitDrain&&(!tt._writableState||tt._writableState.needDrain)&&tv()}function tE(tr){tc("ondata");var ts=tt.write(tr);tc("dest.write",ts),!1===ts&&((1===ta.pipesCount&&ta.pipes===tt||ta.pipesCount>1&&-1!==t8(ta.pipes,tt))&&!tb&&(tc("false write response, pause",ta.awaitDrain),ta.awaitDrain++),ti.pause())}function tA(tr){tc("onerror",tr),tM(),tt.removeListener("error",tA),0===tg(tt,"error")&&tB(tt,tr)}function tS(){tt.removeListener("finish",tT),tM()}function tT(){tc("onfinish"),tt.removeListener("close",tS),tM()}function tM(){tc("unpipe"),ti.unpipe(tt)}return ti.on("data",tE),tU(tt,"error",tA),tt.once("close",tS),tt.once("finish",tT),tt.emit("pipe",ti),ta.flowing||(tc("pipe resume"),ti.resume()),tt},tj.prototype.unpipe=function(tt){var tr=this._readableState,ti={hasUnpiped:!1};if(0===tr.pipesCount)return this;if(1===tr.pipesCount)return tt&&tt!==tr.pipes||(tt||(tt=tr.pipes),tr.pipes=null,tr.pipesCount=0,tr.flowing=!1,tt&&tt.emit("unpipe",this,ti)),this;if(!tt){var ta=tr.pipes,ts=tr.pipesCount;tr.pipes=null,tr.pipesCount=0,tr.flowing=!1;for(var tu=0;tu<ts;tu++)ta[tu].emit("unpipe",this,{hasUnpiped:!1});return this}var tc=t8(tr.pipes,tt);return -1===tc||(tr.pipes.splice(tc,1),tr.pipesCount-=1,1===tr.pipesCount&&(tr.pipes=tr.pipes[0]),tt.emit("unpipe",this,ti)),this},tj.prototype.on=function(tt,tr){var ti=tb.prototype.on.call(this,tt,tr),ta=this._readableState;return"data"===tt?(ta.readableListening=this.listenerCount("readable")>0,!1!==ta.flowing&&this.resume()):"readable"!==tt||ta.endEmitted||ta.readableListening||(ta.readableListening=ta.needReadable=!0,ta.flowing=!1,ta.emittedReadable=!1,tc("on readable",ta.length,ta.reading),ta.length?tY(this):ta.reading||ts.nextTick(t$,this)),ti},tj.prototype.addListener=tj.prototype.on,tj.prototype.removeListener=function(tt,tr){var ti=tb.prototype.removeListener.call(this,tt,tr);return"readable"===tt&&ts.nextTick(tJ,this),ti},tj.prototype.removeAllListeners=function(tt){var tr=tb.prototype.removeAllListeners.apply(this,arguments);return("readable"===tt||void 0===tt)&&ts.nextTick(tJ,this),tr},tj.prototype.resume=function(){var tt=this._readableState;return tt.flowing||(tc("resume"),tt.flowing=!tt.readableListening,t0(this,tt)),tt.paused=!1,this},tj.prototype.pause=function(){return tc("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(tc("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},tj.prototype.wrap=function(tt){var tr=this,ti=this._readableState,ta=!1;for(var ts in tt.on("end",function(){if(tc("wrapped end"),ti.decoder&&!ti.ended){var tt=ti.decoder.end();tt&&tt.length&&tr.push(tt)}tr.push(null)}),tt.on("data",function(ts){tc("wrapped data"),ti.decoder&&(ts=ti.decoder.write(ts)),(!ti.objectMode||null!=ts)&&(ti.objectMode||ts&&ts.length)&&(tr.push(ts)||(ta=!0,tt.pause()))}),tt)void 0===this[ts]&&"function"==typeof tt[ts]&&(this[ts]=function(tr){return function(){return tt[tr].apply(tt,arguments)}}(ts));for(var tu=0;tu<tL.length;tu++)tt.on(tL[tu],this.emit.bind(this,tL[tu]));return this._read=function(tr){tc("wrapped _read",tr),ta&&(ta=!1,tt.resume())},this},"function"==typeof Symbol&&(tj.prototype[Symbol.asyncIterator]=function(){return void 0===tp&&(tp=ta(871)),tp(this)}),Object.defineProperty(tj.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(tj.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(tj.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(tt){this._readableState&&(this._readableState.flowing=tt)}}),tj._fromList=t3,Object.defineProperty(tj.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(tj.from=function(tt,tr){return void 0===tv&&(tv=ta(727)),tv(tj,tt,tr)})},170:function(tt,tr,ti){"use strict";tt.exports=tg;var ta=ti(646).q,ts=ta.ERR_METHOD_NOT_IMPLEMENTED,tu=ta.ERR_MULTIPLE_CALLBACK,tc=ta.ERR_TRANSFORM_ALREADY_TRANSFORMING,td=ta.ERR_TRANSFORM_WITH_LENGTH_0,tp=ti(403);function tv(tt,tr){var ti=this._transformState;ti.transforming=!1;var ta=ti.writecb;if(null===ta)return this.emit("error",new tu);ti.writechunk=null,ti.writecb=null,null!=tr&&this.push(tr),ta(tt);var ts=this._readableState;ts.reading=!1,(ts.needReadable||ts.length<ts.highWaterMark)&&this._read(ts.highWaterMark)}function tg(tt){if(!(this instanceof tg))return new tg(tt);tp.call(this,tt),this._transformState={afterTransform:tv.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,tt&&("function"==typeof tt.transform&&(this._transform=tt.transform),"function"==typeof tt.flush&&(this._flush=tt.flush)),this.on("prefinish",tb)}function tb(){var tt=this;"function"!=typeof this._flush||this._readableState.destroyed?t_(this,null,null):this._flush(function(tr,ti){t_(tt,tr,ti)})}function t_(tt,tr,ti){if(tr)return tt.emit("error",tr);if(null!=ti&&tt.push(ti),tt._writableState.length)throw new td;if(tt._transformState.transforming)throw new tc;return tt.push(null)}ti(782)(tg,tp),tg.prototype.push=function(tt,tr){return this._transformState.needTransform=!1,tp.prototype.push.call(this,tt,tr)},tg.prototype._transform=function(tt,tr,ti){ti(new ts("_transform()"))},tg.prototype._write=function(tt,tr,ti){var ta=this._transformState;if(ta.writecb=ti,ta.writechunk=tt,ta.writeencoding=tr,!ta.transforming){var ts=this._readableState;(ta.needTransform||ts.needReadable||ts.length<ts.highWaterMark)&&this._read(ts.highWaterMark)}},tg.prototype._read=function(tt){var tr=this._transformState;null===tr.writechunk||tr.transforming?tr.needTransform=!0:(tr.transforming=!0,this._transform(tr.writechunk,tr.writeencoding,tr.afterTransform))},tg.prototype._destroy=function(tt,tr){tp.prototype._destroy.call(this,tt,function(tt){tr(tt)})}},337:function(tt,tr,ta){"use strict";function tu(tt){var tr=this;this.next=null,this.entry=null,this.finish=function(){t1(tr,tt)}}tt.exports=tD,tD.WritableState=tU;var tc,td,tp={deprecate:ta(769)},tv=ta(678),tg=ta(300).Buffer,tb=ti.g.Uint8Array||function(){};function t_(tt){return tg.from(tt)}function tE(tt){return tg.isBuffer(tt)||tt instanceof tb}var tA=ta(25),tS=ta(776).getHighWaterMark,tT=ta(646).q,tM=tT.ERR_INVALID_ARG_TYPE,tR=tT.ERR_METHOD_NOT_IMPLEMENTED,tI=tT.ERR_MULTIPLE_CALLBACK,tk=tT.ERR_STREAM_CANNOT_PIPE,tP=tT.ERR_STREAM_DESTROYED,tC=tT.ERR_STREAM_NULL_VALUES,tO=tT.ERR_STREAM_WRITE_AFTER_END,tN=tT.ERR_UNKNOWN_ENCODING,tB=tA.errorOrDestroy;function tL(){}function tU(tt,tr,ti){tc=tc||ta(403),tt=tt||{},"boolean"!=typeof ti&&(ti=tr instanceof tc),this.objectMode=!!tt.objectMode,ti&&(this.objectMode=this.objectMode||!!tt.writableObjectMode),this.highWaterMark=tS(this,tt,"writableHighWaterMark",ti),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ts=!1===tt.decodeStrings;this.decodeStrings=!ts,this.defaultEncoding=tt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(tt){tW(tr,tt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==tt.emitClose,this.autoDestroy=!!tt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new tu(this)}function tD(tt){var tr=this instanceof(tc=tc||ta(403));if(!tr&&!td.call(tD,this))return new tD(tt);this._writableState=new tU(tt,this,tr),this.writable=!0,tt&&("function"==typeof tt.write&&(this._write=tt.write),"function"==typeof tt.writev&&(this._writev=tt.writev),"function"==typeof tt.destroy&&(this._destroy=tt.destroy),"function"==typeof tt.final&&(this._final=tt.final)),tv.call(this)}function tj(tt,tr){var ti=new tO;tB(tt,ti),ts.nextTick(tr,ti)}function tF(tt,tr,ti,ta){var tu;return null===ti?tu=new tC:"string"==typeof ti||tr.objectMode||(tu=new tM("chunk",["string","Buffer"],ti)),!tu||(tB(tt,tu),ts.nextTick(ta,tu),!1)}function tG(tt,tr,ti){return tt.objectMode||!1===tt.decodeStrings||"string"!=typeof tr||(tr=tg.from(tr,ti)),tr}function tH(tt,tr,ti,ta,ts,tu){if(!ti){var tc=tG(tr,ta,ts);ta!==tc&&(ti=!0,ts="buffer",ta=tc)}var td=tr.objectMode?1:ta.length;tr.length+=td;var tp=tr.length<tr.highWaterMark;if(tp||(tr.needDrain=!0),tr.writing||tr.corked){var tv=tr.lastBufferedRequest;tr.lastBufferedRequest={chunk:ta,encoding:ts,isBuf:ti,callback:tu,next:null},tv?tv.next=tr.lastBufferedRequest:tr.bufferedRequest=tr.lastBufferedRequest,tr.bufferedRequestCount+=1}else tV(tt,tr,!1,td,ta,ts,tu);return tp}function tV(tt,tr,ti,ta,ts,tu,tc){tr.writelen=ta,tr.writecb=tc,tr.writing=!0,tr.sync=!0,tr.destroyed?tr.onwrite(new tP("write")):ti?tt._writev(ts,tr.onwrite):tt._write(ts,tu,tr.onwrite),tr.sync=!1}function tz(tt,tr,ti,ta,tu){--tr.pendingcb,ti?(ts.nextTick(tu,ta),ts.nextTick(t$,tt,tr),tt._writableState.errorEmitted=!0,tB(tt,ta)):(tu(ta),tt._writableState.errorEmitted=!0,tB(tt,ta),t$(tt,tr))}function tq(tt){tt.writing=!1,tt.writecb=null,tt.length-=tt.writelen,tt.writelen=0}function tW(tt,tr){var ti=tt._writableState,ta=ti.sync,tu=ti.writecb;if("function"!=typeof tu)throw new tI;if(tq(ti),tr)tz(tt,ti,ta,tr,tu);else{var tc=tZ(ti)||tt.destroyed;tc||ti.corked||ti.bufferProcessing||!ti.bufferedRequest||tK(tt,ti),ta?ts.nextTick(tY,tt,ti,tc,tu):tY(tt,ti,tc,tu)}}function tY(tt,tr,ti,ta){ti||tX(tt,tr),tr.pendingcb--,ta(),t$(tt,tr)}function tX(tt,tr){0===tr.length&&tr.needDrain&&(tr.needDrain=!1,tt.emit("drain"))}function tK(tt,tr){tr.bufferProcessing=!0;var ti=tr.bufferedRequest;if(tt._writev&&ti&&ti.next){var ta=Array(tr.bufferedRequestCount),ts=tr.corkedRequestsFree;ts.entry=ti;for(var tc=0,td=!0;ti;)ta[tc]=ti,ti.isBuf||(td=!1),ti=ti.next,tc+=1;ta.allBuffers=td,tV(tt,tr,!0,tr.length,ta,"",ts.finish),tr.pendingcb++,tr.lastBufferedRequest=null,ts.next?(tr.corkedRequestsFree=ts.next,ts.next=null):tr.corkedRequestsFree=new tu(tr),tr.bufferedRequestCount=0}else{for(;ti;){var tp=ti.chunk,tv=ti.encoding,tg=ti.callback,tb=tr.objectMode?1:tp.length;if(tV(tt,tr,!1,tb,tp,tv,tg),ti=ti.next,tr.bufferedRequestCount--,tr.writing)break}null===ti&&(tr.lastBufferedRequest=null)}tr.bufferedRequest=ti,tr.bufferProcessing=!1}function tZ(tt){return tt.ending&&0===tt.length&&null===tt.bufferedRequest&&!tt.finished&&!tt.writing}function tQ(tt,tr){tt._final(function(ti){tr.pendingcb--,ti&&tB(tt,ti),tr.prefinished=!0,tt.emit("prefinish"),t$(tt,tr)})}function tJ(tt,tr){tr.prefinished||tr.finalCalled||("function"!=typeof tt._final||tr.destroyed?(tr.prefinished=!0,tt.emit("prefinish")):(tr.pendingcb++,tr.finalCalled=!0,ts.nextTick(tQ,tt,tr)))}function t$(tt,tr){var ti=tZ(tr);if(ti&&(tJ(tt,tr),0===tr.pendingcb&&(tr.finished=!0,tt.emit("finish"),tr.autoDestroy))){var ta=tt._readableState;(!ta||ta.autoDestroy&&ta.endEmitted)&&tt.destroy()}return ti}function t0(tt,tr,ti){tr.ending=!0,t$(tt,tr),ti&&(tr.finished?ts.nextTick(ti):tt.once("finish",ti)),tr.ended=!0,tt.writable=!1}function t1(tt,tr,ti){var ta=tt.entry;for(tt.entry=null;ta;){var ts=ta.callback;tr.pendingcb--,ts(ti),ta=ta.next}tr.corkedRequestsFree.next=tt}ta(782)(tD,tv),tU.prototype.getBuffer=function(){for(var tt=this.bufferedRequest,tr=[];tt;)tr.push(tt),tt=tt.next;return tr},function(){try{Object.defineProperty(tU.prototype,"buffer",{get:tp.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(tt){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(td=Function.prototype[Symbol.hasInstance],Object.defineProperty(tD,Symbol.hasInstance,{value:function(tt){return!!td.call(this,tt)||this===tD&&tt&&tt._writableState instanceof tU}})):td=function(tt){return tt instanceof this},tD.prototype.pipe=function(){tB(this,new tk)},tD.prototype.write=function(tt,tr,ti){var ta=this._writableState,ts=!1,tu=!ta.objectMode&&tE(tt);return tu&&!tg.isBuffer(tt)&&(tt=t_(tt)),"function"==typeof tr&&(ti=tr,tr=null),tu?tr="buffer":tr||(tr=ta.defaultEncoding),"function"!=typeof ti&&(ti=tL),ta.ending?tj(this,ti):(tu||tF(this,ta,tt,ti))&&(ta.pendingcb++,ts=tH(this,ta,tu,tt,tr,ti)),ts},tD.prototype.cork=function(){this._writableState.corked++},tD.prototype.uncork=function(){var tt=this._writableState;!tt.corked||(tt.corked--,tt.writing||tt.corked||tt.bufferProcessing||!tt.bufferedRequest||tK(this,tt))},tD.prototype.setDefaultEncoding=function(tt){if("string"==typeof tt&&(tt=tt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((tt+"").toLowerCase())>-1))throw new tN(tt);return this._writableState.defaultEncoding=tt,this},Object.defineProperty(tD.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(tD.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),tD.prototype._write=function(tt,tr,ti){ti(new tR("_write()"))},tD.prototype._writev=null,tD.prototype.end=function(tt,tr,ti){var ta=this._writableState;return"function"==typeof tt?(ti=tt,tt=null,tr=null):"function"==typeof tr&&(ti=tr,tr=null),null!=tt&&this.write(tt,tr),ta.corked&&(ta.corked=1,this.uncork()),ta.ending||t0(this,ta,ti),this},Object.defineProperty(tD.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(tD.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(tt){this._writableState&&(this._writableState.destroyed=tt)}}),tD.prototype.destroy=tA.destroy,tD.prototype._undestroy=tA.undestroy,tD.prototype._destroy=function(tt,tr){tr(tt)}},871:function(tt,tr,ti){"use strict";function ta(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}var tu,tc=ti(698),td=Symbol("lastResolve"),tp=Symbol("lastReject"),tv=Symbol("error"),tg=Symbol("ended"),tb=Symbol("lastPromise"),t_=Symbol("handlePromise"),tE=Symbol("stream");function tA(tt,tr){return{value:tt,done:tr}}function tS(tt){var tr=tt[td];if(null!==tr){var ti=tt[tE].read();null!==ti&&(tt[tb]=null,tt[td]=null,tt[tp]=null,tr(tA(ti,!1)))}}function tT(tt){ts.nextTick(tS,tt)}function tM(tt,tr){return function(ti,ta){tt.then(function(){if(tr[tg]){ti(tA(void 0,!0));return}tr[t_](ti,ta)},ta)}}var tR=Object.getPrototypeOf(function(){}),tI=Object.setPrototypeOf((ta(tu={get stream(){return this[tE]},next:function(){var tt,tr=this,ti=this[tv];if(null!==ti)return Promise.reject(ti);if(this[tg])return Promise.resolve(tA(void 0,!0));if(this[tE].destroyed)return new Promise(function(tt,ti){ts.nextTick(function(){tr[tv]?ti(tr[tv]):tt(tA(void 0,!0))})});var ta=this[tb];if(ta)tt=new Promise(tM(ta,this));else{var tu=this[tE].read();if(null!==tu)return Promise.resolve(tA(tu,!1));tt=new Promise(this[t_])}return this[tb]=tt,tt}},Symbol.asyncIterator,function(){return this}),ta(tu,"return",function(){var tt=this;return new Promise(function(tr,ti){tt[tE].destroy(null,function(tt){if(tt){ti(tt);return}tr(tA(void 0,!0))})})}),tu),tR),tk=function(tt){var tr,ti=Object.create(tI,(ta(tr={},tE,{value:tt,writable:!0}),ta(tr,td,{value:null,writable:!0}),ta(tr,tp,{value:null,writable:!0}),ta(tr,tv,{value:null,writable:!0}),ta(tr,tg,{value:tt._readableState.endEmitted,writable:!0}),ta(tr,t_,{value:function(tt,tr){var ta=ti[tE].read();ta?(ti[tb]=null,ti[td]=null,ti[tp]=null,tt(tA(ta,!1))):(ti[td]=tt,ti[tp]=tr)},writable:!0}),tr));return ti[tb]=null,tc(tt,function(tt){if(tt&&"ERR_STREAM_PREMATURE_CLOSE"!==tt.code){var tr=ti[tp];null!==tr&&(ti[tb]=null,ti[td]=null,ti[tp]=null,tr(tt)),ti[tv]=tt;return}var ta=ti[td];null!==ta&&(ti[tb]=null,ti[td]=null,ti[tp]=null,ta(tA(void 0,!0))),ti[tg]=!0}),tt.on("readable",tT.bind(null,ti)),ti};tt.exports=tk},379:function(tt,tr,ti){"use strict";function ta(tt,tr){var ti=Object.keys(tt);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tt);tr&&(ta=ta.filter(function(tr){return Object.getOwnPropertyDescriptor(tt,tr).enumerable})),ti.push.apply(ti,ta)}return ti}function ts(tt){for(var tr=1;tr<arguments.length;tr++){var ti=null!=arguments[tr]?arguments[tr]:{};tr%2?ta(Object(ti),!0).forEach(function(tr){tu(tt,tr,ti[tr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(ti)):ta(Object(ti)).forEach(function(tr){Object.defineProperty(tt,tr,Object.getOwnPropertyDescriptor(ti,tr))})}return tt}function tu(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}function tc(tt,tr){if(!(tt instanceof tr))throw TypeError("Cannot call a class as a function")}function td(tt,tr){for(var ti=0;ti<tr.length;ti++){var ta=tr[ti];ta.enumerable=ta.enumerable||!1,ta.configurable=!0,"value"in ta&&(ta.writable=!0),Object.defineProperty(tt,ta.key,ta)}}function tp(tt,tr,ti){return tr&&td(tt.prototype,tr),ti&&td(tt,ti),tt}var tv=ti(300).Buffer,tg=ti(837).inspect,tb=tg&&tg.custom||"inspect";function t_(tt,tr,ti){tv.prototype.copy.call(tt,tr,ti)}tt.exports=function(){function tt(){tc(this,tt),this.head=null,this.tail=null,this.length=0}return tp(tt,[{key:"push",value:function(tt){var tr={data:tt,next:null};this.length>0?this.tail.next=tr:this.head=tr,this.tail=tr,++this.length}},{key:"unshift",value:function(tt){var tr={data:tt,next:this.head};0===this.length&&(this.tail=tr),this.head=tr,++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 tr=this.head,ti=""+tr.data;tr=tr.next;)ti+=tt+tr.data;return ti}},{key:"concat",value:function(tt){if(0===this.length)return tv.alloc(0);for(var tr=tv.allocUnsafe(tt>>>0),ti=this.head,ta=0;ti;)t_(ti.data,tr,ta),ta+=ti.data.length,ti=ti.next;return tr}},{key:"consume",value:function(tt,tr){var ti;return tt<this.head.data.length?(ti=this.head.data.slice(0,tt),this.head.data=this.head.data.slice(tt)):ti=tt===this.head.data.length?this.shift():tr?this._getString(tt):this._getBuffer(tt),ti}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(tt){var tr=this.head,ti=1,ta=tr.data;for(tt-=ta.length;tr=tr.next;){var ts=tr.data,tu=tt>ts.length?ts.length:tt;if(tu===ts.length?ta+=ts:ta+=ts.slice(0,tt),0==(tt-=tu)){tu===ts.length?(++ti,tr.next?this.head=tr.next:this.head=this.tail=null):(this.head=tr,tr.data=ts.slice(tu));break}++ti}return this.length-=ti,ta}},{key:"_getBuffer",value:function(tt){var tr=tv.allocUnsafe(tt),ti=this.head,ta=1;for(ti.data.copy(tr),tt-=ti.data.length;ti=ti.next;){var ts=ti.data,tu=tt>ts.length?ts.length:tt;if(ts.copy(tr,tr.length-tt,0,tu),0==(tt-=tu)){tu===ts.length?(++ta,ti.next?this.head=ti.next:this.head=this.tail=null):(this.head=ti,ti.data=ts.slice(tu));break}++ta}return this.length-=ta,tr}},{key:tb,value:function(tt,tr){return tg(this,ts({},tr,{depth:0,customInspect:!1}))}}]),tt}()},25:function(tt){"use strict";function tr(tt,tr){var tu=this,td=this._readableState&&this._readableState.destroyed,tp=this._writableState&&this._writableState.destroyed;return td||tp?(tr?tr(tt):tt&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ts.nextTick(tc,this,tt)):ts.nextTick(tc,this,tt)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(tt||null,function(tt){!tr&&tt?tu._writableState?tu._writableState.errorEmitted?ts.nextTick(ta,tu):(tu._writableState.errorEmitted=!0,ts.nextTick(ti,tu,tt)):ts.nextTick(ti,tu,tt):tr?(ts.nextTick(ta,tu),tr(tt)):ts.nextTick(ta,tu)}),this)}function ti(tt,tr){tc(tt,tr),ta(tt)}function ta(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 tc(tt,tr){tt.emit("error",tr)}function td(tt,tr){var ti=tt._readableState,ta=tt._writableState;ti&&ti.autoDestroy||ta&&ta.autoDestroy?tt.destroy(tr):tt.emit("error",tr)}tt.exports={destroy:tr,undestroy:tu,errorOrDestroy:td}},698:function(tt,tr,ti){"use strict";var ta=ti(646).q.ERR_STREAM_PREMATURE_CLOSE;function ts(tt){var tr=!1;return function(){if(!tr){tr=!0;for(var ti=arguments.length,ta=Array(ti),ts=0;ts<ti;ts++)ta[ts]=arguments[ts];tt.apply(this,ta)}}}function tu(){}function tc(tt){return tt.setHeader&&"function"==typeof tt.abort}function td(tt,tr,ti){if("function"==typeof tr)return td(tt,null,tr);tr||(tr={}),ti=ts(ti||tu);var tp=tr.readable||!1!==tr.readable&&tt.readable,tv=tr.writable||!1!==tr.writable&&tt.writable,tg=function(){tt.writable||t_()},tb=tt._writableState&&tt._writableState.finished,t_=function(){tv=!1,tb=!0,tp||ti.call(tt)},tE=tt._readableState&&tt._readableState.endEmitted,tA=function(){tp=!1,tE=!0,tv||ti.call(tt)},tS=function(tr){ti.call(tt,tr)},tT=function(){var tr;return tp&&!tE?(tt._readableState&&tt._readableState.ended||(tr=new ta),ti.call(tt,tr)):tv&&!tb?(tt._writableState&&tt._writableState.ended||(tr=new ta),ti.call(tt,tr)):void 0},tM=function(){tt.req.on("finish",t_)};return tc(tt)?(tt.on("complete",t_),tt.on("abort",tT),tt.req?tM():tt.on("request",tM)):tv&&!tt._writableState&&(tt.on("end",tg),tt.on("close",tg)),tt.on("end",tA),tt.on("finish",t_),!1!==tr.error&&tt.on("error",tS),tt.on("close",tT),function(){tt.removeListener("complete",t_),tt.removeListener("abort",tT),tt.removeListener("request",tM),tt.req&&tt.req.removeListener("finish",t_),tt.removeListener("end",tg),tt.removeListener("close",tg),tt.removeListener("finish",t_),tt.removeListener("end",tA),tt.removeListener("error",tS),tt.removeListener("close",tT)}}tt.exports=td},727:function(tt,tr,ti){"use strict";function ta(tt,tr,ti,ta,ts,tu,tc){try{var td=tt[tu](tc),tp=td.value}catch(tt){ti(tt);return}td.done?tr(tp):Promise.resolve(tp).then(ta,ts)}function ts(tt){return function(){var tr=this,ti=arguments;return new Promise(function(ts,tu){var tc=tt.apply(tr,ti);function td(tt){ta(tc,ts,tu,td,tp,"next",tt)}function tp(tt){ta(tc,ts,tu,td,tp,"throw",tt)}td(void 0)})}}function tc(tt,tr){var ti=Object.keys(tt);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tt);tr&&(ta=ta.filter(function(tr){return Object.getOwnPropertyDescriptor(tt,tr).enumerable})),ti.push.apply(ti,ta)}return ti}function td(tt){for(var tr=1;tr<arguments.length;tr++){var ti=null!=arguments[tr]?arguments[tr]:{};tr%2?tc(Object(ti),!0).forEach(function(tr){tp(tt,tr,ti[tr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(ti)):tc(Object(ti)).forEach(function(tr){Object.defineProperty(tt,tr,Object.getOwnPropertyDescriptor(ti,tr))})}return tt}function tp(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}var tv=ti(646).q.ERR_INVALID_ARG_TYPE;function tg(tt,tr,ti){if(tr&&"function"==typeof tr.next)ta=tr;else if(tr&&tr[Symbol.asyncIterator])ta=tr[Symbol.asyncIterator]();else if(tr&&tr[Symbol.iterator])ta=tr[Symbol.iterator]();else throw new tv("iterable",["Iterable"],tr);var ta,tc=new tt(td({objectMode:!0},ti)),tp=!1;function tg(){return tb.apply(this,arguments)}function tb(){return(tb=ts(tu.mark(function tt(){var tr,ti;return tu.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.prev=0,tt.next=3,ta.next();case 3:if(ti=(tr=tt.sent).value,!tr.done){tt.next=10;break}tc.push(null),tt.next=19;break;case 10:return tt.t0=tc,tt.next=13,ti;case 13:if(tt.t1=tt.sent,!tt.t0.push.call(tt.t0,tt.t1)){tt.next=18;break}tg(),tt.next=19;break;case 18:tp=!1;case 19:tt.next=24;break;case 21:tt.prev=21,tt.t2=tt.catch(0),tc.destroy(tt.t2);case 24:case"end":return tt.stop()}},tt,null,[[0,21]])}))).apply(this,arguments)}return tc._read=function(){tp||(tp=!0,tg())},tc}tt.exports=tg},442:function(tt,tr,ti){"use strict";function ta(tt){var tr=!1;return function(){tr||(tr=!0,tt.apply(void 0,arguments))}}var ts,tu=ti(646).q,tc=tu.ERR_MISSING_ARGS,td=tu.ERR_STREAM_DESTROYED;function tp(tt){if(tt)throw tt}function tv(tt){return tt.setHeader&&"function"==typeof tt.abort}function tg(tt,tr,tu,tc){tc=ta(tc);var tp=!1;tt.on("close",function(){tp=!0}),void 0===ts&&(ts=ti(698)),ts(tt,{readable:tr,writable:tu},function(tt){if(tt)return tc(tt);tp=!0,tc()});var tg=!1;return function(tr){if(!tp&&!tg){if(tg=!0,tv(tt))return tt.abort();if("function"==typeof tt.destroy)return tt.destroy();tc(tr||new td("pipe"))}}}function tb(tt){tt()}function t_(tt,tr){return tt.pipe(tr)}function tE(tt){return tt.length&&"function"==typeof tt[tt.length-1]?tt.pop():tp}function tA(){for(var tt,tr=arguments.length,ti=Array(tr),ta=0;ta<tr;ta++)ti[ta]=arguments[ta];var ts=tE(ti);if(Array.isArray(ti[0])&&(ti=ti[0]),ti.length<2)throw new tc("streams");var tu=ti.map(function(tr,ta){var tc=ta<ti.length-1;return tg(tr,tc,ta>0,function(tr){tt||(tt=tr),tr&&tu.forEach(tb),tc||(tu.forEach(tb),ts(tt))})});return ti.reduce(t_)}tt.exports=tA},776:function(tt,tr,ti){"use strict";var ta=ti(646).q.ERR_INVALID_OPT_VALUE;function ts(tt,tr,ti){return null!=tt.highWaterMark?tt.highWaterMark:tr?tt[ti]:null}function tu(tt,tr,ti,tu){var tc=ts(tr,tu,ti);if(null!=tc){if(!(isFinite(tc)&&Math.floor(tc)===tc)||tc<0){var td=tu?ti:"highWaterMark";throw new ta(td,tc)}return Math.floor(tc)}return tt.objectMode?16:16384}tt.exports={getHighWaterMark:tu}},678:function(tt,tr,ti){tt.exports=ti(781)},55:function(tt,tr,ti){var ta=ti(300),ts=ta.Buffer;function tu(tt,tr){for(var ti in tt)tr[ti]=tt[ti]}function tc(tt,tr,ti){return ts(tt,tr,ti)}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?tt.exports=ta:(tu(ta,tr),tr.Buffer=tc),tc.prototype=Object.create(ts.prototype),tu(ts,tc),tc.from=function(tt,tr,ti){if("number"==typeof tt)throw TypeError("Argument must not be a number");return ts(tt,tr,ti)},tc.alloc=function(tt,tr,ti){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ta=ts(tt);return void 0!==tr?"string"==typeof ti?ta.fill(tr,ti):ta.fill(tr):ta.fill(0),ta},tc.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts(tt)},tc.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ta.SlowBuffer(tt)}},173:function(tt,tr,ti){tt.exports=ts;var ta=ti(361).EventEmitter;function ts(){ta.call(this)}ti(782)(ts,ta),ts.Readable=ti(709),ts.Writable=ti(337),ts.Duplex=ti(403),ts.Transform=ti(170),ts.PassThrough=ti(889),ts.finished=ti(698),ts.pipeline=ti(442),ts.Stream=ts,ts.prototype.pipe=function(tt,tr){var ti=this;function ts(tr){tt.writable&&!1===tt.write(tr)&&ti.pause&&ti.pause()}function tu(){ti.readable&&ti.resume&&ti.resume()}ti.on("data",ts),tt.on("drain",tu),tt._isStdio||tr&&!1===tr.end||(ti.on("end",td),ti.on("close",tp));var tc=!1;function td(){tc||(tc=!0,tt.end())}function tp(){tc||(tc=!0,"function"==typeof tt.destroy&&tt.destroy())}function tv(tt){if(tg(),0===ta.listenerCount(this,"error"))throw tt}function tg(){ti.removeListener("data",ts),tt.removeListener("drain",tu),ti.removeListener("end",td),ti.removeListener("close",tp),ti.removeListener("error",tv),tt.removeListener("error",tv),ti.removeListener("end",tg),ti.removeListener("close",tg),tt.removeListener("close",tg)}return ti.on("error",tv),tt.on("error",tv),ti.on("end",tg),ti.on("close",tg),tt.on("close",tg),tt.emit("pipe",ti),tt}},704:function(tt,tr,ti){"use strict";var ta=ti(55).Buffer,ts=ta.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 tr;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(tr)return;tt=(""+tt).toLowerCase(),tr=!0}}function tc(tt){var tr=tu(tt);if("string"!=typeof tr&&(ta.isEncoding===ts||!ts(tt)))throw Error("Unknown encoding: "+tt);return tr||tt}function td(tt){var tr;switch(this.encoding=tc(tt),this.encoding){case"utf16le":this.text=tA,this.end=tS,tr=4;break;case"utf8":this.fillLast=tb,tr=4;break;case"base64":this.text=tT,this.end=tM,tr=3;break;default:this.write=tR,this.end=tI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ta.allocUnsafe(tr)}function tp(tt){return tt<=127?0:tt>>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tv(tt,tr,ti){var ta=tr.length-1;if(ta<ti)return 0;var ts=tp(tr[ta]);return ts>=0?(ts>0&&(tt.lastNeed=ts-1),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(tt.lastNeed=ts-2),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(2===ts?ts=0:tt.lastNeed=ts-3),ts):0}function tg(tt,tr,ti){if((192&tr[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&tr.length>1){if((192&tr[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&tr.length>2&&(192&tr[2])!=128)return tt.lastNeed=2,"�"}}function tb(tt){var tr=this.lastTotal-this.lastNeed,ti=tg(this,tt,tr);return void 0!==ti?ti:this.lastNeed<=tt.length?(tt.copy(this.lastChar,tr,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,tr,0,tt.length),this.lastNeed-=tt.length)}function t_(tt,tr){var ti=tv(this,tt,tr);if(!this.lastNeed)return tt.toString("utf8",tr);this.lastTotal=ti;var ta=tt.length-(ti-this.lastNeed);return tt.copy(this.lastChar,0,ta),tt.toString("utf8",tr,ta)}function tE(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+"�":tr}function tA(tt,tr){if((tt.length-tr)%2==0){var ti=tt.toString("utf16le",tr);if(ti){var ta=ti.charCodeAt(ti.length-1);if(ta>=55296&&ta<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ti.slice(0,-1)}return ti}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",tr,tt.length-1)}function tS(tt){var tr=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ti=this.lastTotal-this.lastNeed;return tr+this.lastChar.toString("utf16le",0,ti)}return tr}function tT(tt,tr){var ti=(tt.length-tr)%3;return 0===ti?tt.toString("base64",tr):(this.lastNeed=3-ti,this.lastTotal=3,1===ti?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",tr,tt.length-ti))}function tM(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+this.lastChar.toString("base64",0,3-this.lastNeed):tr}function tR(tt){return tt.toString(this.encoding)}function tI(tt){return tt&&tt.length?this.write(tt):""}tr.s=td,td.prototype.write=function(tt){var tr,ti;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(tr=this.fillLast(tt)))return"";ti=this.lastNeed,this.lastNeed=0}else ti=0;return ti<tt.length?tr?tr+this.text(tt,ti):this.text(tt,ti):tr||""},td.prototype.end=tE,td.prototype.text=t_,td.prototype.fillLast=function(tt){if(this.lastNeed<=tt.length)return tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,tt.length),this.lastNeed-=tt.length}},769:function(tt){function tr(tt,tr){if(ta("noDeprecation"))return tt;var ti=!1;return function(){if(!ti){if(ta("throwDeprecation"))throw Error(tr);ta("traceDeprecation")?console.trace(tr):console.warn(tr),ti=!0}return tt.apply(this,arguments)}}function ta(tt){try{if(!ti.g.localStorage)return!1}catch(tt){return!1}var tr=ti.g.localStorage[tt];return null!=tr&&"true"===String(tr).toLowerCase()}tt.exports=tr},300:function(tt){"use strict";tt.exports=ti(84406)},361:function(tt){"use strict";tt.exports=ti(51988)},781:function(tt){"use strict";tt.exports=ti(51988).EventEmitter},837:function(tt){"use strict";tt.exports=ti(15890)}},tv={};function tg(tt){var ti=tv[tt];if(void 0!==ti)return ti.exports;var ta=tv[tt]={exports:{}},ts=!0;try{tr[tt](ta,ta.exports,tg),ts=!1}finally{ts&&delete tv[tt]}return ta.exports}tg.ab=ta+"/";var t_=tg(173);tt.exports=t_}()},15890:function(tt,tr,ti){var ta="/",ts=ti(84406).Buffer,tu=ti(42907);!function(){var tr={992:function(tt){tt.exports=function(tt,ti,ta){if(tt.filter)return tt.filter(ti,ta);if(null==tt||"function"!=typeof ti)throw TypeError();for(var ts=[],tu=0;tu<tt.length;tu++)if(tr.call(tt,tu)){var tc=tt[tu];ti.call(ta,tc,tu,tt)&&ts.push(tc)}return ts};var tr=Object.prototype.hasOwnProperty},256:function(tt,tr,ti){"use strict";var ta=ti(500),ts=ti(139),tu=ts(ta("String.prototype.indexOf"));tt.exports=function(tt,tr){var ti=ta(tt,!!tr);return"function"==typeof ti&&tu(tt,".prototype.")>-1?ts(ti):ti}},139:function(tt,tr,ti){"use strict";var ta=ti(174),ts=ti(500),tu=ts("%Function.prototype.apply%"),tc=ts("%Function.prototype.call%"),td=ts("%Reflect.apply%",!0)||ta.call(tc,tu),tp=ts("%Object.getOwnPropertyDescriptor%",!0),tv=ts("%Object.defineProperty%",!0),tg=ts("%Math.max%");if(tv)try{tv({},"a",{value:1})}catch(tt){tv=null}tt.exports=function(tt){var tr=td(ta,tc,arguments);return tp&&tv&&tp(tr,"length").configurable&&tv(tr,"length",{value:1+tg(0,tt.length-(arguments.length-1))}),tr};var tb=function(){return td(ta,tu,arguments)};tv?tv(tt.exports,"apply",{value:tb}):tt.exports.apply=tb},144:function(tt){var tr=Object.prototype.hasOwnProperty,ti=Object.prototype.toString;tt.exports=function(tt,ta,ts){if("[object Function]"!==ti.call(ta))throw TypeError("iterator must be a function");var tu=tt.length;if(tu===+tu)for(var tc=0;tc<tu;tc++)ta.call(ts,tt[tc],tc,tt);else for(var td in tt)tr.call(tt,td)&&ta.call(ts,tt[td],td,tt)}},426:function(tt){"use strict";var tr="Function.prototype.bind called on incompatible ",ti=Array.prototype.slice,ta=Object.prototype.toString,ts="[object Function]";tt.exports=function(tt){var tu,tc=this;if("function"!=typeof tc||ta.call(tc)!==ts)throw TypeError(tr+tc);for(var td=ti.call(arguments,1),tp=function(){if(!(this instanceof tu))return tc.apply(tt,td.concat(ti.call(arguments)));var tr=tc.apply(this,td.concat(ti.call(arguments)));return Object(tr)===tr?tr:this},tv=Math.max(0,tc.length-td.length),tg=[],tb=0;tb<tv;tb++)tg.push("$"+tb);if(tu=Function("binder","return function ("+tg.join(",")+"){ return binder.apply(this,arguments); }")(tp),tc.prototype){var t_=function(){};t_.prototype=tc.prototype,tu.prototype=new t_,t_.prototype=null}return tu}},174:function(tt,tr,ti){"use strict";var ta=ti(426);tt.exports=Function.prototype.bind||ta},500:function tt(tt,tr,ti){"use strict";var ta,ts=SyntaxError,tu=Function,tc=TypeError,td=function(tt){try{return tu('"use strict"; return ('+tt+").constructor;")()}catch(tt){}},tp=Object.getOwnPropertyDescriptor;if(tp)try{tp({},"")}catch(tt){tp=null}var tv=function(){throw new tc},tg=tp?function(){try{return arguments.callee,tv}catch(tt){try{return tp(arguments,"callee").get}catch(tt){return tv}}}():tv,tb=ti(115)(),t_=Object.getPrototypeOf||function(tt){return tt.__proto__},tE={},tA="undefined"==typeof Uint8Array?ta:t_(Uint8Array),tS={"%AggregateError%":"undefined"==typeof AggregateError?ta:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ta:ArrayBuffer,"%ArrayIteratorPrototype%":tb?t_([][Symbol.iterator]()):ta,"%AsyncFromSyncIteratorPrototype%":ta,"%AsyncFunction%":tE,"%AsyncGenerator%":tE,"%AsyncGeneratorFunction%":tE,"%AsyncIteratorPrototype%":tE,"%Atomics%":"undefined"==typeof Atomics?ta:Atomics,"%BigInt%":"undefined"==typeof BigInt?ta:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ta:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ta:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ta:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ta:FinalizationRegistry,"%Function%":tu,"%GeneratorFunction%":tE,"%Int8Array%":"undefined"==typeof Int8Array?ta:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ta:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ta:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tb?t_(t_([][Symbol.iterator]())):ta,"%JSON%":"object"==typeof JSON?JSON:ta,"%Map%":"undefined"==typeof Map?ta:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&tb?t_(new Map()[Symbol.iterator]()):ta,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ta:Promise,"%Proxy%":"undefined"==typeof Proxy?ta:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ta:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ta:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&tb?t_(new Set()[Symbol.iterator]()):ta,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ta:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tb?t_(""[Symbol.iterator]()):ta,"%Symbol%":tb?Symbol:ta,"%SyntaxError%":ts,"%ThrowTypeError%":tg,"%TypedArray%":tA,"%TypeError%":tc,"%Uint8Array%":"undefined"==typeof Uint8Array?ta:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ta:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ta:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ta:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ta:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ta:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ta:WeakSet},tT=function tt(tr){var ti;if("%AsyncFunction%"===tr)ti=td("async function () {}");else if("%GeneratorFunction%"===tr)ti=td("function* () {}");else if("%AsyncGeneratorFunction%"===tr)ti=td("async function* () {}");else if("%AsyncGenerator%"===tr){var ta=tt("%AsyncGeneratorFunction%");ta&&(ti=ta.prototype)}else if("%AsyncIteratorPrototype%"===tr){var ts=tt("%AsyncGenerator%");ts&&(ti=t_(ts.prototype))}return tS[tr]=ti,ti},tM={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tR=ti(174),tI=ti(101),tk=tR.call(Function.call,Array.prototype.concat),tP=tR.call(Function.apply,Array.prototype.splice),tC=tR.call(Function.call,String.prototype.replace),tO=tR.call(Function.call,String.prototype.slice),tN=tR.call(Function.call,RegExp.prototype.exec),tB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tL=/\\(\\)?/g,tU=function(tt){var tr=tO(tt,0,1),ti=tO(tt,-1);if("%"===tr&&"%"!==ti)throw new ts("invalid intrinsic syntax, expected closing `%`");if("%"===ti&&"%"!==tr)throw new ts("invalid intrinsic syntax, expected opening `%`");var ta=[];return tC(tt,tB,function(tt,tr,ti,ts){ta[ta.length]=ti?tC(ts,tL,"$1"):tr||tt}),ta},tD=function(tt,tr){var ti,ta=tt;if(tI(tM,ta)&&(ta="%"+(ti=tM[ta])[0]+"%"),tI(tS,ta)){var tu=tS[ta];if(tu===tE&&(tu=tT(ta)),void 0===tu&&!tr)throw new tc("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:ti,name:ta,value:tu}}throw new ts("intrinsic "+tt+" does not exist!")};tt.exports=function(tt,tr){if("string"!=typeof tt||0===tt.length)throw new tc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof tr)throw new tc('"allowMissing" argument must be a boolean');if(null===tN(/^%?[^%]*%?$/g,tt))throw new ts("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ti=tU(tt),ta=ti.length>0?ti[0]:"",tu=tD("%"+ta+"%",tr),td=tu.name,tv=tu.value,tg=!1,tb=tu.alias;tb&&(ta=tb[0],tP(ti,tk([0,1],tb)));for(var t_=1,tE=!0;t_<ti.length;t_+=1){var tA=ti[t_],tT=tO(tA,0,1),tM=tO(tA,-1);if(('"'===tT||"'"===tT||"`"===tT||'"'===tM||"'"===tM||"`"===tM)&&tT!==tM)throw new ts("property names with quotes must have matching quotes");if("constructor"!==tA&&tE||(tg=!0),ta+="."+tA,tI(tS,td="%"+ta+"%"))tv=tS[td];else if(null!=tv){if(!(tA in tv)){if(!tr)throw new tc("base intrinsic for "+tt+" exists, but the property is not available.");return}if(tp&&t_+1>=ti.length){var tR=tp(tv,tA);tv=(tE=!!tR)&&"get"in tR&&!("originalValue"in tR.get)?tR.get:tv[tA]}else tE=tI(tv,tA),tv=tv[tA];tE&&!tg&&(tS[td]=tv)}}return tv}},942:function(tt,tr,ti){"use strict";var ta="undefined"!=typeof Symbol&&Symbol,ts=ti(773);tt.exports=function(){return"function"==typeof ta&&"function"==typeof Symbol&&"symbol"==typeof ta("foo")&&"symbol"==typeof Symbol("bar")&&ts()}},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={},tr=Symbol("test"),ti=Object(tr);if("string"==typeof tr||"[object Symbol]"!==Object.prototype.toString.call(tr)||"[object Symbol]"!==Object.prototype.toString.call(ti))return!1;var ta=42;for(tr in tt[tr]=ta,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 ts=Object.getOwnPropertySymbols(tt);if(1!==ts.length||ts[0]!==tr||!Object.prototype.propertyIsEnumerable.call(tt,tr))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var tu=Object.getOwnPropertyDescriptor(tt,tr);if(tu.value!==ta||!0!==tu.enumerable)return!1}return!0}},115:function(tt,tr,ti){"use strict";var ta="undefined"!=typeof Symbol&&Symbol,ts=ti(832);tt.exports=function(){return"function"==typeof ta&&"function"==typeof Symbol&&"symbol"==typeof ta("foo")&&"symbol"==typeof Symbol("bar")&&ts()}},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={},tr=Symbol("test"),ti=Object(tr);if("string"==typeof tr||"[object Symbol]"!==Object.prototype.toString.call(tr)||"[object Symbol]"!==Object.prototype.toString.call(ti))return!1;var ta=42;for(tr in tt[tr]=ta,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 ts=Object.getOwnPropertySymbols(tt);if(1!==ts.length||ts[0]!==tr||!Object.prototype.propertyIsEnumerable.call(tt,tr))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var tu=Object.getOwnPropertyDescriptor(tt,tr);if(tu.value!==ta||!0!==tu.enumerable)return!1}return!0}},101:function(tt,tr,ti){"use strict";var ta=ti(174);tt.exports=ta.call(Function.call,Object.prototype.hasOwnProperty)},782:function(tt){"function"==typeof Object.create?tt.exports=function(tt,tr){tr&&(tt.super_=tr,tt.prototype=Object.create(tr.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(tt,tr){if(tr){tt.super_=tr;var ti=function(){};ti.prototype=tr.prototype,tt.prototype=new ti,tt.prototype.constructor=tt}}},157:function(tt){"use strict";var tr="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ti=Object.prototype.toString,ta=function(tt){return(!tr||!tt||"object"!=typeof tt||!(Symbol.toStringTag in tt))&&"[object Arguments]"===ti.call(tt)},ts=function(tt){return!!ta(tt)||null!==tt&&"object"==typeof tt&&"number"==typeof tt.length&&tt.length>=0&&"[object Array]"!==ti.call(tt)&&"[object Function]"===ti.call(tt.callee)},tu=function(){return ta(arguments)}();ta.isLegacyArguments=ts,tt.exports=tu?ta:ts},391:function(tt){"use strict";var tr=Object.prototype.toString,ti=Function.prototype.toString,ta=/^\s*(?:function)?\*/,ts="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,tu=Object.getPrototypeOf,tc=function(){if(!ts)return!1;try{return Function("return function*() {}")()}catch(tt){}}(),td=tc?tu(tc):{};tt.exports=function(tt){return"function"==typeof tt&&(!!ta.test(ti.call(tt))||(ts?tu(tt)===td:"[object GeneratorFunction]"===tr.call(tt)))}},994:function(tt,tr,ta){"use strict";var ts=ta(144),tu=ta(349),tc=ta(256),td=tc("Object.prototype.toString"),tp=ta(942)()&&"symbol"==typeof Symbol.toStringTag,tv=tu(),tg=tc("Array.prototype.indexOf",!0)||function(tt,tr){for(var ti=0;ti<tt.length;ti+=1)if(tt[ti]===tr)return ti;return -1},tb=tc("String.prototype.slice"),t_={},tE=ta(466),tA=Object.getPrototypeOf;tp&&tE&&tA&&ts(tv,function(tt){var tr=new ti.g[tt];if(!(Symbol.toStringTag in tr))throw EvalError("this engine has support for Symbol.toStringTag, but "+tt+" does not have the property! Please report this.");var ta=tA(tr),ts=tE(ta,Symbol.toStringTag);ts||(ts=tE(tA(ta),Symbol.toStringTag)),t_[tt]=ts.get});var tS=function(tt){var tr=!1;return ts(t_,function(ti,ta){if(!tr)try{tr=ti.call(tt)===ta}catch(tt){}}),tr};tt.exports=function(tt){return!!tt&&"object"==typeof tt&&(tp?!!tE&&tS(tt):tg(tv,tb(td(tt),8,-1))>-1)}},369:function(tt){tt.exports=function(tt){return tt instanceof ts}},584:function(tt,tr,ti){"use strict";var ta=ti(157),ts=ti(391),tu=ti(490),tc=ti(994);function td(tt){return tt.call.bind(tt)}var tp="undefined"!=typeof BigInt,tv="undefined"!=typeof Symbol,tg=td(Object.prototype.toString),tb=td(Number.prototype.valueOf),t_=td(String.prototype.valueOf),tE=td(Boolean.prototype.valueOf);if(tp)var tA=td(BigInt.prototype.valueOf);if(tv)var tS=td(Symbol.prototype.valueOf);function tT(tt,tr){if("object"!=typeof tt)return!1;try{return tr(tt),!0}catch(tt){return!1}}function tM(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):tc(tt)||tQ(tt)}function tI(tt){return"Uint8Array"===tu(tt)}function tk(tt){return"Uint8ClampedArray"===tu(tt)}function tP(tt){return"Uint16Array"===tu(tt)}function tC(tt){return"Uint32Array"===tu(tt)}function tO(tt){return"Int8Array"===tu(tt)}function tN(tt){return"Int16Array"===tu(tt)}function tB(tt){return"Int32Array"===tu(tt)}function tL(tt){return"Float32Array"===tu(tt)}function tU(tt){return"Float64Array"===tu(tt)}function tD(tt){return"BigInt64Array"===tu(tt)}function tj(tt){return"BigUint64Array"===tu(tt)}function tF(tt){return"[object Map]"===tg(tt)}function tG(tt){return"undefined"!=typeof Map&&(tF.working?tF(tt):tt instanceof Map)}function tH(tt){return"[object Set]"===tg(tt)}function tV(tt){return"undefined"!=typeof Set&&(tH.working?tH(tt):tt instanceof Set)}function tz(tt){return"[object WeakMap]"===tg(tt)}function tq(tt){return"undefined"!=typeof WeakMap&&(tz.working?tz(tt):tt instanceof WeakMap)}function tW(tt){return"[object WeakSet]"===tg(tt)}function tY(tt){return tW(tt)}function tX(tt){return"[object ArrayBuffer]"===tg(tt)}function tK(tt){return"undefined"!=typeof ArrayBuffer&&(tX.working?tX(tt):tt instanceof ArrayBuffer)}function tZ(tt){return"[object DataView]"===tg(tt)}function tQ(tt){return"undefined"!=typeof DataView&&(tZ.working?tZ(tt):tt instanceof DataView)}tr.isArgumentsObject=ta,tr.isGeneratorFunction=ts,tr.isTypedArray=tc,tr.isPromise=tM,tr.isArrayBufferView=tR,tr.isUint8Array=tI,tr.isUint8ClampedArray=tk,tr.isUint16Array=tP,tr.isUint32Array=tC,tr.isInt8Array=tO,tr.isInt16Array=tN,tr.isInt32Array=tB,tr.isFloat32Array=tL,tr.isFloat64Array=tU,tr.isBigInt64Array=tD,tr.isBigUint64Array=tj,tF.working="undefined"!=typeof Map&&tF(new Map),tr.isMap=tG,tH.working="undefined"!=typeof Set&&tH(new Set),tr.isSet=tV,tz.working="undefined"!=typeof WeakMap&&tz(new WeakMap),tr.isWeakMap=tq,tW.working="undefined"!=typeof WeakSet&&tW(new WeakSet),tr.isWeakSet=tY,tX.working="undefined"!=typeof ArrayBuffer&&tX(new ArrayBuffer),tr.isArrayBuffer=tK,tZ.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&tZ(new DataView(new ArrayBuffer(1),0,1)),tr.isDataView=tQ;var tJ="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function t$(tt){return"[object SharedArrayBuffer]"===tg(tt)}function t0(tt){return void 0!==tJ&&(void 0===t$.working&&(t$.working=t$(new tJ)),t$.working?t$(tt):tt instanceof tJ)}function t1(tt){return"[object AsyncFunction]"===tg(tt)}function t2(tt){return"[object Map Iterator]"===tg(tt)}function t3(tt){return"[object Set Iterator]"===tg(tt)}function t6(tt){return"[object Generator]"===tg(tt)}function t4(tt){return"[object WebAssembly.Module]"===tg(tt)}function t8(tt){return tT(tt,tb)}function t5(tt){return tT(tt,t_)}function t7(tt){return tT(tt,tE)}function t9(tt){return tp&&tT(tt,tA)}function et(tt){return tv&&tT(tt,tS)}function er(tt){return t8(tt)||t5(tt)||t7(tt)||t9(tt)||et(tt)}function en(tt){return"undefined"!=typeof Uint8Array&&(tK(tt)||t0(tt))}tr.isSharedArrayBuffer=t0,tr.isAsyncFunction=t1,tr.isMapIterator=t2,tr.isSetIterator=t3,tr.isGeneratorObject=t6,tr.isWebAssemblyCompiledModule=t4,tr.isNumberObject=t8,tr.isStringObject=t5,tr.isBooleanObject=t7,tr.isBigIntObject=t9,tr.isSymbolObject=et,tr.isBoxedPrimitive=er,tr.isAnyArrayBuffer=en,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(tr,tt,{enumerable:!1,value:function(){throw Error(tt+" is not supported in userland")}})})},177:function(tt,tr,ti){var ta=Object.getOwnPropertyDescriptors||function(tt){for(var tr=Object.keys(tt),ti={},ta=0;ta<tr.length;ta++)ti[tr[ta]]=Object.getOwnPropertyDescriptor(tt,tr[ta]);return ti},ts=/%[sdj%]/g;tr.format=function(tt){if(!tN(tt)){for(var tr=[],ti=0;ti<arguments.length;ti++)tr.push(tv(arguments[ti]));return tr.join(" ")}for(var ti=1,ta=arguments,tu=ta.length,tc=String(tt).replace(ts,function(tt){if("%%"===tt)return"%";if(ti>=tu)return tt;switch(tt){case"%s":return String(ta[ti++]);case"%d":return Number(ta[ti++]);case"%j":try{return JSON.stringify(ta[ti++])}catch(tt){return"[Circular]"}default:return tt}}),td=ta[ti];ti<tu;td=ta[++ti])tP(td)||!tD(td)?tc+=" "+td:tc+=" "+tv(td);return tc},tr.deprecate=function(tt,ti){if(void 0!==tu&&!0===tu.noDeprecation)return tt;if(void 0===tu)return function(){return tr.deprecate(tt,ti).apply(this,arguments)};var ta=!1;return function(){if(!ta){if(tu.throwDeprecation)throw Error(ti);tu.traceDeprecation?console.trace(ti):console.error(ti),ta=!0}return tt.apply(this,arguments)}};var tc={},td=/^$/;if(tu.env.NODE_DEBUG){var tp=tu.env.NODE_DEBUG;td=RegExp("^"+(tp=tp.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function tv(tt,ti){var ta={seen:[],stylize:tb};return arguments.length>=3&&(ta.depth=arguments[2]),arguments.length>=4&&(ta.colors=arguments[3]),tk(ti)?ta.showHidden=ti:ti&&tr._extend(ta,ti),tL(ta.showHidden)&&(ta.showHidden=!1),tL(ta.depth)&&(ta.depth=2),tL(ta.colors)&&(ta.colors=!1),tL(ta.customInspect)&&(ta.customInspect=!0),ta.colors&&(ta.stylize=tg),tE(ta,tt,ta.depth)}function tg(tt,tr){var ti=tv.styles[tr];return ti?"\x1b["+tv.colors[ti][0]+"m"+tt+"\x1b["+tv.colors[ti][1]+"m":tt}function tb(tt,tr){return tt}function t_(tt){var tr={};return tt.forEach(function(tt,ti){tr[tt]=!0}),tr}function tE(tt,ti,ta){if(tt.customInspect&&ti&&tG(ti.inspect)&&ti.inspect!==tr.inspect&&!(ti.constructor&&ti.constructor.prototype===ti)){var ts,tu=ti.inspect(ta,tt);return tN(tu)||(tu=tE(tt,tu,ta)),tu}var tc=tA(tt,ti);if(tc)return tc;var td=Object.keys(ti),tp=t_(td);if(tt.showHidden&&(td=Object.getOwnPropertyNames(ti)),tF(ti)&&(td.indexOf("message")>=0||td.indexOf("description")>=0))return tS(ti);if(0===td.length){if(tG(ti)){var tv=ti.name?": "+ti.name:"";return tt.stylize("[Function"+tv+"]","special")}if(tU(ti))return tt.stylize(RegExp.prototype.toString.call(ti),"regexp");if(tj(ti))return tt.stylize(Date.prototype.toString.call(ti),"date");if(tF(ti))return tS(ti)}var tg="",tb=!1,tk=["{","}"];return(tI(ti)&&(tb=!0,tk=["[","]"]),tG(ti)&&(tg=" [Function"+(ti.name?": "+ti.name:"")+"]"),tU(ti)&&(tg=" "+RegExp.prototype.toString.call(ti)),tj(ti)&&(tg=" "+Date.prototype.toUTCString.call(ti)),tF(ti)&&(tg=" "+tS(ti)),0!==td.length||tb&&0!=ti.length)?ta<0?tU(ti)?tt.stylize(RegExp.prototype.toString.call(ti),"regexp"):tt.stylize("[Object]","special"):(tt.seen.push(ti),ts=tb?tT(tt,ti,ta,tp,td):td.map(function(tr){return tM(tt,ti,ta,tp,tr,tb)}),tt.seen.pop(),tR(ts,tg,tk)):tk[0]+tg+tk[1]}function tA(tt,tr){if(tL(tr))return tt.stylize("undefined","undefined");if(tN(tr)){var ti="'"+JSON.stringify(tr).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return tt.stylize(ti,"string")}return tO(tr)?tt.stylize(""+tr,"number"):tk(tr)?tt.stylize(""+tr,"boolean"):tP(tr)?tt.stylize("null","null"):void 0}function tS(tt){return"["+Error.prototype.toString.call(tt)+"]"}function tT(tt,tr,ti,ta,ts){for(var tu=[],tc=0,td=tr.length;tc<td;++tc)tY(tr,String(tc))?tu.push(tM(tt,tr,ti,ta,String(tc),!0)):tu.push("");return ts.forEach(function(ts){ts.match(/^\d+$/)||tu.push(tM(tt,tr,ti,ta,ts,!0))}),tu}function tM(tt,tr,ti,ta,ts,tu){var tc,td,tp;if((tp=Object.getOwnPropertyDescriptor(tr,ts)||{value:tr[ts]}).get?td=tp.set?tt.stylize("[Getter/Setter]","special"):tt.stylize("[Getter]","special"):tp.set&&(td=tt.stylize("[Setter]","special")),tY(ta,ts)||(tc="["+ts+"]"),!td&&(0>tt.seen.indexOf(tp.value)?(td=tP(ti)?tE(tt,tp.value,null):tE(tt,tp.value,ti-1)).indexOf("\n")>-1&&(td=tu?td.split("\n").map(function(tt){return"  "+tt}).join("\n").substr(2):"\n"+td.split("\n").map(function(tt){return"   "+tt}).join("\n")):td=tt.stylize("[Circular]","special")),tL(tc)){if(tu&&ts.match(/^\d+$/))return td;(tc=JSON.stringify(""+ts)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tc=tc.substr(1,tc.length-2),tc=tt.stylize(tc,"name")):(tc=tc.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tc=tt.stylize(tc,"string"))}return tc+": "+td}function tR(tt,tr,ti){var ta=0;return tt.reduce(function(tt,tr){return ta++,tr.indexOf("\n")>=0&&ta++,tt+tr.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ti[0]+(""===tr?"":tr+"\n ")+" "+tt.join(",\n  ")+" "+ti[1]:ti[0]+tr+" "+tt.join(", ")+" "+ti[1]}function tI(tt){return Array.isArray(tt)}function tk(tt){return"boolean"==typeof tt}function tP(tt){return null===tt}function tC(tt){return null==tt}function tO(tt){return"number"==typeof tt}function tN(tt){return"string"==typeof tt}function tB(tt){return"symbol"==typeof tt}function tL(tt){return void 0===tt}function tU(tt){return tD(tt)&&"[object RegExp]"===tV(tt)}function tD(tt){return"object"==typeof tt&&null!==tt}function tj(tt){return tD(tt)&&"[object Date]"===tV(tt)}function tF(tt){return tD(tt)&&("[object Error]"===tV(tt)||tt instanceof Error)}function tG(tt){return"function"==typeof tt}function tH(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 tz(tt){return tt<10?"0"+tt.toString(10):tt.toString(10)}tr.debuglog=function(tt){if(!tc[tt=tt.toUpperCase()]){if(td.test(tt)){var ti=tu.pid;tc[tt]=function(){var ta=tr.format.apply(tr,arguments);console.error("%s %d: %s",tt,ti,ta)}}else tc[tt]=function(){}}return tc[tt]},tr.inspect=tv,tv.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]},tv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},tr.types=ti(584),tr.isArray=tI,tr.isBoolean=tk,tr.isNull=tP,tr.isNullOrUndefined=tC,tr.isNumber=tO,tr.isString=tN,tr.isSymbol=tB,tr.isUndefined=tL,tr.isRegExp=tU,tr.types.isRegExp=tU,tr.isObject=tD,tr.isDate=tj,tr.types.isDate=tj,tr.isError=tF,tr.types.isNativeError=tF,tr.isFunction=tG,tr.isPrimitive=tH,tr.isBuffer=ti(369);var tq=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tW(){var tt=new Date,tr=[tz(tt.getHours()),tz(tt.getMinutes()),tz(tt.getSeconds())].join(":");return[tt.getDate(),tq[tt.getMonth()],tr].join(" ")}function tY(tt,tr){return Object.prototype.hasOwnProperty.call(tt,tr)}tr.log=function(){console.log("%s - %s",tW(),tr.format.apply(tr,arguments))},tr.inherits=ti(782),tr._extend=function(tt,tr){if(!tr||!tD(tr))return tt;for(var ti=Object.keys(tr),ta=ti.length;ta--;)tt[ti[ta]]=tr[ti[ta]];return tt};var tX="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function tK(tt,tr){if(!tt){var ti=Error("Promise was rejected with a falsy value");ti.reason=tt,tt=ti}return tr(tt)}function tZ(tt){if("function"!=typeof tt)throw TypeError('The "original" argument must be of type Function');function tr(){for(var tr=[],ti=0;ti<arguments.length;ti++)tr.push(arguments[ti]);var ta=tr.pop();if("function"!=typeof ta)throw TypeError("The last argument must be of type Function");var ts=this,tc=function(){return ta.apply(ts,arguments)};tt.apply(this,tr).then(function(tt){tu.nextTick(tc.bind(null,null,tt))},function(tt){tu.nextTick(tK.bind(null,tt,tc))})}return Object.setPrototypeOf(tr,Object.getPrototypeOf(tt)),Object.defineProperties(tr,ta(tt)),tr}tr.promisify=function(tt){if("function"!=typeof tt)throw TypeError('The "original" argument must be of type Function');if(tX&&tt[tX]){var tr=tt[tX];if("function"!=typeof tr)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,tX,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var tr,ti,ta=new Promise(function(tt,ta){tr=tt,ti=ta}),ts=[],tu=0;tu<arguments.length;tu++)ts.push(arguments[tu]);ts.push(function(tt,ta){tt?ti(tt):tr(ta)});try{tt.apply(this,ts)}catch(tt){ti(tt)}return ta}return Object.setPrototypeOf(tr,Object.getPrototypeOf(tt)),tX&&Object.defineProperty(tr,tX,{value:tr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(tr,ta(tt))},tr.promisify.custom=tX,tr.callbackify=tZ},490:function(tt,tr,ta){"use strict";var ts=ta(144),tu=ta(349),tc=ta(256),td=tc("Object.prototype.toString"),tp=ta(942)()&&"symbol"==typeof Symbol.toStringTag,tv=tu(),tg=tc("String.prototype.slice"),tb={},t_=ta(466),tE=Object.getPrototypeOf;tp&&t_&&tE&&ts(tv,function(tt){if("function"==typeof ti.g[tt]){var tr=new ti.g[tt];if(!(Symbol.toStringTag in tr))throw EvalError("this engine has support for Symbol.toStringTag, but "+tt+" does not have the property! Please report this.");var ta=tE(tr),ts=t_(ta,Symbol.toStringTag);ts||(ts=t_(tE(ta),Symbol.toStringTag)),tb[tt]=ts.get}});var tA=function(tt){var tr=!1;return ts(tb,function(ti,ta){if(!tr)try{var ts=ti.call(tt);ts===ta&&(tr=ts)}catch(tt){}}),tr},tS=ta(994);tt.exports=function(tt){return!!tS(tt)&&(tp?tA(tt):tg(td(tt),8,-1))}},349:function(tt,tr,ta){"use strict";var ts=ta(992);tt.exports=function(){return ts(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(tt){return"function"==typeof ti.g[tt]})}},466:function(tt,tr,ti){"use strict";var ta=ti(500)("%Object.getOwnPropertyDescriptor%",!0);if(ta)try{ta([],"length")}catch(tt){ta=null}tt.exports=ta}},tc={};function td(tt){var ti=tc[tt];if(void 0!==ti)return ti.exports;var ta=tc[tt]={exports:{}},ts=!0;try{tr[tt](ta,ta.exports,td),ts=!1}finally{ts&&delete tc[tt]}return ta.exports}td.ab=ta+"/";var tp=td(177);tt.exports=tp}()},79286:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function _(__unused_webpack_module,exports){var indexOf=function(tt,tr){if(tt.indexOf)return tt.indexOf(tr);for(var ti=0;ti<tt.length;ti++)if(tt[ti]===tr)return ti;return -1},Object_keys=function(tt){if(Object.keys)return Object.keys(tt);var tr=[];for(var ti in tt)tr.push(ti);return tr},forEach=function(tt,tr){if(tt.forEach)return tt.forEach(tr);for(var ti=0;ti<tt.length;ti++)tr(tt[ti],ti,tt)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(tt,tr,ti){Object.defineProperty(tt,tr,{writable:!0,enumerable:!1,configurable:!0,value:ti})}}catch(tt){return function(tt,tr,ti){tt[tr]=ti}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(tt){if(!(this instanceof Script))return new Script(tt);this.code=tt};Script.prototype.runInContext=function(tt){if(!(tt instanceof Context))throw TypeError("needs a 'context' argument.");var tr=document.createElement("iframe");tr.style||(tr.style={}),tr.style.display="none",document.body.appendChild(tr);var ti=tr.contentWindow,ta=ti.eval,ts=ti.execScript;!ta&&ts&&(ts.call(ti,"null"),ta=ti.eval),forEach(Object_keys(tt),function(tr){ti[tr]=tt[tr]}),forEach(globals,function(tr){tt[tr]&&(ti[tr]=tt[tr])});var tu=Object_keys(ti),tc=ta.call(ti,this.code);return forEach(Object_keys(ti),function(tr){(tr in tt||-1===indexOf(tu,tr))&&(tt[tr]=ti[tr])}),forEach(globals,function(tr){tr in tt||defineProp(tt,tr,ti[tr])}),document.body.removeChild(tr),tc},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(tt){var tr=Script.createContext(tt),ti=this.runInContext(tr);return tt&&forEach(Object_keys(tr),function(ti){tt[ti]=tr[ti]}),ti},forEach(Object_keys(Script.prototype),function(tt){exports[tt]=Script[tt]=function(tr){var ti=Script(tr);return ti[tt].apply(ti,[].slice.call(arguments,1))}}),exports.isContext=function(tt){return tt instanceof Context},exports.createScript=function(tt){return exports.Script(tt)},exports.createContext=Script.createContext=function(tt){var tr=new Context;return"object"==typeof tt&&forEach(Object_keys(tt),function(ti){tr[ti]=tt[ti]}),tr}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __webpack_exports__={};__webpack_modules__[950](0,__webpack_exports__),module.exports=__webpack_exports__}()},96240:function(tt,tr,ti){tt.exports=ti(75250)},60226:function(tt,tr,ti){tt.exports=ti(35502)},71408:function(tt,tr,ti){"use strict";ti.d(tr,{g:function(){return td}});var ta=ti(25470),ts=function(){return(ts=Object.assign||function(tt){for(var tr,ti=1,ta=arguments.length;ti<ta;ti++)for(var ts in tr=arguments[ti])Object.prototype.hasOwnProperty.call(tr,ts)&&(tt[ts]=tr[ts]);return tt}).apply(this,arguments)},tu=function(tt,tr){var ti={};for(var ta in tt)Object.prototype.hasOwnProperty.call(tt,ta)&&0>tr.indexOf(ta)&&(ti[ta]=tt[ta]);if(null!=tt&&"function"==typeof Object.getOwnPropertySymbols)for(var ts=0,ta=Object.getOwnPropertySymbols(tt);ts<ta.length;ts++)0>tr.indexOf(ta[ts])&&Object.prototype.propertyIsEnumerable.call(tt,ta[ts])&&(ti[ta[ts]]=tt[ta[ts]]);return ti},tc=!1;function td(){var tt=(0,ta.useState)(tp),tr=tt[0],ti=tt[1],ts=tv();return(0,ta.useEffect)(function(){if(ts)return window.addEventListener("resize",tt),function(){return window.removeEventListener("resize",tt)};function tt(){ti(tp())}},[ts]),ts?tr:null}function tp(){var tt;return tg()?(null===(tt=document.documentElement)||void 0===tt?void 0:tt.clientHeight)||window.innerHeight:null}function tv(){var tt=(0,ta.useState)(!1),tr=tt[0],ti=tt[1];return(0,ta.useEffect)(function(){tg()&&ti(!0)},[]),tr}function tg(){return"undefined"!=typeof window&&"undefined"!=typeof document}(0,ta.forwardRef)(function(tt,tr){var ti=tt.style,tp=tu(tt,["style"]),tv=td();!tc&&(null==ti?void 0:ti.height)&&(tc=!0,console.warn("<ReactDiv100vh /> overrides the height property of the style prop"));var tg=ts(ts({},ti),{height:tv?tv+"px":"100vh"});return ta.createElement("div",ts({ref:tr,style:tg},tp))}).displayName="Div100vh"},49964:function(tt,tr,ti){"use strict";function ta(tt){if(Array.isArray(tt))return tt}function ts(tt,tr){var ti,ta,ts=null==tt?null:"undefined"!=typeof Symbol&&tt[Symbol.iterator]||tt["@@iterator"];if(null!=ts){var tu=[],tc=!0,td=!1;try{for(ts=ts.call(tt);!(tc=(ti=ts.next()).done)&&(tu.push(ti.value),!tr||tu.length!==tr);tc=!0);}catch(tt){td=!0,ta=tt}finally{try{tc||null==ts.return||ts.return()}finally{if(td)throw ta}}return tu}}function tu(tt,tr){(null==tr||tr>tt.length)&&(tr=tt.length);for(var ti=0,ta=Array(tr);ti<tr;ti++)ta[ti]=tt[ti];return ta}function tc(tt,tr){if(tt){if("string"==typeof tt)return tu(tt,tr);var ti=Object.prototype.toString.call(tt).slice(8,-1);if("Object"===ti&&tt.constructor&&(ti=tt.constructor.name),"Map"===ti||"Set"===ti)return Array.from(tt);if("Arguments"===ti||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ti))return tu(tt,tr)}}function td(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tp(tt,tr){return ta(tt)||ts(tt,tr)||tc(tt,tr)||td()}ti.d(tr,{j3:function(){return t4},AW:function(){return t8},F0:function(){return t5},Z5:function(){return t7},oQ:function(){return tZ},TH:function(){return tJ},s0:function(){return t$},WU:function(){return t2}});var tv=ti(9298),tg=ti(25470),tb=(0,tg.createContext)(null),t_=(0,tg.createContext)(null),tE=(0,tg.createContext)({outlet:null,matches:[]});function tA(tt,tr){if(!tt)throw Error(tr)}function tS(tt,tr,ti){void 0===ti&&(ti="/");var ta=tq(("string"==typeof tr?(0,tv.cP)(tr):tr).pathname||"/",ti);if(null==ta)return null;var ts=tT(tt);tM(ts);for(var tu=null,tc=0;null==tu&&tc<ts.length;++tc)tu=tU(ts[tc],ta);return tu}function tT(tt,tr,ti,ta){return void 0===tr&&(tr=[]),void 0===ti&&(ti=[]),void 0===ta&&(ta=""),tt.forEach(function(tt,ts){var tu={relativePath:tt.path||"",caseSensitive:!0===tt.caseSensitive,childrenIndex:ts,route:tt};tu.relativePath.startsWith("/")&&(tu.relativePath.startsWith(ta)||tA(!1),tu.relativePath=tu.relativePath.slice(ta.length));var tc=tW([ta,tu.relativePath]),td=ti.concat(tu);tt.children&&tt.children.length>0&&(!0!==tt.index||tA(!1),tT(tt.children,tr,td,tc)),(null!=tt.path||tt.index)&&tr.push({path:tc,score:tB(tc,tt.index),routesMeta:td})}),tr}function tM(tt){tt.sort(function(tt,tr){return tt.score!==tr.score?tr.score-tt.score:tL(tt.routesMeta.map(function(tt){return tt.childrenIndex}),tr.routesMeta.map(function(tt){return tt.childrenIndex}))})}var tR=/^:\w+$/,tI=3,tk=2,tP=1,tC=10,tO=-2,tN=function(tt){return"*"===tt};function tB(tt,tr){var ti=tt.split("/"),ta=ti.length;return ti.some(tN)&&(ta+=tO),tr&&(ta+=tk),ti.filter(function(tt){return!tN(tt)}).reduce(function(tt,tr){return tt+(tR.test(tr)?tI:""===tr?tP:tC)},ta)}function tL(tt,tr){return tt.length===tr.length&&tt.slice(0,-1).every(function(tt,ti){return tt===tr[ti]})?tt[tt.length-1]-tr[tr.length-1]:0}function tU(tt,tr){for(var ti=tt.routesMeta,ta={},ts="/",tu=[],tc=0;tc<ti.length;++tc){var td=ti[tc],tp=tc===ti.length-1,tv="/"===ts?tr:tr.slice(ts.length)||"/",tg=tD({path:td.relativePath,caseSensitive:td.caseSensitive,end:tp},tv);if(!tg)return null;Object.assign(ta,tg.params);var tb=td.route;tu.push({params:ta,pathname:tW([ts,tg.pathname]),pathnameBase:tY(tW([ts,tg.pathnameBase])),route:tb}),"/"!==tg.pathnameBase&&(ts=tW([ts,tg.pathnameBase]))}return tu}function tD(tt,tr){"string"==typeof tt&&(tt={path:tt,caseSensitive:!1,end:!0});var ti=tp(tj(tt.path,tt.caseSensitive,tt.end),2),ta=ti[0],ts=ti[1],tu=tr.match(ta);if(!tu)return null;var tc=tu[0],td=tc.replace(/(.)\/+$/,"$1"),tv=tu.slice(1);return{params:ts.reduce(function(tt,tr,ti){if("*"===tr){var ta=tv[ti]||"";td=tc.slice(0,tc.length-ta.length).replace(/(.)\/+$/,"$1")}return tt[tr]=tF(tv[ti]||"",tr),tt},{}),pathname:tc,pathnameBase:td,pattern:tt}}function tj(tt,tr,ti){void 0===tr&&(tr=!1),void 0===ti&&(ti=!0);var ta=[],ts="^"+tt.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,function(tt,tr){return ta.push(tr),"([^\\/]+)"});return tt.endsWith("*")?(ta.push("*"),ts+="*"===tt||"/*"===tt?"(.*)$":"(?:\\/(.+)|\\/*)$"):ts+=ti?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(ts,tr?void 0:"i"),ta]}function tF(tt,tr){try{return decodeURIComponent(tt)}catch(tr){return tt}}function tG(tt,tr){void 0===tr&&(tr="/");var ti="string"==typeof tt?(0,tv.cP)(tt):tt,ta=ti.pathname,ts=ti.search,tu=void 0===ts?"":ts,tc=ti.hash,td=void 0===tc?"":tc;return{pathname:ta?ta.startsWith("/")?ta:tH(ta,tr):tr,search:tX(tu),hash:tK(td)}}function tH(tt,tr){var ti=tr.replace(/\/+$/,"").split("/");return tt.split("/").forEach(function(tt){".."===tt?ti.length>1&&ti.pop():"."!==tt&&ti.push(tt)}),ti.length>1?ti.join("/"):"/"}function tV(tt,tr,ti){var ta,ts="string"==typeof tt?(0,tv.cP)(tt):tt,tu=""===tt||""===ts.pathname?"/":ts.pathname;if(null==tu)ta=ti;else{var tc=tr.length-1;if(tu.startsWith("..")){for(var td=tu.split("/");".."===td[0];)td.shift(),tc-=1;ts.pathname=td.join("/")}ta=tc>=0?tr[tc]:"/"}var tp=tG(ts,ta);return tu&&"/"!==tu&&tu.endsWith("/")&&!tp.pathname.endsWith("/")&&(tp.pathname+="/"),tp}function tz(tt){return""===tt||""===tt.pathname?"/":"string"==typeof tt?(0,tv.cP)(tt).pathname:tt.pathname}function tq(tt,tr){if("/"===tr)return tt;if(!tt.toLowerCase().startsWith(tr.toLowerCase()))return null;var ti=tt.charAt(tr.length);return ti&&"/"!==ti?null:tt.slice(tr.length)||"/"}var tW=function(tt){return tt.join("/").replace(/\/\/+/g,"/")},tY=function(tt){return tt.replace(/\/+$/,"").replace(/^\/*/,"/")},tX=function(tt){return tt&&"?"!==tt?tt.startsWith("?")?tt:"?"+tt:""},tK=function(tt){return tt&&"#"!==tt?tt.startsWith("#")?tt:"#"+tt:""};function tZ(tt){tQ()||tA(!1);var tr=(0,tg.useContext)(tb),ti=tr.basename,ta=tr.navigator,ts=t2(tt),tu=ts.hash,tc=ts.pathname,td=ts.search,tp=tc;if("/"!==ti){var tv=tz(tt),t_=null!=tv&&tv.endsWith("/");tp="/"===tc?ti+(t_?"/":""):tW([ti,tc])}return ta.createHref({pathname:tp,search:td,hash:tu})}function tQ(){return null!=(0,tg.useContext)(t_)}function tJ(){return tQ()||tA(!1),(0,tg.useContext)(t_).location}function t$(){tQ()||tA(!1);var tt=(0,tg.useContext)(tb),tr=tt.basename,ti=tt.navigator,ta=(0,tg.useContext)(tE).matches,ts=tJ().pathname,tu=JSON.stringify(ta.map(function(tt){return tt.pathnameBase})),tc=(0,tg.useRef)(!1);return(0,tg.useEffect)(function(){tc.current=!0}),(0,tg.useCallback)(function(tt,ta){if(void 0===ta&&(ta={}),tc.current){if("number"==typeof tt){ti.go(tt);return}var td=tV(tt,JSON.parse(tu),ts);"/"!==tr&&(td.pathname=tW([tr,td.pathname])),(ta.replace?ti.replace:ti.push)(td,ta.state)}},[tr,ti,tu,ts])}var t0=(0,tg.createContext)(null);function t1(tt){var tr=(0,tg.useContext)(tE).outlet;return tr?(0,tg.createElement)(t0.Provider,{value:tt},tr):tr}function t2(tt){var tr=(0,tg.useContext)(tE).matches,ti=tJ().pathname,ta=JSON.stringify(tr.map(function(tt){return tt.pathnameBase}));return(0,tg.useMemo)(function(){return tV(tt,JSON.parse(ta),ti)},[tt,ta,ti])}function t3(tt,tr){tQ()||tA(!1);var ti=(0,tg.useContext)(tE).matches,ta=ti[ti.length-1],ts=ta?ta.params:{};ta&&ta.pathname;var tu=ta?ta.pathnameBase:"/";ta&&ta.route;var tc=tJ();if(tr){var td,tp,tb="string"==typeof tr?(0,tv.cP)(tr):tr;"/"===tu||(null==(tp=tb.pathname)?void 0:tp.startsWith(tu))||tA(!1),td=tb}else td=tc;var t_=td.pathname||"/",tT=tS(tt,{pathname:"/"===tu?t_:t_.slice(tu.length)||"/"});return t6(tT&&tT.map(function(tt){return Object.assign({},tt,{params:Object.assign({},ts,tt.params),pathname:tW([tu,tt.pathname]),pathnameBase:"/"===tt.pathnameBase?tu:tW([tu,tt.pathnameBase])})}),ti)}function t6(tt,tr){return(void 0===tr&&(tr=[]),null==tt)?null:tt.reduceRight(function(ti,ta,ts){return(0,tg.createElement)(tE.Provider,{children:void 0!==ta.route.element?ta.route.element:ti,value:{outlet:ti,matches:tr.concat(tt.slice(0,ts+1))}})},null)}function t4(tt){return t1(tt.context)}function t8(tt){tA(!1)}function t5(tt){var tr=tt.basename,ti=void 0===tr?"/":tr,ta=tt.children,ts=void 0===ta?null:ta,tu=tt.location,tc=tt.navigationType,td=void 0===tc?tv.aU.Pop:tc,tp=tt.navigator,tE=tt.static,tS=void 0!==tE&&tE;tQ()&&tA(!1);var tT=tY(ti),tM=(0,tg.useMemo)(function(){return{basename:tT,navigator:tp,static:tS}},[tT,tp,tS]);"string"==typeof tu&&(tu=(0,tv.cP)(tu));var tR=tu,tI=tR.pathname,tk=void 0===tI?"/":tI,tP=tR.search,tC=void 0===tP?"":tP,tO=tR.hash,tN=void 0===tO?"":tO,tB=tR.state,tL=void 0===tB?null:tB,tU=tR.key,tD=void 0===tU?"default":tU,tj=(0,tg.useMemo)(function(){var tt=tq(tk,tT);return null==tt?null:{pathname:tt,search:tC,hash:tN,state:tL,key:tD}},[tT,tk,tC,tN,tL,tD]);return null==tj?null:(0,tg.createElement)(tb.Provider,{value:tM},(0,tg.createElement)(t_.Provider,{children:ts,value:{location:tj,navigationType:td}}))}function t7(tt){var tr=tt.children,ti=tt.location;return t3(t9(tr),ti)}function t9(tt){var tr=[];return tg.Children.forEach(tt,function(tt){if((0,tg.isValidElement)(tt)){if(tt.type===tg.Fragment){tr.push.apply(tr,t9(tt.props.children));return}tt.type!==t8&&tA(!1);var ti={caseSensitive:tt.props.caseSensitive,element:tt.props.element,index:tt.props.index,path:tt.props.path};tt.props.children&&(ti.children=t9(tt.props.children)),tr.push(ti)}}),tr}},13725:function(tt,tr,ti){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ta=ti(84406),ts=ta.Buffer;function tu(tt,tr){for(var ti in tt)tr[ti]=tt[ti]}function tc(tt,tr,ti){return ts(tt,tr,ti)}ts.from&&ts.alloc&&ts.allocUnsafe&&ts.allocUnsafeSlow?tt.exports=ta:(tu(ta,tr),tr.Buffer=tc),tc.prototype=Object.create(ts.prototype),tu(ts,tc),tc.from=function(tt,tr,ti){if("number"==typeof tt)throw TypeError("Argument must not be a number");return ts(tt,tr,ti)},tc.alloc=function(tt,tr,ti){if("number"!=typeof tt)throw TypeError("Argument must be a number");var ta=ts(tt);return void 0!==tr?"string"==typeof ti?ta.fill(tr,ti):ta.fill(tr):ta.fill(0),ta},tc.allocUnsafe=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ts(tt)},tc.allocUnsafeSlow=function(tt){if("number"!=typeof tt)throw TypeError("Argument must be a number");return ta.SlowBuffer(tt)}},81198:function(tt){!function(){"use strict";function tr(){var tt=window,tr=document;if(!("scrollBehavior"in tr.documentElement.style)||!0===tt.__forceSmoothScrollPolyfill__){var ti=tt.HTMLElement||tt.Element,ta=468,ts={scroll:tt.scroll||tt.scrollTo,scrollBy:tt.scrollBy,elementScroll:ti.prototype.scroll||td,scrollIntoView:ti.prototype.scrollIntoView},tu=tt.performance&&tt.performance.now?tt.performance.now.bind(tt.performance):Date.now,tc=!function(tt){var tr=["MSIE ","Trident/","Edge/"];return new RegExp(tr.join("|")).test(tt)}(tt.navigator.userAgent)?0:1;tt.scroll=tt.scrollTo=function(){if(void 0!==arguments[0]){if(!0===tv(arguments[0])){ts.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}tS.call(tt,tr.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(tv(arguments[0])){ts.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}tS.call(tt,tr.body,~~arguments[0].left+(tt.scrollX||tt.pageXOffset),~~arguments[0].top+(tt.scrollY||tt.pageYOffset))}},ti.prototype.scroll=ti.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===tv(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");ts.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,tr=arguments[0].top;tS.call(this,this,void 0===tt?this.scrollLeft:~~tt,void 0===tr?this.scrollTop:~~tr)}},ti.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===tv(arguments[0])){ts.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})}},ti.prototype.scrollIntoView=function(){if(!0===tv(arguments[0])){ts.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}var ti=tE(this),ta=ti.getBoundingClientRect(),tu=this.getBoundingClientRect();ti!==tr.body?(tS.call(this,ti,ti.scrollLeft+tu.left-ta.left,ti.scrollTop+tu.top-ta.top),"fixed"!==tt.getComputedStyle(ti).position&&tt.scrollBy({left:ta.left,top:ta.top,behavior:"smooth"})):tt.scrollBy({left:tu.left,top:tu.top,behavior:"smooth"})}}function td(tt,tr){this.scrollLeft=tt,this.scrollTop=tr}function tp(tt){return .5*(1-Math.cos(Math.PI*tt))}function tv(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,tr){return"Y"===tr?tt.clientHeight+tc<tt.scrollHeight:"X"===tr?tt.clientWidth+tc<tt.scrollWidth:void 0}function tb(tr,ti){var ta=tt.getComputedStyle(tr,null)["overflow"+ti];return"auto"===ta||"scroll"===ta}function t_(tt){var tr=tg(tt,"Y")&&tb(tt,"Y"),ti=tg(tt,"X")&&tb(tt,"X");return tr||ti}function tE(tt){for(;tt!==tr.body&&!1===t_(tt);)tt=tt.parentNode||tt.host;return tt}function tA(tr){var ti,ts,tc,td=(tu()-tr.startTime)/ta;ti=tp(td=td>1?1:td),ts=tr.startX+(tr.x-tr.startX)*ti,tc=tr.startY+(tr.y-tr.startY)*ti,tr.method.call(tr.scrollable,ts,tc),(ts!==tr.x||tc!==tr.y)&&tt.requestAnimationFrame(tA.bind(tt,tr))}function tS(ti,ta,tc){var tp,tv,tg,tb,t_=tu();ti===tr.body?(tp=tt,tv=tt.scrollX||tt.pageXOffset,tg=tt.scrollY||tt.pageYOffset,tb=ts.scroll):(tp=ti,tv=ti.scrollLeft,tg=ti.scrollTop,tb=td),tA({scrollable:tp,method:tb,startTime:t_,startX:tv,startY:tg,x:ta,y:tc})}}tt.exports={polyfill:tr}}()},22040:function(tt,tr,ti){"use strict";ti.r(tr),ti.d(tr,{assoc:function(){return tb},deepMerge:function(){return tP},dissoc:function(){return tS},get:function(){return tp},merge:function(){return tI},update:function(){return tR}});var ta=Array.prototype.slice;function ts(tt){return"object"==typeof tt}function tu(tt){if(Array.isArray(tt))return tt.slice();var tr={};for(var ti in tt)tr[ti]=tt[ti];return tr}function tc(tt,tr,ti){return ts(tt)&&null!==tt&&tr in tt?tt[tr]:ti}function td(tt,tr,ti){var ta=tr[0],ts=tr.slice(1);return tc(tt,ta)&&ts.length?td(tt[ta],ts,ti):tc(tt,ta,ti)}function tp(tt,tr,ti){return Array.isArray(tr)?td(tt,tr,ti):tc(tt,tr,ti)}function tv(tt,tr,ti){if(tt[tr]===ti)return tt;var ta=tu(tt);return ta[tr]=ti,ta}function tg(tt,tr,ti){if(td(tt,tr)===ti)return tt;var ta=tr[0],ts=tr.slice(1),tc=tu(tt);return ts.length?tc[ta]=ta in tc?tg(tc[ta],ts,ti):tg({},ts,ti):tc[ta]=ti,tc}function tb(tt){for(var tr,ti,ta=arguments,ts=arguments.length,tu=tt,tc=1;tc<ts;tc+=2)tr=ta[tc],ti=ta[tc+1],tu=Array.isArray(tr)?tg(tu,tr,ti):tv(tu,tr,ti);return tu}function t_(tt,tr){if(!(tr in tt))return tt;var ti=tu(tt);return delete ti[tr],ti}function tE(tt,tr){var ti=tr[0],ta=tr.slice(1);return ta.length?ti in tt&&tE(tt[ti],ta):ti in tt}function tA(tt,tr){if(!tE(tt,tr))return tt;var ti=tr[0],ta=tr.slice(1),ts=tu(tt);return 0!==ta.length?(ts[ti]=tA(tt[ti],ta),0===Object.keys(ts[ti]).length&&delete ts[ti]):delete ts[ti],ts}function tS(tt){for(var tr,ti=arguments,ta=arguments.length,ts=0,tu=tt;++ts<ta;)tu=Array.isArray(tr=ti[ts])?tA(tu,tr):t_(tu,tr);return tu}function tT(tt,tr,ti){var ts=tc(tt,tr);return tv(tt,tr,ti.apply(ts,[ts].concat(ta.call(arguments,3))))}function tM(tt,tr,ti){var ts=td(tt,tr);return tg(tt,tr,ti.apply(ts,[ts].concat(ta.call(arguments,3))))}function tR(tt,tr){return Array.isArray(tr)?tM.apply(this,arguments):tT.apply(this,arguments)}function tI(){for(var tt,tr=arguments,ti=arguments.length,ta=0,ts=arguments[0];++ta<ti;)for(var tu in tt=tr[ta])ts=tv(ts,tu,tt[tu]);return ts}function tk(tt,tr){for(var ti,ta,tc=Object.keys(tr),td=tc.length,tp=-1,tg=tt;++tp<td;)tg=ts(ti=tr[ta=tc[tp]])&&null!==ti?tv(tg,ta,ta in tg?tk(tg[ta],ti):tu(ti)):tv(tg,ta,ti);return tg}function tP(){for(var tt=arguments,tr=arguments.length,ti=0,ta=arguments[0];++ti<tr;)ta=tk(ta,tt[ti]);return ta}},76887:function(tt,tr,ti){"use strict";var ta=ti(13725).Buffer,ts=ta.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 tr;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(tr)return;tt=(""+tt).toLowerCase(),tr=!0}}function tc(tt){var tr=tu(tt);if("string"!=typeof tr&&(ta.isEncoding===ts||!ts(tt)))throw Error("Unknown encoding: "+tt);return tr||tt}function td(tt){var tr;switch(this.encoding=tc(tt),this.encoding){case"utf16le":this.text=tA,this.end=tS,tr=4;break;case"utf8":this.fillLast=tb,tr=4;break;case"base64":this.text=tT,this.end=tM,tr=3;break;default:this.write=tR,this.end=tI;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ta.allocUnsafe(tr)}function tp(tt){return tt<=127?0:tt>>5==6?2:tt>>4==14?3:tt>>3==30?4:tt>>6==2?-1:-2}function tv(tt,tr,ti){var ta=tr.length-1;if(ta<ti)return 0;var ts=tp(tr[ta]);return ts>=0?(ts>0&&(tt.lastNeed=ts-1),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(tt.lastNeed=ts-2),ts):--ta<ti||-2===ts?0:(ts=tp(tr[ta]))>=0?(ts>0&&(2===ts?ts=0:tt.lastNeed=ts-3),ts):0}function tg(tt,tr,ti){if((192&tr[0])!=128)return tt.lastNeed=0,"�";if(tt.lastNeed>1&&tr.length>1){if((192&tr[1])!=128)return tt.lastNeed=1,"�";if(tt.lastNeed>2&&tr.length>2&&(192&tr[2])!=128)return tt.lastNeed=2,"�"}}function tb(tt){var tr=this.lastTotal-this.lastNeed,ti=tg(this,tt,tr);return void 0!==ti?ti:this.lastNeed<=tt.length?(tt.copy(this.lastChar,tr,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(tt.copy(this.lastChar,tr,0,tt.length),this.lastNeed-=tt.length)}function t_(tt,tr){var ti=tv(this,tt,tr);if(!this.lastNeed)return tt.toString("utf8",tr);this.lastTotal=ti;var ta=tt.length-(ti-this.lastNeed);return tt.copy(this.lastChar,0,ta),tt.toString("utf8",tr,ta)}function tE(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+"�":tr}function tA(tt,tr){if((tt.length-tr)%2==0){var ti=tt.toString("utf16le",tr);if(ti){var ta=ti.charCodeAt(ti.length-1);if(ta>=55296&&ta<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1],ti.slice(0,-1)}return ti}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=tt[tt.length-1],tt.toString("utf16le",tr,tt.length-1)}function tS(tt){var tr=tt&&tt.length?this.write(tt):"";if(this.lastNeed){var ti=this.lastTotal-this.lastNeed;return tr+this.lastChar.toString("utf16le",0,ti)}return tr}function tT(tt,tr){var ti=(tt.length-tr)%3;return 0===ti?tt.toString("base64",tr):(this.lastNeed=3-ti,this.lastTotal=3,1===ti?this.lastChar[0]=tt[tt.length-1]:(this.lastChar[0]=tt[tt.length-2],this.lastChar[1]=tt[tt.length-1]),tt.toString("base64",tr,tt.length-ti))}function tM(tt){var tr=tt&&tt.length?this.write(tt):"";return this.lastNeed?tr+this.lastChar.toString("base64",0,3-this.lastNeed):tr}function tR(tt){return tt.toString(this.encoding)}function tI(tt){return tt&&tt.length?this.write(tt):""}tr.StringDecoder=td,td.prototype.write=function(tt){var tr,ti;if(0===tt.length)return"";if(this.lastNeed){if(void 0===(tr=this.fillLast(tt)))return"";ti=this.lastNeed,this.lastNeed=0}else ti=0;return ti<tt.length?tr?tr+this.text(tt,ti):this.text(tt,ti):tr||""},td.prototype.end=tE,td.prototype.text=t_,td.prototype.fillLast=function(tt){if(this.lastNeed<=tt.length)return tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);tt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,tt.length),this.lastNeed-=tt.length}},6840:function(tt,tr,ti){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return ti(9491)}])},9491:function(tt,tr,ti){"use strict";ti.r(tr),ti.d(tr,{default:function(){return hB}});var ta,ts,tu,tc=ti(54393),td=ti(45509),tp=ti(98811),tv=ti(25470);ti(71826);var tg=ti(96240),tb=ti.n(tg),t_=ti(60226),tE=ti.n(t_),tA=ti(81198),tS=ti(56980),tT=ti(15448),tM=ti(32516),tR=ti(33925),tI=ti(86549),tk=ti(91502),tP=ti(14322),tC=ti(47764),tO=ti(93319);class tN{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}}class tB extends tN{isAuthStateLoggedIn(tt){return tt.status===tC.ProjectUserAuthStatus.LoggedIn}isAuthStateLoading(tt){return tt.status===tC.ProjectUserAuthStatus.Loading}isAuthStateError(tt){return tt.status===tC.ProjectUserAuthStatus.Error}isAuthStateGuest(tt){return tt.status===tC.ProjectUserAuthStatus.Guest}auth(){this.projectUserAuth.auth()}constructor(tt,tr,ti,ta){super({status:tC.ProjectUserAuthStatus.Loading,error:void 0}),this.configService=tt,this.projectUserAuthCreator=tr,this.projectAuthApi=ti,this.window=ta,this.getProjectUserAuth=()=>this.projectUserAuth,this.simulateUserError=tt=>{var{errorCode:tr=tO.S.UnknownError,httpCode:ti}=tt;if(ti===tC.HttpStatus.SERVICE_UNAVAILABLE){var ta=new tC.HttpErrorBackend("Service Unavailable",{httpCode:Number(ti)});this.setState({status:tC.ProjectUserAuthStatus.Error,error:ta});return}var ts=new tC.HttpErrorProject("Ошибка",{httpCode:Number(ti),errorCode:tr,errorMessage:"Error",timestamp:new this.window.Date().toISOString(),requestId:"jnjnf-sdfef33-fdfdfewf33-dvdfvdfv"});this.setState({status:tC.ProjectUserAuthStatus.Error,error:ts})};var{APP_SSO_API_URL:ts,APP_SSO_CLIENT_URL:tu,APP_PROJECT_URL:tc}=tt.getEnvs();this.projectUserAuth=this.projectUserAuthCreator.create({ssoApi:ts,ssoClientApi:tu,projectApi:this.projectAuthApi,srcOrigin:tc})}}function tL(tt){tt.bind(tk.V.projectUserAuthCreator).toConstant(tC.ProjectUserAuthCreator);var tr=ti(48568).T;(0,tP.Lj)(tr,tk.V.httpClientProjectApi,tk.V.queryString,tk.V.window,tk.V.projectApiHeaders),tt.bind(tk.V.projectAuthApi).toInstance(tr).inSingletonScope(),(0,tP.Lj)(tB,tk.V.configService,tk.V.projectUserAuthCreator,tk.V.projectAuthApi,tk.V.window),tt.bind(tk.V.projectAuthModel).toInstance(tB).inSingletonScope()}var tU=ti(48616),tD=ti(85530),tj={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},tF={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},tG=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],tH={CSS:{},springs:{}};function tV(tt,tr,ti){return Math.min(Math.max(tt,tr),ti)}function tz(tt,tr){return tt.indexOf(tr)>-1}function tq(tt,tr){return tt.apply(null,tr)}var tW={arr:function(tt){return Array.isArray(tt)},obj:function(tt){return tz(Object.prototype.toString.call(tt),"Object")},pth:function(tt){return tW.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||tW.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 tW.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 tW.hex(tt)||tW.rgb(tt)||tW.hsl(tt)},key:function(tt){return!tj.hasOwnProperty(tt)&&!tF.hasOwnProperty(tt)&&"targets"!==tt&&"keyframes"!==tt}};function tY(tt){var tr=/\(([^)]+)\)/.exec(tt);return tr?tr[1].split(",").map(function(tt){return parseFloat(tt)}):[]}function tX(tt,tr){var ti=tY(tt),ta=tV(tW.und(ti[0])?1:ti[0],.1,100),ts=tV(tW.und(ti[1])?100:ti[1],.1,100),tu=tV(tW.und(ti[2])?10:ti[2],.1,100),tc=tV(tW.und(ti[3])?0:ti[3],.1,100),td=Math.sqrt(ts/ta),tp=tu/(2*Math.sqrt(ts*ta)),tv=tp<1?td*Math.sqrt(1-tp*tp):0,tg=1,tb=tp<1?(tp*td+-tc)/tv:-tc+td;function t_(tt){var ti=tr?tr*tt/1e3:tt;return(ti=tp<1?Math.exp(-ti*tp*td)*(tg*Math.cos(tv*ti)+tb*Math.sin(tv*ti)):(tg+tb*ti)*Math.exp(-ti*td),0===tt||1===tt)?tt:1-ti}function tE(){var tr=tH.springs[tt];if(tr)return tr;for(var ti=1/6,ta=0,ts=0;;)if(1===t_(ta+=ti)){if(++ts>=16)break}else ts=0;var tu=ta*ti*1e3;return tH.springs[tt]=tu,tu}return tr?t_:tE}function tK(tt){return void 0===tt&&(tt=10),function(tr){return Math.ceil(tV(tr,1e-6,1)*tt)*(1/tt)}}var tZ=function(){var tt=11,tr=.1;function ti(tt,tr){return 1-3*tr+3*tt}function ta(tt,tr){return 3*tr-6*tt}function ts(tt){return 3*tt}function tu(tt,tr,tu){return((ti(tr,tu)*tt+ta(tr,tu))*tt+ts(tr))*tt}function tc(tt,tr,tu){return 3*ti(tr,tu)*tt*tt+2*ta(tr,tu)*tt+ts(tr)}function td(tt,tr,ti,ta,ts){var tc,td,tp=0;do(tc=tu(td=tr+(ti-tr)/2,ta,ts)-tt)>0?ti=td:tr=td;while(Math.abs(tc)>1e-7&&++tp<10);return td}function tp(tt,tr,ti,ta){for(var ts=0;ts<4;++ts){var td=tc(tr,ti,ta);if(0===td)break;var tp=tu(tr,ti,ta)-tt;tr-=tp/td}return tr}return function(ti,ta,ts,tv){if(0<=ti&&ti<=1&&0<=ts&&ts<=1){var tg=new Float32Array(tt);if(ti!==ta||ts!==tv)for(var tb=0;tb<tt;++tb)tg[tb]=tu(tb*tr,ti,ts);return function(tt){return ti===ta&&ts===tv||0===tt||1===tt?tt:tu(t_(tt),ta,tv)}}function t_(ta){for(var tu=0,tv=1,tb=tt-1;tv!==tb&&tg[tv]<=ta;++tv)tu+=tr;var t_=tu+(ta-tg[--tv])/(tg[tv+1]-tg[tv])*tr,tE=tc(t_,ti,ts);return tE>=.001?tp(ta,t_,ti,ts):0===tE?t_:td(ta,tu,tu+tr,ti,ts)}}}(),tQ=function(){var tt={linear:function(){return function(tt){return tt}}},tr={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 tr,ti=4;tt<((tr=Math.pow(2,--ti))-1)/11;);return 1/Math.pow(4,3-ti)-7.5625*Math.pow((3*tr-2)/22-tt,2)}},Elastic:function(tt,tr){void 0===tt&&(tt=1),void 0===tr&&(tr=.5);var ti=tV(tt,1,10),ta=tV(tr,.1,2);return function(tt){return 0===tt||1===tt?tt:-ti*Math.pow(2,10*(tt-1))*Math.sin((tt-1-ta/(2*Math.PI)*Math.asin(1/ti))*(2*Math.PI)/ta)}}};return["Quad","Cubic","Quart","Quint","Expo"].forEach(function(tt,ti){tr[tt]=function(){return function(tt){return Math.pow(tt,ti+2)}}}),Object.keys(tr).forEach(function(ti){var ta=tr[ti];tt["easeIn"+ti]=ta,tt["easeOut"+ti]=function(tt,tr){return function(ti){return 1-ta(tt,tr)(1-ti)}},tt["easeInOut"+ti]=function(tt,tr){return function(ti){return ti<.5?ta(tt,tr)(2*ti)/2:1-ta(tt,tr)(-2*ti+2)/2}},tt["easeOutIn"+ti]=function(tt,tr){return function(ti){return ti<.5?(1-ta(tt,tr)(1-2*ti))/2:(ta(tt,tr)(2*ti-1)+1)/2}}}),tt}();function tJ(tt,tr){if(tW.fnc(tt))return tt;var ti=tt.split("(")[0],ta=tQ[ti],ts=tY(tt);switch(ti){case"spring":return tX(tt,tr);case"cubicBezier":return tq(tZ,ts);case"steps":return tq(tK,ts);default:return tq(ta,ts)}}function t$(tt){try{return document.querySelectorAll(tt)}catch(tt){return}}function t0(tt,tr){for(var ti=tt.length,ta=arguments.length>=2?arguments[1]:void 0,ts=[],tu=0;tu<ti;tu++)if(tu in tt){var tc=tt[tu];tr.call(ta,tc,tu,tt)&&ts.push(tc)}return ts}function t1(tt){return tt.reduce(function(tt,tr){return tt.concat(tW.arr(tr)?t1(tr):tr)},[])}function t2(tt){return tW.arr(tt)?tt:(tW.str(tt)&&(tt=t$(tt)||tt),tt instanceof NodeList||tt instanceof HTMLCollection)?[].slice.call(tt):[tt]}function t3(tt,tr){return tt.some(function(tt){return tt===tr})}function t6(tt){var tr={};for(var ti in tt)tr[ti]=tt[ti];return tr}function t4(tt,tr){var ti=t6(tt);for(var ta in tt)ti[ta]=tr.hasOwnProperty(ta)?tr[ta]:tt[ta];return ti}function t8(tt,tr){var ti=t6(tt);for(var ta in tr)ti[ta]=tW.und(tt[ta])?tr[ta]:tt[ta];return ti}function t5(tt){var tr=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(tt);return tr?"rgba("+tr[1]+",1)":tt}function t7(tt){var tr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ti=tt.replace(tr,function(tt,tr,ti,ta){return tr+tr+ti+ti+ta+ta}),ta=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(ti);return"rgba("+parseInt(ta[1],16)+","+parseInt(ta[2],16)+","+parseInt(ta[3],16)+",1)"}function t9(tt){var tr,ti,ta,ts=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(tt)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(tt),tu=parseInt(ts[1],10)/360,tc=parseInt(ts[2],10)/100,td=parseInt(ts[3],10)/100,tp=ts[4]||1;function tv(tt,tr,ti){return(ti<0&&(ti+=1),ti>1&&(ti-=1),ti<1/6)?tt+(tr-tt)*6*ti:ti<.5?tr:ti<2/3?tt+(tr-tt)*(2/3-ti)*6:tt}if(0==tc)tr=ti=ta=td;else{var tg=td<.5?td*(1+tc):td+tc-td*tc,tb=2*td-tg;tr=tv(tb,tg,tu+1/3),ti=tv(tb,tg,tu),ta=tv(tb,tg,tu-1/3)}return"rgba("+255*tr+","+255*ti+","+255*ta+","+tp+")"}function et(tt){return tW.rgb(tt)?t5(tt):tW.hex(tt)?t7(tt):tW.hsl(tt)?t9(tt):void 0}function er(tt){var tr=/[+-]?\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(tr)return tr[1]}function en(tt){return tz(tt,"translate")||"perspective"===tt?"px":tz(tt,"rotate")||tz(tt,"skew")?"deg":void 0}function ei(tt,tr){return tW.fnc(tt)?tt(tr.target,tr.id,tr.total):tt}function ea(tt,tr){return tt.getAttribute(tr)}function eo(tt,tr,ti){if(t3([ti,"deg","rad","turn"],er(tr)))return tr;var ta=tH.CSS[tr+ti];if(!tW.und(ta))return ta;var ts=100,tu=document.createElement(tt.tagName),tc=tt.parentNode&&tt.parentNode!==document?tt.parentNode:document.body;tc.appendChild(tu),tu.style.position="absolute",tu.style.width=ts+ti;var td=ts/tu.offsetWidth;tc.removeChild(tu);var tp=td*parseFloat(tr);return tH.CSS[tr+ti]=tp,tp}function es(tt,tr,ti){if(tr in tt.style){var ta=tr.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ts=tt.style[tr]||getComputedStyle(tt).getPropertyValue(ta)||"0";return ti?eo(tt,ts,ti):ts}}function eu(tt,tr){return tW.dom(tt)&&!tW.inp(tt)&&(!tW.nil(ea(tt,tr))||tW.svg(tt)&&tt[tr])?"attribute":tW.dom(tt)&&t3(tG,tr)?"transform":tW.dom(tt)&&"transform"!==tr&&es(tt,tr)?"css":null!=tt[tr]?"object":void 0}function eh(tt){if(tW.dom(tt)){for(var tr,ti=tt.style.transform||"",ta=/(\w+)\(([^)]*)\)/g,ts=new Map;tr=ta.exec(ti);)ts.set(tr[1],tr[2]);return ts}}function ec(tt,tr,ti,ta){var ts=tz(tr,"scale")?1:0+en(tr),tu=eh(tt).get(tr)||ts;return ti&&(ti.transforms.list.set(tr,tu),ti.transforms.last=tr),ta?eo(tt,tu,ta):tu}function ef(tt,tr,ti,ta){switch(eu(tt,tr)){case"transform":return ec(tt,tr,ta,ti);case"css":return es(tt,tr,ti);case"attribute":return ea(tt,tr);default:return tt[tr]||0}}function ed(tt,tr){var ti=/^(\*=|\+=|-=)/.exec(tt);if(!ti)return tt;var ta=er(tt)||0,ts=parseFloat(tr),tu=parseFloat(tt.replace(ti[0],""));switch(ti[0][0]){case"+":return ts+tu+ta;case"-":return ts-tu+ta;case"*":return ts*tu+ta}}function ep(tt,tr){if(tW.col(tt))return et(tt);if(/\s/g.test(tt))return tt;var ti=er(tt),ta=ti?tt.substr(0,tt.length-ti.length):tt;return tr?ta+tr:ta}function ev(tt,tr){return Math.sqrt(Math.pow(tr.x-tt.x,2)+Math.pow(tr.y-tt.y,2))}function em(tt){return 2*Math.PI*ea(tt,"r")}function eg(tt){return 2*ea(tt,"width")+2*ea(tt,"height")}function eb(tt){return ev({x:ea(tt,"x1"),y:ea(tt,"y1")},{x:ea(tt,"x2"),y:ea(tt,"y2")})}function ey(tt){for(var tr,ti=tt.points,ta=0,ts=0;ts<ti.numberOfItems;ts++){var tu=ti.getItem(ts);ts>0&&(ta+=ev(tr,tu)),tr=tu}return ta}function e_(tt){var tr=tt.points;return ey(tt)+ev(tr.getItem(tr.numberOfItems-1),tr.getItem(0))}function ew(tt){if(tt.getTotalLength)return tt.getTotalLength();switch(tt.tagName.toLowerCase()){case"circle":return em(tt);case"rect":return eg(tt);case"line":return eb(tt);case"polyline":return ey(tt);case"polygon":return e_(tt)}}function eE(tt){var tr=ew(tt);return tt.setAttribute("stroke-dasharray",tr),tr}function eA(tt){for(var tr=tt.parentNode;tW.svg(tr)&&tW.svg(tr.parentNode);)tr=tr.parentNode;return tr}function ex(tt,tr){var ti=tr||{},ta=ti.el||eA(tt),ts=ta.getBoundingClientRect(),tu=ea(ta,"viewBox"),tc=ts.width,td=ts.height,tp=ti.viewBox||(tu?tu.split(" "):[0,0,tc,td]);return{el:ta,viewBox:tp,x:tp[0]/1,y:tp[1]/1,w:tc,h:td,vW:tp[2],vH:tp[3]}}function eS(tt,tr){var ti=tW.str(tt)?t$(tt)[0]:tt,ta=tr||100;return function(tt){return{property:tt,el:ti,svg:ex(ti),totalLength:ew(ti)*(ta/100)}}}function eT(tt,tr,ti){function ta(ti){void 0===ti&&(ti=0);var ta=tr+ti>=1?tr+ti:0;return tt.el.getPointAtLength(ta)}var ts=ex(tt.el,tt.svg),tu=ta(),tc=ta(-1),td=ta(1),tp=ti?1:ts.w/ts.vW,tv=ti?1:ts.h/ts.vH;switch(tt.property){case"x":return(tu.x-ts.x)*tp;case"y":return(tu.y-ts.y)*tv;case"angle":return 180*Math.atan2(td.y-tc.y,td.x-tc.x)/Math.PI}}function eM(tt,tr){var ti=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,ta=ep(tW.pth(tt)?tt.totalLength:tt,tr)+"";return{original:ta,numbers:ta.match(ti)?ta.match(ti).map(Number):[0],strings:tW.str(tt)||tr?ta.split(ti):[]}}function eR(tt){return t0(tt?t1(tW.arr(tt)?tt.map(t2):t2(tt)):[],function(tt,tr,ti){return ti.indexOf(tt)===tr})}function eI(tt){var tr=eR(tt);return tr.map(function(tt,ti){return{target:tt,id:ti,total:tr.length,transforms:{list:eh(tt)}}})}function ek(tt,tr){var ti=t6(tr);if(/^spring/.test(ti.easing)&&(ti.duration=tX(ti.easing)),tW.arr(tt)){var ta=tt.length;2!==ta||tW.obj(tt[0])?tW.fnc(tr.duration)||(ti.duration=tr.duration/ta):tt={value:tt}}var ts=tW.arr(tt)?tt:[tt];return ts.map(function(tt,ti){var ta=tW.obj(tt)&&!tW.pth(tt)?tt:{value:tt};return tW.und(ta.delay)&&(ta.delay=ti?0:tr.delay),tW.und(ta.endDelay)&&(ta.endDelay=ti===ts.length-1?tr.endDelay:0),ta}).map(function(tt){return t8(tt,ti)})}function eP(tt){for(var tr=t0(t1(tt.map(function(tt){return Object.keys(tt)})),function(tt){return tW.key(tt)}).reduce(function(tt,tr){return 0>tt.indexOf(tr)&&tt.push(tr),tt},[]),ti={},ta=function(ta){var ts=tr[ta];ti[ts]=tt.map(function(tt){var tr={};for(var ti in tt)tW.key(ti)?ti==ts&&(tr.value=tt[ti]):tr[ti]=tt[ti];return tr})},ts=0;ts<tr.length;ts++)ta(ts);return ti}function eC(tt,tr){var ti=[],ta=tr.keyframes;for(var ts in ta&&(tr=t8(eP(ta),tr)),tr)tW.key(ts)&&ti.push({name:ts,tweens:ek(tr[ts],tt)});return ti}function eO(tt,tr){var ti={};for(var ta in tt){var ts=ei(tt[ta],tr);tW.arr(ts)&&1===(ts=ts.map(function(tt){return ei(tt,tr)})).length&&(ts=ts[0]),ti[ta]=ts}return ti.duration=parseFloat(ti.duration),ti.delay=parseFloat(ti.delay),ti}function eN(tt,tr){var ti;return tt.tweens.map(function(ta){var ts=eO(ta,tr),tu=ts.value,tc=tW.arr(tu)?tu[1]:tu,td=er(tc),tp=ef(tr.target,tt.name,td,tr),tv=ti?ti.to.original:tp,tg=tW.arr(tu)?tu[0]:tv,tb=er(tg)||er(tp),t_=td||tb;return tW.und(tc)&&(tc=tv),ts.from=eM(tg,t_),ts.to=eM(ed(tc,tg),t_),ts.start=ti?ti.end:0,ts.end=ts.start+ts.delay+ts.duration+ts.endDelay,ts.easing=tJ(ts.easing,ts.duration),ts.isPath=tW.pth(tu),ts.isPathTargetInsideSVG=ts.isPath&&tW.svg(tr.target),ts.isColor=tW.col(ts.from.original),ts.isColor&&(ts.round=1),ti=ts,ts})}var eB={css:function(tt,tr,ti){return tt.style[tr]=ti},attribute:function(tt,tr,ti){return tt.setAttribute(tr,ti)},object:function(tt,tr,ti){return tt[tr]=ti},transform:function(tt,tr,ti,ta,ts){if(ta.list.set(tr,ti),tr===ta.last||ts){var tu="";ta.list.forEach(function(tt,tr){tu+=tr+"("+tt+") "}),tt.style.transform=tu}}};function eL(tt,tr){eI(tt).forEach(function(tt){for(var ti in tr){var ta=ei(tr[ti],tt),ts=tt.target,tu=er(ta),tc=ef(ts,ti,tu,tt),td=tu||er(tc),tp=ed(ep(ta,td),tc);eB[eu(ts,ti)](ts,ti,tp,tt.transforms,!0)}})}function eU(tt,tr){var ti=eu(tt.target,tr.name);if(ti){var ta=eN(tr,tt),ts=ta[ta.length-1];return{type:ti,property:tr.name,animatable:tt,tweens:ta,duration:ts.end,delay:ta[0].delay,endDelay:ts.endDelay}}}function eD(tt,tr){return t0(t1(tt.map(function(tt){return tr.map(function(tr){return eU(tt,tr)})})),function(tt){return!tW.und(tt)})}function ej(tt,tr){var ti=tt.length,ta=function(tt){return tt.timelineOffset?tt.timelineOffset:0},ts={};return ts.duration=ti?Math.max.apply(Math,tt.map(function(tt){return ta(tt)+tt.duration})):tr.duration,ts.delay=ti?Math.min.apply(Math,tt.map(function(tt){return ta(tt)+tt.delay})):tr.delay,ts.endDelay=ti?ts.duration-Math.max.apply(Math,tt.map(function(tt){return ta(tt)+tt.duration-tt.endDelay})):tr.endDelay,ts}var eF=0;function eG(tt){var tr=t4(tj,tt),ti=t4(tF,tt),ta=eC(ti,tt),ts=eI(tt.targets),tu=eD(ts,ta),tc=ej(tu,ti),td=eF;return eF++,t8(tr,{id:td,children:[],animatables:ts,animations:tu,duration:tc.duration,delay:tc.delay,endDelay:tc.endDelay})}var eH=[],eV=function(){var tt;function tr(){tt||ez()&&eW.suspendWhenDocumentHidden||!(eH.length>0)||(tt=requestAnimationFrame(ti))}function ti(tr){for(var ta=eH.length,ts=0;ts<ta;){var tu=eH[ts];tu.paused?(eH.splice(ts,1),ta--):(tu.tick(tr),ts++)}tt=ts>0?requestAnimationFrame(ti):void 0}function ta(){eW.suspendWhenDocumentHidden&&(ez()?tt=cancelAnimationFrame(tt):(eH.forEach(function(tt){return tt._onDocumentVisibility()}),eV()))}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",ta),tr}();function ez(){return!!document&&document.hidden}function eW(tt){void 0===tt&&(tt={});var tr,ti=0,ta=0,ts=0,tu=0,tc=null;function td(tt){var tr=window.Promise&&new Promise(function(tt){return tc=tt});return tt.finished=tr,tr}var tp=eG(tt),tv=td(tp);function tg(){var tt=tp.direction;"alternate"!==tt&&(tp.direction="normal"!==tt?"normal":"reverse"),tp.reversed=!tp.reversed,tr.forEach(function(tt){return tt.reversed=tp.reversed})}function tb(tt){return tp.reversed?tp.duration-tt:tt}function t_(){ti=0,ta=tb(tp.currentTime)*(1/eW.speed)}function tE(tt,tr){tr&&tr.seek(tt-tr.timelineOffset)}function tA(tt){if(tp.reversePlayback)for(var ti=tu;ti--;)tE(tt,tr[ti]);else for(var ta=0;ta<tu;ta++)tE(tt,tr[ta])}function tS(tt){for(var tr=0,ti=tp.animations,ta=ti.length;tr<ta;){var ts=ti[tr],tu=ts.animatable,tc=ts.tweens,td=tc.length-1,tv=tc[td];td&&(tv=t0(tc,function(tr){return tt<tr.end})[0]||tv);for(var tg=tV(tt-tv.start-tv.delay,0,tv.duration)/tv.duration,tb=isNaN(tg)?1:tv.easing(tg),t_=tv.to.strings,tE=tv.round,tA=[],tS=tv.to.numbers.length,tT=void 0,tM=0;tM<tS;tM++){var tR=void 0,tI=tv.to.numbers[tM],tk=tv.from.numbers[tM]||0;tR=tv.isPath?eT(tv.value,tb*tI,tv.isPathTargetInsideSVG):tk+tb*(tI-tk),tE&&!(tv.isColor&&tM>2)&&(tR=Math.round(tR*tE)/tE),tA.push(tR)}var tP=t_.length;if(tP){tT=t_[0];for(var tC=0;tC<tP;tC++){t_[tC];var tO=t_[tC+1],tN=tA[tC];isNaN(tN)||(tO?tT+=tN+tO:tT+=tN+" ")}}else tT=tA[0];eB[ts.type](tu.target,ts.property,tT,tu.transforms),ts.currentValue=tT,tr++}}function tT(tt){tp[tt]&&!tp.passThrough&&tp[tt](tp)}function tM(){tp.remaining&&!0!==tp.remaining&&tp.remaining--}function tR(tt){var tu=tp.duration,t_=tp.delay,tE=tu-tp.endDelay,tR=tb(tt);tp.progress=tV(tR/tu*100,0,100),tp.reversePlayback=tR<tp.currentTime,tr&&tA(tR),!tp.began&&tp.currentTime>0&&(tp.began=!0,tT("begin")),!tp.loopBegan&&tp.currentTime>0&&(tp.loopBegan=!0,tT("loopBegin")),tR<=t_&&0!==tp.currentTime&&tS(0),(tR>=tE&&tp.currentTime!==tu||!tu)&&tS(tu),tR>t_&&tR<tE?(tp.changeBegan||(tp.changeBegan=!0,tp.changeCompleted=!1,tT("changeBegin")),tT("change"),tS(tR)):tp.changeBegan&&(tp.changeCompleted=!0,tp.changeBegan=!1,tT("changeComplete")),tp.currentTime=tV(tR,0,tu),tp.began&&tT("update"),tt>=tu&&(ta=0,tM(),tp.remaining?(ti=ts,tT("loopComplete"),tp.loopBegan=!1,"alternate"===tp.direction&&tg()):(tp.paused=!0,!tp.completed&&(tp.completed=!0,tT("loopComplete"),tT("complete"),!tp.passThrough&&"Promise"in window&&(tc(),tv=td(tp)))))}return tp.reset=function(){var tt=tp.direction;tp.passThrough=!1,tp.currentTime=0,tp.progress=0,tp.paused=!0,tp.began=!1,tp.loopBegan=!1,tp.changeBegan=!1,tp.completed=!1,tp.changeCompleted=!1,tp.reversePlayback=!1,tp.reversed="reverse"===tt,tp.remaining=tp.loop,tu=(tr=tp.children).length;for(var ti=tu;ti--;)tp.children[ti].reset();(tp.reversed&&!0!==tp.loop||"alternate"===tt&&1===tp.loop)&&tp.remaining++,tS(tp.reversed?tp.duration:0)},tp._onDocumentVisibility=t_,tp.set=function(tt,tr){return eL(tt,tr),tp},tp.tick=function(tt){ts=tt,ti||(ti=ts),tR((ts+(ta-ti))*eW.speed)},tp.seek=function(tt){tR(tb(tt))},tp.pause=function(){tp.paused=!0,t_()},tp.play=function(){tp.paused&&(tp.completed&&tp.reset(),tp.paused=!1,eH.push(tp),t_(),eV())},tp.reverse=function(){tg(),tp.completed=!tp.reversed,t_()},tp.restart=function(){tp.reset(),tp.play()},tp.remove=function(tt){eX(eR(tt),tp)},tp.reset(),tp.autoplay&&tp.play(),tp}function eY(tt,tr){for(var ti=tr.length;ti--;)t3(tt,tr[ti].animatable.target)&&tr.splice(ti,1)}function eX(tt,tr){var ti=tr.animations,ta=tr.children;eY(tt,ti);for(var ts=ta.length;ts--;){var tu=ta[ts],tc=tu.animations;eY(tt,tc),tc.length||tu.children.length||ta.splice(ts,1)}ti.length||ta.length||tr.pause()}function eK(tt){for(var tr=eR(tt),ti=eH.length;ti--;)eX(tr,eH[ti])}function eZ(tt,tr){void 0===tr&&(tr={});var ti=tr.direction||"normal",ta=tr.easing?tJ(tr.easing):null,ts=tr.grid,tu=tr.axis,tc=tr.from||0,td="first"===tc,tp="center"===tc,tv="last"===tc,tg=tW.arr(tt),tb=tg?parseFloat(tt[0]):parseFloat(tt),t_=tg?parseFloat(tt[1]):0,tE=er(tg?tt[1]:tt)||0,tA=tr.start||0+(tg?tb:0),tS=[],tT=0;return function(tt,tr,tM){if(td&&(tc=0),tp&&(tc=(tM-1)/2),tv&&(tc=tM-1),!tS.length){for(var tR=0;tR<tM;tR++){if(ts){var tI=tp?(ts[0]-1)/2:tc%ts[0],tk=tp?(ts[1]-1)/2:Math.floor(tc/ts[0]),tP=tR%ts[0],tC=Math.floor(tR/ts[0]),tO=tI-tP,tN=tk-tC,tB=Math.sqrt(tO*tO+tN*tN);"x"===tu&&(tB=-tO),"y"===tu&&(tB=-tN),tS.push(tB)}else tS.push(Math.abs(tc-tR));tT=Math.max.apply(Math,tS)}ta&&(tS=tS.map(function(tt){return ta(tt/tT)*tT})),"reverse"===ti&&(tS=tS.map(function(tt){return tu?tt<0?-1*tt:-tt:Math.abs(tT-tt)}))}return tA+(tg?(t_-tb)/tT:tb)*(Math.round(100*tS[tr])/100)+tE}}function eQ(tt){void 0===tt&&(tt={});var tr=eW(tt);return tr.duration=0,tr.add=function(ti,ta){var ts=eH.indexOf(tr),tu=tr.children;function tc(tt){tt.passThrough=!0}ts>-1&&eH.splice(ts,1);for(var td=0;td<tu.length;td++)tc(tu[td]);var tp=t8(ti,t4(tF,tt));tp.targets=tp.targets||tt.targets;var tv=tr.duration;tp.autoplay=!1,tp.direction=tr.direction,tp.timelineOffset=tW.und(ta)?tv:ed(ta,tv),tc(tr),tr.seek(tp.timelineOffset);var tg=eW(tp);tc(tg),tu.push(tg);var tb=ej(tu,tt);return tr.delay=tb.delay,tr.endDelay=tb.endDelay,tr.duration=tb.duration,tr.seek(0),tr.reset(),tr.autoplay&&tr.play(),tr},tr}eW.version="3.2.1",eW.speed=1,eW.suspendWhenDocumentHidden=!0,eW.running=eH,eW.remove=eK,eW.get=ef,eW.set=eL,eW.convertPx=eo,eW.path=eS,eW.setDashoffset=eE,eW.stagger=eZ,eW.timeline=eQ,eW.easing=tJ,eW.penner=tQ,eW.random=function(tt,tr){return Math.floor(Math.random()*(tr-tt+1))+tt};var eJ=eW,e$={ADAPTER:{createCanvas:(tt,tr)=>{var ti=document.createElement("canvas");return ti.width=tt,ti.height=tr,ti},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>null!==(ui=document.baseURI)&&void 0!==ui?ui:window.location.href,getFontFaceSet:()=>document.fonts,fetch:(tt,tr)=>fetch(tt,tr),parseXML:tt=>new DOMParser().parseFromString(tt,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},e0=/iPhone/i,e1=/iPod/i,e2=/iPad/i,e3=/\biOS-universal(?:.+)Mac\b/i,e6=/\bAndroid(?:.+)Mobile\b/i,e4=/Android/i,e8=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,e5=/Silk/i,e7=/Windows Phone/i,e9=/\bWindows(?:.+)ARM\b/i,rr=/BlackBerry/i,rn=/BB10/i,ri=/Opera Mini/i,ra=/\b(CriOS|Chrome)(?:.+)Mobile/i,ro=/Mobile(?:.+)Firefox\b/i,rs=function(tt){return void 0!==tt&&"MacIntel"===tt.platform&&"number"==typeof tt.maxTouchPoints&&tt.maxTouchPoints>1&&"undefined"==typeof MSStream};function ru(tt){return function(tr){return tr.test(tt)}}function rh(tt){var tr={userAgent:"",platform:"",maxTouchPoints:0};tt||"undefined"==typeof navigator?"string"==typeof tt?tr.userAgent=tt:tt&&tt.userAgent&&(tr={userAgent:tt.userAgent,platform:tt.platform,maxTouchPoints:tt.maxTouchPoints||0}):tr={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var ti=tr.userAgent,ta=ti.split("[FBAN");void 0!==ta[1]&&(ti=ta[0]),void 0!==(ta=ti.split("Twitter"))[1]&&(ti=ta[0]);var ts=ru(ti),tu={apple:{phone:ts(e0)&&!ts(e7),ipod:ts(e1),tablet:!ts(e0)&&(ts(e2)||rs(tr))&&!ts(e7),universal:ts(e3),device:(ts(e0)||ts(e1)||ts(e2)||ts(e3)||rs(tr))&&!ts(e7)},amazon:{phone:ts(e8),tablet:!ts(e8)&&ts(e5),device:ts(e8)||ts(e5)},android:{phone:!ts(e7)&&ts(e8)||!ts(e7)&&ts(e6),tablet:!ts(e7)&&!ts(e8)&&!ts(e6)&&(ts(e5)||ts(e4)),device:!ts(e7)&&(ts(e8)||ts(e5)||ts(e6)||ts(e4))||ts(/\bokhttp\b/i)},windows:{phone:ts(e7),tablet:ts(e9),device:ts(e7)||ts(e9)},other:{blackberry:ts(rr),blackberry10:ts(rn),opera:ts(ri),firefox:ts(ro),chrome:ts(ra),device:ts(rr)||ts(rn)||ts(ri)||ts(ro)||ts(ra)},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 rc=(null!==(ua=rh.default)&&void 0!==ua?ua:rh)(globalThis.navigator);e$.RETINA_PREFIX=/@([0-9\.]+)x/,e$.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var rf=ti(21420);ti(66749),ti(94453);var rl={};function rd(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!rl[tr]){var ta=Error().stack;typeof ta>"u"?console.warn("PixiJS Deprecation Warning: ","".concat(tr,"\nDeprecated since v").concat(tt)):(ta=ta.split("\n").splice(ti).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6","".concat(tr,"\nDeprecated since v").concat(tt)),console.warn(ta),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ","".concat(tr,"\nDeprecated since v").concat(tt)),console.warn(ta))),rl[tr]=!0}}function rp(tt){if("string"!=typeof tt)throw TypeError("Path must be a string. Received ".concat(JSON.stringify(tt)))}function rv(tt){return tt.split("?")[0].split("#")[0]}function rm(tt){return tt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function rg(tt,tr,ti){return tt.replace(RegExp(rm(tr),"g"),ti)}function ry(tt,tr){for(var ti="",ta=0,ts=-1,tu=0,tc=-1,td=0;td<=tt.length;++td){if(td<tt.length)tc=tt.charCodeAt(td);else{if(47===tc)break;tc=47}if(47===tc){if(!(ts===td-1||1===tu)){if(ts!==td-1&&2===tu){if(ti.length<2||2!==ta||46!==ti.charCodeAt(ti.length-1)||46!==ti.charCodeAt(ti.length-2)){if(ti.length>2){var tp=ti.lastIndexOf("/");if(tp!==ti.length-1){-1===tp?(ti="",ta=0):ta=(ti=ti.slice(0,tp)).length-1-ti.lastIndexOf("/"),ts=td,tu=0;continue}}else if(2===ti.length||1===ti.length){ti="",ta=0,ts=td,tu=0;continue}}tr&&(ti.length>0?ti+="/..":ti="..",ta=2)}else ti.length>0?ti+="/".concat(tt.slice(ts+1,td)):ti=tt.slice(ts+1,td),ta=td-ts-1}ts=td,tu=0}else 46===tc&&-1!==tu?++tu:tu=-1}return ti}var r_={toPosix:tt=>rg(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){rp(tt),tt=this.toPosix(tt);var tr=/^file:\/\/\//.exec(tt);if(tr)return tr[0];var ti=/^[^/:]+:\/{0,2}/.exec(tt);return ti?ti[0]:""},toAbsolute(tt,tr,ti){if(rp(tt),this.isDataUrl(tt)||this.isBlobUrl(tt))return tt;var ta=rv(this.toPosix(null!=tr?tr:e$.ADAPTER.getBaseUrl())),ts=rv(this.toPosix(null!=ti?ti:this.rootname(ta)));return(tt=this.toPosix(tt)).startsWith("/")?r_.join(ts,tt.slice(1)):this.isAbsolute(tt)?tt:this.join(ta,tt)},normalize(tt){if(rp(tt),0===tt.length)return".";if(this.isDataUrl(tt)||this.isBlobUrl(tt))return tt;tt=this.toPosix(tt);var tr="",ti=tt.startsWith("/");this.hasProtocol(tt)&&(tr=this.rootname(tt),tt=tt.slice(tr.length));var ta=tt.endsWith("/");return(tt=ry(tt,!1)).length>0&&ta&&(tt+="/"),ti?"/".concat(tt):tr+tt},isAbsolute(tt){return rp(tt),tt=this.toPosix(tt),!!this.hasProtocol(tt)||tt.startsWith("/")},join(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];if(0===tr.length)return".";for(var ta=0;ta<tr.length;++ta){var ts=tr[ta];if(rp(ts),ts.length>0){if(void 0===tu)tu=ts;else{var tu,tc,td=null!==(tc=tr[ta-1])&&void 0!==tc?tc:"";this.extname(td)?tu+="/../".concat(ts):tu+="/".concat(ts)}}}return void 0===tu?".":this.normalize(tu)},dirname(tt){if(rp(tt),0===tt.length)return".";var tr=(tt=this.toPosix(tt)).charCodeAt(0),ti=47===tr,ta=-1,ts=!0,tu=this.getProtocol(tt),tc=tt;tt=tt.slice(tu.length);for(var td=tt.length-1;td>=1;--td)if(47===(tr=tt.charCodeAt(td))){if(!ts){ta=td;break}}else ts=!1;return -1===ta?ti?"/":this.isUrl(tc)?tu+tt:tu:ti&&1===ta?"//":tu+tt.slice(0,ta)},rootname(tt){rp(tt);var tr="";if(tr=(tt=this.toPosix(tt)).startsWith("/")?"/":this.getProtocol(tt),this.isUrl(tt)){var ti=tt.indexOf("/",tr.length);(tr=-1!==ti?tt.slice(0,ti):tt).endsWith("/")||(tr+="/")}return tr},basename(tt,tr){rp(tt),tr&&rp(tr),tt=rv(this.toPosix(tt));var ti,ta=0,ts=-1,tu=!0;if(void 0!==tr&&tr.length>0&&tr.length<=tt.length){if(tr.length===tt.length&&tr===tt)return"";var tc=tr.length-1,td=-1;for(ti=tt.length-1;ti>=0;--ti){var tp=tt.charCodeAt(ti);if(47===tp){if(!tu){ta=ti+1;break}}else -1===td&&(tu=!1,td=ti+1),tc>=0&&(tp===tr.charCodeAt(tc)?-1==--tc&&(ts=ti):(tc=-1,ts=td))}return ta===ts?ts=td:-1===ts&&(ts=tt.length),tt.slice(ta,ts)}for(ti=tt.length-1;ti>=0;--ti)if(47===tt.charCodeAt(ti)){if(!tu){ta=ti+1;break}}else -1===ts&&(tu=!1,ts=ti+1);return -1===ts?"":tt.slice(ta,ts)},extname(tt){rp(tt),tt=rv(this.toPosix(tt));for(var tr=-1,ti=0,ta=-1,ts=!0,tu=0,tc=tt.length-1;tc>=0;--tc){var td=tt.charCodeAt(tc);if(47===td){if(!ts){ti=tc+1;break}continue}-1===ta&&(ts=!1,ta=tc+1),46===td?-1===tr?tr=tc:1!==tu&&(tu=1):-1!==tr&&(tu=-1)}return -1===tr||-1===ta||0===tu||1===tu&&tr===ta-1&&tr===ti+1?"":tt.slice(tr,ta)},parse(tt){rp(tt);var tr,ti={root:"",dir:"",base:"",ext:"",name:""};if(0===tt.length)return ti;var ta=(tt=rv(this.toPosix(tt))).charCodeAt(0),ts=this.isAbsolute(tt),tu="";ti.root=this.rootname(tt),tr=ts||this.hasProtocol(tt)?1:0;for(var tc=-1,td=0,tp=-1,tv=!0,tg=tt.length-1,tb=0;tg>=tr;--tg){if(47===(ta=tt.charCodeAt(tg))){if(!tv){td=tg+1;break}continue}-1===tp&&(tv=!1,tp=tg+1),46===ta?-1===tc?tc=tg:1!==tb&&(tb=1):-1!==tc&&(tb=-1)}return -1===tc||-1===tp||0===tb||1===tb&&tc===tp-1&&tc===td+1?-1!==tp&&(0===td&&ts?ti.base=ti.name=tt.slice(1,tp):ti.base=ti.name=tt.slice(td,tp)):(0===td&&ts?(ti.name=tt.slice(1,tc),ti.base=tt.slice(1,tp)):(ti.name=tt.slice(td,tc),ti.base=tt.slice(td,tp)),ti.ext=tt.slice(tc,tp)),ti.dir=this.dirname(tt),tu&&(ti.dir=tu+ti.dir),ti},sep:"/",delimiter:":"},rw=((sV=rw||{})[sV.WEBGL_LEGACY=0]="WEBGL_LEGACY",sV[sV.WEBGL=1]="WEBGL",sV[sV.WEBGL2=2]="WEBGL2",sV),rE=((sz=rE||{})[sz.UNKNOWN=0]="UNKNOWN",sz[sz.WEBGL=1]="WEBGL",sz[sz.CANVAS=2]="CANVAS",sz),rA=((sq=rA||{})[sq.COLOR=16384]="COLOR",sq[sq.DEPTH=256]="DEPTH",sq[sq.STENCIL=1024]="STENCIL",sq),rx=((sW=rx||{})[sW.NORMAL=0]="NORMAL",sW[sW.ADD=1]="ADD",sW[sW.MULTIPLY=2]="MULTIPLY",sW[sW.SCREEN=3]="SCREEN",sW[sW.OVERLAY=4]="OVERLAY",sW[sW.DARKEN=5]="DARKEN",sW[sW.LIGHTEN=6]="LIGHTEN",sW[sW.COLOR_DODGE=7]="COLOR_DODGE",sW[sW.COLOR_BURN=8]="COLOR_BURN",sW[sW.HARD_LIGHT=9]="HARD_LIGHT",sW[sW.SOFT_LIGHT=10]="SOFT_LIGHT",sW[sW.DIFFERENCE=11]="DIFFERENCE",sW[sW.EXCLUSION=12]="EXCLUSION",sW[sW.HUE=13]="HUE",sW[sW.SATURATION=14]="SATURATION",sW[sW.COLOR=15]="COLOR",sW[sW.LUMINOSITY=16]="LUMINOSITY",sW[sW.NORMAL_NPM=17]="NORMAL_NPM",sW[sW.ADD_NPM=18]="ADD_NPM",sW[sW.SCREEN_NPM=19]="SCREEN_NPM",sW[sW.NONE=20]="NONE",sW[sW.SRC_OVER=0]="SRC_OVER",sW[sW.SRC_IN=21]="SRC_IN",sW[sW.SRC_OUT=22]="SRC_OUT",sW[sW.SRC_ATOP=23]="SRC_ATOP",sW[sW.DST_OVER=24]="DST_OVER",sW[sW.DST_IN=25]="DST_IN",sW[sW.DST_OUT=26]="DST_OUT",sW[sW.DST_ATOP=27]="DST_ATOP",sW[sW.ERASE=26]="ERASE",sW[sW.SUBTRACT=28]="SUBTRACT",sW[sW.XOR=29]="XOR",sW),rS=((sY=rS||{})[sY.POINTS=0]="POINTS",sY[sY.LINES=1]="LINES",sY[sY.LINE_LOOP=2]="LINE_LOOP",sY[sY.LINE_STRIP=3]="LINE_STRIP",sY[sY.TRIANGLES=4]="TRIANGLES",sY[sY.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",sY[sY.TRIANGLE_FAN=6]="TRIANGLE_FAN",sY),rT=((sX=rT||{})[sX.RGBA=6408]="RGBA",sX[sX.RGB=6407]="RGB",sX[sX.RG=33319]="RG",sX[sX.RED=6403]="RED",sX[sX.RGBA_INTEGER=36249]="RGBA_INTEGER",sX[sX.RGB_INTEGER=36248]="RGB_INTEGER",sX[sX.RG_INTEGER=33320]="RG_INTEGER",sX[sX.RED_INTEGER=36244]="RED_INTEGER",sX[sX.ALPHA=6406]="ALPHA",sX[sX.LUMINANCE=6409]="LUMINANCE",sX[sX.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",sX[sX.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",sX[sX.DEPTH_STENCIL=34041]="DEPTH_STENCIL",sX),rM=((sK=rM||{})[sK.TEXTURE_2D=3553]="TEXTURE_2D",sK[sK.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",sK[sK.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",sK[sK.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",sK[sK.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",sK[sK.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",sK[sK.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",sK[sK.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",sK[sK.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",sK),rR=((sZ=rR||{})[sZ.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",sZ[sZ.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",sZ[sZ.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",sZ[sZ.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",sZ[sZ.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",sZ[sZ.UNSIGNED_INT=5125]="UNSIGNED_INT",sZ[sZ.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",sZ[sZ.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",sZ[sZ.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",sZ[sZ.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",sZ[sZ.BYTE=5120]="BYTE",sZ[sZ.SHORT=5122]="SHORT",sZ[sZ.INT=5124]="INT",sZ[sZ.FLOAT=5126]="FLOAT",sZ[sZ.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",sZ[sZ.HALF_FLOAT=36193]="HALF_FLOAT",sZ),rI=((sQ=rI||{})[sQ.FLOAT=0]="FLOAT",sQ[sQ.INT=1]="INT",sQ[sQ.UINT=2]="UINT",sQ),rk=((sJ=rk||{})[sJ.NEAREST=0]="NEAREST",sJ[sJ.LINEAR=1]="LINEAR",sJ),rP=((s$=rP||{})[s$.CLAMP=33071]="CLAMP",s$[s$.REPEAT=10497]="REPEAT",s$[s$.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",s$),rC=((s0=rC||{})[s0.OFF=0]="OFF",s0[s0.POW2=1]="POW2",s0[s0.ON=2]="ON",s0[s0.ON_MANUAL=3]="ON_MANUAL",s0),rO=((s1=rO||{})[s1.NPM=0]="NPM",s1[s1.UNPACK=1]="UNPACK",s1[s1.PMA=2]="PMA",s1[s1.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",s1[s1.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",s1[s1.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",s1),rN=((s2=rN||{})[s2.NO=0]="NO",s2[s2.YES=1]="YES",s2[s2.AUTO=2]="AUTO",s2[s2.BLEND=0]="BLEND",s2[s2.CLEAR=1]="CLEAR",s2[s2.BLIT=2]="BLIT",s2),rB=((s3=rB||{})[s3.AUTO=0]="AUTO",s3[s3.MANUAL=1]="MANUAL",s3),rL=((s6=rL||{}).LOW="lowp",s6.MEDIUM="mediump",s6.HIGH="highp",s6),rU=((s4=rU||{})[s4.NONE=0]="NONE",s4[s4.SCISSOR=1]="SCISSOR",s4[s4.STENCIL=2]="STENCIL",s4[s4.SPRITE=3]="SPRITE",s4[s4.COLOR=4]="COLOR",s4),rD=((s8=rD||{})[s8.RED=1]="RED",s8[s8.GREEN=2]="GREEN",s8[s8.BLUE=4]="BLUE",s8[s8.ALPHA=8]="ALPHA",s8),rj=((s5=rj||{})[s5.NONE=0]="NONE",s5[s5.LOW=2]="LOW",s5[s5.MEDIUM=4]="MEDIUM",s5[s5.HIGH=8]="HIGH",s5),rF=((s7=rF||{})[s7.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",s7[s7.ARRAY_BUFFER=34962]="ARRAY_BUFFER",s7[s7.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",s7);function rG(){return rH.apply(this,arguments)}function rH(){return(rH=(0,tU._)(function*(){return null!=uo||(uo=(0,tU._)(function*(){var tt,tr=document.createElement("canvas").getContext("webgl");if(!tr)return rO.UNPACK;var ti=yield new Promise(tt=>{var tr=document.createElement("video");tr.onloadeddata=()=>tt(tr),tr.onerror=()=>tt(null),tr.autoplay=!1,tr.crossOrigin="anonymous",tr.preload="auto",tr.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",tr.load()});if(!ti)return rO.UNPACK;var ta=tr.createTexture();tr.bindTexture(tr.TEXTURE_2D,ta);var ts=tr.createFramebuffer();tr.bindFramebuffer(tr.FRAMEBUFFER,ts),tr.framebufferTexture2D(tr.FRAMEBUFFER,tr.COLOR_ATTACHMENT0,tr.TEXTURE_2D,ta,0),tr.pixelStorei(tr.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),tr.pixelStorei(tr.UNPACK_COLORSPACE_CONVERSION_WEBGL,tr.NONE),tr.texImage2D(tr.TEXTURE_2D,0,tr.RGBA,tr.RGBA,tr.UNSIGNED_BYTE,ti);var tu=new Uint8Array(4);return tr.readPixels(0,0,1,1,tr.RGBA,tr.UNSIGNED_BYTE,tu),tr.deleteFramebuffer(ts),tr.deleteTexture(ta),null===(tt=tr.getExtension("WEBGL_lose_context"))||void 0===tt||tt.loseContext(),tu[0]<=tu[3]?rO.PMA:rO.UNPACK})()),uo})).apply(this,arguments)}function rV(){return typeof us>"u"&&(us=function(){var tt={stencil:!0,failIfMajorPerformanceCaveat:e$.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!e$.ADAPTER.getWebGLRenderingContext())return!1;var tr,ti=e$.ADAPTER.createCanvas(),ta=ti.getContext("webgl",tt)||ti.getContext("experimental-webgl",tt),ts=!!(null===(tr=null==ta?void 0:ta.getContextAttributes())||void 0===tr?void 0:tr.stencil);if(ta){var tu=ta.getExtension("WEBGL_lose_context");tu&&tu.loseContext()}return ta=null,ts}catch(tt){return!1}}()),us}var rz={grad:.9,turn:360,rad:360/(2*Math.PI)},rq=function(tt){return"string"==typeof tt?tt.length>0:"number"==typeof tt},rW=function(tt,tr,ti){return void 0===tr&&(tr=0),void 0===ti&&(ti=Math.pow(10,tr)),Math.round(ti*tt)/ti+0},rY=function(tt,tr,ti){return void 0===tr&&(tr=0),void 0===ti&&(ti=1),tt>ti?ti:tt>tr?tt:tr},rX=function(tt){return(tt=isFinite(tt)?tt%360:0)>0?tt:tt+360},rK=function(tt){return{r:rY(tt.r,0,255),g:rY(tt.g,0,255),b:rY(tt.b,0,255),a:rY(tt.a)}},rZ=function(tt){return{r:rW(tt.r),g:rW(tt.g),b:rW(tt.b),a:rW(tt.a,3)}},rQ=/^#([0-9a-f]{3,8})$/i,rJ=function(tt){var tr=tt.toString(16);return tr.length<2?"0"+tr:tr},r$=function(tt){var tr=tt.r,ti=tt.g,ta=tt.b,ts=tt.a,tu=Math.max(tr,ti,ta),tc=tu-Math.min(tr,ti,ta),td=tc?tu===tr?(ti-ta)/tc:tu===ti?2+(ta-tr)/tc:4+(tr-ti)/tc:0;return{h:60*(td<0?td+6:td),s:tu?tc/tu*100:0,v:tu/255*100,a:ts}},r0=function(tt){var tr=tt.h,ti=tt.s,ta=tt.v,ts=tt.a;tr=tr/360*6,ti/=100,ta/=100;var tu=Math.floor(tr),tc=ta*(1-ti),td=ta*(1-(tr-tu)*ti),tp=ta*(1-(1-tr+tu)*ti),tv=tu%6;return{r:255*[ta,td,tc,tc,tp,ta][tv],g:255*[tp,ta,ta,td,tc,tc][tv],b:255*[tc,tc,tp,ta,ta,td][tv],a:ts}},r1=function(tt){return{h:rX(tt.h),s:rY(tt.s,0,100),l:rY(tt.l,0,100),a:rY(tt.a)}},r3=function(tt){return{h:rW(tt.h),s:rW(tt.s),l:rW(tt.l),a:rW(tt.a,3)}},r6=function(tt){var tr,ti,ta;return r0((ti=(tr=tt).s,{h:tr.h,s:(ti*=((ta=tr.l)<50?ta:100-ta)/100)>0?2*ti/(ta+ti)*100:0,v:ta+ti,a:tr.a}))},r4=function(tt){var tr,ti,ta,ts;return{h:(tr=r$(tt)).h,s:(ts=(200-(ti=tr.s))*(ta=tr.v)/100)>0&&ts<200?ti*ta/100/(ts<=100?ts:200-ts)*100:0,l:ts/2,a:tr.a}},r8=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r7=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,r9=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nt={string:[[function(tt){var tr=rQ.exec(tt);return tr?(tt=tr[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?rW(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?rW(parseInt(tt.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(tt){var tr=r7.exec(tt)||r9.exec(tt);return tr?tr[2]!==tr[4]||tr[4]!==tr[6]?null:rK({r:Number(tr[1])/(tr[2]?100/255:1),g:Number(tr[3])/(tr[4]?100/255:1),b:Number(tr[5])/(tr[6]?100/255:1),a:void 0===tr[7]?1:Number(tr[7])/(tr[8]?100:1)}):null},"rgb"],[function(tt){var tr,ti,ta=r8.exec(tt)||r5.exec(tt);return ta?r6(r1({h:(tr=ta[1],void 0===(ti=ta[2])&&(ti="deg"),Number(tr)*(rz[ti]||1)),s:Number(ta[3]),l:Number(ta[4]),a:void 0===ta[5]?1:Number(ta[5])/(ta[6]?100:1)})):null},"hsl"]],object:[[function(tt){var tr=tt.r,ti=tt.g,ta=tt.b,ts=tt.a,tu=void 0===ts?1:ts;return rq(tr)&&rq(ti)&&rq(ta)?rK({r:Number(tr),g:Number(ti),b:Number(ta),a:Number(tu)}):null},"rgb"],[function(tt){var tr=tt.h,ti=tt.s,ta=tt.l,ts=tt.a,tu=void 0===ts?1:ts;return rq(tr)&&rq(ti)&&rq(ta)?r6(r1({h:Number(tr),s:Number(ti),l:Number(ta),a:Number(tu)})):null},"hsl"],[function(tt){var tr=tt.h,ti=tt.s,ta=tt.v,ts=tt.a,tu=void 0===ts?1:ts;return rq(tr)&&rq(ti)&&rq(ta)?r0(function(tt){return{h:rX(tt.h),s:rY(tt.s,0,100),v:rY(tt.v,0,100),a:rY(tt.a)}}({h:Number(tr),s:Number(ti),v:Number(ta),a:Number(tu)})):null},"hsv"]]},nr=function(tt,tr){for(var ti=0;ti<tr.length;ti++){var ta=tr[ti][0](tt);if(ta)return[ta,tr[ti][1]]}return[null,void 0]},nn=function(tt){return"string"==typeof tt?nr(tt.trim(),nt.string):"object"==typeof tt&&null!==tt?nr(tt,nt.object):[null,void 0]},ni=function(tt,tr){var ti=r4(tt);return{h:ti.h,s:rY(ti.s+100*tr,0,100),l:ti.l,a:ti.a}},na=function(tt){return(299*tt.r+587*tt.g+114*tt.b)/1e3/255},no=function(tt,tr){var ti=r4(tt);return{h:ti.h,s:ti.s,l:rY(ti.l+100*tr,0,100),a:ti.a}},ns=function(){function tt(tt){this.parsed=nn(tt)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return tt.prototype.isValid=function(){return null!==this.parsed},tt.prototype.brightness=function(){return rW(na(this.rgba),2)},tt.prototype.isDark=function(){return .5>na(this.rgba)},tt.prototype.isLight=function(){return na(this.rgba)>=.5},tt.prototype.toHex=function(){var tt,tr,ti,ta,ts,tu;return tr=(tt=rZ(this.rgba)).r,ti=tt.g,ta=tt.b,tu=(ts=tt.a)<1?rJ(rW(255*ts)):"","#"+rJ(tr)+rJ(ti)+rJ(ta)+tu},tt.prototype.toRgb=function(){return rZ(this.rgba)},tt.prototype.toRgbString=function(){var tt,tr,ti,ta,ts;return tr=(tt=rZ(this.rgba)).r,ti=tt.g,ta=tt.b,(ts=tt.a)<1?"rgba("+tr+", "+ti+", "+ta+", "+ts+")":"rgb("+tr+", "+ti+", "+ta+")"},tt.prototype.toHsl=function(){return r3(r4(this.rgba))},tt.prototype.toHslString=function(){var tt,tr,ti,ta,ts;return tr=(tt=r3(r4(this.rgba))).h,ti=tt.s,ta=tt.l,(ts=tt.a)<1?"hsla("+tr+", "+ti+"%, "+ta+"%, "+ts+")":"hsl("+tr+", "+ti+"%, "+ta+"%)"},tt.prototype.toHsv=function(){var tt;return{h:rW((tt=r$(this.rgba)).h),s:rW(tt.s),v:rW(tt.v),a:rW(tt.a,3)}},tt.prototype.invert=function(){var tt;return nu({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),nu(ni(this.rgba,tt))},tt.prototype.desaturate=function(tt){return void 0===tt&&(tt=.1),nu(ni(this.rgba,-tt))},tt.prototype.grayscale=function(){return nu(ni(this.rgba,-1))},tt.prototype.lighten=function(tt){return void 0===tt&&(tt=.1),nu(no(this.rgba,tt))},tt.prototype.darken=function(tt){return void 0===tt&&(tt=.1),nu(no(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 tr;return"number"==typeof tt?nu({r:(tr=this.rgba).r,g:tr.g,b:tr.b,a:tt}):rW(this.rgba.a,3)},tt.prototype.hue=function(tt){var tr=r4(this.rgba);return"number"==typeof tt?nu({h:tt,s:tr.s,l:tr.l,a:tr.a}):rW(tr.h)},tt.prototype.isEqual=function(tt){return this.toHex()===nu(tt).toHex()},tt}(),nu=function(tt){return tt instanceof ns?tt:new ns(tt)},nh=[];!function(tt){tt.forEach(function(tt){0>nh.indexOf(tt)&&(tt(ns,nt),nh.push(tt))})}([function(tt,tr){var ti={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"},ta={};for(var ts in ti)ta[ti[ts]]=ts;var tu={};tt.prototype.toName=function(tr){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var ts,tc,td=ta[this.toHex()];if(td)return td;if(null==tr?void 0:tr.closest){var tp=this.toRgb(),tv=1/0,tg="black";if(!tu.length)for(var tb in ti)tu[tb]=new tt(ti[tb]).toRgb();for(var t_ in ti){var tE=(ts=tp,tc=tu[t_],Math.pow(ts.r-tc.r,2)+Math.pow(ts.g-tc.g,2)+Math.pow(ts.b-tc.b,2));tE<tv&&(tv=tE,tg=t_)}return tg}},tr.string.push([function(tr){var ta=tr.toLowerCase(),ts="transparent"===ta?"#0000":ti[ta];return ts?new tt(ts).toRgb():null},"name"])}]);var nc=class tt{get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(tt){return this.value=tt,this}set value(tr){if(tr instanceof tt)this._value=this.cloneSource(tr._value),this._int=tr._int,this._components.set(tr._components);else{if(null===tr)throw Error("Cannot set PIXI.Color#value to null");null!==this._value&&this.isSourceEqual(this._value,tr)||(this.normalize(tr),this._value=this.cloneSource(tr))}}get value(){return this._value}cloneSource(tt){return"string"==typeof tt||"number"==typeof tt||tt instanceof Number||null===tt?tt:Array.isArray(tt)||ArrayBuffer.isView(tt)?tt.slice(0):"object"==typeof tt&&null!==tt?(0,tc._)({},tt):tt}isSourceEqual(tt,tr){var ti=typeof tt;if(ti!==typeof tr)return!1;if("number"===ti||"string"===ti||tt instanceof Number)return tt===tr;if(Array.isArray(tt)&&Array.isArray(tr)||ArrayBuffer.isView(tt)&&ArrayBuffer.isView(tr))return tt.length===tr.length&&tt.every((tt,ti)=>tt===tr[ti]);if(null!==tt&&null!==tr){var ta=Object.keys(tt),ts=Object.keys(tr);return ta.length===ts.length&&ta.every(ti=>tt[ti]===tr[ti])}return tt===tr}toRgba(){var[tt,tr,ti,ta]=this._components;return{r:tt,g:tr,b:ti,a:ta}}toRgb(){var[tt,tr,ti]=this._components;return{r:tt,g:tr,b:ti}}toRgbaString(){var[tt,tr,ti]=this.toUint8RgbArray();return"rgba(".concat(tt,",").concat(tr,",").concat(ti,",").concat(this.alpha,")")}toUint8RgbArray(tt){var[tr,ti,ta]=this._components;return(tt=null!=tt?tt:[])[0]=Math.round(255*tr),tt[1]=Math.round(255*ti),tt[2]=Math.round(255*ta),tt}toRgbArray(tt){tt=null!=tt?tt:[];var[tr,ti,ta]=this._components;return tt[0]=tr,tt[1]=ti,tt[2]=ta,tt}toNumber(){return this._int}toLittleEndianNumber(){var tt=this._int;return(tt>>16)+(65280&tt)+((255&tt)<<16)}multiply(tr){var[ti,ta,ts,tu]=tt.temp.setValue(tr)._components;return this._components[0]*=ti,this._components[1]*=ta,this._components[2]*=ts,this._components[3]*=tu,this.refreshInt(),this._value=null,this}premultiply(tt){var tr=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return tr&&(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 tr=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(1===tt)return -16777216+this._int;if(0===tt)return tr?0:this._int;var ti=this._int>>16&255,ta=this._int>>8&255,ts=255&this._int;return tr&&(ti=ti*tt+.5|0,ta=ta*tt+.5|0,ts=ts*tt+.5|0),(255*tt<<24)+(ti<<16)+(ta<<8)+ts}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[tr,ti,ta]=this._components;return this._components[0]=Math.round(tr*tt)/tt,this._components[1]=Math.round(ti*tt)/tt,this._components[2]=Math.round(ta*tt)/tt,this.refreshInt(),this._value=null,this}toArray(tt){tt=null!=tt?tt:[];var[tr,ti,ta,ts]=this._components;return tt[0]=tr,tt[1]=ti,tt[2]=ta,tt[3]=ts,tt}normalize(tr){var ti,ta,ts,tu;if(("number"==typeof tr||tr instanceof Number)&&tr>=0&&tr<=16777215){var tc=tr;ti=(tc>>16&255)/255,ta=(tc>>8&255)/255,ts=(255&tc)/255,tu=1}else if((Array.isArray(tr)||tr instanceof Float32Array)&&tr.length>=3&&tr.length<=4)tr=this._clamp(tr),[ti,ta,ts,tu=1]=tr;else if((tr instanceof Uint8Array||tr instanceof Uint8ClampedArray)&&tr.length>=3&&tr.length<=4)tr=this._clamp(tr,0,255),[ti,ta,ts,tu=255]=tr,ti/=255,ta/=255,ts/=255,tu/=255;else if("string"==typeof tr||"object"==typeof tr){if("string"==typeof tr){var td=tt.HEX_PATTERN.exec(tr);td&&(tr="#".concat(td[2]))}var tp=nu(tr);tp.isValid()&&({r:ti,g:ta,b:ts,a:tu}=tp.rgba,ti/=255,ta/=255,ts/=255)}if(void 0!==ti)this._components[0]=ti,this._components[1]=ta,this._components[2]=ts,this._components[3]=tu,this.refreshInt();else throw Error("Unable to convert color ".concat(tr))}refreshInt(){this._clamp(this._components);var[tt,tr,ti]=this._components;this._int=(255*tt<<16)+(255*tr<<8)+(255*ti|0)}_clamp(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return"number"==typeof tt?Math.min(Math.max(tt,tr),ti):(tt.forEach((ta,ts)=>{tt[ts]=Math.min(Math.max(ta,tr),ti)}),tt)}constructor(tt=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=tt}};nc.shared=new nc,nc.temp=new nc,nc.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;var nf=nc,nl=function(){for(var tt=[],tr=[],ti=0;ti<32;ti++)tt[ti]=ti,tr[ti]=ti;tt[rx.NORMAL_NPM]=rx.NORMAL,tt[rx.ADD_NPM]=rx.ADD,tt[rx.SCREEN_NPM]=rx.SCREEN,tr[rx.NORMAL]=rx.NORMAL_NPM,tr[rx.ADD]=rx.ADD_NPM,tr[rx.SCREEN]=rx.SCREEN_NPM;var ta=[];return ta.push(tr),ta.push(tt),ta}();function nd(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 np(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 nv(tt){return!(tt&tt-1)&&!!tt}function nm(tt){var tr=(tt>65535?1:0)<<4,ti=((tt>>>=tr)>255?1:0)<<3;return tt>>>=ti,tr|=ti,ti=(tt>15?1:0)<<2,tt>>>=ti,tr|=ti,ti=(tt>3?1:0)<<1,tt>>>=ti,(tr|=ti)|tt>>1}function ng(tt,tr,ti){var ta,ts=tt.length;if(!(tr>=ts)&&0!==ti){ti=tr+ti>ts?ts-tr:ti;var tu=ts-ti;for(ta=tr;ta<tu;++ta)tt[ta]=tt[ta+ti];tt.length=tu}}function n_(tt){return 0===tt?0:tt<0?-1:1}var nw=0;function nE(){return++nw}var nA=class{get width(){return this.right-this.left}get height(){return this.bottom-this.top}isEmpty(){return this.left===this.right||this.top===this.bottom}constructor(tt,tr,ti,ta){this.left=tt,this.top=tr,this.right=ti,this.bottom=ta}};nA.EMPTY=new nA(0,0,0,0);var nS={},nT=Object.create(null),nM=Object.create(null);function nR(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.location;if(tt.startsWith("data:"))return"";tr=tr||globalThis.location;var ti=new URL(tt,document.baseURI);return ti.hostname!==tr.hostname||ti.port!==tr.port||ti.protocol!==tr.protocol?"anonymous":""}function nI(tt){var tr,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,ta=null===(tr=e$.RETINA_PREFIX)||void 0===tr?void 0:tr.exec(tt);return ta?parseFloat(ta[1]):ti}var nk=((s9=nk||{}).Renderer="renderer",s9.Application="application",s9.RendererSystem="renderer-webgl-system",s9.RendererPlugin="renderer-webgl-plugin",s9.CanvasRendererSystem="renderer-canvas-system",s9.CanvasRendererPlugin="renderer-canvas-plugin",s9.Asset="asset",s9.LoadParser="load-parser",s9.ResolveParser="resolve-parser",s9.CacheParser="cache-parser",s9.DetectionParser="detection-parser",s9),nP=tt=>{if("function"==typeof tt||"object"==typeof tt&&tt.extension){if(!tt.extension)throw Error("Extension class must have an extension object");tt=(0,td._)((0,tc._)({},"object"!=typeof tt.extension?{type:tt.extension}:tt.extension),{ref:tt})}if("object"==typeof tt)tt=(0,tc._)({},tt);else throw Error("Invalid extension type");return"string"==typeof tt.type&&(tt.type=[tt.type]),tt},nC=(tt,tr)=>null!==(uu=nP(tt).priority)&&void 0!==uu?uu:tr,nO={_addHandlers:{},_removeHandlers:{},_queue:{},remove(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];return tr.map(nP).forEach(tt=>{tt.type.forEach(tr=>{var ti,ta;return null===(ta=(ti=this._removeHandlers)[tr])||void 0===ta?void 0:ta.call(ti,tt)})}),this},add(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];return tr.map(nP).forEach(tt=>{tt.type.forEach(tr=>{var ti=this._addHandlers,ta=this._queue;ti[tr]?ti[tr](tt):(ta[tr]=ta[tr]||[],ta[tr].push(tt))})}),this},handle(tt,tr,ti){var ta=this._addHandlers,ts=this._removeHandlers;if(ta[tt]||ts[tt])throw Error("Extension type ".concat(tt," already has a handler"));ta[tt]=tr,ts[tt]=ti;var tu=this._queue;return tu[tt]&&(tu[tt].forEach(tt=>tr(tt)),delete tu[tt]),this},handleByMap(tt,tr){return this.handle(tt,tt=>{tr[tt.name]=tt.ref},tt=>{delete tr[tt.name]})},handleByList(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return this.handle(tt,tt=>{tr.includes(tt.ref)||(tr.push(tt.ref),tr.sort((tt,tr)=>nC(tr,ti)-nC(tt,ti)))},tt=>{var ti=tr.indexOf(tt.ref);-1!==ti&&tr.splice(ti,1)})}};class nN{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 nB="precision mediump float;\nvoid main(void){\nfloat test = 0.1;\n%forloop%\ngl_FragColor = vec4(0.0);\n}";function nL(tt){for(var tr="",ti=0;ti<tt;++ti)ti>0&&(tr+="\nelse "),ti<tt-1&&(tr+="if(test == ".concat(ti,".0){}"));return tr}function nU(tt,tr){if(0===tt)throw Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var ti=tr.createShader(tr.FRAGMENT_SHADER);;){var ta=nB.replace(/%forloop%/gi,nL(tt));if(tr.shaderSource(ti,ta),tr.compileShader(ti),tr.getShaderParameter(ti,tr.COMPILE_STATUS))break;tt=tt/2|0}return tt}var nD=0,nj=1,nF=2,nG=3,nH=4,nV=5;class nz{get blend(){return!!(this.data&1<<nD)}set blend(tt){!!(this.data&1<<nD)!==tt&&(this.data^=1<<nD)}get offsets(){return!!(this.data&1<<nj)}set offsets(tt){!!(this.data&1<<nj)!==tt&&(this.data^=1<<nj)}get culling(){return!!(this.data&1<<nF)}set culling(tt){!!(this.data&1<<nF)!==tt&&(this.data^=1<<nF)}get depthTest(){return!!(this.data&1<<nG)}set depthTest(tt){!!(this.data&1<<nG)!==tt&&(this.data^=1<<nG)}get depthMask(){return!!(this.data&1<<nV)}set depthMask(tt){!!(this.data&1<<nV)!==tt&&(this.data^=1<<nV)}get clockwiseFrontFace(){return!!(this.data&1<<nH)}set clockwiseFrontFace(tt){!!(this.data&1<<nH)!==tt&&(this.data^=1<<nH)}get blendMode(){return this._blendMode}set blendMode(tt){this.blend=tt!==rx.NONE,this._blendMode=tt}get polygonOffset(){return this._polygonOffset}set polygonOffset(tt){this.offsets=!!tt,this._polygonOffset=tt}static for2d(){var tt=new nz;return tt.depthTest=!1,tt.blend=!0,tt}constructor(){this.data=0,this.blendMode=rx.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}}nz.prototype.toString=function(){return"[@pixi/core:State blendMode=".concat(this.blendMode," clockwiseFrontFace=").concat(this.clockwiseFrontFace," culling=").concat(this.culling," depthMask=").concat(this.depthMask," polygonOffset=").concat(this.polygonOffset,"]")};var nq=[];function nW(tt,tr){if(!tt)return null;var ti="";if("string"==typeof tt){var ta=/\.(\w{3,4})(?:$|\?|#)/i.exec(tt);ta&&(ti=ta[1].toLowerCase())}for(var ts=nq.length-1;ts>=0;--ts){var tu=nq[ts];if(tu.test&&tu.test(tt,ti))return new tu(tt,tr)}throw Error("Unrecognized source type to auto-detect Resource")}class nY{emit(tt,tr,ti,ta,ts,tu,tc,td){if(arguments.length>8)throw Error("max arguments reached");var{name:tp,items:tv}=this;this._aliasCount++;for(var tg=0,tb=tv.length;tg<tb;tg++)tv[tg][tp](tt,tr,ti,ta,ts,tu,tc,td);return tv===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&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 tr=this.items.indexOf(tt);return -1!==tr&&(this.ensureNonAliasedItems(),this.items.splice(tr,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(nY.prototype,{dispatch:{value:nY.prototype.emit},run:{value:nY.prototype.emit}});class nX{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,tr){(tt!==this._width||tr!==this._height)&&(this._width=tt,this._height=tr,this.onResize.emit(tt,tr))}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,tr,ti){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,tr){return!1}constructor(tt=0,tr=0){this._width=tt,this._height=tr,this.destroyed=!1,this.internal=!1,this.onResize=new nY("setRealSize"),this.onUpdate=new nY("update"),this.onError=new nY("onError")}}class nK extends nX{upload(tt,tr,ti){var ta=tt.gl;ta.pixelStorei(ta.UNPACK_ALIGNMENT,this.unpackAlignment),ta.pixelStorei(ta.UNPACK_PREMULTIPLY_ALPHA_WEBGL,tr.alphaMode===rO.UNPACK);var ts=tr.realWidth,tu=tr.realHeight;return ti.width===ts&&ti.height===tu?ta.texSubImage2D(tr.target,0,0,0,ts,tu,tr.format,ti.type,this.data):(ti.width=ts,ti.height=tu,ta.texImage2D(tr.target,0,ti.internalFormat,ts,tu,0,tr.format,ti.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,tr){var ti,{width:ta,height:ts}=tr||{};if(!ta||!ts)throw Error("BufferResource width or height invalid");super(ta,ts),this.data=tt,this.unpackAlignment=null!==(ti=tr.unpackAlignment)&&void 0!==ti?ti:4}}var nZ={scaleMode:rk.NEAREST,alphaMode:rO.NPM},nQ=class tt extends rf{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,tr){var ti;return void 0!==tt&&tt!==this.scaleMode&&(this.scaleMode=tt,ti=!0),void 0!==tr&&tr!==this.mipmap&&(this.mipmap=tr,ti=!0),ti&&this.dirtyStyleId++,this}setSize(tt,tr,ti){return ti=ti||this.resolution,this.setRealSize(tt*ti,tr*ti,ti)}setRealSize(tt,tr,ti){return this.resolution=ti||this.resolution,this.width=Math.round(tt)/this.resolution,this.height=Math.round(tr)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=nv(this.realWidth)&&nv(this.realHeight)}setResolution(tt){var tr=this.resolution;return tr===tt||(this.resolution=tt,this.valid&&(this.width=Math.round(this.width*tr)/tt,this.height=Math.round(this.height*tr)/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 nM[this.cacheId],delete nT[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(tr,ti){var ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e$.STRICT_TEXTURE_CACHE,ts="string"==typeof tr,tu=null;if(ts)tu=tr;else{if(!tr._pixiId){var tc=(null==ti?void 0:ti.pixiIdPrefix)||"pixiid";tr._pixiId="".concat(tc,"_").concat(nE())}tu=tr._pixiId}var td=nM[tu];if(ts&&ta&&!td)throw Error('The cacheId "'.concat(tu,'" does not exist in BaseTextureCache.'));return td||((td=new tt(tr,ti)).cacheId=tu,tt.addToCache(td,tu)),td}static fromBuffer(tr,ti,ta,ts){tr=tr||new Float32Array(ti*ta*4);var tu,td,tp=new nK(tr,(0,tc._)({width:ti,height:ta},null==ts?void 0:ts.resourceOptions));return tr instanceof Float32Array?(tu=rT.RGBA,td=rR.FLOAT):tr instanceof Int32Array?(tu=rT.RGBA_INTEGER,td=rR.INT):tr instanceof Uint32Array?(tu=rT.RGBA_INTEGER,td=rR.UNSIGNED_INT):tr instanceof Int16Array?(tu=rT.RGBA_INTEGER,td=rR.SHORT):tr instanceof Uint16Array?(tu=rT.RGBA_INTEGER,td=rR.UNSIGNED_SHORT):tr instanceof Int8Array?(tu=rT.RGBA,td=rR.BYTE):(tu=rT.RGBA,td=rR.UNSIGNED_BYTE),tp.internal=!0,new tt(tp,Object.assign({},nZ,{type:td,format:tu},ts))}static addToCache(tt,tr){tr&&(tt.textureCacheIds.includes(tr)||tt.textureCacheIds.push(tr),nM[tr]&&nM[tr]!==tt&&console.warn("BaseTexture added to the cache with an id [".concat(tr,"] that already had an entry")),nM[tr]=tt)}static removeFromCache(tt){if("string"==typeof tt){var tr=nM[tt];if(tr){var ti=tr.textureCacheIds.indexOf(tt);return ti>-1&&tr.textureCacheIds.splice(ti,1),delete nM[tt],tr}}else if(null==tt?void 0:tt.textureCacheIds){for(var ta=0;ta<tt.textureCacheIds.length;++ta)delete nM[tt.textureCacheIds[ta]];return tt.textureCacheIds.length=0,tt}return null}constructor(tr=null,ti=null){super();var{alphaMode:ta,mipmap:ts,anisotropicLevel:tu,scaleMode:tc,width:td,height:tp,wrapMode:tv,format:tg,type:tb,target:t_,resolution:tE,resourceOptions:tA}=ti=Object.assign({},tt.defaultOptions,ti);!tr||tr instanceof nX||((tr=nW(tr,tA)).internal=!0),this.resolution=tE||e$.RESOLUTION,this.width=Math.round((td||0)*this.resolution)/this.resolution,this.height=Math.round((tp||0)*this.resolution)/this.resolution,this._mipmap=ts,this.anisotropicLevel=tu,this._wrapMode=tv,this._scaleMode=tc,this.format=tg,this.type=tb,this.target=t_,this.alphaMode=ta,this.uid=nE(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=td>0&&tp>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(tr)}};nQ.defaultOptions={mipmap:rC.POW2,anisotropicLevel:0,scaleMode:rk.LINEAR,wrapMode:rP.CLAMP,alphaMode:rO.UNPACK,target:rM.TEXTURE_2D,format:rT.RGBA,type:rR.UNSIGNED_BYTE},nQ._globalBatch=0;var nJ=nQ;class n${constructor(){this.texArray=null,this.blend=0,this.type=rS.TRIANGLES,this.start=0,this.size=0,this.data=null}}var n0=0;class n1{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?rF.ELEMENT_ARRAY_BUFFER:rF.ARRAY_BUFFER}get index(){return this.type===rF.ELEMENT_ARRAY_BUFFER}static from(tt){return tt instanceof Array&&(tt=new Float32Array(tt)),new n1(tt)}constructor(tt,tr=!0,ti=!1){this.data=tt||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=ti,this.static=tr,this.id=n0++,this.disposeRunner=new nY("disposeBuffer")}}class n2{destroy(){this.buffer=null}static from(tt,tr,ti,ta,ts){return new n2(tt,tr,ti,ta,ts)}constructor(tt,tr=0,ti=!1,ta=rR.FLOAT,ts,tu,tc,td=1){this.buffer=tt,this.size=tr,this.normalized=ti,this.type=ta,this.stride=ts,this.start=tu,this.instance=tc,this.divisor=td}}var n3={Float32Array,Uint32Array,Int32Array,Uint8Array};function n6(tt,tr){for(var ti=0,ta=0,ts={},tu=0;tu<tt.length;tu++)ta+=tr[tu],ti+=tt[tu].length;for(var tc=new ArrayBuffer(4*ti),td=null,tp=0,tv=0;tv<tt.length;tv++){var tg=tr[tv],tb=tt[tv],t_=nd(tb);ts[t_]||(ts[t_]=new n3[t_](tc)),td=ts[t_];for(var tE=0;tE<tb.length;tE++)td[(tE/tg|0)*ta+tp+tE%tg]=tb[tE];tp+=tg}return new Float32Array(tc)}var n4={5126:4,5123:2,5121:1},n8=0,n5={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array};class n7{addAttribute(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,ta=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ts=arguments.length>4?arguments[4]:void 0,tu=arguments.length>5?arguments[5]:void 0,tc=arguments.length>6?arguments[6]:void 0,td=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(!tr)throw Error("You must pass a buffer when creating an attribute");tr instanceof n1||(tr instanceof Array&&(tr=new Float32Array(tr)),tr=new n1(tr));var tp=tt.split("|");if(tp.length>1){for(var tv=0;tv<tp.length;tv++)this.addAttribute(tp[tv],tr,ti,ta,ts);return this}var tg=this.buffers.indexOf(tr);return -1===tg&&(this.buffers.push(tr),tg=this.buffers.length-1),this.attributes[tt]=new n2(tg,ti,ta,ts,tu,tc,td),this.instanced=this.instanced||td,this}getAttribute(tt){return this.attributes[tt]}getBuffer(tt){return this.buffers[this.getAttribute(tt).buffer]}addIndex(tt){return tt instanceof n1||(tt instanceof Array&&(tt=new Uint16Array(tt)),tt=new n1(tt)),tt.type=rF.ELEMENT_ARRAY_BUFFER,this.indexBuffer=tt,this.buffers.includes(tt)||this.buffers.push(tt),this}getIndex(){return this.indexBuffer}interleave(){if(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)return this;var tt,tr=[],ti=[],ta=new n1;for(tt in this.attributes){var ts=this.attributes[tt],tu=this.buffers[ts.buffer];tr.push(tu.data),ti.push(ts.size*n4[ts.type]/4),ts.buffer=0}for(ta.data=n6(tr,ti),tt=0;tt<this.buffers.length;tt++)this.buffers[tt]!==this.indexBuffer&&this.buffers[tt].destroy();return this.buffers=[ta],this.indexBuffer&&this.buffers.push(this.indexBuffer),this}getSize(){for(var tt in this.attributes){var tr=this.attributes[tt];return this.buffers[tr.buffer].data.length/(tr.stride/4||tr.size)}return 0}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null}clone(){for(var tt=new n7,tr=0;tr<this.buffers.length;tr++)tt.buffers[tr]=new n1(this.buffers[tr].data.slice(0));for(var ti in this.attributes){var ta=this.attributes[ti];tt.attributes[ti]=new n2(ta.buffer,ta.size,ta.normalized,ta.type,ta.stride,ta.start,ta.instance)}return this.indexBuffer&&(tt.indexBuffer=tt.buffers[this.buffers.indexOf(this.indexBuffer)],tt.indexBuffer.type=rF.ELEMENT_ARRAY_BUFFER),tt}static merge(tt){for(var tr,ti=new n7,ta=[],ts=[],tu=[],tc=0;tc<tt.length;tc++){tr=tt[tc];for(var td=0;td<tr.buffers.length;td++)ts[td]=ts[td]||0,ts[td]+=tr.buffers[td].data.length,tu[td]=0}for(var tp=0;tp<tr.buffers.length;tp++)ta[tp]=new n5[nd(tr.buffers[tp].data)](ts[tp]),ti.buffers[tp]=new n1(ta[tp]);for(var tv=0;tv<tt.length;tv++){tr=tt[tv];for(var tg=0;tg<tr.buffers.length;tg++)ta[tg].set(tr.buffers[tg].data,tu[tg]),tu[tg]+=tr.buffers[tg].data.length}if(ti.attributes=tr.attributes,tr.indexBuffer){ti.indexBuffer=ti.buffers[tr.buffers.indexOf(tr.indexBuffer)],ti.indexBuffer.type=rF.ELEMENT_ARRAY_BUFFER;for(var tb=0,t_=0,tE=0,tA=0,tS=0;tS<tr.buffers.length;tS++)if(tr.buffers[tS]!==tr.indexBuffer){tA=tS;break}for(var tT in tr.attributes){var tM=tr.attributes[tT];(0|tM.buffer)===tA&&(t_+=tM.size*n4[tM.type]/4)}for(var tR=0;tR<tt.length;tR++){for(var tI=tt[tR].indexBuffer.data,tk=0;tk<tI.length;tk++)ti.indexBuffer.data[tk+tE]+=tb;tb+=tt[tR].buffers[tA].data.length/t_,tE+=tI.length}}return ti}constructor(tt=[],tr={}){this.buffers=tt,this.indexBuffer=null,this.attributes=tr,this.glVertexArrayObjects={},this.id=n8++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new nY("disposeGeometry"),this.refCount=0}}class n9 extends n7{constructor(tt=!1){super(),this._buffer=new n1(null,tt,!1),this._indexBuffer=new n1(null,tt,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,rR.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,rR.FLOAT).addAttribute("aColor",this._buffer,4,!0,rR.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,rR.FLOAT).addIndex(this._indexBuffer)}}var ir=2*Math.PI,ii=180/Math.PI,ia=Math.PI/180,io=((ut=io||{})[ut.POLY=0]="POLY",ut[ut.RECT=1]="RECT",ut[ut.CIRC=2]="CIRC",ut[ut.ELIP=3]="ELIP",ut[ut.RREC=4]="RREC",ut);class iu{clone(){return new iu(this.x,this.y)}copyFrom(tt){return this.set(tt.x,tt.y),this}copyTo(tt){return tt.set(this.x,this.y),tt}equals(tt){return tt.x===this.x&&tt.y===this.y}set(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return this.x=tt,this.y=tr,this}constructor(tt=0,tr=0){this.x=0,this.y=0,this.x=tt,this.y=tr}}iu.prototype.toString=function(){return"[@pixi/math:Point x=".concat(this.x," y=").concat(this.y,"]")};var ih=[new iu,new iu,new iu,new iu];class ic{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 ic(0,0,0,0)}clone(){return new ic(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,tr){return!(this.width<=0)&&!(this.height<=0)&&tt>=this.x&&tt<this.x+this.width&&tr>=this.y&&tr<this.y+this.height}intersects(tt,tr){if(!tr){var ti=this.x<tt.x?tt.x:this.x;if((this.right>tt.right?tt.right:this.right)<=ti)return!1;var ta=this.y<tt.y?tt.y:this.y;return(this.bottom>tt.bottom?tt.bottom:this.bottom)>ta}var ts=this.left,tu=this.right,tc=this.top,td=this.bottom;if(tu<=ts||td<=tc)return!1;var tp=ih[0].set(tt.left,tt.top),tv=ih[1].set(tt.left,tt.bottom),tg=ih[2].set(tt.right,tt.top),tb=ih[3].set(tt.right,tt.bottom);if(tg.x<=tp.x||tv.y<=tp.y)return!1;var t_=Math.sign(tr.a*tr.d-tr.b*tr.c);if(0===t_||(tr.apply(tp,tp),tr.apply(tv,tv),tr.apply(tg,tg),tr.apply(tb,tb),Math.max(tp.x,tv.x,tg.x,tb.x)<=ts||Math.min(tp.x,tv.x,tg.x,tb.x)>=tu||Math.max(tp.y,tv.y,tg.y,tb.y)<=tc||Math.min(tp.y,tv.y,tg.y,tb.y)>=td))return!1;var tE=t_*(tv.y-tp.y),tA=t_*(tp.x-tv.x),tS=tE*ts+tA*tc,tT=tE*tu+tA*tc,tM=tE*ts+tA*td,tR=tE*tu+tA*td;if(Math.max(tS,tT,tM,tR)<=tE*tp.x+tA*tp.y||Math.min(tS,tT,tM,tR)>=tE*tb.x+tA*tb.y)return!1;var tI=t_*(tp.y-tg.y),tk=t_*(tg.x-tp.x),tP=tI*ts+tk*tc,tC=tI*tu+tk*tc,tO=tI*ts+tk*td,tN=tI*tu+tk*td;return!(Math.max(tP,tC,tO,tN)<=tI*tp.x+tk*tp.y||Math.min(tP,tC,tO,tN)>=tI*tb.x+tk*tb.y)}pad(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return this.x-=tt,this.y-=tr,this.width+=2*tt,this.height+=2*tr,this}fit(tt){var tr=Math.max(this.x,tt.x),ti=Math.min(this.x+this.width,tt.x+tt.width),ta=Math.max(this.y,tt.y),ts=Math.min(this.y+this.height,tt.y+tt.height);return this.x=tr,this.width=Math.max(ti-tr,0),this.y=ta,this.height=Math.max(ts-ta,0),this}ceil(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.001,ti=Math.ceil((this.x+this.width-tr)*tt)/tt,ta=Math.ceil((this.y+this.height-tr)*tt)/tt;return this.x=Math.floor((this.x+tr)*tt)/tt,this.y=Math.floor((this.y+tr)*tt)/tt,this.width=ti-this.x,this.height=ta-this.y,this}enlarge(tt){var tr=Math.min(this.x,tt.x),ti=Math.max(this.x+this.width,tt.x+tt.width),ta=Math.min(this.y,tt.y),ts=Math.max(this.y+this.height,tt.y+tt.height);return this.x=tr,this.width=ti-tr,this.y=ta,this.height=ts-ta,this}constructor(tt=0,tr=0,ti=0,ta=0){this.x=Number(tt),this.y=Number(tr),this.width=Number(ti),this.height=Number(ta),this.type=io.RECT}}ic.prototype.toString=function(){return"[@pixi/math:Rectangle x=".concat(this.x," y=").concat(this.y," width=").concat(this.width," height=").concat(this.height,"]")};class ip{clone(){return new ip(this.x,this.y,this.radius)}contains(tt,tr){if(this.radius<=0)return!1;var ti=this.radius*this.radius,ta=this.x-tt,ts=this.y-tr;return ta*=ta,ts*=ts,ta+ts<=ti}getBounds(){return new ic(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}constructor(tt=0,tr=0,ti=0){this.x=tt,this.y=tr,this.radius=ti,this.type=io.CIRC}}ip.prototype.toString=function(){return"[@pixi/math:Circle x=".concat(this.x," y=").concat(this.y," radius=").concat(this.radius,"]")};class iv{clone(){return new iv(this.x,this.y,this.width,this.height)}contains(tt,tr){if(this.width<=0||this.height<=0)return!1;var ti=(tt-this.x)/this.width,ta=(tr-this.y)/this.height;return ti*=ti,ta*=ta,ti+ta<=1}getBounds(){return new ic(this.x-this.width,this.y-this.height,this.width,this.height)}constructor(tt=0,tr=0,ti=0,ta=0){this.x=tt,this.y=tr,this.width=ti,this.height=ta,this.type=io.ELIP}}iv.prototype.toString=function(){return"[@pixi/math:Ellipse x=".concat(this.x," y=").concat(this.y," width=").concat(this.width," height=").concat(this.height,"]")};class im{clone(){var tt=this.points.slice(),tr=new im(tt);return tr.closeStroke=this.closeStroke,tr}contains(tt,tr){for(var ti=!1,ta=this.points.length/2,ts=0,tu=ta-1;ts<ta;tu=ts++){var tc=this.points[2*ts],td=this.points[2*ts+1],tp=this.points[2*tu],tv=this.points[2*tu+1];td>tr!=tv>tr&&tt<(tp-tc)*((tr-td)/(tv-td))+tc&&(ti=!ti)}return ti}constructor(...tt){var tr=Array.isArray(tt[0])?tt[0]:tt;if("number"!=typeof tr[0]){for(var ti=[],ta=0,ts=tr.length;ta<ts;ta++)ti.push(tr[ta].x,tr[ta].y);tr=ti}this.points=tr,this.type=io.POLY,this.closeStroke=!0}}im.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke=".concat(this.closeStroke,"points=").concat(this.points.reduce((tt,tr)=>"".concat(tt,", ").concat(tr),""),"]")};class ig{clone(){return new ig(this.x,this.y,this.width,this.height,this.radius)}contains(tt,tr){if(this.width<=0||this.height<=0)return!1;if(tt>=this.x&&tt<=this.x+this.width&&tr>=this.y&&tr<=this.y+this.height){var ti=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(tr>=this.y+ti&&tr<=this.y+this.height-ti||tt>=this.x+ti&&tt<=this.x+this.width-ti)return!0;var ta=tt-(this.x+ti),ts=tr-(this.y+ti),tu=ti*ti;if(ta*ta+ts*ts<=tu||(ta=tt-(this.x+this.width-ti))*ta+ts*ts<=tu||ta*ta+(ts=tr-(this.y+this.height-ti))*ts<=tu||(ta=tt-(this.x+ti))*ta+ts*ts<=tu)return!0}return!1}constructor(tt=0,tr=0,ti=0,ta=0,ts=20){this.x=tt,this.y=tr,this.width=ti,this.height=ta,this.radius=ts,this.type=io.RREC}}ig.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 ib{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,tr,ti,ta,ts,tu){return this.a=tt,this.b=tr,this.c=ti,this.d=ta,this.tx=ts,this.ty=tu,this}toArray(tt,tr){this.array||(this.array=new Float32Array(9));var ti=tr||this.array;return tt?(ti[0]=this.a,ti[1]=this.b,ti[2]=0,ti[3]=this.c,ti[4]=this.d,ti[5]=0,ti[6]=this.tx,ti[7]=this.ty,ti[8]=1):(ti[0]=this.a,ti[1]=this.c,ti[2]=this.tx,ti[3]=this.b,ti[4]=this.d,ti[5]=this.ty,ti[6]=0,ti[7]=0,ti[8]=1),ti}apply(tt,tr){tr=tr||new iu;var ti=tt.x,ta=tt.y;return tr.x=this.a*ti+this.c*ta+this.tx,tr.y=this.b*ti+this.d*ta+this.ty,tr}applyInverse(tt,tr){tr=tr||new iu;var ti=1/(this.a*this.d+-(this.c*this.b)),ta=tt.x,ts=tt.y;return tr.x=this.d*ti*ta+-this.c*ti*ts+(this.ty*this.c-this.tx*this.d)*ti,tr.y=this.a*ti*ts+-this.b*ti*ta+(-this.ty*this.a+this.tx*this.b)*ti,tr}translate(tt,tr){return this.tx+=tt,this.ty+=tr,this}scale(tt,tr){return this.a*=tt,this.d*=tr,this.c*=tt,this.b*=tr,this.tx*=tt,this.ty*=tr,this}rotate(tt){var tr=Math.cos(tt),ti=Math.sin(tt),ta=this.a,ts=this.c,tu=this.tx;return this.a=ta*tr-this.b*ti,this.b=ta*ti+this.b*tr,this.c=ts*tr-this.d*ti,this.d=ts*ti+this.d*tr,this.tx=tu*tr-this.ty*ti,this.ty=tu*ti+this.ty*tr,this}append(tt){var tr=this.a,ti=this.b,ta=this.c,ts=this.d;return this.a=tt.a*tr+tt.b*ta,this.b=tt.a*ti+tt.b*ts,this.c=tt.c*tr+tt.d*ta,this.d=tt.c*ti+tt.d*ts,this.tx=tt.tx*tr+tt.ty*ta+this.tx,this.ty=tt.tx*ti+tt.ty*ts+this.ty,this}setTransform(tt,tr,ti,ta,ts,tu,tc,td,tp){return this.a=Math.cos(tc+tp)*ts,this.b=Math.sin(tc+tp)*ts,this.c=-Math.sin(tc-td)*tu,this.d=Math.cos(tc-td)*tu,this.tx=tt-(ti*this.a+ta*this.c),this.ty=tr-(ti*this.b+ta*this.d),this}prepend(tt){var tr=this.tx;if(1!==tt.a||0!==tt.b||0!==tt.c||1!==tt.d){var ti=this.a,ta=this.c;this.a=ti*tt.a+this.b*tt.c,this.b=ti*tt.b+this.b*tt.d,this.c=ta*tt.a+this.d*tt.c,this.d=ta*tt.b+this.d*tt.d}return this.tx=tr*tt.a+this.ty*tt.c+tt.tx,this.ty=tr*tt.b+this.ty*tt.d+tt.ty,this}decompose(tt){var tr=this.a,ti=this.b,ta=this.c,ts=this.d,tu=tt.pivot,tc=-Math.atan2(-ta,ts),td=Math.atan2(ti,tr),tp=Math.abs(tc+td);return tp<1e-5||1e-5>Math.abs(ir-tp)?(tt.rotation=td,tt.skew.x=tt.skew.y=0):(tt.rotation=0,tt.skew.x=tc,tt.skew.y=td),tt.scale.x=Math.sqrt(tr*tr+ti*ti),tt.scale.y=Math.sqrt(ta*ta+ts*ts),tt.position.x=this.tx+(tu.x*tr+tu.y*ta),tt.position.y=this.ty+(tu.x*ti+tu.y*ts),tt}invert(){var tt=this.a,tr=this.b,ti=this.c,ta=this.d,ts=this.tx,tu=tt*ta-tr*ti;return this.a=ta/tu,this.b=-tr/tu,this.c=-ti/tu,this.d=tt/tu,this.tx=(ti*this.ty-ta*ts)/tu,this.ty=-(tt*this.ty-tr*ts)/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 ib;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 ib}static get TEMP_MATRIX(){return new ib}constructor(tt=1,tr=0,ti=0,ta=1,ts=0,tu=0){this.array=null,this.a=tt,this.b=tr,this.c=ti,this.d=ta,this.tx=ts,this.ty=tu}}ib.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 iy=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],i_=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],iw=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],iE=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],iA=[],ix=[],iS=Math.sign;!function(){for(var tt=0;tt<16;tt++){var tr=[];iA.push(tr);for(var ti=0;ti<16;ti++)for(var ta=iS(iy[tt]*iy[ti]+iw[tt]*i_[ti]),ts=iS(i_[tt]*iy[ti]+iE[tt]*i_[ti]),tu=iS(iy[tt]*iw[ti]+iw[tt]*iE[ti]),tc=iS(i_[tt]*iw[ti]+iE[tt]*iE[ti]),td=0;td<16;td++)if(iy[td]===ta&&i_[td]===ts&&iw[td]===tu&&iE[td]===tc){tr.push(td);break}}for(var tp=0;tp<16;tp++){var tv=new ib;tv.set(iy[tp],i_[tp],iw[tp],iE[tp],0,0),ix.push(tv)}}();var iT={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=>iy[tt],uY:tt=>i_[tt],vX:tt=>iw[tt],vY:tt=>iE[tt],inv:tt=>8&tt?15&tt:7&-tt,add:(tt,tr)=>iA[tt][tr],sub:(tt,tr)=>iA[tt][iT.inv(tr)],rotate180:tt=>4^tt,isVertical:tt=>(3&tt)==2,byDirection:(tt,tr)=>2*Math.abs(tt)<=Math.abs(tr)?tr>=0?iT.S:iT.N:2*Math.abs(tr)<=Math.abs(tt)?tt>0?iT.E:iT.W:tr>0?tt>0?iT.SE:iT.SW:tt>0?iT.NE:iT.NW,matrixAppendRotationInv:function(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,ta=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ts=ix[iT.inv(tr)];ts.tx=ti,ts.ty=ta,tt.append(ts)}};class iM{clone(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.cb,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scope;return new iM(tt,tr,this._x,this._y)}set(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;return(this._x!==tt||this._y!==tr)&&(this._x=tt,this._y=tr,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,tr,ti=0,ta=0){this._x=ti,this._y=ta,this.cb=tt,this.scope=tr}}iM.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=".concat(this.x," y=").concat(this.y," scope=").concat(this.scope,"]")};var iR=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 tr=this.localTransform;if(this._localID!==this._currentLocalID&&(tr.a=this._cx*this.scale.x,tr.b=this._sx*this.scale.x,tr.c=this._cy*this.scale.y,tr.d=this._sy*this.scale.y,tr.tx=this.position.x-(this.pivot.x*tr.a+this.pivot.y*tr.c),tr.ty=this.position.y-(this.pivot.x*tr.b+this.pivot.y*tr.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==tt._worldID){var ti=tt.worldTransform,ta=this.worldTransform;ta.a=tr.a*ti.a+tr.b*ti.c,ta.b=tr.a*ti.b+tr.b*ti.d,ta.c=tr.c*ti.a+tr.d*ti.c,ta.d=tr.c*ti.b+tr.d*ti.d,ta.tx=tr.tx*ti.a+tr.ty*ti.c+ti.tx,ta.ty=tr.tx*ti.b+tr.ty*ti.d+ti.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 ib,this.localTransform=new ib,this.position=new iM(this.onChange,this,0,0),this.scale=new iM(this.onChange,this,1,1),this.pivot=new iM(this.onChange,this,0,0),this.skew=new iM(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}};iR.IDENTITY=new iR;var iI=iR;iI.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 ik="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n   gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}",iP="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",iC=[{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,tr)=>("sampler2D"===tt.type||"samplerCube"===tt.type||"sampler2DArray"===tt.type)&&1===tt.size&&!tt.isArray&&(null==tr||void 0!==tr.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,tr)=>"mat3"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==tr.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,tr)=>"vec2"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==tr.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,tr)=>"vec4"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==tr.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,tr)=>"vec4"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==tr.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,tr)=>"vec3"===tt.type&&1===tt.size&&!tt.isArray&&void 0!==tr.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                }')}],iO={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    }"},iN={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 iB(tt,tr){var ti=["\n        var v = null;\n        var cv = null;\n        var cu = null;\n        var t = 0;\n        var gl = renderer.gl;\n    "];for(var ta in tt.uniforms){var ts,tu=tr[ta];if(!tu){(null===(ts=tt.uniforms[ta])||void 0===ts?void 0:ts.group)===!0&&(tt.uniforms[ta].ubo?ti.push("\n                        renderer.shader.syncUniformBufferGroup(uv.".concat(ta,", '").concat(ta,"');\n                    ")):ti.push("\n                        renderer.shader.syncUniformGroup(uv.".concat(ta,", syncData);\n                    ")));continue}for(var tc=tt.uniforms[ta],td=!1,tp=0;tp<iC.length;tp++)if(iC[tp].test(tu,tc)){ti.push(iC[tp].code(ta,tc)),td=!0;break}if(!td){var tv=(1!==tu.size||tu.isArray?iN:iO)[tu.type].replace("location",'ud["'.concat(ta,'"].location'));ti.push('\n            cu = ud["'.concat(ta,'"];\n            cv = cu.value;\n            v = uv["').concat(ta,'"];\n            ').concat(tv,";"))}}return Function("ud","uv","renderer","syncData",ti.join("\n"))}var iL={},iU=iL;function iD(){if(iU===iL||(null==iU?void 0:iU.isContextLost())){var tt,tr=e$.ADAPTER.createCanvas();e$.PREFER_ENV>=rw.WEBGL2&&(tt=tr.getContext("webgl2",{})),tt||((tt=tr.getContext("webgl",{})||tr.getContext("experimental-webgl",{}))?tt.getExtension("WEBGL_draw_buffers"):tt=null),iU=tt}return iU}function ij(){if(!uh){uh=rL.MEDIUM;var tt=iD();tt&&tt.getShaderPrecisionFormat&&(uh=tt.getShaderPrecisionFormat(tt.FRAGMENT_SHADER,tt.HIGH_FLOAT).precision?rL.HIGH:rL.MEDIUM)}return uh}var iF={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 iG(tt){return iF[tt]}var iH=null,iV={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 iz(tt,tr){if(!iH){var ti=Object.keys(iV);iH={};for(var ta=0;ta<ti.length;++ta){var ts=ti[ta];iH[tt[ts]]=iV[ts]}}return iH[tr]}function iq(tt,tr,ti){if("precision"!==tt.substring(0,9)){var ta=tr;return tr===rL.HIGH&&ti!==rL.HIGH&&(ta=rL.MEDIUM),"precision ".concat(ta," float;\n").concat(tt)}return ti!==rL.HIGH&&"precision highp"===tt.substring(0,15)?tt.replace("precision highp","precision mediump"):tt}var iW=0,iY={},iX=class tt{static get defaultVertexSrc(){return iP}static get defaultFragmentSrc(){return ik}static from(tr,ti,ta){var ts=tr+ti,tu=nS[ts];return tu||(nS[ts]=tu=new tt(tr,ti,ta)),tu}constructor(tr,ti,ta="pixi-shader",ts={}){this.extra={},this.id=iW++,this.vertexSrc=tr||tt.defaultVertexSrc,this.fragmentSrc=ti||tt.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=ts,"#version"!==this.vertexSrc.substring(0,8)&&(iY[ta=ta.replace(/\s+/g,"-")]?(iY[ta]++,ta+="-".concat(iY[ta])):iY[ta]=1,this.vertexSrc="#define SHADER_NAME ".concat(ta,"\n").concat(this.vertexSrc),this.fragmentSrc="#define SHADER_NAME ".concat(ta,"\n").concat(this.fragmentSrc),this.vertexSrc=iq(this.vertexSrc,tt.defaultVertexPrecision,rL.HIGH),this.fragmentSrc=iq(this.fragmentSrc,tt.defaultFragmentPrecision,ij())),this.glPrograms={},this.syncUniforms=null}};iX.defaultVertexPrecision=rL.HIGH,iX.defaultFragmentPrecision=rc.apple.device?rL.HIGH:rL.MEDIUM;var iK=iX,iZ=0;class iQ{update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(tt,tr,ti){if(this.ubo)throw Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[tt]=new iQ(tr,ti)}static from(tt,tr,ti){return new iQ(tt,tr,ti)}static uboFrom(tt,tr){return new iQ(tt,null==tr||tr,!0)}constructor(tt,tr,ti){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=iZ++,this.static=!!tr,this.ubo=!!ti,tt instanceof n1?(this.buffer=tt,this.buffer.type=rF.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=tt,this.ubo&&(this.buffer=new n1(new Float32Array(1)),this.buffer.type=rF.UNIFORM_BUFFER,this.autoManage=!0))}}class iJ{checkUniformExists(tt,tr){if(tr.uniforms[tt])return!0;for(var ti in tr.uniforms){var ta=tr.uniforms[ti];if(!0===ta.group&&this.checkUniformExists(tt,ta))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(tt,tr,ti){var ta=iK.from(tt,tr);return new iJ(ta,ti)}constructor(tt,tr){this.uniformBindCount=0,this.program=tt,tr?tr instanceof iQ?this.uniformGroup=tr:this.uniformGroup=new iQ(tr):this.uniformGroup=new iQ({}),this.disposeRunner=new nY("disposeShader")}}class i${generateShader(tt){if(!this.programCache[tt]){for(var tr=new Int32Array(tt),ti=0;ti<tt;ti++)tr[ti]=ti;this.defaultGroupCache[tt]=iQ.from({uSamplers:tr},!0);var ta=this.fragTemplate;ta=(ta=ta.replace(/%count%/gi,"".concat(tt))).replace(/%forloop%/gi,this.generateSampleSrc(tt)),this.programCache[tt]=new iK(this.vertexSrc,ta)}var ts={tint:new Float32Array([1,1,1,1]),translationMatrix:new ib,default:this.defaultGroupCache[tt]};return new iJ(this.programCache[tt],ts)}generateSampleSrc(tt){var tr="";tr+="\n\n";for(var ti=0;ti<tt;ti++)ti>0&&(tr+="\nelse "),ti<tt-1&&(tr+="if(vTextureId < ".concat(ti,".5)")),tr+="\n{"+"\n	color = texture2D(uSamplers[".concat(ti,"], vTextureCoord);")+"\n}";return tr+"\n\n"}constructor(tt,tr){if(this.vertexSrc=tt,this.fragTemplate=tr,this.programCache={},this.defaultGroupCache={},!tr.includes("%count%"))throw Error('Fragment template must contain "%count%".');if(!tr.includes("%forloop%"))throw Error('Fragment template must contain "%forloop%".')}}class i0{clear(){for(var tt=0;tt<this.count;tt++)this.elements[tt]=null;this.count=0}constructor(){this.elements=[],this.ids=[],this.count=0}}function i6(){return!rc.apple.device}function i8(tt){var tr=!0,ti=e$.ADAPTER.getNavigator();if(rc.tablet||rc.phone){if(rc.apple.device){var ta=ti.userAgent.match(/OS (\d+)_(\d+)?/);ta&&11>parseInt(ta[1],10)&&(tr=!1)}if(rc.android.device){var ts=ti.userAgent.match(/Android\s([0-9.]*)/);ts&&7>parseInt(ts[1],10)&&(tr=!1)}}return tr?tt:4}class i7{flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(tt){}constructor(tt){this.renderer=tt}}var i9="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",at="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",ar=class tt extends i7{static get defaultMaxTextures(){var tt;return this._defaultMaxTextures=null!==(tt=this._defaultMaxTextures)&&void 0!==tt?tt:i8(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:i6(),this._canUploadSameBuffer}static set canUploadSameBuffer(tt){this._canUploadSameBuffer=tt}get MAX_TEXTURES(){return rd("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return at}static get defaultFragmentTemplate(){return i9}setShaderGenerator(){var{vertex:tr=tt.defaultVertexSrc,fragment:ti=tt.defaultFragmentTemplate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.shaderGenerator=new i$(tr,ti)}contextChange(){var tr=this.renderer.gl;e$.PREFER_ENV===rw.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(tr.getParameter(tr.MAX_TEXTURE_IMAGE_UNITS),tt.defaultMaxTextures),this.maxTextures=nU(this.maxTextures,tr)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(var ti=0;ti<this._packedGeometryPoolSize;ti++)this._packedGeometries[ti]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){for(var{_drawCallPool:tr,_textureArrayPool:ti}=tt,ta=this.size/4,ts=Math.floor(ta/this.maxTextures)+1;tr.length<ta;)tr.push(new n$);for(;ti.length<ts;)ti.push(new i0);for(var tu=0;tu<this.maxTextures;tu++)this._tempBoundTextures[tu]=null}onPrerender(){this._flushId=0}render(tt){tt._texture.valid&&(this._vertexCount+tt.vertexData.length/2>this.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:tr,maxTextures:ti}=this,ta=tt._textureArrayPool,ts=this.renderer.batch,tu=this._tempBoundTextures,tc=this.renderer.textureGC.count,td=++nJ._globalBatch,tp=0,tv=ta[0],tg=0;ts.copyBoundTextures(tu,ti);for(var tb=0;tb<this._bufferSize;++tb){var t_=tr[tb];tr[tb]=null,t_._batchEnabled!==td&&(tv.count>=ti&&(ts.boundArray(tv,tu,td,ti),this.buildDrawCalls(tv,tg,tb),tg=tb,tv=ta[++tp],++td),t_._batchEnabled=td,t_.touched=tc,tv.elements[tv.count++]=t_)}tv.count>0&&(ts.boundArray(tv,tu,td,ti),this.buildDrawCalls(tv,tg,this._bufferSize),++tp,++td);for(var tE=0;tE<tu.length;tE++)tu[tE]=null;nJ._globalBatch=td}buildDrawCalls(tr,ti,ta){var{_bufferedElements:ts,_attributeBuffer:tu,_indexBuffer:tc,vertexSize:td}=this,tp=tt._drawCallPool,tv=this._dcIndex,tg=this._aIndex,tb=this._iIndex,t_=tp[tv];t_.start=this._iIndex,t_.texArray=tr;for(var tE=ti;tE<ta;++tE){var tA=ts[tE],tS=nl[tA._texture.baseTexture.alphaMode?1:0][tA.blendMode];ts[tE]=null,ti<tE&&t_.blend!==tS&&(t_.size=tb-t_.start,ti=tE,(t_=tp[++tv]).texArray=tr,t_.start=tb),this.packInterleavedGeometry(tA,tu,tc,tg,tb),tg+=tA.vertexData.length/2*td,tb+=tA.indices.length,t_.blend=tS}ti<ta&&(t_.size=tb-t_.start,++tv),this._dcIndex=tv,this._aIndex=tg,this._iIndex=tb}bindAndClearTexArray(tt){for(var tr=this.renderer.texture,ti=0;ti<tt.count;ti++)tr.bind(tt.elements[ti],tt.ids[ti]),tt.elements[ti]=null;tt.count=0}updateGeometry(){var{_packedGeometries:tr,_attributeBuffer:ti,_indexBuffer:ta}=this;tt.canUploadSameBuffer?(tr[this._flushId]._buffer.update(ti.rawBinaryData),tr[this._flushId]._indexBuffer.update(ta),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,tr[this._flushId]=new this.geometryClass),tr[this._flushId]._buffer.update(ti.rawBinaryData),tr[this._flushId]._indexBuffer.update(ta),this.renderer.geometry.bind(tr[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){for(var tr=this._dcIndex,{gl:ti,state:ta}=this.renderer,ts=tt._drawCallPool,tu=null,tc=0;tc<tr;tc++){var{texArray:td,type:tp,size:tv,start:tg,blend:tb}=ts[tc];tu!==td&&(tu=td,this.bindAndClearTexArray(td)),this.state.blendMode=tb,ta.set(this.state),ti.drawElements(tp,tv,ti.UNSIGNED_SHORT,2*tg)}}flush(){0!==this._vertexCount&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),tt.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])}stop(){this.flush()}destroy(){for(var tt=0;tt<this._packedGeometryPoolSize;tt++)this._packedGeometries[tt]&&this._packedGeometries[tt].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),super.destroy()}getAttributeBuffer(tt){var tr=np(Math.ceil(tt/8)),ti=nm(tr),ta=8*tr;this._aBuffers.length<=ti&&(this._iBuffers.length=ti+1);var ts=this._aBuffers[ta];return ts||(this._aBuffers[ta]=ts=new nN(ta*this.vertexSize*4)),ts}getIndexBuffer(tt){var tr=np(Math.ceil(tt/12)),ti=nm(tr),ta=12*tr;this._iBuffers.length<=ti&&(this._iBuffers.length=ti+1);var ts=this._iBuffers[ti];return ts||(this._iBuffers[ti]=ts=new Uint16Array(ta)),ts}packInterleavedGeometry(tt,tr,ti,ta,ts){for(var{uint32View:tu,float32View:tc}=tr,td=ta/this.vertexSize,tp=tt.uvs,tv=tt.indices,tg=tt.vertexData,tb=tt._texture.baseTexture._batchLocation,t_=Math.min(tt.worldAlpha,1),tE=nf.shared.setValue(tt._tintRGB).toPremultiplied(t_,tt._texture.baseTexture.alphaMode>0),tA=0;tA<tg.length;tA+=2)tc[ta++]=tg[tA],tc[ta++]=tg[tA+1],tc[ta++]=tp[tA],tc[ta++]=tp[tA+1],tu[ta++]=tE,tc[ta++]=tb;for(var tS=0;tS<tv.length;tS++)ti[ts++]=td+tv[tS]}constructor(tr){super(tr),this.setShaderGenerator(),this.geometryClass=n9,this.vertexSize=6,this.state=nz.for2d(),this.size=4*tt.defaultBatchSize,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),tr.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}};ar.defaultBatchSize=4096,ar.extension={name:"batch",type:nk.RendererPlugin},ar._drawCallPool=[],ar._textureArrayPool=[];var ai=ar;nO.add(ai);var aa="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n   gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n",ao="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n    return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n    gl_Position = filterVertexPosition();\n    vTextureCoord = filterTextureCoord();\n}\n",as=class tt extends iJ{apply(tt,tr,ti,ta,ts){tt.applyFilter(this,tr,ti,ta)}get blendMode(){return this.state.blendMode}set blendMode(tt){this.state.blendMode=tt}get resolution(){return this._resolution}set resolution(tt){this._resolution=tt}static get defaultVertexSrc(){return ao}static get defaultFragmentSrc(){return aa}constructor(tr,ti,ta){super(iK.from(tr||tt.defaultVertexSrc,ti||tt.defaultFragmentSrc),ta),this.padding=0,this.resolution=tt.defaultResolution,this.multisample=tt.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new nz}};as.defaultResolution=1,as.defaultMultisample=rj.NONE;var au=as;class ah{init(tt){this.clearBeforeRender=tt.clearBeforeRender;var{backgroundColor:tr,background:ti,backgroundAlpha:ta}=tt,ts=null!=ti?ti:tr;void 0!==ts&&(this.color=ts),this.alpha=ta}get color(){return this._backgroundColor.value}set color(tt){this._backgroundColor.setValue(tt)}get alpha(){return this._backgroundColor.alpha}set alpha(tt){this._backgroundColor.setAlpha(tt)}get backgroundColor(){return this._backgroundColor}destroy(){}constructor(){this.clearBeforeRender=!0,this._backgroundColor=new nf(0),this.alpha=1}}ah.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},ah.extension={type:[nk.RendererSystem,nk.CanvasRendererSystem],name:"background"},nO.add(ah);class ac{setObjectRenderer(tt){this.currentRenderer!==tt&&(this.currentRenderer.stop(),this.currentRenderer=tt,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(tt,tr){for(var{boundTextures:ti}=this.renderer.texture,ta=tr-1;ta>=0;--ta)tt[ta]=ti[ta]||null,tt[ta]&&(tt[ta]._batchLocation=ta)}boundArray(tt,tr,ti,ta){for(var{elements:ts,ids:tu,count:tc}=tt,td=0,tp=0;tp<tc;tp++){var tv=ts[tp],tg=tv._batchLocation;if(tg>=0&&tg<ta&&tr[tg]===tv){tu[tp]=tg;continue}for(;td<ta;){var tb=tr[td];if(tb&&tb._batchEnabled===ti&&tb._batchLocation===td){td++;continue}tu[tp]=td,tv._batchLocation=td,tr[td]=tv;break}}}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.emptyRenderer=new i7(tt),this.currentRenderer=this.emptyRenderer}}ac.extension={type:nk.RendererSystem,name:"batch"},nO.add(ac);var af=0;class al{get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(tt){this.gl=tt,this.renderer.gl=tt,this.renderer.CONTEXT_UID=af++}init(tt){if(tt.context)this.initFromContext(tt.context);else{var tr=this.renderer.background.alpha<1,ti=tt.premultipliedAlpha;this.preserveDrawingBuffer=tt.preserveDrawingBuffer,this.useContextAlpha=tt.useContextAlpha,this.powerPreference=tt.powerPreference,this.initFromOptions({alpha:tr,premultipliedAlpha:ti,antialias:tt.antialias,stencil:!0,preserveDrawingBuffer:tt.preserveDrawingBuffer,powerPreference:tt.powerPreference})}}initFromContext(tt){this.gl=tt,this.validateContext(tt),this.renderer.gl=tt,this.renderer.CONTEXT_UID=af++,this.renderer.runners.contextChange.emit(tt);var tr=this.renderer.view;void 0!==tr.addEventListener&&(tr.addEventListener("webglcontextlost",this.handleContextLost,!1),tr.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(tt){var tr=this.createContext(this.renderer.view,tt);this.initFromContext(tr)}createContext(tt,tr){var ti;if(e$.PREFER_ENV>=rw.WEBGL2&&(ti=tt.getContext("webgl2",tr)),ti)this.webGLVersion=2;else if(this.webGLVersion=1,!(ti=tt.getContext("webgl",tr)||tt.getContext("experimental-webgl",tr)))throw Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=ti,this.getExtensions(),this.gl}getExtensions(){var{gl:tt}=this,tr={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,tr,{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,tr,{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 tr=tt.getContextAttributes(),ti="WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext;ti&&(this.webGLVersion=2),tr&&!tr.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var ta=ti||!!tt.getExtension("OES_element_index_uint");this.supports.uint32Indices=ta,ta||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)}}al.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"},al.extension={type:nk.RendererSystem,name:"context"},nO.add(al);class ad{get colorTexture(){return this.colorTextures[0]}addColorTexture(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,tr=arguments.length>1?arguments[1]:void 0;return this.colorTextures[tt]=tr||new nJ(null,{scaleMode:rk.NEAREST,resolution:1,mipmap:rC.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(tt){return this.depthTexture=tt||new nJ(null,{scaleMode:rk.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:rC.OFF,format:rT.DEPTH_COMPONENT,type:rR.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,tr){if(tt=Math.round(tt),tr=Math.round(tr),!tt||!tr)throw Error("Framebuffer width and height must not be zero");if(!(tt===this.width&&tr===this.height)){this.width=tt,this.height=tr,this.dirtyId++,this.dirtySize++;for(var ti=0;ti<this.colorTextures.length;ti++){var ta=this.colorTextures[ti],ts=ta.resolution;ta.setSize(tt/ts,tr/ts)}if(this.depthTexture){var tu=this.depthTexture.resolution;this.depthTexture.setSize(tt/tu,tr/tu)}}}dispose(){this.disposeRunner.emit(this,!1)}destroyDepthTexture(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)}constructor(tt,tr){if(this.width=Math.round(tt),this.height=Math.round(tr),!this.width||!this.height)throw Error("Framebuffer width or height is zero");this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new nY("disposeFramebuffer"),this.multisample=rj.NONE}}class ap extends nJ{set clearColor(tt){this._clear.setValue(tt)}get clearColor(){return this._clear.value}get clear(){return this._clear}get multisample(){return this.framebuffer.multisample}set multisample(tt){this.framebuffer.multisample=tt}resize(tt,tr){this.framebuffer.resize(tt*this.resolution,tr*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)}dispose(){this.framebuffer.dispose(),super.dispose()}destroy(){super.destroy(),this.framebuffer.destroyDepthTexture(),this.framebuffer=null}constructor(tt={}){if("number"==typeof tt){var tr,ti,ta,ts=arguments[0],tu=arguments[1],tc=arguments[2],td=arguments[3];tt={width:ts,height:tu,scaleMode:tc,resolution:td}}tt.width=null!==(tr=tt.width)&&void 0!==tr?tr:100,tt.height=null!==(ti=tt.height)&&void 0!==ti?ti:100,null!==(ta=tt.multisample)&&void 0!==ta||(tt.multisample=rj.NONE),super(null,tt),this.mipmap=rC.OFF,this.valid=!0,this._clear=new nf([0,0,0,0]),this.framebuffer=new ad(this.realWidth,this.realHeight).addColorTexture(0,this),this.framebuffer.multisample=tt.multisample,this.maskStack=[],this.filterStack=[{}]}}class av extends nX{static crossOrigin(tt,tr,ti){void 0!==ti||tr.startsWith("data:")?!1!==ti&&(tt.crossOrigin="string"==typeof ti?ti:"anonymous"):tt.crossOrigin=nR(tr)}upload(tt,tr,ti,ta){var ts=tt.gl,tu=tr.realWidth,tc=tr.realHeight;if(ta=ta||this.source,"u">typeof HTMLImageElement&&ta instanceof HTMLImageElement){if(!ta.complete||0===ta.naturalWidth)return!1}else if("u">typeof HTMLVideoElement&&ta instanceof HTMLVideoElement&&ta.readyState<=1)return!1;return ts.pixelStorei(ts.UNPACK_PREMULTIPLY_ALPHA_WEBGL,tr.alphaMode===rO.UNPACK),this.noSubImage||tr.target!==ts.TEXTURE_2D||ti.width!==tu||ti.height!==tc?(ti.width=tu,ti.height=tc,ts.texImage2D(tr.target,0,ti.internalFormat,tr.format,ti.type,ta)):ts.texSubImage2D(ts.TEXTURE_2D,0,0,0,tr.format,ti.type,ta),!0}update(){if(!this.destroyed){var tt=this.source,tr=tt.naturalWidth||tt.videoWidth||tt.width,ti=tt.naturalHeight||tt.videoHeight||tt.height;this.resize(tr,ti),super.update()}}dispose(){this.source=null}constructor(tt){var tr=tt;super(tr.naturalWidth||tr.videoWidth||tr.width,tr.naturalHeight||tr.videoHeight||tr.height),this.source=tt,this.noSubImage=!1}}class am extends av{load(tt){return this._load||(void 0!==tt&&(this.createBitmap=tt),this._load=new Promise((tt,tr)=>{var ti=this.source;this.url=ti.src;var ta=()=>{this.destroyed||(ti.onload=null,ti.onerror=null,this.update(),this._load=null,this.createBitmap?tt(this.process()):tt(this))};ti.complete&&ti.src?ta():(ti.onload=ta,ti.onerror=tt=>{tr(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 tr=globalThis.createImageBitmap,ti=!tt.crossOrigin||"anonymous"===tt.crossOrigin;return this._process=fetch(tt.src,{mode:ti?"cors":"no-cors"}).then(tt=>tt.blob()).then(ti=>tr(ti,0,0,tt.width,tt.height,{premultiplyAlpha:null===this.alphaMode||this.alphaMode===rO.UNPACK?"premultiply":"none"})).then(tt=>this.destroyed?Promise.reject():(this.bitmap=tt,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(tt,tr,ti){if("number"==typeof this.alphaMode&&(tr.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(tt,tr,ti);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(tt,tr,ti,this.bitmap),!this.preserveBitmap){var ta=!0,ts=tr._glTextures;for(var tu in ts){var tc=ts[tu];if(tc!==ti&&tc.dirtyId!==tr.dirtyId){ta=!1;break}}ta&&(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,tr){if(tr=tr||{},"string"==typeof tt){var ti,ta=new Image;av.crossOrigin(ta,tt,tr.crossorigin),ta.src=tt,tt=ta}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!==(ti=tr.createBitmap)&&void 0!==ti?ti:e$.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,this.alphaMode="number"==typeof tr.alphaMode?tr.alphaMode:null,this.bitmap=null,this._load=null,!1!==tr.autoLoad&&this.load()}}class ag{set(tt,tr,ti){var ta=tr.width,ts=tr.height;if(ti){var tu=tt.width/2/ta,tc=tt.height/2/ts,td=tt.x/ta+tu,tp=tt.y/ts+tc;ti=iT.add(ti,iT.NW),this.x0=td+tu*iT.uX(ti),this.y0=tp+tc*iT.uY(ti),ti=iT.add(ti,2),this.x1=td+tu*iT.uX(ti),this.y1=tp+tc*iT.uY(ti),ti=iT.add(ti,2),this.x2=td+tu*iT.uX(ti),this.y2=tp+tc*iT.uY(ti),ti=iT.add(ti,2),this.x3=td+tu*iT.uX(ti),this.y3=tp+tc*iT.uY(ti)}else this.x0=tt.x/ta,this.y0=tt.y/ts,this.x1=(tt.x+tt.width)/ta,this.y1=tt.y/ts,this.x2=(tt.x+tt.width)/ta,this.y2=(tt.y+tt.height)/ts,this.x3=tt.x/ta,this.y3=(tt.y+tt.height)/ts;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)}}ag.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 ab=new ag;function a_(tt){tt.destroy=function(){},tt.on=function(){},tt.once=function(){},tt.emit=function(){}}class aw extends rf{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:tr}=this.baseTexture;(null==tr?void 0:tr.url)&&nT[tr.url]&&aw.removeFromCache(tr.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,aw.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}clone(){var tt,tr=this._frame.clone(),ti=this._frame===this.orig?tr:this.orig.clone(),ta=new aw(this.baseTexture,!this.noFrame&&tr,ti,null===(tt=this.trim)||void 0===tt?void 0:tt.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(ta._frame=tr),ta}updateUvs(){this._uvs===ab&&(this._uvs=new ag),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e$.STRICT_TEXTURE_CACHE,ta="string"==typeof tt,ts=null;if(ta)ts=tt;else if(tt instanceof nJ){if(!tt.cacheId){var tu=(null==tr?void 0:tr.pixiIdPrefix)||"pixiid";tt.cacheId="".concat(tu,"-").concat(nE()),nJ.addToCache(tt,tt.cacheId)}ts=tt.cacheId}else{if(!tt._pixiId){var tc=(null==tr?void 0:tr.pixiIdPrefix)||"pixiid";tt._pixiId="".concat(tc,"_").concat(nE())}ts=tt._pixiId}var td=nT[ts];if(ta&&ti&&!td)throw Error('The cacheId "'.concat(ts,'" does not exist in TextureCache.'));return td||tt instanceof nJ?!td&&tt instanceof nJ&&(td=new aw(tt),aw.addToCache(td,ts)):(tr.resolution||(tr.resolution=nI(tt)),(td=new aw(new nJ(tt,tr))).baseTexture.cacheId=ts,nJ.addToCache(td.baseTexture,ts),aw.addToCache(td,ts)),td}static fromURL(tt,tr){var ti=Object.assign({autoLoad:!1},null==tr?void 0:tr.resourceOptions),ta=aw.from(tt,Object.assign({resourceOptions:ti},tr),!1),ts=ta.baseTexture.resource;return ta.baseTexture.valid?Promise.resolve(ta):ts.load().then(()=>Promise.resolve(ta))}static fromBuffer(tt,tr,ti,ta){return new aw(nJ.fromBuffer(tt,tr,ti,ta))}static fromLoader(tt,tr,ti,ta){var ts=new nJ(tt,Object.assign({scaleMode:nJ.defaultOptions.scaleMode,resolution:nI(tr)},ta)),{resource:tu}=ts;tu instanceof am&&(tu.url=tr);var tc=new aw(ts);return ti||(ti=tr),nJ.addToCache(tc.baseTexture,ti),aw.addToCache(tc,ti),ti!==tr&&(nJ.addToCache(tc.baseTexture,tr),aw.addToCache(tc,tr)),tc.baseTexture.valid?Promise.resolve(tc):new Promise(tt=>{tc.baseTexture.once("loaded",()=>tt(tc))})}static addToCache(tt,tr){tr&&(tt.textureCacheIds.includes(tr)||tt.textureCacheIds.push(tr),nT[tr]&&nT[tr]!==tt&&console.warn("Texture added to the cache with an id [".concat(tr,"] that already had an entry")),nT[tr]=tt)}static removeFromCache(tt){if("string"==typeof tt){var tr=nT[tt];if(tr){var ti=tr.textureCacheIds.indexOf(tt);return ti>-1&&tr.textureCacheIds.splice(ti,1),delete nT[tt],tr}}else if(null==tt?void 0:tt.textureCacheIds){for(var ta=0;ta<tt.textureCacheIds.length;++ta)nT[tt.textureCacheIds[ta]]===tt&&delete nT[tt.textureCacheIds[ta]];return tt.textureCacheIds.length=0,tt}return null}get resolution(){return this.baseTexture.resolution}get frame(){return this._frame}set frame(tt){this._frame=tt,this.noFrame=!1;var{x:tr,y:ti,width:ta,height:ts}=tt,tu=tr+ta>this.baseTexture.width,tc=ti+ts>this.baseTexture.height;if(tu||tc){var td=tu&&tc?"and":"or",tp="X: ".concat(tr," + ").concat(ta," = ").concat(tr+ta," > ").concat(this.baseTexture.width),tv="Y: ".concat(ti," + ").concat(ts," = ").concat(ti+ts," > ").concat(this.baseTexture.height);throw Error("Texture Error: frame does not fit inside the base Texture dimensions: ".concat(tp," ").concat(td," ").concat(tv))}this.valid=ta&&ts&&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 aw._EMPTY||(aw._EMPTY=new aw(new nJ),a_(aw._EMPTY),a_(aw._EMPTY.baseTexture)),aw._EMPTY}static get WHITE(){if(!aw._WHITE){var tt=e$.ADAPTER.createCanvas(16,16),tr=tt.getContext("2d");tt.width=16,tt.height=16,tr.fillStyle="white",tr.fillRect(0,0,16,16),aw._WHITE=new aw(nJ.from(tt)),a_(aw._WHITE),a_(aw._WHITE.baseTexture)}return aw._WHITE}constructor(tt,tr,ti,ta,ts,tu,tc){if(super(),this.noFrame=!1,tr||(this.noFrame=!0,tr=new ic(0,0,1,1)),tt instanceof aw&&(tt=tt.baseTexture),this.baseTexture=tt,this._frame=tr,this.trim=ta,this.valid=!1,this.destroyed=!1,this._uvs=ab,this.uvMatrix=null,this.orig=ti||tr,this._rotate=Number(ts||0),!0===ts)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 iu(tu.x,tu.y):new iu(0,0),this.defaultBorders=tc,this._updateID=0,this.textureCacheIds=[],tt.valid?this.noFrame?tt.valid&&this.onBaseTextureUpdated(tt):this.frame=tr:tt.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&tt.on("update",this.onBaseTextureUpdated,this)}}class aE extends aw{get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(tt){this.framebuffer.multisample=tt}resize(tt,tr){var ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2],ta=this.baseTexture.resolution,ts=Math.round(tt*ta)/ta,tu=Math.round(tr*ta)/ta;this.valid=ts>0&&tu>0,this._frame.width=this.orig.width=ts,this._frame.height=this.orig.height=tu,ti&&this.baseTexture.resize(ts,tu),this.updateUvs()}setResolution(tt){var{baseTexture:tr}=this;tr.resolution!==tt&&(tr.setResolution(tt),this.resize(tr.width,tr.height,!1))}static create(tt){return new aE(new ap(tt))}constructor(tt,tr){super(tt,tr),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}}class aS{createTexture(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rj.NONE,ta=new ap(Object.assign({width:tt,height:tr,resolution:1,multisample:ti},this.textureOptions));return new aE(ta)}getOptimalTexture(tt,tr){var ti,ta=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,ts=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rj.NONE;tt=Math.max(Math.ceil(tt*ta-1e-6),1),tr=Math.max(Math.ceil(tr*ta-1e-6),1),this.enableFullScreen&&tt===this._pixelsWidth&&tr===this._pixelsHeight?ti=ts>1?-ts:-1:(ti=((65535&(tt=np(tt)))<<16|65535&(tr=np(tr)))>>>0,ts>1&&(ti+=4294967296*ts)),this.texturePool[ti]||(this.texturePool[ti]=[]);var tu=this.texturePool[ti].pop();return tu||(tu=this.createTexture(tt,tr,ts)),tu.filterPoolKey=ti,tu.setResolution(ta),tu}getFilterTexture(tt,tr,ti){var ta=this.getOptimalTexture(tt.width,tt.height,tr||tt.resolution,ti||rj.NONE);return ta.filterFrame=tt.filterFrame,ta}returnTexture(tt){var tr=tt.filterPoolKey;tt.filterFrame=null,this.texturePool[tr].push(tt)}returnFilterTexture(tt){this.returnTexture(tt)}clear(tt){if(tt=!1!==tt)for(var tr in this.texturePool){var ti=this.texturePool[tr];if(ti)for(var ta=0;ta<ti.length;ta++)ti[ta].destroy(!0)}this.texturePool={}}setScreenSize(tt){if(!(tt.width===this._pixelsWidth&&tt.height===this._pixelsHeight)){for(var tr in this.enableFullScreen=tt.width>0&&tt.height>0,this.texturePool)if(0>Number(tr)){var ti=this.texturePool[tr];if(ti)for(var ta=0;ta<ti.length;ta++)ti[ta].destroy(!0);this.texturePool[tr]=[]}this._pixelsWidth=tt.width,this._pixelsHeight=tt.height}}constructor(tt){this.texturePool={},this.textureOptions=tt||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}}aS.SCREEN_KEY=-1;class aM extends n7{constructor(){super(),this.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2])}}class aR extends n7{map(tt,tr){var ti=0,ta=0;return this.uvs[0]=ti,this.uvs[1]=ta,this.uvs[2]=ti+tr.width/tt.width,this.uvs[3]=ta,this.uvs[4]=ti+tr.width/tt.width,this.uvs[5]=ta+tr.height/tt.height,this.uvs[6]=ti,this.uvs[7]=ta+tr.height/tt.height,ti=tr.x,ta=tr.y,this.vertices[0]=ti,this.vertices[1]=ta,this.vertices[2]=ti+tr.width,this.vertices[3]=ta,this.vertices[4]=ti+tr.width,this.vertices[5]=ta+tr.height,this.vertices[6]=ti,this.vertices[7]=ta+tr.height,this.invalidate(),this}invalidate(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this}constructor(){super(),this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.vertexBuffer=new n1(this.vertices),this.uvBuffer=new n1(this.uvs),this.addAttribute("aVertexPosition",this.vertexBuffer).addAttribute("aTextureCoord",this.uvBuffer).addIndex([0,1,2,0,2,3])}}class aI{clear(){this.target=null,this.filters=null,this.renderTexture=null}constructor(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=rj.NONE,this.sourceFrame=new ic,this.destinationFrame=new ic,this.bindingSourceFrame=new ic,this.bindingDestinationFrame=new ic,this.filters=[],this.transform=null}}var ak=[new iu,new iu,new iu,new iu],aP=new ib;class aC{init(){this.texturePool.setScreenSize(this.renderer.view)}push(tt,tr){var ti=this.renderer,ta=this.defaultFilterStack,ts=this.statePool.pop()||new aI,tu=ti.renderTexture;if(tu.current){var tc=tu.current;tE=tc.resolution,tA=tc.multisample}else tE=ti.resolution,tA=ti.multisample;for(var td=tr[0].resolution||tE,tp=null!==(tS=tr[0].multisample)&&void 0!==tS?tS:tA,tv=tr[0].padding,tg=tr[0].autoFit,tb=null===(tT=tr[0].legacy)||void 0===tT||tT,t_=1;t_<tr.length;t_++){var tE,tA,tS,tT,tM,tR,tI=tr[t_];td=Math.min(td,tI.resolution||tE),tp=Math.min(tp,null!==(tM=tI.multisample)&&void 0!==tM?tM:tA),tv=this.useMaxPadding?Math.max(tv,tI.padding):tv+tI.padding,tg=tg&&tI.autoFit,tb=tb||null===(tR=tI.legacy)||void 0===tR||tR}1===ta.length&&(this.defaultFilterStack[0].renderTexture=tu.current),ta.push(ts),ts.resolution=td,ts.multisample=tp,ts.legacy=tb,ts.target=tt,ts.sourceFrame.copyFrom(tt.filterArea||tt.getBounds(!0)),ts.sourceFrame.pad(tv);var tk=this.tempRect.copyFrom(tu.sourceFrame);ti.projection.transform&&this.transformAABB(aP.copyFrom(ti.projection.transform).invert(),tk),tg?(ts.sourceFrame.fit(tk),(ts.sourceFrame.width<=0||ts.sourceFrame.height<=0)&&(ts.sourceFrame.width=0,ts.sourceFrame.height=0)):ts.sourceFrame.intersects(tk)||(ts.sourceFrame.width=0,ts.sourceFrame.height=0),this.roundFrame(ts.sourceFrame,tu.current?tu.current.resolution:ti.resolution,tu.sourceFrame,tu.destinationFrame,ti.projection.transform),ts.renderTexture=this.getOptimalFilterTexture(ts.sourceFrame.width,ts.sourceFrame.height,td,tp),ts.filters=tr,ts.destinationFrame.width=ts.renderTexture.width,ts.destinationFrame.height=ts.renderTexture.height;var tP=this.tempRect;tP.x=0,tP.y=0,tP.width=ts.sourceFrame.width,tP.height=ts.sourceFrame.height,ts.renderTexture.filterFrame=ts.sourceFrame,ts.bindingSourceFrame.copyFrom(tu.sourceFrame),ts.bindingDestinationFrame.copyFrom(tu.destinationFrame),ts.transform=ti.projection.transform,ti.projection.transform=null,tu.bind(ts.renderTexture,ts.sourceFrame,tP),ti.framebuffer.clear(0,0,0,0)}pop(){var tt=this.defaultFilterStack,tr=tt.pop(),ti=tr.filters;this.activeState=tr;var ta=this.globalUniforms.uniforms;ta.outputFrame=tr.sourceFrame,ta.resolution=tr.resolution;var ts=ta.inputSize,tu=ta.inputPixel,tc=ta.inputClamp;if(ts[0]=tr.destinationFrame.width,ts[1]=tr.destinationFrame.height,ts[2]=1/ts[0],ts[3]=1/ts[1],tu[0]=Math.round(ts[0]*tr.resolution),tu[1]=Math.round(ts[1]*tr.resolution),tu[2]=1/tu[0],tu[3]=1/tu[1],tc[0]=.5*tu[2],tc[1]=.5*tu[3],tc[2]=tr.sourceFrame.width*ts[2]-.5*tu[2],tc[3]=tr.sourceFrame.height*ts[3]-.5*tu[3],tr.legacy){var td=ta.filterArea;td[0]=tr.destinationFrame.width,td[1]=tr.destinationFrame.height,td[2]=tr.sourceFrame.x,td[3]=tr.sourceFrame.y,ta.filterClamp=ta.inputClamp}this.globalUniforms.update();var tp=tt[tt.length-1];if(this.renderer.framebuffer.blit(),1===ti.length)ti[0].apply(this,tr.renderTexture,tp.renderTexture,rN.BLEND,tr),this.returnFilterTexture(tr.renderTexture);else{var tv=tr.renderTexture,tg=this.getOptimalFilterTexture(tv.width,tv.height,tr.resolution);tg.filterFrame=tv.filterFrame;var tb=0;for(tb=0;tb<ti.length-1;++tb){1===tb&&tr.multisample>1&&((tg=this.getOptimalFilterTexture(tv.width,tv.height,tr.resolution)).filterFrame=tv.filterFrame),ti[tb].apply(this,tv,tg,rN.CLEAR,tr);var t_=tv;tv=tg,tg=t_}ti[tb].apply(this,tv,tp.renderTexture,rN.BLEND,tr),tb>1&&tr.multisample>1&&this.returnFilterTexture(tr.renderTexture),this.returnFilterTexture(tv),this.returnFilterTexture(tg)}tr.clear(),this.statePool.push(tr)}bindAndClear(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rN.CLEAR,{renderTexture:ti,state:ta}=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 ts=this.tempRect;ts.x=0,ts.y=0,ts.width=tt.filterFrame.width,ts.height=tt.filterFrame.height,ti.bind(tt,tt.filterFrame,ts)}else tt!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?ti.bind(tt):this.renderer.renderTexture.bind(tt,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var tu=1&ta.stateId||this.forceClear;(tr===rN.CLEAR||tr===rN.BLIT&&tu)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(tt,tr,ti,ta){var ts=this.renderer;ts.state.set(tt.state),this.bindAndClear(ti,ta),tt.uniforms.uSampler=tr,tt.uniforms.filterGlobals=this.globalUniforms,ts.shader.bind(tt),tt.legacy=!!tt.program.attributeData.aTextureCoord,tt.legacy?(this.quadUv.map(tr._frame,tr.filterFrame),ts.geometry.bind(this.quadUv),ts.geometry.draw(rS.TRIANGLES)):(ts.geometry.bind(this.quad),ts.geometry.draw(rS.TRIANGLE_STRIP))}calculateSpriteMatrix(tt,tr){var{sourceFrame:ti,destinationFrame:ta}=this.activeState,{orig:ts}=tr._texture,tu=tt.set(ta.width,0,0,ta.height,ti.x,ti.y),tc=tr.worldTransform.copyTo(ib.TEMP_MATRIX);return tc.invert(),tu.prepend(tc),tu.scale(1/ts.width,1/ts.height),tu.translate(tr.anchor.x,tr.anchor.y),tu}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,ta=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rj.NONE;return this.texturePool.getOptimalTexture(tt,tr,ti,ta)}getFilterTexture(tt,tr,ti){if("number"==typeof tt){var ta=tt;tt=tr,tr=ta}tt=tt||this.activeState.renderTexture;var ts=this.texturePool.getOptimalTexture(tt.width,tt.height,tr||tt.resolution,ti||rj.NONE);return ts.filterFrame=tt.filterFrame,ts}returnFilterTexture(tt){this.texturePool.returnTexture(tt)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(tt,tr){var ti=ak[0],ta=ak[1],ts=ak[2],tu=ak[3];ti.set(tr.left,tr.top),ta.set(tr.left,tr.bottom),ts.set(tr.right,tr.top),tu.set(tr.right,tr.bottom),tt.apply(ti,ti),tt.apply(ta,ta),tt.apply(ts,ts),tt.apply(tu,tu);var tc=Math.min(ti.x,ta.x,ts.x,tu.x),td=Math.min(ti.y,ta.y,ts.y,tu.y),tp=Math.max(ti.x,ta.x,ts.x,tu.x),tv=Math.max(ti.y,ta.y,ts.y,tu.y);tr.x=tc,tr.y=td,tr.width=tp-tc,tr.height=tv-td}roundFrame(tt,tr,ti,ta,ts){if(!(tt.width<=0||tt.height<=0||ti.width<=0||ti.height<=0)){if(ts){var{a:tu,b:tc,c:td,d:tp}=ts;if((Math.abs(tc)>1e-4||Math.abs(td)>1e-4)&&(Math.abs(tu)>1e-4||Math.abs(tp)>1e-4))return}(ts=ts?aP.copyFrom(ts):aP.identity()).translate(-ti.x,-ti.y).scale(ta.width/ti.width,ta.height/ti.height).translate(ta.x,ta.y),this.transformAABB(ts,tt),tt.ceil(tr),this.transformAABB(ts.invert(),tt)}}constructor(tt){this.renderer=tt,this.defaultFilterStack=[{}],this.texturePool=new aS,this.statePool=[],this.quad=new aM,this.quadUv=new aR,this.tempRect=new ic,this.activeState={},this.globalUniforms=new iQ({outputFrame:new ic,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}}aC.extension={type:nk.RendererSystem,name:"filter"},nO.add(aC);class aO{constructor(tt){this.framebuffer=tt,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=rj.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}var aN=new ic;class aL{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 ic,this.hasMRT=!0,this.writeDepthTexture=!0,1===this.renderer.context.webGLVersion){var tr=this.renderer.context.extensions.drawBuffers,ti=this.renderer.context.extensions.depthTexture;e$.PREFER_ENV===rw.WEBGL_LEGACY&&(tr=null,ti=null),tr?tt.drawBuffers=tt=>tr.drawBuffersWEBGL(tt):(this.hasMRT=!1,tt.drawBuffers=()=>{}),ti||(this.writeDepthTexture=!1)}else this.msaaSamples=tt.getInternalformatParameter(tt.RENDERBUFFER,tt.RGBA8,tt.SAMPLES)}bind(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,{gl:ta}=this;if(tt){var ts=tt.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(tt);this.current!==tt&&(this.current=tt,ta.bindFramebuffer(ta.FRAMEBUFFER,ts.framebuffer)),ts.mipLevel!==ti&&(tt.dirtyId++,tt.dirtyFormat++,ts.mipLevel=ti),ts.dirtyId!==tt.dirtyId&&(ts.dirtyId=tt.dirtyId,ts.dirtyFormat!==tt.dirtyFormat?(ts.dirtyFormat=tt.dirtyFormat,ts.dirtySize=tt.dirtySize,this.updateFramebuffer(tt,ti)):ts.dirtySize!==tt.dirtySize&&(ts.dirtySize=tt.dirtySize,this.resizeFramebuffer(tt)));for(var tu=0;tu<tt.colorTextures.length;tu++){var tc=tt.colorTextures[tu];this.renderer.texture.unbind(tc.parentTextureArray||tc)}if(tt.depthTexture&&this.renderer.texture.unbind(tt.depthTexture),tr){var td=tr.width>>ti,tp=tr.height>>ti,tv=td/tr.width;this.setViewport(tr.x*tv,tr.y*tv,td,tp)}else{var tg=tt.width>>ti,tb=tt.height>>ti;this.setViewport(0,0,tg,tb)}}else this.current&&(this.current=null,ta.bindFramebuffer(ta.FRAMEBUFFER,null)),tr?this.setViewport(tr.x,tr.y,tr.width,tr.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(tt,tr,ti,ta){var ts=this.viewport;tt=Math.round(tt),tr=Math.round(tr),ti=Math.round(ti),ta=Math.round(ta),(ts.width!==ti||ts.height!==ta||ts.x!==tt||ts.y!==tr)&&(ts.x=tt,ts.y=tr,ts.width=ti,ts.height=ta,this.gl.viewport(tt,tr,ti,ta))}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,tr,ti,ta){var ts=arguments.length>4&&void 0!==arguments[4]?arguments[4]:rA.COLOR|rA.DEPTH,{gl:tu}=this;tu.clearColor(tt,tr,ti,ta),tu.clear(ts)}initFramebuffer(tt){var{gl:tr}=this,ti=new aO(tr.createFramebuffer());return ti.multisample=this.detectSamples(tt.multisample),tt.glFramebuffers[this.CONTEXT_UID]=ti,this.managedFramebuffers.push(tt),tt.disposeRunner.add(this),ti}resizeFramebuffer(tt){var tr,{gl:ti}=this,ta=tt.glFramebuffers[this.CONTEXT_UID];ta.stencil&&(ti.bindRenderbuffer(ti.RENDERBUFFER,ta.stencil),tr=1===this.renderer.context.webGLVersion?ti.DEPTH_STENCIL:tt.depth&&tt.stencil?ti.DEPTH24_STENCIL8:tt.depth?ti.DEPTH_COMPONENT24:ti.STENCIL_INDEX8,ta.msaaBuffer?ti.renderbufferStorageMultisample(ti.RENDERBUFFER,ta.multisample,tr,tt.width,tt.height):ti.renderbufferStorage(ti.RENDERBUFFER,tr,tt.width,tt.height));var ts=tt.colorTextures,tu=ts.length;ti.drawBuffers||(tu=Math.min(tu,1));for(var tc=0;tc<tu;tc++){var td=ts[tc],tp=td.parentTextureArray||td;this.renderer.texture.bind(tp,0),0===tc&&ta.msaaBuffer&&(ti.bindRenderbuffer(ti.RENDERBUFFER,ta.msaaBuffer),ti.renderbufferStorageMultisample(ti.RENDERBUFFER,ta.multisample,tp._glTextures[this.CONTEXT_UID].internalFormat,tt.width,tt.height))}tt.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(tt.depthTexture,0)}updateFramebuffer(tt,tr){var ti,ta,{gl:ts}=this,tu=tt.glFramebuffers[this.CONTEXT_UID],tc=tt.colorTextures,td=tc.length;ts.drawBuffers||(td=Math.min(td,1)),tu.multisample>1&&this.canMultisampleFramebuffer(tt)?tu.msaaBuffer=tu.msaaBuffer||ts.createRenderbuffer():tu.msaaBuffer&&(ts.deleteRenderbuffer(tu.msaaBuffer),tu.msaaBuffer=null,tu.blitFramebuffer&&(tu.blitFramebuffer.dispose(),tu.blitFramebuffer=null));for(var tp=[],tv=0;tv<td;tv++){var tg=tc[tv],tb=tg.parentTextureArray||tg;this.renderer.texture.bind(tb,0),0===tv&&tu.msaaBuffer?(ts.bindRenderbuffer(ts.RENDERBUFFER,tu.msaaBuffer),ts.renderbufferStorageMultisample(ts.RENDERBUFFER,tu.multisample,tb._glTextures[this.CONTEXT_UID].internalFormat,tt.width,tt.height),ts.framebufferRenderbuffer(ts.FRAMEBUFFER,ts.COLOR_ATTACHMENT0,ts.RENDERBUFFER,tu.msaaBuffer)):(ts.framebufferTexture2D(ts.FRAMEBUFFER,ts.COLOR_ATTACHMENT0+tv,tg.target,tb._glTextures[this.CONTEXT_UID].texture,tr),tp.push(ts.COLOR_ATTACHMENT0+tv))}if(tp.length>1&&ts.drawBuffers(tp),tt.depthTexture&&this.writeDepthTexture){var t_=tt.depthTexture;this.renderer.texture.bind(t_,0),ts.framebufferTexture2D(ts.FRAMEBUFFER,ts.DEPTH_ATTACHMENT,ts.TEXTURE_2D,t_._glTextures[this.CONTEXT_UID].texture,tr)}(tt.stencil||tt.depth)&&!(tt.depthTexture&&this.writeDepthTexture)?(tu.stencil=tu.stencil||ts.createRenderbuffer(),1===this.renderer.context.webGLVersion?(ti=ts.DEPTH_STENCIL_ATTACHMENT,ta=ts.DEPTH_STENCIL):tt.depth&&tt.stencil?(ti=ts.DEPTH_STENCIL_ATTACHMENT,ta=ts.DEPTH24_STENCIL8):tt.depth?(ti=ts.DEPTH_ATTACHMENT,ta=ts.DEPTH_COMPONENT24):(ti=ts.STENCIL_ATTACHMENT,ta=ts.STENCIL_INDEX8),ts.bindRenderbuffer(ts.RENDERBUFFER,tu.stencil),tu.msaaBuffer?ts.renderbufferStorageMultisample(ts.RENDERBUFFER,tu.multisample,ta,tt.width,tt.height):ts.renderbufferStorage(ts.RENDERBUFFER,ta,tt.width,tt.height),ts.framebufferRenderbuffer(ts.FRAMEBUFFER,ti,ts.RENDERBUFFER,tu.stencil)):tu.stencil&&(ts.deleteRenderbuffer(tu.stencil),tu.stencil=null)}canMultisampleFramebuffer(tt){return 1!==this.renderer.context.webGLVersion&&tt.colorTextures.length<=1&&!tt.depthTexture}detectSamples(tt){var{msaaSamples:tr}=this,ti=rj.NONE;if(tt<=1||null===tr)return ti;for(var ta=0;ta<tr.length;ta++)if(tr[ta]<=tt){ti=tr[ta];break}return 1===ti&&(ti=rj.NONE),ti}blit(tt,tr,ti){var{current:ta,renderer:ts,gl:tu,CONTEXT_UID:tc}=this;if(2===ts.context.webGLVersion&&ta){var td=ta.glFramebuffers[tc];if(td){if(!tt){if(!td.msaaBuffer)return;var tp=ta.colorTextures[0];if(!tp)return;td.blitFramebuffer||(td.blitFramebuffer=new ad(ta.width,ta.height),td.blitFramebuffer.addColorTexture(0,tp)),(tt=td.blitFramebuffer).colorTextures[0]!==tp&&(tt.colorTextures[0]=tp,tt.dirtyId++,tt.dirtyFormat++),(tt.width!==ta.width||tt.height!==ta.height)&&(tt.width=ta.width,tt.height=ta.height,tt.dirtyId++,tt.dirtySize++)}tr||(tr=aN,tr.width=ta.width,tr.height=ta.height),ti||(ti=tr);var tv=tr.width===ti.width&&tr.height===ti.height;this.bind(tt),tu.bindFramebuffer(tu.READ_FRAMEBUFFER,td.framebuffer),tu.blitFramebuffer(tr.left,tr.top,tr.right,tr.bottom,ti.left,ti.top,ti.right,ti.bottom,tu.COLOR_BUFFER_BIT,tv?tu.NEAREST:tu.LINEAR),tu.bindFramebuffer(tu.READ_FRAMEBUFFER,tt.glFramebuffers[this.CONTEXT_UID].framebuffer)}}}disposeFramebuffer(tt,tr){var ti=tt.glFramebuffers[this.CONTEXT_UID],ta=this.gl;if(ti){delete tt.glFramebuffers[this.CONTEXT_UID];var ts=this.managedFramebuffers.indexOf(tt);ts>=0&&this.managedFramebuffers.splice(ts,1),tt.disposeRunner.remove(this),tr||(ta.deleteFramebuffer(ti.framebuffer),ti.msaaBuffer&&ta.deleteRenderbuffer(ti.msaaBuffer),ti.stencil&&ta.deleteRenderbuffer(ti.stencil)),ti.blitFramebuffer&&this.disposeFramebuffer(ti.blitFramebuffer,tr)}}disposeAll(tt){var tr=this.managedFramebuffers;this.managedFramebuffers=[];for(var ti=0;ti<tr.length;ti++)this.disposeFramebuffer(tr[ti],tt)}forceStencil(){var tt,tr,ti=this.current;if(ti){var ta=ti.glFramebuffers[this.CONTEXT_UID];if(ta&&(!ta.stencil||!ti.stencil)){ti.stencil=!0;var ts=ti.width,tu=ti.height,tc=this.gl,td=ta.stencil=tc.createRenderbuffer();tc.bindRenderbuffer(tc.RENDERBUFFER,td),1===this.renderer.context.webGLVersion?(tt=tc.DEPTH_STENCIL_ATTACHMENT,tr=tc.DEPTH_STENCIL):ti.depth?(tt=tc.DEPTH_STENCIL_ATTACHMENT,tr=tc.DEPTH24_STENCIL8):(tt=tc.STENCIL_ATTACHMENT,tr=tc.STENCIL_INDEX8),ta.msaaBuffer?tc.renderbufferStorageMultisample(tc.RENDERBUFFER,ta.multisample,tr,ts,tu):tc.renderbufferStorage(tc.RENDERBUFFER,tr,ts,tu),tc.framebufferRenderbuffer(tc.FRAMEBUFFER,tt,tc.RENDERBUFFER,td)}}}reset(){this.current=this.unknownFramebuffer,this.viewport=new ic}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.managedFramebuffers=[],this.unknownFramebuffer=new ad(10,10),this.msaaSamples=null}}aL.extension={type:nk.RendererSystem,name:"framebuffer"},nO.add(aL);var aU={5126:4,5123:2,5121:1};class aD{contextChange(){this.disposeAll(!0);var tt=this.gl=this.renderer.gl,tr=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==tr.webGLVersion){var ti=this.renderer.context.extensions.vertexArrayObject;e$.PREFER_ENV===rw.WEBGL_LEGACY&&(ti=null),ti?(tt.createVertexArray=()=>ti.createVertexArrayOES(),tt.bindVertexArray=tt=>ti.bindVertexArrayOES(tt),tt.deleteVertexArray=tt=>ti.deleteVertexArrayOES(tt)):(this.hasVao=!1,tt.createVertexArray=()=>null,tt.bindVertexArray=()=>null,tt.deleteVertexArray=()=>null)}if(2!==tr.webGLVersion){var ta=tt.getExtension("ANGLE_instanced_arrays");ta?(tt.vertexAttribDivisor=(tt,tr)=>ta.vertexAttribDivisorANGLE(tt,tr),tt.drawElementsInstanced=(tt,tr,ti,ts,tu)=>ta.drawElementsInstancedANGLE(tt,tr,ti,ts,tu),tt.drawArraysInstanced=(tt,tr,ti,ts)=>ta.drawArraysInstancedANGLE(tt,tr,ti,ts)):this.hasInstance=!1}this.canUseUInt32ElementIndex=2===tr.webGLVersion||!!tr.extensions.uint32ElementIndex}bind(tt,tr){tr=tr||this.renderer.shader.shader;var{gl:ti}=this,ta=tt.glVertexArrayObjects[this.CONTEXT_UID],ts=!1;ta||(this.managedGeometries[tt.id]=tt,tt.disposeRunner.add(this),tt.glVertexArrayObjects[this.CONTEXT_UID]=ta={},ts=!0);var tu=ta[tr.program.id]||this.initGeometryVao(tt,tr,ts);this._activeGeometry=tt,this._activeVao!==tu&&(this._activeVao=tu,this.hasVao?ti.bindVertexArray(tu):this.activateVao(tt,tr.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){for(var tt=this._activeGeometry,tr=this.renderer.buffer,ti=0;ti<tt.buffers.length;ti++){var ta=tt.buffers[ti];tr.update(ta)}}checkCompatibility(tt,tr){var ti=tt.attributes,ta=tr.attributeData;for(var ts in ta)if(!ti[ts])throw Error('shader and geometry incompatible, geometry missing the "'.concat(ts,'" attribute'))}getSignature(tt,tr){var ti=tt.attributes,ta=tr.attributeData,ts=["g",tt.id];for(var tu in ti)ta[tu]&&ts.push(tu,ta[tu].location);return ts.join("-")}initGeometryVao(tt,tr){var ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2],ta=this.gl,ts=this.CONTEXT_UID,tu=this.renderer.buffer,tc=tr.program;tc.glPrograms[ts]||this.renderer.shader.generateProgram(tr),this.checkCompatibility(tt,tc);var td=this.getSignature(tt,tc),tp=tt.glVertexArrayObjects[this.CONTEXT_UID],tv=tp[td];if(tv)return tp[tc.id]=tv,tv;var tg=tt.buffers,tb=tt.attributes,t_={},tE={};for(var tA in tg)t_[tA]=0,tE[tA]=0;for(var tS in tb)!tb[tS].size&&tc.attributeData[tS]?tb[tS].size=tc.attributeData[tS].size:tb[tS].size||console.warn("PIXI Geometry attribute '".concat(tS,"' size cannot be determined (likely the bound shader does not have the attribute)")),t_[tb[tS].buffer]+=tb[tS].size*aU[tb[tS].type];for(var tT in tb){var tM=tb[tT],tR=tM.size;void 0===tM.stride&&(t_[tM.buffer]===tR*aU[tM.type]?tM.stride=0:tM.stride=t_[tM.buffer]),void 0===tM.start&&(tM.start=tE[tM.buffer],tE[tM.buffer]+=tR*aU[tM.type])}tv=ta.createVertexArray(),ta.bindVertexArray(tv);for(var tI=0;tI<tg.length;tI++){var tk=tg[tI];tu.bind(tk),ti&&tk._glBuffers[ts].refCount++}return this.activateVao(tt,tc),tp[tc.id]=tv,tp[td]=tv,ta.bindVertexArray(null),tu.unbind(rF.ARRAY_BUFFER),tv}disposeGeometry(tt,tr){if(this.managedGeometries[tt.id]){delete this.managedGeometries[tt.id];var ti,ta=tt.glVertexArrayObjects[this.CONTEXT_UID],ts=this.gl,tu=tt.buffers,tc=null===(ti=this.renderer)||void 0===ti?void 0:ti.buffer;if(tt.disposeRunner.remove(this),ta){if(tc)for(var td=0;td<tu.length;td++){var tp=tu[td]._glBuffers[this.CONTEXT_UID];tp&&(tp.refCount--,0!==tp.refCount||tr||tc.dispose(tu[td],tr))}if(!tr){for(var tv in ta)if("g"===tv[0]){var tg=ta[tv];this._activeVao===tg&&this.unbind(),ts.deleteVertexArray(tg)}}delete tt.glVertexArrayObjects[this.CONTEXT_UID]}}}disposeAll(tt){for(var tr=Object.keys(this.managedGeometries),ti=0;ti<tr.length;ti++)this.disposeGeometry(this.managedGeometries[tr[ti]],tt)}activateVao(tt,tr){var ti=this.gl,ta=this.CONTEXT_UID,ts=this.renderer.buffer,tu=tt.buffers,tc=tt.attributes;tt.indexBuffer&&ts.bind(tt.indexBuffer);var td=null;for(var tp in tc){var tv=tc[tp],tg=tu[tv.buffer],tb=tg._glBuffers[ta];if(tr.attributeData[tp]){td!==tb&&(ts.bind(tg),td=tb);var t_=tr.attributeData[tp].location;if(ti.enableVertexAttribArray(t_),ti.vertexAttribPointer(t_,tv.size,tv.type||ti.FLOAT,tv.normalized,tv.stride,tv.start),tv.instance){if(this.hasInstance)ti.vertexAttribDivisor(t_,tv.divisor);else throw Error("geometry error, GPU Instancing is not supported on this device")}}}}draw(tt,tr,ti,ta){var{gl:ts}=this,tu=this._activeGeometry;if(tu.indexBuffer){var tc=tu.indexBuffer.data.BYTES_PER_ELEMENT,td=2===tc?ts.UNSIGNED_SHORT:ts.UNSIGNED_INT;2===tc||4===tc&&this.canUseUInt32ElementIndex?tu.instanced?ts.drawElementsInstanced(tt,tr||tu.indexBuffer.data.length,td,(ti||0)*tc,ta||1):ts.drawElements(tt,tr||tu.indexBuffer.data.length,td,(ti||0)*tc):console.warn("unsupported index buffer type: uint32")}else tu.instanced?ts.drawArraysInstanced(tt,ti,tr||tu.getSize(),ta||1):ts.drawArrays(tt,ti,tr||tu.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}}aD.extension={type:nk.RendererSystem,name:"geometry"},nO.add(aD);var aj=new ib;class aF{get texture(){return this._texture}set texture(tt){this._texture=tt,this._textureID=-1}multiplyUvs(tt,tr){void 0===tr&&(tr=tt);for(var ti=this.mapCoord,ta=0;ta<tt.length;ta+=2){var ts=tt[ta],tu=tt[ta+1];tr[ta]=ts*ti.a+tu*ti.c+ti.tx,tr[ta+1]=ts*ti.b+tu*ti.d+ti.ty}return tr}update(tt){var tr=this._texture;if(!tr||!tr.valid||!tt&&this._textureID===tr._updateID)return!1;this._textureID=tr._updateID,this._updateID++;var ti=tr._uvs;this.mapCoord.set(ti.x1-ti.x0,ti.y1-ti.y0,ti.x3-ti.x0,ti.y3-ti.y0,ti.x0,ti.y0);var ta=tr.orig,ts=tr.trim;ts&&(aj.set(ta.width/ts.width,0,0,ta.height/ts.height,-ts.x/ts.width,-ts.y/ts.height),this.mapCoord.append(aj));var tu=tr.baseTexture,tc=this.uClampFrame,td=this.clampMargin/tu.resolution,tp=this.clampOffset;return tc[0]=(tr._frame.x+td+tp)/tu.width,tc[1]=(tr._frame.y+td+tp)/tu.height,tc[2]=(tr._frame.x+tr._frame.width-td+tp)/tu.width,tc[3]=(tr._frame.y+tr._frame.height-td+tp)/tu.height,this.uClampOffset[0]=tp/tu.realWidth,this.uClampOffset[1]=tp/tu.realHeight,this.isSimple=tr._frame.width===tu.width&&tr._frame.height===tu.height&&0===tr.rotate,!0}constructor(tt,tr){this._texture=tt,this.mapCoord=new ib,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof tr>"u"?.5:tr,this.isSimple=!1}}var aG="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",aH="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 aV extends au{get maskSprite(){return this._maskSprite}set maskSprite(tt){this._maskSprite=tt,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(tt,tr,ti,ta){var ts=this._maskSprite,tu=ts._texture;tu.valid&&(tu.uvMatrix||(tu.uvMatrix=new aF(tu,0)),tu.uvMatrix.update(),this.uniforms.npmAlpha=tu.baseTexture.alphaMode?0:1,this.uniforms.mask=tu,this.uniforms.otherMatrix=tt.calculateSpriteMatrix(this.maskMatrix,ts).prepend(tu.uvMatrix.mapCoord),this.uniforms.alpha=ts.worldAlpha,this.uniforms.maskClamp=tu.uvMatrix.uClampFrame,tt.applyFilter(this,tr,ti,ta))}constructor(tt,tr,ti){var ta=null;"string"!=typeof tt&&void 0===tr&&void 0===ti&&(ta=tt,tt=void 0,tr=void 0,ti=void 0),super(tt||aH,tr||aG,ti),this.maskSprite=ta,this.maskMatrix=new ib}}class az{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=rU.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=rU.NONE,this.autoDetect=!0,this.maskObject=tt||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=au.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 aq{setMaskStack(tt){this.maskStack=tt,this.renderer.scissor.setMaskStack(tt),this.renderer.stencil.setMaskStack(tt)}push(tt,tr){var ti=tr;if(!ti.isMaskData){var ta=this.maskDataPool.pop()||new az;ta.pooled=!0,ta.maskObject=tr,ti=ta}var ts=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null;if(ti.copyCountersOrReset(ts),ti._colorMask=ts?ts._colorMask:15,ti.autoDetect&&this.detect(ti),ti._target=tt,ti.type!==rU.SPRITE&&this.maskStack.push(ti),ti.enabled)switch(ti.type){case rU.SCISSOR:this.renderer.scissor.push(ti);break;case rU.STENCIL:this.renderer.stencil.push(ti);break;case rU.SPRITE:ti.copyCountersOrReset(null),this.pushSpriteMask(ti);break;case rU.COLOR:this.pushColorMask(ti)}ti.type===rU.SPRITE&&this.maskStack.push(ti)}pop(tt){var tr=this.maskStack.pop();if(!(!tr||tr._target!==tt)){if(tr.enabled)switch(tr.type){case rU.SCISSOR:this.renderer.scissor.pop(tr);break;case rU.STENCIL:this.renderer.stencil.pop(tr.maskObject);break;case rU.SPRITE:this.popSpriteMask(tr);break;case rU.COLOR:this.popColorMask(tr)}if(tr.reset(),tr.pooled&&this.maskDataPool.push(tr),0!==this.maskStack.length){var ti=this.maskStack[this.maskStack.length-1];ti.type===rU.SPRITE&&ti._filters&&(ti._filters[0].maskSprite=ti.maskObject)}}}detect(tt){var tr=tt.maskObject;tr?tr.isSprite?tt.type=rU.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(tt)?tt.type=rU.SCISSOR:tt.type=rU.STENCIL:tt.type=rU.COLOR}pushSpriteMask(tt){var{maskObject:tr}=tt,ti=tt._target,ta=tt._filters;ta||(ta=this.alphaMaskPool[this.alphaMaskIndex])||(ta=this.alphaMaskPool[this.alphaMaskIndex]=[new aV]),ta[0].resolution=tt.resolution,ta[0].multisample=tt.multisample,ta[0].maskSprite=tr;var ts=ti.filterArea;ti.filterArea=tr.getBounds(!0),this.renderer.filter.push(ti,ta),ti.filterArea=ts,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 tr=tt._colorMask,ti=tt._colorMask=tr&tt.colorMask;ti!==tr&&this.renderer.gl.colorMask((1&ti)!=0,(2&ti)!=0,(4&ti)!=0,(8&ti)!=0)}popColorMask(tt){var tr=tt._colorMask,ti=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;ti!==tr&&this.renderer.gl.colorMask((1&ti)!=0,(2&ti)!=0,(4&ti)!=0,(8&ti)!=0)}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}}aq.extension={type:nk.RendererSystem,name:"mask"},nO.add(aq);class aW{getStackLength(){return this.maskStack.length}setMaskStack(tt){var{gl:tr}=this.renderer,ti=this.getStackLength();this.maskStack=tt;var ta=this.getStackLength();ta!==ti&&(0===ta?tr.disable(this.glConst):(tr.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}constructor(tt){this.renderer=tt,this.maskStack=[],this.glConst=0}}var aY=new ib,aK=[],aZ=class tt extends aW{getStackLength(){var tt=this.maskStack[this.maskStack.length-1];return tt?tt._scissorCounter:0}calcScissorRect(tt){if(!tt._scissorRectLocal){var tr,ti=tt._scissorRect,{maskObject:ta}=tt,{renderer:ts}=this,tu=ts.renderTexture,tc=ta.getBounds(!0,null!==(tr=aK.pop())&&void 0!==tr?tr:new ic);this.roundFrameToPixels(tc,tu.current?tu.current.resolution:ts.resolution,tu.sourceFrame,tu.destinationFrame,ts.projection.transform),ti&&tc.fit(ti),tt._scissorRectLocal=tc}}static isMatrixRotated(tt){if(!tt)return!1;var{a:tr,b:ti,c:ta,d:ts}=tt;return(Math.abs(ti)>1e-4||Math.abs(ta)>1e-4)&&(Math.abs(tr)>1e-4||Math.abs(ts)>1e-4)}testScissor(tr){var{maskObject:ti}=tr;if(!ti.isFastRect||!ti.isFastRect()||tt.isMatrixRotated(ti.worldTransform)||tt.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(tr);var ta=tr._scissorRectLocal;return ta.width>0&&ta.height>0}roundFrameToPixels(tr,ti,ta,ts,tu){tt.isMatrixRotated(tu)||((tu=tu?aY.copyFrom(tu):aY.identity()).translate(-ta.x,-ta.y).scale(ts.width/ta.width,ts.height/ta.height).translate(ts.x,ts.y),this.renderer.filter.transformAABB(tu,tr),tr.fit(ts),tr.x=Math.round(tr.x*ti),tr.y=Math.round(tr.y*ti),tr.width=Math.round(tr.width*ti),tr.height=Math.round(tr.height*ti))}push(tt){tt._scissorRectLocal||this.calcScissorRect(tt);var{gl:tr}=this.renderer;tt._scissorRect||tr.enable(tr.SCISSOR_TEST),tt._scissorCounter++,tt._scissorRect=tt._scissorRectLocal,this._useCurrent()}pop(tt){var{gl:tr}=this.renderer;tt&&aK.push(tt._scissorRectLocal),this.getStackLength()>0?this._useCurrent():tr.disable(tr.SCISSOR_TEST)}_useCurrent(){var tt,tr=this.maskStack[this.maskStack.length-1]._scissorRect;tt=this.renderer.renderTexture.current?tr.y:this.renderer.height-tr.height-tr.y,this.renderer.gl.scissor(tr.x,tt,tr.width,tr.height)}constructor(tt){super(tt),this.glConst=e$.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}};aZ.extension={type:nk.RendererSystem,name:"scissor"};var aQ=aZ;nO.add(aQ);class aJ extends aW{getStackLength(){var tt=this.maskStack[this.maskStack.length-1];return tt?tt._stencilCounter:0}push(tt){var tr=tt.maskObject,{gl:ti}=this.renderer,ta=tt._stencilCounter;0===ta&&(this.renderer.framebuffer.forceStencil(),ti.clearStencil(0),ti.clear(ti.STENCIL_BUFFER_BIT),ti.enable(ti.STENCIL_TEST)),tt._stencilCounter++;var ts=tt._colorMask;0!==ts&&(tt._colorMask=0,ti.colorMask(!1,!1,!1,!1)),ti.stencilFunc(ti.EQUAL,ta,4294967295),ti.stencilOp(ti.KEEP,ti.KEEP,ti.INCR),tr.renderable=!0,tr.render(this.renderer),this.renderer.batch.flush(),tr.renderable=!1,0!==ts&&(tt._colorMask=ts,ti.colorMask((1&ts)!=0,(2&ts)!=0,(4&ts)!=0,(8&ts)!=0)),this._useCurrent()}pop(tt){var tr=this.renderer.gl;if(0===this.getStackLength())tr.disable(tr.STENCIL_TEST);else{var ti=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null,ta=ti?ti._colorMask:15;0!==ta&&(ti._colorMask=0,tr.colorMask(!1,!1,!1,!1)),tr.stencilOp(tr.KEEP,tr.KEEP,tr.DECR),tt.renderable=!0,tt.render(this.renderer),this.renderer.batch.flush(),tt.renderable=!1,0!==ta&&(ti._colorMask=ta,tr.colorMask((1&ta)!=0,(2&ta)!=0,(4&ta)!=0,(8&ta)!=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=e$.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}}aJ.extension={type:nk.RendererSystem,name:"stencil"},nO.add(aJ);class a${init(){var tt=this.rendererPlugins;for(var tr in tt)this.plugins[tr]=new tt[tr](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:()=>(rd("7.0.0","renderer.plugins.extract has moved to renderer.extract"),tt.extract)},prepare:{enumerable:!1,get:()=>(rd("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),tt.prepare)},interaction:{enumerable:!1,get:()=>(rd("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),tt.events)}})}}a$.extension={type:[nk.RendererSystem,nk.CanvasRendererSystem],name:"_plugin"},nO.add(a$);class a8{update(tt,tr,ti,ta){this.destinationFrame=tt||this.destinationFrame||this.defaultFrame,this.sourceFrame=tr||this.sourceFrame||tt,this.calculateProjection(this.destinationFrame,this.sourceFrame,ti,ta),this.transform&&this.projectionMatrix.append(this.transform);var ts=this.renderer;ts.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,ts.globalUniforms.update(),ts.shader.shader&&ts.shader.syncUniformGroup(ts.shader.shader.uniforms.globals)}calculateProjection(tt,tr,ti,ta){var ts=this.projectionMatrix,tu=ta?-1:1;ts.identity(),ts.a=1/tr.width*2,ts.d=tu*(1/tr.height*2),ts.tx=-1-tr.x*ts.a,ts.ty=-tu-tr.y*ts.d}setTransform(tt){}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new ib,this.transform=null}}a8.extension={type:nk.RendererSystem,name:"projection"},nO.add(a8);var a9=new iI,ot=new ic;class or{generateTexture(tt,tr){var ti,ta=tr||{},{region:ts}=ta,tu=(0,tD._)(ta,["region"]),tc=(null==ts?void 0:ts.copyTo(ot))||tt.getLocalBounds(ot,!0),td=tu.resolution||this.renderer.resolution;tc.width=Math.max(tc.width,1/td),tc.height=Math.max(tc.height,1/td),tu.width=tc.width,tu.height=tc.height,tu.resolution=td,null!==(ti=tu.multisample)&&void 0!==ti||(tu.multisample=this.renderer.multisample);var tp=aE.create(tu);this._tempMatrix.tx=-tc.x,this._tempMatrix.ty=-tc.y;var tv=tt.transform;return tt.transform=a9,this.renderer.render(tt,{renderTexture:tp,transform:this._tempMatrix,skipUpdateTransform:!!tt.parent,blit:!0}),tt.transform=tv,tp}destroy(){}constructor(tt){this.renderer=tt,this._tempMatrix=new ib}}or.extension={type:[nk.RendererSystem,nk.CanvasRendererSystem],name:"textureGenerator"},nO.add(or);var on=new ic,oi=new ic;class oa{contextChange(){var tt,tr=null===(tt=this.renderer)||void 0===tt?void 0:tt.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(tr&&tr.alpha&&tr.premultipliedAlpha)}bind(){var tt,tr,ti,ta=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ts=arguments.length>1?arguments[1]:void 0,tu=arguments.length>2?arguments[2]:void 0,tc=this.renderer;this.current=ta,ta?(ti=(tt=ta.baseTexture).resolution,ts||(on.width=ta.frame.width,on.height=ta.frame.height,ts=on),tu||(oi.x=ta.frame.x,oi.y=ta.frame.y,oi.width=ts.width,oi.height=ts.height,tu=oi),tr=tt.framebuffer):(ti=tc.resolution,ts||(on.width=tc._view.screen.width,on.height=tc._view.screen.height,ts=on),tu||((tu=on).width=ts.width,tu.height=ts.height));var td=this.viewportFrame;td.x=tu.x*ti,td.y=tu.y*ti,td.width=tu.width*ti,td.height=tu.height*ti,ta||(td.y=tc.view.height-(td.y+td.height)),td.ceil(),this.renderer.framebuffer.bind(tr,td),this.renderer.projection.update(tu,ts,ti,!tr),ta?this.renderer.mask.setMaskStack(tt.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(ts),this.destinationFrame.copyFrom(tu)}clear(tt,tr){var ti=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,ta=nf.shared.setValue(tt||ti);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&ta.premultiply(ta.alpha);var ts=this.destinationFrame,tu=this.current?this.current.baseTexture:this.renderer._view.screen,tc=ts.width!==tu.width||ts.height!==tu.height;if(tc){var{x:td,y:tp,width:tv,height:tg}=this.viewportFrame;td=Math.round(td),tp=Math.round(tp),tv=Math.round(tv),tg=Math.round(tg),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(td,tp,tv,tg)}this.renderer.framebuffer.clear(ta.red,ta.green,ta.blue,ta.alpha,tr),tc&&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 ic,this.destinationFrame=new ic,this.viewportFrame=new ic}}oa.extension={type:nk.RendererSystem,name:"renderTexture"},nO.add(oa);class oo{destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}constructor(tt,tr){this.program=tt,this.uniformData=tr,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}}function os(tt,tr,ti){var ta=tt.createShader(tr);return tt.shaderSource(ta,ti),tt.compileShader(ta),ta}function ou(tt){for(var tr=Array(tt),ti=0;ti<tr.length;ti++)tr[ti]=!1;return tr}function oh(tt,tr){switch(tt){case"float":case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"vec2":return new Float32Array(2*tr);case"vec3":return new Float32Array(3*tr);case"vec4":return new Float32Array(4*tr);case"ivec2":return new Int32Array(2*tr);case"ivec3":return new Int32Array(3*tr);case"ivec4":return new Int32Array(4*tr);case"uvec2":return new Uint32Array(2*tr);case"uvec3":return new Uint32Array(3*tr);case"uvec4":return new Uint32Array(4*tr);case"bool":return!1;case"bvec2":return ou(2*tr);case"bvec3":return ou(3*tr);case"bvec4":return ou(4*tr);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}function oc(tt,tr){for(var ti={},ta=tr.getProgramParameter(tt,tr.ACTIVE_ATTRIBUTES),ts=0;ts<ta;ts++){var tu=tr.getActiveAttrib(tt,ts);if(!tu.name.startsWith("gl_")){var tc=iz(tr,tu.type),td={type:tc,name:tu.name,size:iG(tc),location:tr.getAttribLocation(tt,tu.name)};ti[tu.name]=td}}return ti}function of(tt,tr){for(var ti={},ta=tr.getProgramParameter(tt,tr.ACTIVE_UNIFORMS),ts=0;ts<ta;ts++){var tu=tr.getActiveUniform(tt,ts),tc=tu.name.replace(/\[.*?\]$/,""),td=!!tu.name.match(/\[.*?\]$/),tp=iz(tr,tu.type);ti[tc]={name:tc,index:ts,type:tp,size:tu.size,isArray:td,value:oh(tp,tu.size)}}return ti}function ol(tt,tr){var ti=tt.getShaderSource(tr).split("\n").map((tt,tr)=>"".concat(tr,": ").concat(tt)),ta=tt.getShaderInfoLog(tr),ts=ta.split("\n"),tu={},tc=ts.map(tt=>parseFloat(tt.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(tt=>!!tt&&!tu[tt]&&(tu[tt]=!0,!0)),td=[""];tc.forEach(tt=>{ti[tt-1]="%c".concat(ti[tt-1],"%c"),td.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var tp=ti.join("\n");td[0]=tp,console.error(ta),console.groupCollapsed("click to view full shader code"),console.warn(...td),console.groupEnd()}function od(tt,tr,ti,ta){tt.getProgramParameter(tr,tt.LINK_STATUS)||(tt.getShaderParameter(ti,tt.COMPILE_STATUS)||ol(tt,ti),tt.getShaderParameter(ta,tt.COMPILE_STATUS)||ol(tt,ta),console.error("PixiJS Error: Could not initialize shader."),""!==tt.getProgramInfoLog(tr)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",tt.getProgramInfoLog(tr)))}function op(tt,tr){var ti,ta=os(tt,tt.VERTEX_SHADER,tr.vertexSrc),ts=os(tt,tt.FRAGMENT_SHADER,tr.fragmentSrc),tu=tt.createProgram();tt.attachShader(tu,ta),tt.attachShader(tu,ts);var tc=null===(ti=tr.extra)||void 0===ti?void 0:ti.transformFeedbackVaryings;if(tc&&("function"!=typeof tt.transformFeedbackVaryings?console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given."):tt.transformFeedbackVaryings(tu,tc.names,"separate"===tc.bufferMode?tt.SEPARATE_ATTRIBS:tt.INTERLEAVED_ATTRIBS)),tt.linkProgram(tu),tt.getProgramParameter(tu,tt.LINK_STATUS)||od(tt,tu,ta,ts),tr.attributeData=oc(tu,tt),tr.uniformData=of(tu,tt),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(tr.vertexSrc)){var td=Object.keys(tr.attributeData);td.sort((tt,tr)=>tt>tr?1:-1);for(var tp=0;tp<td.length;tp++)tr.attributeData[td[tp]].location=tp,tt.bindAttribLocation(tu,tp,td[tp]);tt.linkProgram(tu)}tt.deleteShader(ta),tt.deleteShader(ts);var tv={};for(var tg in tr.uniformData){var tb=tr.uniformData[tg];tv[tg]={location:tt.getUniformLocation(tu,tg),value:oh(tb.type,tb.size)}}return new oo(tu,tv)}function ov(tt,tr,ti,ta,ts){ti.buffer.update(ts)}var om={float:"\n        data[offset] = v;\n    ",vec2:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n    ",vec3:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n\n    ",vec4:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n        data[offset+3] = v[3];\n    ",mat2:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n\n        data[offset+4] = v[2];\n        data[offset+5] = v[3];\n    ",mat3:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n\n        data[offset + 4] = v[3];\n        data[offset + 5] = v[4];\n        data[offset + 6] = v[5];\n\n        data[offset + 8] = v[6];\n        data[offset + 9] = v[7];\n        data[offset + 10] = v[8];\n    ",mat4:"\n        for(var i = 0; i < 16; i++)\n        {\n            data[offset + i] = v[i];\n        }\n    "},og={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function ob(tt){for(var tr=tt.map(tt=>({data:tt,offset:0,dataLen:0,dirty:0})),ti=0,ta=0,ts=0,tu=0;tu<tr.length;tu++){var tc=tr[tu];if(ti=og[tc.data.type],tc.data.size>1&&(ti=Math.max(ti,16)*tc.data.size),tc.dataLen=ti,ta%ti!=0&&ta<16){var td=ta%ti%16;ta+=td,ts+=td}ta+ti>16?(ts=16*Math.ceil(ts/16),tc.offset=ts,ts+=ti,ta=ti):(tc.offset=ts,ta+=ti,ts+=ti)}return{uboElements:tr,size:ts=16*Math.ceil(ts/16)}}function oy(tt,tr){var ti=[];for(var ta in tt)tr[ta]&&ti.push(tr[ta]);return ti.sort((tt,tr)=>tt.index-tr.index),ti}function o_(tt,tr){if(!tt.autoManage)return{size:0,syncFunc:ov};for(var{uboElements:ti,size:ta}=ob(oy(tt.uniforms,tr)),ts=["\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;tu<ti.length;tu++){for(var tc=ti[tu],td=tt.uniforms[tc.data.name],tp=tc.data.name,tv=!1,tg=0;tg<iC.length;tg++){var tb=iC[tg];if(tb.codeUbo&&tb.test(tc.data,td)){ts.push("offset = ".concat(tc.offset/4,";"),iC[tg].codeUbo(tc.data.name,td)),tv=!0;break}}if(!tv){if(tc.data.size>1){var t_=iG(tc.data.type),tE=Math.max(og[tc.data.type]/16,1),tA=t_/tE,tS=(4-tA%4)%4;ts.push("\n                cv = ud.".concat(tp,".value;\n                v = uv.").concat(tp,";\n                offset = ").concat(tc.offset/4,";\n\n                t = 0;\n\n                for(var i=0; i < ").concat(tc.data.size*tE,"; i++)\n                {\n                    for(var j = 0; j < ").concat(tA,"; j++)\n                    {\n                        data[offset++] = v[t++];\n                    }\n                    offset += ").concat(tS,";\n                }\n\n                "))}else{var tT=om[tc.data.type];ts.push("\n                cv = ud.".concat(tp,".value;\n                v = uv.").concat(tp,";\n                offset = ").concat(tc.offset/4,";\n                ").concat(tT,";\n                "))}}}return ts.push("\n       renderer.buffer.update(buffer);\n    "),{size:ta,syncFunc:Function("ud","uv","renderer","syncData","buffer",ts.join("\n"))}}function ow(){if("boolean"==typeof uc)return uc;try{uc=!0===Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")}catch(tt){uc=!1}return uc}var oE=0,oA={textureCount:0,uboCount:0};class ox{systemCheck(){if(!ow())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,tr){tt.disposeRunner.add(this),tt.uniforms.globals=this.renderer.globalUniforms;var ti=tt.program,ta=ti.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(tt);return this.shader=tt,this.program!==ti&&(this.program=ti,this.gl.useProgram(ta.program)),tr||(oA.textureCount=0,oA.uboCount=0,this.syncUniformGroup(tt.uniformGroup,oA)),ta}setUniforms(tt){var tr=this.shader.program,ti=tr.glPrograms[this.renderer.CONTEXT_UID];tr.syncUniforms(ti.uniformData,tt,this.renderer)}syncUniformGroup(tt,tr){var ti=this.getGlProgram();tt.static&&tt.dirtyId===ti.uniformDirtyGroups[tt.id]||(ti.uniformDirtyGroups[tt.id]=tt.dirtyId,this.syncUniforms(tt,ti,tr))}syncUniforms(tt,tr,ti){(tt.syncUniforms[this.shader.program.id]||this.createSyncGroups(tt))(tr.uniformData,tt.uniforms,this.renderer,ti)}createSyncGroups(tt){var tr=this.getSignature(tt,this.shader.program.uniformData,"u");return this.cache[tr]||(this.cache[tr]=iB(tt,this.shader.program.uniformData)),tt.syncUniforms[this.shader.program.id]=this.cache[tr],tt.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(tt,tr){var ti=this.getGlProgram();if(!tt.static||0!==tt.dirtyId||!ti.uniformGroups[tt.id]){tt.dirtyId=0;var ta=ti.uniformGroups[tt.id]||this.createSyncBufferGroup(tt,ti,tr);tt.buffer.update(),ta(ti.uniformData,tt.uniforms,this.renderer,oA,tt.buffer)}this.renderer.buffer.bindBufferBase(tt.buffer,ti.uniformBufferBindings[tr])}createSyncBufferGroup(tt,tr,ti){var{gl:ta}=this.renderer;this.renderer.buffer.bind(tt.buffer);var ts=this.gl.getUniformBlockIndex(tr.program,ti);tr.uniformBufferBindings[ti]=this.shader.uniformBindCount,ta.uniformBlockBinding(tr.program,ts,this.shader.uniformBindCount),this.shader.uniformBindCount++;var tu=this.getSignature(tt,this.shader.program.uniformData,"ubo"),tc=this._uboCache[tu];if(tc||(tc=this._uboCache[tu]=o_(tt,this.shader.program.uniformData)),tt.autoManage){var td=new Float32Array(tc.size/4);tt.buffer.update(td)}return tr.uniformGroups[tt.id]=tc.syncFunc,tr.uniformGroups[tt.id]}getSignature(tt,tr,ti){var ta=tt.uniforms,ts=["".concat(ti,"-")];for(var tu in ta)ts.push(tu),tr[tu]&&ts.push(tr[tu].type);return ts.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(tt){var tr=this.gl,ti=tt.program,ta=op(tr,ti);return ti.glPrograms[this.renderer.CONTEXT_UID]=ta,ta}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=oE++}}ox.extension={type:nk.RendererSystem,name:"shader"},nO.add(ox);class oS{run(tt){var{renderer:tr}=this;tr.runners.init.emit(tr.options),tt.hello&&console.log("PixiJS 7.3.0 - ".concat(tr.rendererLogId," - https://pixijs.com")),tr.resize(tr.screen.width,tr.screen.height)}destroy(){}constructor(tt){this.renderer=tt}}function oT(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return tr[rx.NORMAL]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.ADD]=[tt.ONE,tt.ONE],tr[rx.MULTIPLY]=[tt.DST_COLOR,tt.ONE_MINUS_SRC_ALPHA,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.SCREEN]=[tt.ONE,tt.ONE_MINUS_SRC_COLOR,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.OVERLAY]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.DARKEN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.LIGHTEN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.COLOR_DODGE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.COLOR_BURN]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.HARD_LIGHT]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.SOFT_LIGHT]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.DIFFERENCE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.EXCLUSION]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.HUE]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.SATURATION]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.COLOR]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.LUMINOSITY]=[tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.NONE]=[0,0],tr[rx.NORMAL_NPM]=[tt.SRC_ALPHA,tt.ONE_MINUS_SRC_ALPHA,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.ADD_NPM]=[tt.SRC_ALPHA,tt.ONE,tt.ONE,tt.ONE],tr[rx.SCREEN_NPM]=[tt.SRC_ALPHA,tt.ONE_MINUS_SRC_COLOR,tt.ONE,tt.ONE_MINUS_SRC_ALPHA],tr[rx.SRC_IN]=[tt.DST_ALPHA,tt.ZERO],tr[rx.SRC_OUT]=[tt.ONE_MINUS_DST_ALPHA,tt.ZERO],tr[rx.SRC_ATOP]=[tt.DST_ALPHA,tt.ONE_MINUS_SRC_ALPHA],tr[rx.DST_OVER]=[tt.ONE_MINUS_DST_ALPHA,tt.ONE],tr[rx.DST_IN]=[tt.ZERO,tt.SRC_ALPHA],tr[rx.DST_OUT]=[tt.ZERO,tt.ONE_MINUS_SRC_ALPHA],tr[rx.DST_ATOP]=[tt.ONE_MINUS_DST_ALPHA,tt.SRC_ALPHA],tr[rx.XOR]=[tt.ONE_MINUS_DST_ALPHA,tt.ONE_MINUS_SRC_ALPHA],tr[rx.SUBTRACT]=[tt.ONE,tt.ONE,tt.ONE,tt.ONE,tt.FUNC_REVERSE_SUBTRACT,tt.FUNC_ADD],tr}oS.defaultOptions={hello:!1},oS.extension={type:[nk.RendererSystem,nk.CanvasRendererSystem],name:"startup"},nO.add(oS);var oM=0,oR=1,oI=2,ok=3,oP=4,oC=5,oO=class tt{contextChange(tt){this.gl=tt,this.blendModes=oT(tt),this.set(this.defaultState),this.reset()}set(tt){if(tt=tt||this.defaultState,this.stateId!==tt.data){for(var tr=this.stateId^tt.data,ti=0;tr;)1&tr&&this.map[ti].call(this,!!(tt.data&1<<ti)),tr>>=1,ti++;this.stateId=tt.data}for(var ta=0;ta<this.checks.length;ta++)this.checks[ta](this,tt)}forceState(tt){tt=tt||this.defaultState;for(var tr=0;tr<this.map.length;tr++)this.map[tr].call(this,!!(tt.data&1<<tr));for(var ti=0;ti<this.checks.length;ti++)this.checks[ti](this,tt);this.stateId=tt.data}setBlend(tr){this.updateCheck(tt.checkBlendMode,tr),this.gl[tr?"enable":"disable"](this.gl.BLEND)}setOffset(tr){this.updateCheck(tt.checkPolygonOffset,tr),this.gl[tr?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)}setDepthTest(tt){this.gl[tt?"enable":"disable"](this.gl.DEPTH_TEST)}setDepthMask(tt){this.gl.depthMask(tt)}setCullFace(tt){this.gl[tt?"enable":"disable"](this.gl.CULL_FACE)}setFrontFace(tt){this.gl.frontFace(this.gl[tt?"CW":"CCW"])}setBlendMode(tt){if(tt!==this.blendMode){this.blendMode=tt;var tr=this.blendModes[tt],ti=this.gl;2===tr.length?ti.blendFunc(tr[0],tr[1]):ti.blendFuncSeparate(tr[0],tr[1],tr[2],tr[3]),6===tr.length?(this._blendEq=!0,ti.blendEquationSeparate(tr[4],tr[5])):this._blendEq&&(this._blendEq=!1,ti.blendEquationSeparate(ti.FUNC_ADD,ti.FUNC_ADD))}}setPolygonOffset(tt,tr){this.gl.polygonOffset(tt,tr)}reset(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)}updateCheck(tt,tr){var ti=this.checks.indexOf(tt);tr&&-1===ti?this.checks.push(tt):tr||-1===ti||this.checks.splice(ti,1)}static checkBlendMode(tt,tr){tt.setBlendMode(tr.blendMode)}static checkPolygonOffset(tt,tr){tt.setPolygonOffset(1,tr.polygonOffset)}destroy(){this.gl=null}constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=rx.NONE,this._blendEq=!1,this.map=[],this.map[oM]=this.setBlend,this.map[oR]=this.setOffset,this.map[oI]=this.setCullFace,this.map[ok]=this.setDepthTest,this.map[oP]=this.setFrontFace,this.map[oC]=this.setDepthMask,this.checks=[],this.defaultState=new nz,this.defaultState.blend=!0}};oO.extension={type:nk.RendererSystem,name:"state"};var oN=oO;nO.add(oN);class oB extends rf{setup(tt){this.addRunners(...tt.runners);var tr,ti=(null!==(tr=tt.priority)&&void 0!==tr?tr:[]).filter(tr=>tt.systems[tr]);for(var ta of[...ti,...Object.keys(tt.systems).filter(tt=>!ti.includes(tt))])this.addSystem(tt.systems[ta],ta)}addRunners(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];tr.forEach(tt=>{this.runners[tt]=new nY(tt)})}addSystem(tt,tr){var ti=new tt(this);if(this[tr])throw Error('Whoops! The name "'.concat(tr,'" is already in use'));for(var ta in this[tr]=ti,this._systemsHash[tr]=ti,this.runners)this.runners[ta].add(ti);return this}emitWithCustomOptions(tt,tr){var ti=Object.keys(this._systemsHash);tt.items.forEach(ta=>{var ts=ti.find(tt=>this._systemsHash[tt]===ta);ta[tt.name](tr[ts])})}destroy(){Object.values(this.runners).forEach(tt=>{tt.destroy()}),this._systemsHash={}}constructor(){super(...arguments),this.runners={},this._systemsHash={}}}var oL=class tt{postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==rB.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){for(var tt=this.renderer.texture,tr=tt.managedTextures,ti=!1,ta=0;ta<tr.length;ta++){var ts=tr[ta];ts.resource&&this.count-ts.touched>this.maxIdle&&(tt.destroyTexture(ts,!0),tr[ta]=null,ti=!0)}if(ti){for(var tu=0,tc=0;tc<tr.length;tc++)null!==tr[tc]&&(tr[tu++]=tr[tc]);tr.length=tu}}unload(tt){var tr=this.renderer.texture,ti=tt._texture;ti&&!ti.framebuffer&&tr.destroyTexture(ti);for(var ta=tt.children.length-1;ta>=0;ta--)this.unload(tt.children[ta])}destroy(){this.renderer=null}constructor(tr){this.renderer=tr,this.count=0,this.checkCount=0,this.maxIdle=tt.defaultMaxIdle,this.checkCountMax=tt.defaultCheckCountMax,this.mode=tt.defaultMode}};oL.defaultMode=rB.AUTO,oL.defaultMaxIdle=3600,oL.defaultCheckCountMax=600,oL.extension={type:nk.RendererSystem,name:"textureGC"};var oU=oL;nO.add(oU);class oD{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=rR.UNSIGNED_BYTE,this.internalFormat=rT.RGBA,this.samplerType=0}}function oj(tt){return"WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext?{[tt.RGB]:rI.FLOAT,[tt.RGBA]:rI.FLOAT,[tt.ALPHA]:rI.FLOAT,[tt.LUMINANCE]:rI.FLOAT,[tt.LUMINANCE_ALPHA]:rI.FLOAT,[tt.R8]:rI.FLOAT,[tt.R8_SNORM]:rI.FLOAT,[tt.RG8]:rI.FLOAT,[tt.RG8_SNORM]:rI.FLOAT,[tt.RGB8]:rI.FLOAT,[tt.RGB8_SNORM]:rI.FLOAT,[tt.RGB565]:rI.FLOAT,[tt.RGBA4]:rI.FLOAT,[tt.RGB5_A1]:rI.FLOAT,[tt.RGBA8]:rI.FLOAT,[tt.RGBA8_SNORM]:rI.FLOAT,[tt.RGB10_A2]:rI.FLOAT,[tt.RGB10_A2UI]:rI.FLOAT,[tt.SRGB8]:rI.FLOAT,[tt.SRGB8_ALPHA8]:rI.FLOAT,[tt.R16F]:rI.FLOAT,[tt.RG16F]:rI.FLOAT,[tt.RGB16F]:rI.FLOAT,[tt.RGBA16F]:rI.FLOAT,[tt.R32F]:rI.FLOAT,[tt.RG32F]:rI.FLOAT,[tt.RGB32F]:rI.FLOAT,[tt.RGBA32F]:rI.FLOAT,[tt.R11F_G11F_B10F]:rI.FLOAT,[tt.RGB9_E5]:rI.FLOAT,[tt.R8I]:rI.INT,[tt.R8UI]:rI.UINT,[tt.R16I]:rI.INT,[tt.R16UI]:rI.UINT,[tt.R32I]:rI.INT,[tt.R32UI]:rI.UINT,[tt.RG8I]:rI.INT,[tt.RG8UI]:rI.UINT,[tt.RG16I]:rI.INT,[tt.RG16UI]:rI.UINT,[tt.RG32I]:rI.INT,[tt.RG32UI]:rI.UINT,[tt.RGB8I]:rI.INT,[tt.RGB8UI]:rI.UINT,[tt.RGB16I]:rI.INT,[tt.RGB16UI]:rI.UINT,[tt.RGB32I]:rI.INT,[tt.RGB32UI]:rI.UINT,[tt.RGBA8I]:rI.INT,[tt.RGBA8UI]:rI.UINT,[tt.RGBA16I]:rI.INT,[tt.RGBA16UI]:rI.UINT,[tt.RGBA32I]:rI.INT,[tt.RGBA32UI]:rI.UINT,[tt.DEPTH_COMPONENT16]:rI.FLOAT,[tt.DEPTH_COMPONENT24]:rI.FLOAT,[tt.DEPTH_COMPONENT32F]:rI.FLOAT,[tt.DEPTH_STENCIL]:rI.FLOAT,[tt.DEPTH24_STENCIL8]:rI.FLOAT,[tt.DEPTH32F_STENCIL8]:rI.FLOAT}:{[tt.RGB]:rI.FLOAT,[tt.RGBA]:rI.FLOAT,[tt.ALPHA]:rI.FLOAT,[tt.LUMINANCE]:rI.FLOAT,[tt.LUMINANCE_ALPHA]:rI.FLOAT,[tt.DEPTH_STENCIL]:rI.FLOAT}}function oF(tt){return"WebGL2RenderingContext"in globalThis&&tt instanceof globalThis.WebGL2RenderingContext?{[rR.UNSIGNED_BYTE]:{[rT.RGBA]:tt.RGBA8,[rT.RGB]:tt.RGB8,[rT.RG]:tt.RG8,[rT.RED]:tt.R8,[rT.RGBA_INTEGER]:tt.RGBA8UI,[rT.RGB_INTEGER]:tt.RGB8UI,[rT.RG_INTEGER]:tt.RG8UI,[rT.RED_INTEGER]:tt.R8UI,[rT.ALPHA]:tt.ALPHA,[rT.LUMINANCE]:tt.LUMINANCE,[rT.LUMINANCE_ALPHA]:tt.LUMINANCE_ALPHA},[rR.BYTE]:{[rT.RGBA]:tt.RGBA8_SNORM,[rT.RGB]:tt.RGB8_SNORM,[rT.RG]:tt.RG8_SNORM,[rT.RED]:tt.R8_SNORM,[rT.RGBA_INTEGER]:tt.RGBA8I,[rT.RGB_INTEGER]:tt.RGB8I,[rT.RG_INTEGER]:tt.RG8I,[rT.RED_INTEGER]:tt.R8I},[rR.UNSIGNED_SHORT]:{[rT.RGBA_INTEGER]:tt.RGBA16UI,[rT.RGB_INTEGER]:tt.RGB16UI,[rT.RG_INTEGER]:tt.RG16UI,[rT.RED_INTEGER]:tt.R16UI,[rT.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT16},[rR.SHORT]:{[rT.RGBA_INTEGER]:tt.RGBA16I,[rT.RGB_INTEGER]:tt.RGB16I,[rT.RG_INTEGER]:tt.RG16I,[rT.RED_INTEGER]:tt.R16I},[rR.UNSIGNED_INT]:{[rT.RGBA_INTEGER]:tt.RGBA32UI,[rT.RGB_INTEGER]:tt.RGB32UI,[rT.RG_INTEGER]:tt.RG32UI,[rT.RED_INTEGER]:tt.R32UI,[rT.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT24},[rR.INT]:{[rT.RGBA_INTEGER]:tt.RGBA32I,[rT.RGB_INTEGER]:tt.RGB32I,[rT.RG_INTEGER]:tt.RG32I,[rT.RED_INTEGER]:tt.R32I},[rR.FLOAT]:{[rT.RGBA]:tt.RGBA32F,[rT.RGB]:tt.RGB32F,[rT.RG]:tt.RG32F,[rT.RED]:tt.R32F,[rT.DEPTH_COMPONENT]:tt.DEPTH_COMPONENT32F},[rR.HALF_FLOAT]:{[rT.RGBA]:tt.RGBA16F,[rT.RGB]:tt.RGB16F,[rT.RG]:tt.RG16F,[rT.RED]:tt.R16F},[rR.UNSIGNED_SHORT_5_6_5]:{[rT.RGB]:tt.RGB565},[rR.UNSIGNED_SHORT_4_4_4_4]:{[rT.RGBA]:tt.RGBA4},[rR.UNSIGNED_SHORT_5_5_5_1]:{[rT.RGBA]:tt.RGB5_A1},[rR.UNSIGNED_INT_2_10_10_10_REV]:{[rT.RGBA]:tt.RGB10_A2,[rT.RGBA_INTEGER]:tt.RGB10_A2UI},[rR.UNSIGNED_INT_10F_11F_11F_REV]:{[rT.RGB]:tt.R11F_G11F_B10F},[rR.UNSIGNED_INT_5_9_9_9_REV]:{[rT.RGB]:tt.RGB9_E5},[rR.UNSIGNED_INT_24_8]:{[rT.DEPTH_STENCIL]:tt.DEPTH24_STENCIL8},[rR.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[rT.DEPTH_STENCIL]:tt.DEPTH32F_STENCIL8}}:{[rR.UNSIGNED_BYTE]:{[rT.RGBA]:tt.RGBA,[rT.RGB]:tt.RGB,[rT.ALPHA]:tt.ALPHA,[rT.LUMINANCE]:tt.LUMINANCE,[rT.LUMINANCE_ALPHA]:tt.LUMINANCE_ALPHA},[rR.UNSIGNED_SHORT_5_6_5]:{[rT.RGB]:tt.RGB},[rR.UNSIGNED_SHORT_4_4_4_4]:{[rT.RGBA]:tt.RGBA},[rR.UNSIGNED_SHORT_5_5_5_1]:{[rT.RGBA]:tt.RGBA}}}class oG{contextChange(){var tt=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=oF(tt),this.samplerTypes=oj(tt);var tr=tt.getParameter(tt.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=tr;for(var ti=0;ti<tr;ti++)this.boundTextures[ti]=null;this.emptyTextures={};var ta=new oD(tt.createTexture());tt.bindTexture(tt.TEXTURE_2D,ta.texture),tt.texImage2D(tt.TEXTURE_2D,0,tt.RGBA,1,1,0,tt.RGBA,tt.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[tt.TEXTURE_2D]=ta,this.emptyTextures[tt.TEXTURE_CUBE_MAP]=new oD(tt.createTexture()),tt.bindTexture(tt.TEXTURE_CUBE_MAP,this.emptyTextures[tt.TEXTURE_CUBE_MAP].texture);for(var ts=0;ts<6;ts++)tt.texImage2D(tt.TEXTURE_CUBE_MAP_POSITIVE_X+ts,0,tt.RGBA,1,1,0,tt.RGBA,tt.UNSIGNED_BYTE,null);tt.texParameteri(tt.TEXTURE_CUBE_MAP,tt.TEXTURE_MAG_FILTER,tt.LINEAR),tt.texParameteri(tt.TEXTURE_CUBE_MAP,tt.TEXTURE_MIN_FILTER,tt.LINEAR);for(var tu=0;tu<this.boundTextures.length;tu++)this.bind(null,tu)}bind(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{gl:ti}=this;if((null==(tt=null==tt?void 0:tt.castToBaseTexture())?void 0:tt.valid)&&!tt.parentTextureArray){tt.touched=this.renderer.textureGC.count;var ta=tt._glTextures[this.CONTEXT_UID]||this.initTexture(tt);this.boundTextures[tr]!==tt&&(this.currentLocation!==tr&&(this.currentLocation=tr,ti.activeTexture(ti.TEXTURE0+tr)),ti.bindTexture(tt.target,ta.texture)),ta.dirtyId!==tt.dirtyId?(this.currentLocation!==tr&&(this.currentLocation=tr,ti.activeTexture(ti.TEXTURE0+tr)),this.updateTexture(tt)):ta.dirtyStyleId!==tt.dirtyStyleId&&this.updateTextureStyle(tt),this.boundTextures[tr]=tt}else this.currentLocation!==tr&&(this.currentLocation=tr,ti.activeTexture(ti.TEXTURE0+tr)),ti.bindTexture(ti.TEXTURE_2D,this.emptyTextures[ti.TEXTURE_2D].texture),this.boundTextures[tr]=null}reset(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var tt=0;tt<this.boundTextures.length;tt++)this.boundTextures[tt]=this.unknownTexture}unbind(tt){var{gl:tr,boundTextures:ti}=this;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var ta=0;ta<ti.length;ta++)ti[ta]===this.unknownTexture&&this.bind(null,ta)}for(var ts=0;ts<ti.length;ts++)ti[ts]===tt&&(this.currentLocation!==ts&&(tr.activeTexture(tr.TEXTURE0+ts),this.currentLocation=ts),tr.bindTexture(tt.target,this.emptyTextures[tt.target].texture),ti[ts]=null)}ensureSamplerType(tt){var{boundTextures:tr,hasIntegerTextures:ti,CONTEXT_UID:ta}=this;if(ti)for(var ts=tt-1;ts>=0;--ts){var tu=tr[ts];tu&&tu._glTextures[ta].samplerType!==rI.FLOAT&&this.renderer.texture.unbind(tu)}}initTexture(tt){var tr=new oD(this.gl.createTexture());return tr.dirtyId=-1,tt._glTextures[this.CONTEXT_UID]=tr,this.managedTextures.push(tt),tt.on("dispose",this.destroyTexture,this),tr}initTextureType(tt,tr){var ti,ta,ts;tr.internalFormat=null!==(ta=null===(ti=this.internalFormats[tt.type])||void 0===ti?void 0:ti[tt.format])&&void 0!==ta?ta:tt.format,tr.samplerType=null!==(ts=this.samplerTypes[tr.internalFormat])&&void 0!==ts?ts:rI.FLOAT,2===this.webGLVersion&&tt.type===rR.HALF_FLOAT?tr.type=this.gl.HALF_FLOAT:tr.type=tt.type}updateTexture(tt){var tr,ti=tt._glTextures[this.CONTEXT_UID];if(ti){var ta=this.renderer;if(this.initTextureType(tt,ti),null===(tr=tt.resource)||void 0===tr?void 0:tr.upload(ta,tt,ti))ti.samplerType!==rI.FLOAT&&(this.hasIntegerTextures=!0);else{var ts=tt.realWidth,tu=tt.realHeight,tc=ta.gl;(ti.width!==ts||ti.height!==tu||ti.dirtyId<0)&&(ti.width=ts,ti.height=tu,tc.texImage2D(tt.target,0,ti.internalFormat,ts,tu,0,tt.format,ti.type,null))}tt.dirtyStyleId!==ti.dirtyStyleId&&this.updateTextureStyle(tt),ti.dirtyId=tt.dirtyId}}destroyTexture(tt,tr){var{gl:ti}=this;if((tt=tt.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(tt),ti.deleteTexture(tt._glTextures[this.CONTEXT_UID].texture),tt.off("dispose",this.destroyTexture,this),delete tt._glTextures[this.CONTEXT_UID],!tr)){var ta=this.managedTextures.indexOf(tt);-1!==ta&&ng(this.managedTextures,ta,1)}}updateTextureStyle(tt){var tr,ti=tt._glTextures[this.CONTEXT_UID];ti&&(tt.mipmap!==rC.POW2&&2===this.webGLVersion||tt.isPowerOfTwo?ti.mipmap=tt.mipmap>=1:ti.mipmap=!1,2===this.webGLVersion||tt.isPowerOfTwo?ti.wrapMode=tt.wrapMode:ti.wrapMode=rP.CLAMP,(null===(tr=tt.resource)||void 0===tr?void 0:tr.style(this.renderer,tt,ti))||this.setStyle(tt,ti),ti.dirtyStyleId=tt.dirtyStyleId)}setStyle(tt,tr){var ti=this.gl;if(tr.mipmap&&tt.mipmap!==rC.ON_MANUAL&&ti.generateMipmap(tt.target),ti.texParameteri(tt.target,ti.TEXTURE_WRAP_S,tr.wrapMode),ti.texParameteri(tt.target,ti.TEXTURE_WRAP_T,tr.wrapMode),tr.mipmap){ti.texParameteri(tt.target,ti.TEXTURE_MIN_FILTER,tt.scaleMode===rk.LINEAR?ti.LINEAR_MIPMAP_LINEAR:ti.NEAREST_MIPMAP_NEAREST);var ta=this.renderer.context.extensions.anisotropicFiltering;if(ta&&tt.anisotropicLevel>0&&tt.scaleMode===rk.LINEAR){var ts=Math.min(tt.anisotropicLevel,ti.getParameter(ta.MAX_TEXTURE_MAX_ANISOTROPY_EXT));ti.texParameterf(tt.target,ta.TEXTURE_MAX_ANISOTROPY_EXT,ts)}}else ti.texParameteri(tt.target,ti.TEXTURE_MIN_FILTER,tt.scaleMode===rk.LINEAR?ti.LINEAR:ti.NEAREST);ti.texParameteri(tt.target,ti.TEXTURE_MAG_FILTER,tt.scaleMode===rk.LINEAR?ti.LINEAR:ti.NEAREST)}destroy(){this.renderer=null}constructor(tt){this.renderer=tt,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new nJ,this.hasIntegerTextures=!1}}oG.extension={type:nk.RendererSystem,name:"texture"},nO.add(oG);class oH{contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(tt){var{gl:tr,CONTEXT_UID:ti}=this,ta=tt._glTransformFeedbacks[ti]||this.createGLTransformFeedback(tt);tr.bindTransformFeedback(tr.TRANSFORM_FEEDBACK,ta)}unbind(){var{gl:tt}=this;tt.bindTransformFeedback(tt.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(tt,tr){var{gl:ti,renderer:ta}=this;tr&&ta.shader.bind(tr),ti.beginTransformFeedback(tt)}endTransformFeedback(){var{gl:tt}=this;tt.endTransformFeedback()}createGLTransformFeedback(tt){var{gl:tr,renderer:ti,CONTEXT_UID:ta}=this,ts=tr.createTransformFeedback();tt._glTransformFeedbacks[ta]=ts,tr.bindTransformFeedback(tr.TRANSFORM_FEEDBACK,ts);for(var tu=0;tu<tt.buffers.length;tu++){var tc=tt.buffers[tu];tc&&(ti.buffer.update(tc),tc._glBuffers[ta].refCount++,tr.bindBufferBase(tr.TRANSFORM_FEEDBACK_BUFFER,tu,tc._glBuffers[ta].buffer||null))}return tr.bindTransformFeedback(tr.TRANSFORM_FEEDBACK,null),tt.disposeRunner.add(this),ts}disposeTransformFeedback(tt,tr){var ti=tt._glTransformFeedbacks[this.CONTEXT_UID],ta=this.gl;tt.disposeRunner.remove(this);var ts=this.renderer.buffer;if(ts)for(var tu=0;tu<tt.buffers.length;tu++){var tc=tt.buffers[tu];if(tc){var td=tc._glBuffers[this.CONTEXT_UID];td&&(td.refCount--,0!==td.refCount||tr||ts.dispose(tc,tr))}}ti&&(tr||ta.deleteTransformFeedback(ti),delete tt._glTransformFeedbacks[this.CONTEXT_UID])}destroy(){this.renderer=null}constructor(tt){this.renderer=tt}}oH.extension={type:nk.RendererSystem,name:"transformFeedback"},nO.add(oH);class oV{init(tt){this.screen=new ic(0,0,tt.width,tt.height),this.element=tt.view||e$.ADAPTER.createCanvas(),this.resolution=tt.resolution||e$.RESOLUTION,this.autoDensity=!!tt.autoDensity}resizeView(tt,tr){this.element.width=Math.round(tt*this.resolution),this.element.height=Math.round(tr*this.resolution);var ti=this.element.width/this.resolution,ta=this.element.height/this.resolution;this.screen.width=ti,this.screen.height=ta,this.autoDensity&&(this.element.style.width="".concat(ti,"px"),this.element.style.height="".concat(ta,"px")),this.renderer.emit("resize",ti,ta),this.renderer.runners.resize.emit(this.screen.width,this.screen.height)}destroy(tt){var tr;tt&&(null===(tr=this.element.parentNode)||void 0===tr||tr.removeChild(this.element)),this.renderer=null,this.element=null,this.screen=null}constructor(tt){this.renderer=tt}}oV.defaultOptions={width:800,height:600,resolution:void 0,autoDensity:!1},oV.extension={type:[nk.RendererSystem,nk.CanvasRendererSystem],name:"_view"},nO.add(oV),e$.PREFER_ENV=rw.WEBGL2,e$.STRICT_TEXTURE_CACHE=!1,e$.RENDER_OPTIONS=(0,tc._)({},al.defaultOptions,ah.defaultOptions,oV.defaultOptions,oS.defaultOptions),Object.defineProperties(e$,{WRAP_MODE:{get:()=>nJ.defaultOptions.wrapMode,set(tt){rd("7.1.0","settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),nJ.defaultOptions.wrapMode=tt}},SCALE_MODE:{get:()=>nJ.defaultOptions.scaleMode,set(tt){rd("7.1.0","settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),nJ.defaultOptions.scaleMode=tt}},MIPMAP_TEXTURES:{get:()=>nJ.defaultOptions.mipmap,set(tt){rd("7.1.0","settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),nJ.defaultOptions.mipmap=tt}},ANISOTROPIC_LEVEL:{get:()=>nJ.defaultOptions.anisotropicLevel,set(tt){rd("7.1.0","settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),nJ.defaultOptions.anisotropicLevel=tt}},FILTER_RESOLUTION:{get:()=>(rd("7.1.0","settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"),au.defaultResolution),set(tt){au.defaultResolution=tt}},FILTER_MULTISAMPLE:{get:()=>(rd("7.1.0","settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"),au.defaultMultisample),set(tt){au.defaultMultisample=tt}},SPRITE_MAX_TEXTURES:{get:()=>ai.defaultMaxTextures,set(tt){rd("7.1.0","settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"),ai.defaultMaxTextures=tt}},SPRITE_BATCH_SIZE:{get:()=>ai.defaultBatchSize,set(tt){rd("7.1.0","settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"),ai.defaultBatchSize=tt}},CAN_UPLOAD_SAME_BUFFER:{get:()=>ai.canUploadSameBuffer,set(tt){rd("7.1.0","settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"),ai.canUploadSameBuffer=tt}},GC_MODE:{get:()=>oU.defaultMode,set(tt){rd("7.1.0","settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"),oU.defaultMode=tt}},GC_MAX_IDLE:{get:()=>oU.defaultMaxIdle,set(tt){rd("7.1.0","settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"),oU.defaultMaxIdle=tt}},GC_MAX_CHECK_COUNT:{get:()=>oU.defaultCheckCountMax,set(tt){rd("7.1.0","settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"),oU.defaultCheckCountMax=tt}},PRECISION_VERTEX:{get:()=>iK.defaultVertexPrecision,set(tt){rd("7.1.0","settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"),iK.defaultVertexPrecision=tt}},PRECISION_FRAGMENT:{get:()=>iK.defaultFragmentPrecision,set(tt){rd("7.1.0","settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"),iK.defaultFragmentPrecision=tt}}});var oz=((ur=oz||{})[ur.INTERACTION=50]="INTERACTION",ur[ur.HIGH=25]="HIGH",ur[ur.NORMAL=0]="NORMAL",ur[ur.LOW=-25]="LOW",ur[ur.UTILITY=-50]="UTILITY",ur);class oq{match(tt){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.fn===tt&&this.context===tr}emit(tt){this.fn&&(this.context?this.fn.call(this.context,tt):this.fn(tt));var tr=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),tr}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 tr=this.next;return this.next=tt?null:tr,this.previous=null,tr}constructor(tt,tr=null,ti=0,ta=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=tt,this.context=tr,this.priority=ti,this.once=ta}}var oW=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,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oz.NORMAL;return this._addListener(new oq(tt,tr,ti))}addOnce(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oz.NORMAL;return this._addListener(new oq(tt,tr,ti,!0))}_addListener(tt){var tr=this._head.next,ti=this._head;if(tr){for(;tr;){if(tt.priority>tr.priority){tt.connect(ti);break}ti=tr,tr=tr.next}tt.previous||tt.connect(ti)}else tt.connect(ti);return this._startIfPossible(),this}remove(tt,tr){for(var ti=this._head.next;ti;)ti=ti.match(tt,tr)?ti.destroy():ti.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;for(var tt=0,tr=this._head;tr=tr.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 tr,ti=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now();if(ti>this.lastTime){if((tr=this.elapsedMS=ti-this.lastTime)>this._maxElapsedMS&&(tr=this._maxElapsedMS),tr*=this.speed,this._minElapsedMS){var ta=ti-this._lastFrame|0;if(ta<this._minElapsedMS)return;this._lastFrame=ti-ta%this._minElapsedMS}this.deltaMS=tr,this.deltaTime=this.deltaMS*tt.targetFPMS;for(var ts=this._head,tu=ts.next;tu;)tu=tu.emit(this.deltaTime);ts.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=ti}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(tr){var ti=Math.min(Math.max(0,Math.min(this.maxFPS,tr))/1e3,tt.targetFPMS);this._maxElapsedMS=1/ti}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(tt){if(0===tt)this._minElapsedMS=0;else{var tr=Math.max(this.minFPS,tt);this._minElapsedMS=1/(tr/1e3)}}static get shared(){if(!tt._shared){var tr=tt._shared=new tt;tr.autoStart=!0,tr._protected=!0}return tt._shared}static get system(){if(!tt._system){var tr=tt._system=new tt;tr.autoStart=!0,tr._protected=!0}return tt._system}constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new oq(null,null,1/0),this.deltaMS=1/tt.targetFPMS,this.elapsedMS=1/tt.targetFPMS,this._tick=tt=>{this._requestId=null,this.started&&(this.update(tt),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}};oW.targetFPMS=.06;var oY=oW;Object.defineProperties(e$,{TARGET_FPMS:{get:()=>oY.targetFPMS,set(tt){rd("7.1.0","settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"),oY.targetFPMS=tt}}});class oX{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,oz.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=tt.sharedTicker?oY.shared:new oY,tt.autoStart&&this.start()}static destroy(){if(this._ticker){var tt=this._ticker;this.ticker=null,tt.destroy()}}}oX.extension=nk.Application,nO.add(oX);var oK=[];function oZ(tt){for(var tr of oK)if(tr.test(tt))return new tr(tt);throw Error("Unable to auto-detect a suitable renderer.")}nO.handleByList(nk.Renderer,oK);class oQ{contextChange(tt){var tr;if(1===this.renderer.context.webGLVersion){var ti=tt.getParameter(tt.FRAMEBUFFER_BINDING);tt.bindFramebuffer(tt.FRAMEBUFFER,null),tr=tt.getParameter(tt.SAMPLES),tt.bindFramebuffer(tt.FRAMEBUFFER,ti)}else{var ta=tt.getParameter(tt.DRAW_FRAMEBUFFER_BINDING);tt.bindFramebuffer(tt.DRAW_FRAMEBUFFER,null),tr=tt.getParameter(tt.SAMPLES),tt.bindFramebuffer(tt.DRAW_FRAMEBUFFER,ta)}tr>=rj.HIGH?this.multisample=rj.HIGH:tr>=rj.MEDIUM?this.multisample=rj.MEDIUM:tr>=rj.LOW?this.multisample=rj.LOW:this.multisample=rj.NONE}destroy(){}constructor(tt){this.renderer=tt}}oQ.extension={type:nk.RendererSystem,name:"_multisample"},nO.add(oQ);class oJ{constructor(tt){this.buffer=tt||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class o${destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(tt){var{gl:tr,CONTEXT_UID:ti}=this,ta=tt._glBuffers[ti]||this.createGLBuffer(tt);tr.bindBuffer(tt.type,ta.buffer)}unbind(tt){var{gl:tr}=this;tr.bindBuffer(tt,null)}bindBufferBase(tt,tr){var{gl:ti,CONTEXT_UID:ta}=this;if(this.boundBufferBases[tr]!==tt){var ts=tt._glBuffers[ta]||this.createGLBuffer(tt);this.boundBufferBases[tr]=tt,ti.bindBufferBase(ti.UNIFORM_BUFFER,tr,ts.buffer)}}bindBufferRange(tt,tr,ti){var{gl:ta,CONTEXT_UID:ts}=this;ti=ti||0;var tu=tt._glBuffers[ts]||this.createGLBuffer(tt);ta.bindBufferRange(ta.UNIFORM_BUFFER,tr||0,tu.buffer,256*ti,256)}update(tt){var{gl:tr,CONTEXT_UID:ti}=this,ta=tt._glBuffers[ti]||this.createGLBuffer(tt);if(tt._updateID!==ta.updateID){if(ta.updateID=tt._updateID,tr.bindBuffer(tt.type,ta.buffer),ta.byteLength>=tt.data.byteLength)tr.bufferSubData(tt.type,0,tt.data);else{var ts=tt.static?tr.STATIC_DRAW:tr.DYNAMIC_DRAW;ta.byteLength=tt.data.byteLength,tr.bufferData(tt.type,tt.data,ts)}}}dispose(tt,tr){if(this.managedBuffers[tt.id]){delete this.managedBuffers[tt.id];var ti=tt._glBuffers[this.CONTEXT_UID],ta=this.gl;tt.disposeRunner.remove(this),ti&&(tr||ta.deleteBuffer(ti.buffer),delete tt._glBuffers[this.CONTEXT_UID])}}disposeAll(tt){for(var tr=Object.keys(this.managedBuffers),ti=0;ti<tr.length;ti++)this.dispose(this.managedBuffers[tr[ti]],tt)}createGLBuffer(tt){var{CONTEXT_UID:tr,gl:ti}=this;return tt._glBuffers[tr]=new oJ(ti.createBuffer()),this.managedBuffers[tt.id]=tt,tt.disposeRunner.add(this),tt._glBuffers[tr]}constructor(tt){this.renderer=tt,this.managedBuffers={},this.boundBufferBases={}}}o$.extension={type:nk.RendererSystem,name:"buffer"},nO.add(o$);class o0{render(tt,tr){var ti,ta,ts,tu,tc=this.renderer;if(tr&&(ti=tr.renderTexture,ta=tr.clear,ts=tr.transform,tu=tr.skipUpdateTransform),this.renderingToScreen=!ti,tc.runners.prerender.emit(),tc.emit("prerender"),tc.projection.transform=ts,!tc.context.isLost){if(ti||(this.lastObjectRendered=tt),!tu){var td=tt.enableTempParent();tt.updateTransform(),tt.disableTempParent(td)}tc.renderTexture.bind(ti),tc.batch.currentRenderer.start(),(null!=ta?ta:tc.background.clearBeforeRender)&&tc.renderTexture.clear(),tt.render(tc),tc.batch.currentRenderer.flush(),ti&&(tr.blit&&tc.framebuffer.blit(),ti.baseTexture.update()),tc.runners.postrender.emit(),tc.projection.transform=null,tc.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}constructor(tt){this.renderer=tt}}o0.extension={type:nk.RendererSystem,name:"objectRenderer"},nO.add(o0);var o6=class tt extends oB{static test(tt){return(null==tt||!tt.forceCanvas)&&rV()}render(tt,tr){this.objectRenderer.render(tt,tr)}resize(tt,tr){this._view.resizeView(tt,tr)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(){var tt=arguments.length>0&&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 rd("7.0.0","renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."),this.background.clearBeforeRender}get useContextAlpha(){return rd("7.0.0","renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."),this.context.useContextAlpha}get preserveDrawingBuffer(){return rd("7.0.0","renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"),this.context.preserveDrawingBuffer}get backgroundColor(){return rd("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color}set backgroundColor(tt){rd("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color=tt}get backgroundAlpha(){return rd("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha}set backgroundAlpha(tt){rd("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha=tt}get powerPreference(){return rd("7.0.0","renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"),this.context.powerPreference}generateTexture(tt,tr){return this.textureGenerator.generateTexture(tt,tr)}constructor(tr){super(),this.type=rE.WEBGL,tr=Object.assign({},e$.RENDER_OPTIONS,tr),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new iQ({projectionMatrix:new ib},!0);var ti={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(ti),"useContextAlpha"in tr&&(rd("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),tr.premultipliedAlpha=tr.useContextAlpha&&"notMultiplied"!==tr.useContextAlpha,tr.backgroundAlpha=!1===tr.useContextAlpha?1:tr.backgroundAlpha),this._plugin.rendererPlugins=tt.__plugins,this.options=tr,this.startup.run(this.options)}};o6.extension={type:nk.Renderer,priority:1},o6.__plugins={},o6.__systems={};var o8=o6;nO.handleByMap(nk.RendererPlugin,o8.__plugins),nO.handleByMap(nk.RendererSystem,o8.__systems),nO.add(o8);class o5 extends nX{initFromArray(tt,tr){for(var ti=0;ti<this.length;ti++)tt[ti]&&(tt[ti].castToBaseTexture?this.addBaseTextureAt(tt[ti].castToBaseTexture(),ti):tt[ti]instanceof nX?this.addResourceAt(tt[ti],ti):this.addResourceAt(nW(tt[ti],tr),ti))}dispose(){for(var tt=0,tr=this.length;tt<tr;tt++)this.items[tt].destroy();this.items=null,this.itemDirtyIds=null,this._load=null}addResourceAt(tt,tr){if(!this.items[tr])throw Error("Index ".concat(tr," is out of bounds"));return tt.valid&&!this.valid&&this.resize(tt.width,tt.height),this.items[tr].setResource(tt),this}bind(tt){if(null!==this.baseTexture)throw Error("Only one base texture per TextureArray is allowed");super.bind(tt);for(var tr=0;tr<this.length;tr++)this.items[tr].parentTextureArray=tt,this.items[tr].on("update",tt.update,tt)}unbind(tt){super.unbind(tt);for(var tr=0;tr<this.length;tr++)this.items[tr].parentTextureArray=null,this.items[tr].off("update",tt.update,tt)}load(){if(this._load)return this._load;var tt=this.items.map(tt=>tt.resource).filter(tt=>tt).map(tt=>tt.load());return this._load=Promise.all(tt).then(()=>{var{realWidth:tt,realHeight:tr}=this.items[0];return this.resize(tt,tr),this.update(),Promise.resolve(this)}),this._load}constructor(tt,tr){var{width:ti,height:ta}=tr||{};super(ti,ta),this.items=[],this.itemDirtyIds=[];for(var ts=0;ts<tt;ts++){var tu=new nJ;this.items.push(tu),this.itemDirtyIds.push(-2)}this.length=tt,this._load=null,this.baseTexture=null}}class o7 extends o5{addBaseTextureAt(tt,tr){if(tt.resource)this.addResourceAt(tt.resource,tr);else throw Error("ArrayResource does not support RenderTexture");return this}bind(tt){super.bind(tt),tt.target=rM.TEXTURE_2D_ARRAY}upload(tt,tr,ti){var{length:ta,itemDirtyIds:ts,items:tu}=this,{gl:tc}=tt;ti.dirtyId<0&&tc.texImage3D(tc.TEXTURE_2D_ARRAY,0,ti.internalFormat,this._width,this._height,ta,0,tr.format,ti.type,null);for(var td=0;td<ta;td++){var tp=tu[td];ts[td]<tp.dirtyId&&(ts[td]=tp.dirtyId,tp.valid&&tc.texSubImage3D(tc.TEXTURE_2D_ARRAY,0,0,0,td,tp.resource.width,tp.resource.height,1,tr.format,ti.type,tp.resource.source))}return!0}constructor(tt,tr){var ti,ta,{width:ts,height:tu}=tr||{};Array.isArray(tt)?(ti=tt,ta=tt.length):ta=tt,super(ta,{width:ts,height:tu}),ti&&this.initFromArray(ti,tr)}}class o9 extends av{static test(tt){var{OffscreenCanvas:tr}=globalThis;return!!tr&&tt instanceof tr||globalThis.HTMLCanvasElement&&tt instanceof HTMLCanvasElement}constructor(tt){super(tt)}}var st=class tt extends o5{bind(tt){super.bind(tt),tt.target=rM.TEXTURE_CUBE_MAP}addBaseTextureAt(tt,tr,ti){if(void 0===ti&&(ti=this.linkBaseTexture),!this.items[tr])throw Error("Index ".concat(tr," is out of bounds"));if(!this.linkBaseTexture||tt.parentTextureArray||Object.keys(tt._glTextures).length>0){if(tt.resource)this.addResourceAt(tt.resource,tr);else throw Error("CubeResource does not support copying of renderTexture.")}else tt.target=rM.TEXTURE_CUBE_MAP_POSITIVE_X+tr,tt.parentTextureArray=this.baseTexture,this.items[tr]=tt;return tt.valid&&!this.valid&&this.resize(tt.realWidth,tt.realHeight),this.items[tr]=tt,this}upload(tr,ti,ta){for(var ts=this.itemDirtyIds,tu=0;tu<tt.SIDES;tu++){var tc=this.items[tu];(ts[tu]<tc.dirtyId||ta.dirtyId<ti.dirtyId)&&(tc.valid&&tc.resource?(tc.resource.upload(tr,tc,ta),ts[tu]=tc.dirtyId):ts[tu]<-1&&(tr.gl.texImage2D(tc.target,0,ta.internalFormat,ti.realWidth,ti.realHeight,0,ti.format,ta.type,null),ts[tu]=-1))}return!0}static test(tr){return Array.isArray(tr)&&tr.length===tt.SIDES}constructor(tr,ti){var{width:ta,height:ts,autoLoad:tu,linkBaseTexture:tc}=ti||{};if(tr&&tr.length!==tt.SIDES)throw Error("Invalid length. Got ".concat(tr.length,", expected 6"));super(6,{width:ta,height:ts});for(var td=0;td<tt.SIDES;td++)this.items[td].target=rM.TEXTURE_CUBE_MAP_POSITIVE_X+td;this.linkBaseTexture=!1!==tc,tr&&this.initFromArray(tr,ti),!1!==tu&&this.load()}};st.SIDES=6;var sr=st;class sn extends av{load(){var tt=this;return this._load||(this._load=new Promise(function(){var tr=(0,tU._)(function*(tr,ti){if(null===tt.url){tr(tt);return}try{var ta=yield e$.ADAPTER.fetch(tt.url,{mode:tt.crossOrigin?"cors":"no-cors"});if(tt.destroyed)return;var ts=yield ta.blob();if(tt.destroyed)return;var tu=yield createImageBitmap(ts,{premultiplyAlpha:null===tt.alphaMode||tt.alphaMode===rO.UNPACK?"premultiply":"none"});if(tt.destroyed){tu.close();return}tt.source=tu,tt.update(),tr(tt)}catch(tr){if(tt.destroyed)return;ti(tr),tt.onError.emit(tr)}});return function(tt,ti){return tr.apply(this,arguments)}}())),this._load}upload(tt,tr,ti){return this.source instanceof ImageBitmap?("number"==typeof this.alphaMode&&(tr.alphaMode=this.alphaMode),super.upload(tt,tr,ti)):(this.load(),!1)}dispose(){this.ownsImageBitmap&&this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(tt){return!!globalThis.createImageBitmap&&"u">typeof ImageBitmap&&("string"==typeof tt||tt instanceof ImageBitmap)}static get EMPTY(){var tt;return sn._EMPTY=null!==(tt=sn._EMPTY)&&void 0!==tt?tt:e$.ADAPTER.createCanvas(0,0),sn._EMPTY}constructor(tt,tr){var ti,ta,ts,tu,tc;tr=tr||{},"string"==typeof tt?(ti=sn.EMPTY,ta=tt,ts=!0):(ti=tt,ta=null,ts=!1),super(ti),this.url=ta,this.crossOrigin=null===(tu=tr.crossOrigin)||void 0===tu||tu,this.alphaMode="number"==typeof tr.alphaMode?tr.alphaMode:null,this.ownsImageBitmap=null!==(tc=tr.ownsImageBitmap)&&void 0!==tc?tc:ts,this._load=null,!1!==tr.autoLoad&&this.load()}}var si=class tt extends av{load(){return this._load||(this._load=new Promise(tr=>{if(this._resolve=()=>{this.update(),tr(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;av.crossOrigin(tt,this.svg,this._crossorigin),tt.src=this.svg,tt.onerror=tr=>{this._resolve&&(tt.onerror=null,this.onError.emit(tr))},tt.onload=()=>{if(this._resolve){var tr=tt.width,ti=tt.height;if(!tr||!ti)throw Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var ta=tr*this.scale,ts=ti*this.scale;(this._overrideWidth||this._overrideHeight)&&(ta=this._overrideWidth||this._overrideHeight/ti*tr,ts=this._overrideHeight||this._overrideWidth/tr*ti),ta=Math.round(ta),ts=Math.round(ts);var tu=this.source;tu.width=ta,tu.height=ts,tu._pixiId="canvas_".concat(nE()),tu.getContext("2d").drawImage(tt,0,0,tr,ti,0,0,ta,ts),this._resolve(),this._resolve=null}}}static getSize(tr){var ti=tt.SVG_SIZE.exec(tr),ta={};return ti&&(ta[ti[1]]=Math.round(parseFloat(ti[3])),ta[ti[5]]=Math.round(parseFloat(ti[7]))),ta}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(tr,ti){return"svg"===ti||"string"==typeof tr&&tr.startsWith("data:image/svg+xml")||"string"==typeof tr&&tt.SVG_XML.test(tr)}constructor(tt,tr){tr=tr||{},super(e$.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=tt,this.scale=tr.scale||1,this._overrideWidth=tr.width,this._overrideHeight=tr.height,this._resolve=null,this._crossorigin=tr.crossorigin,this._load=null,!1!==tr.autoLoad&&this.load()}};si.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,si.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var sa=si,so=class tt extends av{update(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0],!this.destroyed){if(this._updateFPS){var tt=oY.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((tr,ti)=>{this.valid?tr(this):(this._resolve=tr,this._reject=ti,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 tr=this.valid;this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0,!tr&&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&&(oY.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||(oY.shared.add(this.update,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(oY.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(tr,ti){return globalThis.HTMLVideoElement&&tr instanceof HTMLVideoElement||tt.TYPES.includes(ti)}constructor(tr,ti){if(ti=ti||{},!(tr instanceof HTMLVideoElement)){var ta=document.createElement("video");!1!==ti.autoLoad&&ta.setAttribute("preload","auto"),!1!==ti.playsinline&&(ta.setAttribute("webkit-playsinline",""),ta.setAttribute("playsinline","")),!0===ti.muted&&(ta.setAttribute("muted",""),ta.muted=!0),!0===ti.loop&&ta.setAttribute("loop",""),!1!==ti.autoPlay&&ta.setAttribute("autoplay",""),"string"==typeof tr&&(tr=[tr]);var ts=tr[0].src||tr[0];av.crossOrigin(ta,ts,ti.crossorigin);for(var tu=0;tu<tr.length;++tu){var tc=document.createElement("source"),{src:td,mime:tp}=tr[tu];if((td=td||tr[tu]).startsWith("data:"))tp=td.slice(5,td.indexOf(";"));else if(!td.startsWith("blob:")){var tv=td.split("?").shift().toLowerCase(),tg=tv.slice(tv.lastIndexOf(".")+1);tp=tp||tt.MIME_TYPES[tg]||"video/".concat(tg)}tc.src=td,tp&&(tc.type=tp),ta.appendChild(tc)}tr=ta}super(tr),this.noSubImage=!0,this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=ti.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==ti.autoPlay,this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),!1!==ti.autoLoad&&this.load()}};so.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],so.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};var ss=so;nq.push(sn,am,o9,ss,sa,nK,sr,o7);class su{isEmpty(){return this.minX>this.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?ic.EMPTY:((tt=tt||new ic(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,tr){var{a:ti,b:ta,c:ts,d:tu,tx:tc,ty:td}=tt,tp=ti*tr.x+ts*tr.y+tc,tv=ta*tr.x+tu*tr.y+td;this.minX=Math.min(this.minX,tp),this.maxX=Math.max(this.maxX,tp),this.minY=Math.min(this.minY,tv),this.maxY=Math.max(this.maxY,tv)}addQuad(tt){var tr=this.minX,ti=this.minY,ta=this.maxX,ts=this.maxY,tu=tt[0],tc=tt[1];tr=tu<tr?tu:tr,ti=tc<ti?tc:ti,ta=tu>ta?tu:ta,ts=tc>ts?tc:ts,tu=tt[2],tc=tt[3],tr=tu<tr?tu:tr,ti=tc<ti?tc:ti,ta=tu>ta?tu:ta,ts=tc>ts?tc:ts,tu=tt[4],tc=tt[5],tr=tu<tr?tu:tr,ti=tc<ti?tc:ti,ta=tu>ta?tu:ta,ts=tc>ts?tc:ts,tu=tt[6],tc=tt[7],tr=tu<tr?tu:tr,ti=tc<ti?tc:ti,ta=tu>ta?tu:ta,ts=tc>ts?tc:ts,this.minX=tr,this.minY=ti,this.maxX=ta,this.maxY=ts}addFrame(tt,tr,ti,ta,ts){this.addFrameMatrix(tt.worldTransform,tr,ti,ta,ts)}addFrameMatrix(tt,tr,ti,ta,ts){var tu=tt.a,tc=tt.b,td=tt.c,tp=tt.d,tv=tt.tx,tg=tt.ty,tb=this.minX,t_=this.minY,tE=this.maxX,tA=this.maxY,tS=tu*tr+td*ti+tv,tT=tc*tr+tp*ti+tg;tb=tS<tb?tS:tb,t_=tT<t_?tT:t_,tE=tS>tE?tS:tE,tA=tT>tA?tT:tA,tS=tu*ta+td*ti+tv,tT=tc*ta+tp*ti+tg,tb=tS<tb?tS:tb,t_=tT<t_?tT:t_,tE=tS>tE?tS:tE,tA=tT>tA?tT:tA,tS=tu*tr+td*ts+tv,tT=tc*tr+tp*ts+tg,tb=tS<tb?tS:tb,t_=tT<t_?tT:t_,tE=tS>tE?tS:tE,tA=tT>tA?tT:tA,tS=tu*ta+td*ts+tv,tT=tc*ta+tp*ts+tg,tb=tS<tb?tS:tb,t_=tT<t_?tT:t_,tE=tS>tE?tS:tE,tA=tT>tA?tT:tA,this.minX=tb,this.minY=t_,this.maxX=tE,this.maxY=tA}addVertexData(tt,tr,ti){for(var ta=this.minX,ts=this.minY,tu=this.maxX,tc=this.maxY,td=tr;td<ti;td+=2){var tp=tt[td],tv=tt[td+1];ta=tp<ta?tp:ta,ts=tv<ts?tv:ts,tu=tp>tu?tp:tu,tc=tv>tc?tv:tc}this.minX=ta,this.minY=ts,this.maxX=tu,this.maxY=tc}addVertices(tt,tr,ti,ta){this.addVerticesMatrix(tt.worldTransform,tr,ti,ta)}addVerticesMatrix(tt,tr,ti,ta){for(var ts=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,tu=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ts,tc=tt.a,td=tt.b,tp=tt.c,tv=tt.d,tg=tt.tx,tb=tt.ty,t_=this.minX,tE=this.minY,tA=this.maxX,tS=this.maxY,tT=ti;tT<ta;tT+=2){var tM=tr[tT],tR=tr[tT+1],tI=tc*tM+tp*tR+tg,tk=tv*tR+td*tM+tb;t_=Math.min(t_,tI-ts),tA=Math.max(tA,tI+ts),tE=Math.min(tE,tk-tu),tS=Math.max(tS,tk+tu)}this.minX=t_,this.minY=tE,this.maxX=tA,this.maxY=tS}addBounds(tt){var tr=this.minX,ti=this.minY,ta=this.maxX,ts=this.maxY;this.minX=tt.minX<tr?tt.minX:tr,this.minY=tt.minY<ti?tt.minY:ti,this.maxX=tt.maxX>ta?tt.maxX:ta,this.maxY=tt.maxY>ts?tt.maxY:ts}addBoundsMask(tt,tr){var ti=tt.minX>tr.minX?tt.minX:tr.minX,ta=tt.minY>tr.minY?tt.minY:tr.minY,ts=tt.maxX<tr.maxX?tt.maxX:tr.maxX,tu=tt.maxY<tr.maxY?tt.maxY:tr.maxY;if(ti<=ts&&ta<=tu){var tc=this.minX,td=this.minY,tp=this.maxX,tv=this.maxY;this.minX=ti<tc?ti:tc,this.minY=ta<td?ta:td,this.maxX=ts>tp?ts:tp,this.maxY=tu>tv?tu:tv}}addBoundsMatrix(tt,tr){this.addFrameMatrix(tr,tt.minX,tt.minY,tt.maxX,tt.maxY)}addBoundsArea(tt,tr){var ti=tt.minX>tr.x?tt.minX:tr.x,ta=tt.minY>tr.y?tt.minY:tr.y,ts=tt.maxX<tr.x+tr.width?tt.maxX:tr.x+tr.width,tu=tt.maxY<tr.y+tr.height?tt.maxY:tr.y+tr.height;if(ti<=ts&&ta<=tu){var tc=this.minX,td=this.minY,tp=this.maxX,tv=this.maxY;this.minX=ti<tc?ti:tc,this.minY=ta<td?ta:td,this.maxX=ts>tp?ts:tp,this.maxY=tu>tv?tu:tv}}pad(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt;this.isEmpty()||(this.minX-=tt,this.maxX+=tt,this.minY-=tr,this.maxY+=tr)}addFramePad(tt,tr,ti,ta,ts,tu){tt-=ts,tr-=tu,ti+=ts,ta+=tu,this.minX=this.minX<tt?this.minX:tt,this.maxX=this.maxX>ti?this.maxX:ti,this.minY=this.minY<tr?this.minY:tr,this.maxY=this.maxY>ta?this.maxY:ta}constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}}class sh extends rf{static mixin(tt){for(var tr=Object.keys(tt),ti=0;ti<tr.length;++ti){var ta=tr[ti];Object.defineProperty(sh.prototype,ta,Object.getOwnPropertyDescriptor(tt,ta))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(tt,tr){return tt||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),tr||(this._boundsRect||(this._boundsRect=new ic),tr=this._boundsRect),this._bounds.getRectangle(tr)}getLocalBounds(tt){tt||(this._localBoundsRect||(this._localBoundsRect=new ic),tt=this._localBoundsRect),this._localBounds||(this._localBounds=new su);var tr,ti=this.transform,ta=this.parent;this.parent=null,this._tempDisplayObjectParent.worldAlpha=null!==(tr=null==ta?void 0:ta.worldAlpha)&&void 0!==tr?tr:1,this.transform=this._tempDisplayObjectParent.transform;var ts=this._bounds,tu=this._boundsID;this._bounds=this._localBounds;var tc=this.getBounds(!1,tt);return this.parent=ta,this.transform=ti,this._bounds=ts,this._bounds.updateID+=this._boundsID-tu,tc}toGlobal(tt,tr){var ti=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ti||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(tt,tr)}toLocal(tt,tr,ti,ta){return tr&&(tt=tr.toGlobal(tt,ti,ta)),ta||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(tt,ti)}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,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,ta=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,ts=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,tu=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,tc=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,td=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,tp=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=tt,this.position.y=tr,this.scale.x=ti||1,this.scale.y=ta||1,this.rotation=ts,this.skew.x=tu,this.skew.y=tc,this.pivot.x=td,this.pivot.y=tp,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 sc),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*ii}set angle(tt){this.transform.rotation=tt*ia}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 tr=this._mask.isMaskData?this._mask.maskObject:this._mask;tr&&(tr._maskRefCount--,0===tr._maskRefCount&&(tr.renderable=!0,tr.isMask=!1))}if(this._mask=tt,this._mask){var ti=this._mask.isMaskData?this._mask.maskObject:this._mask;ti&&(0===ti._maskRefCount&&(ti.renderable=!1,ti.isMask=!0),ti._maskRefCount++)}}}constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new iI,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 su,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 sc extends sh{constructor(){super(...arguments),this.sortDirty=null}}sh.prototype.displayObjectUpdateTransform=sh.prototype.updateTransform;var sf=new ib;function sl(tt,tr){return tt.zIndex===tr.zIndex?tt._lastSortedIndex-tr._lastSortedIndex:tt.zIndex-tr.zIndex}var sd=class tt extends sh{onChildrenChange(tt){}addChild(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];if(tr.length>1)for(var ta=0;ta<tr.length;ta++)this.addChild(tr[ta]);else{var ts=tr[0];ts.parent&&ts.parent.removeChild(ts),ts.parent=this,this.sortDirty=!0,ts.transform._parentID=-1,this.children.push(ts),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",ts,this,this.children.length-1),ts.emit("added",this)}return tr[0]}addChildAt(tt,tr){if(tr<0||tr>this.children.length)throw Error("".concat(tt,"addChildAt: The index ").concat(tr," 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(tr,0,tt),this._boundsID++,this.onChildrenChange(tr),tt.emit("added",this),this.emit("childAdded",tt,this,tr),tt}swapChildren(tt,tr){if(tt!==tr){var ti=this.getChildIndex(tt),ta=this.getChildIndex(tr);this.children[ti]=tr,this.children[ta]=tt,this.onChildrenChange(ti<ta?ti:ta)}}getChildIndex(tt){var tr=this.children.indexOf(tt);if(-1===tr)throw Error("The supplied DisplayObject must be a child of the caller");return tr}setChildIndex(tt,tr){if(tr<0||tr>=this.children.length)throw Error("The index ".concat(tr," supplied is out of bounds ").concat(this.children.length));var ti=this.getChildIndex(tt);ng(this.children,ti,1),this.children.splice(tr,0,tt),this.onChildrenChange(tr)}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,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];if(tr.length>1)for(var ta=0;ta<tr.length;ta++)this.removeChild(tr[ta]);else{var ts=tr[0],tu=this.children.indexOf(ts);if(-1===tu)return null;ts.parent=null,ts.transform._parentID=-1,ng(this.children,tu,1),this._boundsID++,this.onChildrenChange(tu),ts.emit("removed",this),this.emit("childRemoved",ts,this,tu)}return tr[0]}removeChildAt(tt){var tr=this.getChildAt(tt);return tr.parent=null,tr.transform._parentID=-1,ng(this.children,tt,1),this._boundsID++,this.onChildrenChange(tt),tr.emit("removed",this),this.emit("childRemoved",tr,this,tt),tr}removeChildren(){var tt,tr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ti=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.children.length,ta=tr,ts=ti,tu=ts-ta;if(tu>0&&tu<=ts){tt=this.children.splice(ta,tu);for(var tc=0;tc<tt.length;++tc)tt[tc].parent=null,tt[tc].transform&&(tt[tc].transform._parentID=-1);this._boundsID++,this.onChildrenChange(tr);for(var td=0;td<tt.length;++td)tt[td].emit("removed",this),this.emit("childRemoved",tt[td],this,td);return tt}if(0===tu&&0===this.children.length)return[];throw RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){for(var tt=!1,tr=0,ti=this.children.length;tr<ti;++tr){var ta=this.children[tr];ta._lastSortedIndex=tr,tt||0===ta.zIndex||(tt=!0)}tt&&this.children.length>1&&this.children.sort(sl),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,tr=this.children.length;tt<tr;++tt){var ti=this.children[tt];ti.visible&&ti.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(var tt=0;tt<this.children.length;tt++){var tr=this.children[tt];if(!(!tr.visible||!tr.renderable)){if(tr.calculateBounds(),tr._mask){var ti=tr._mask.isMaskData?tr._mask.maskObject:tr._mask;ti?(ti.calculateBounds(),this._bounds.addBoundsMask(tr._bounds,ti._bounds)):this._bounds.addBounds(tr._bounds)}else tr.filterArea?this._bounds.addBoundsArea(tr._bounds,tr.filterArea):this._bounds.addBounds(tr._bounds)}}this._bounds.updateID=this._boundsID}getLocalBounds(tt){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ti=super.getLocalBounds(tt);if(!tr)for(var ta=0,ts=this.children.length;ta<ts;++ta){var tu=this.children[ta];tu.visible&&tu.updateTransform()}return ti}_calculateBounds(){}_renderWithCulling(tr){var ti,ta,ts=tr.renderTexture.sourceFrame;if(ts.width>0&&ts.height>0){this.cullArea?(ti=this.cullArea,ta=this.worldTransform):this._render!==tt.prototype._render&&(ti=this.getBounds(!0));var tu=tr.projection.transform;if(tu&&(ta?(ta=sf.copyFrom(ta),ta.prepend(tu)):ta=tu),ti&&ts.intersects(ti,ta))this._render(tr);else if(this.cullArea)return;for(var tc=0,td=this.children.length;tc<td;++tc){var tp=this.children[tc],tv=tp.cullable;tp.cullable=tv||!this.cullArea,tp.render(tr),tp.cullable=tv}}}render(tt){var tr;if(!(!this.visible||this.worldAlpha<=0||!this.renderable)){if(this._mask||(null===(tr=this.filters)||void 0===tr?void 0:tr.length))this.renderAdvanced(tt);else if(this.cullable)this._renderWithCulling(tt);else{this._render(tt);for(var ti=0,ta=this.children.length;ti<ta;++ti)this.children[ti].render(tt)}}}renderAdvanced(tt){var tr,ti,ta,ts=this.filters,tu=this._mask;if(ts){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var tc=0;tc<ts.length;tc++)ts[tc].enabled&&this._enabledFilters.push(ts[tc])}var td=ts&&(null===(tr=this._enabledFilters)||void 0===tr?void 0:tr.length)||tu&&(!tu.isMaskData||tu.enabled&&(tu.autoDetect||tu.type!==rU.NONE));if(td&&tt.batch.flush(),ts&&(null===(ti=this._enabledFilters)||void 0===ti?void 0:ti.length)&&tt.filter.push(this,this._enabledFilters),tu&&tt.mask.push(this,this._mask),this.cullable)this._renderWithCulling(tt);else{this._render(tt);for(var tp=0,tv=this.children.length;tp<tv;++tp)this.children[tp].render(tt)}td&&tt.batch.flush(),tu&&tt.mask.pop(this),ts&&(null===(ta=this._enabledFilters)||void 0===ta?void 0:ta.length)&&tt.filter.pop()}_render(tt){}destroy(tt){super.destroy(),this.sortDirty=!1;var tr="boolean"==typeof tt?tt:null==tt?void 0:tt.children,ti=this.removeChildren(0,this.children.length);if(tr)for(var ta=0;ta<ti.length;++ta)ti[ta].destroy(tt)}get width(){return this.scale.x*this.getLocalBounds().width}set width(tt){var tr=this.getLocalBounds().width;0!==tr?this.scale.x=tt/tr:this.scale.x=1,this._width=tt}get height(){return this.scale.y*this.getLocalBounds().height}set height(tt){var tr=this.getLocalBounds().height;0!==tr?this.scale.y=tt/tr:this.scale.y=1,this._height=tt}constructor(){super(),this.children=[],this.sortableChildren=tt.defaultSortableChildren,this.sortDirty=!1}};sd.defaultSortableChildren=!1;var sp=sd;sp.prototype.containerUpdateTransform=sp.prototype.updateTransform,Object.defineProperties(e$,{SORTABLE_CHILDREN:{get:()=>sp.defaultSortableChildren,set(tt){rd("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),sp.defaultSortableChildren=tt}}});var sv=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(tr,ti){var ta=tt._plugins.slice(0);ta.reverse(),ta.forEach(tt=>{tt.destroy.call(this)}),this.stage.destroy(ti),this.stage=null,this.renderer.destroy(tr),this.renderer=null}constructor(tr){this.stage=new sp,tr=Object.assign({forceCanvas:!1},tr),this.renderer=oZ(tr),tt._plugins.forEach(tt=>{tt.init.call(this,tr)})}};sv._plugins=[];var sm=sv;nO.handleByList(nk.Application,sm._plugins);class sg{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,tr=globalThis.innerHeight;else{var tt,tr,{clientWidth:ti,clientHeight:ta}=this._resizeTo;tt=ti,tr=ta}this.renderer.resize(tt,tr),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}}sg.extension=nk.Application,nO.add(sg);var sb=new iu,sy=new Uint16Array([0,1,2,0,2,3]);class s_ extends sp{_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=n_(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=n_(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 tr=this.transform.worldTransform,ti=tr.a,ta=tr.b,ts=tr.c,tu=tr.d,tc=tr.tx,td=tr.ty,tp=this.vertexData,tv=tt.trim,tg=tt.orig,tb=this._anchor,t_=0,tE=0,tA=0,tS=0;if(tv?(tE=tv.x-tb._x*tg.width,t_=tE+tv.width,tS=tv.y-tb._y*tg.height,tA=tS+tv.height):(tE=-tb._x*tg.width,t_=tE+tg.width,tS=-tb._y*tg.height,tA=tS+tg.height),tp[0]=ti*tE+ts*tS+tc,tp[1]=tu*tS+ta*tE+td,tp[2]=ti*t_+ts*tS+tc,tp[3]=tu*tS+ta*t_+td,tp[4]=ti*t_+ts*tA+tc,tp[5]=tu*tA+ta*t_+td,tp[6]=ti*tE+ts*tA+tc,tp[7]=tu*tA+ta*tE+td,this._roundPixels)for(var tT=e$.RESOLUTION,tM=0;tM<tp.length;++tM)tp[tM]=Math.round(tp[tM]*tT)/tT}}calculateTrimmedVertices(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var tt=this._texture,tr=this.vertexTrimmedData,ti=tt.orig,ta=this._anchor,ts=this.transform.worldTransform,tu=ts.a,tc=ts.b,td=ts.c,tp=ts.d,tv=ts.tx,tg=ts.ty,tb=-ta._x*ti.width,t_=tb+ti.width,tE=-ta._y*ti.height,tA=tE+ti.height;tr[0]=tu*tb+td*tE+tv,tr[1]=tp*tE+tc*tb+tg,tr[2]=tu*t_+td*tE+tv,tr[3]=tp*tE+tc*t_+tg,tr[4]=tu*t_+td*tA+tv,tr[5]=tp*tA+tc*t_+tg,tr[6]=tu*tb+td*tA+tv,tr[7]=tp*tA+tc*tb+tg}_render(tt){this.calculateVertices(),tt.batch.setObjectRenderer(tt.plugins[this.pluginName]),tt.plugins[this.pluginName].render(this)}_calculateBounds(){var tt=this._texture.trim,tr=this._texture.orig;tt&&(tt.width!==tr.width||tt.height!==tr.height)?(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)):(this.calculateVertices(),this._bounds.addQuad(this.vertexData))}getLocalBounds(tt){return 0===this.children.length?(this._localBounds||(this._localBounds=new su),this._localBounds.minX=-(this._texture.orig.width*this._anchor._x),this._localBounds.minY=-(this._texture.orig.height*this._anchor._y),this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),tt||(this._localBoundsRect||(this._localBoundsRect=new ic),tt=this._localBoundsRect),this._localBounds.getRectangle(tt)):super.getLocalBounds.call(this,tt)}containsPoint(tt){this.worldTransform.applyInverse(tt,sb);var tr=this._texture.orig.width,ti=this._texture.orig.height,ta=-tr*this.anchor.x,ts=0;return sb.x>=ta&&sb.x<ta+tr&&(ts=-ti*this.anchor.y,sb.y>=ts&&sb.y<ts+ti)}destroy(tt){if(super.destroy(tt),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,"boolean"==typeof tt?tt:null==tt?void 0:tt.texture){var tr="boolean"==typeof tt?tt:null==tt?void 0:tt.baseTexture;this._texture.destroy(!!tr)}this._texture=null}static from(tt,tr){var ti=tt instanceof aw?tt:aw.from(tt,tr);return new s_(ti)}set roundPixels(tt){this._roundPixels!==tt&&(this._transformID=-1),this._roundPixels=tt}get roundPixels(){return this._roundPixels}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(tt){var tr=n_(this.scale.x)||1;this.scale.x=tr*tt/this._texture.orig.width,this._width=tt}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(tt){var tr=n_(this.scale.y)||1;this.scale.y=tr*tt/this._texture.orig.height,this._height=tt}get anchor(){return this._anchor}set anchor(tt){this._anchor.copyFrom(tt)}get tint(){return this._tintColor.value}set tint(tt){this._tintColor.setValue(tt),this._tintRGB=this._tintColor.toLittleEndianNumber()}get tintValue(){return this._tintColor.toNumber()}get texture(){return this._texture}set texture(tt){this._texture!==tt&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=tt||aw.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,tt&&(tt.baseTexture.valid?this._onTextureUpdate():tt.once("update",this._onTextureUpdate,this)))}constructor(tt){super(),this._anchor=new iM(this._onAnchorUpdate,this,tt?tt.defaultAnchor.x:0,tt?tt.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new nf(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=rx.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=tt||aw.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=sy,this.pluginName="batch",this.isSprite=!0,this._roundPixels=e$.ROUND_PIXELS}}var sw={loader:nk.LoadParser,resolver:nk.ResolveParser,cache:nk.CacheParser,detection:nk.DetectionParser};nO.handle(nk.Asset,tt=>{var tr,ti=tt.ref;Object.entries(sw).filter(tt=>{var[tr]=tt;return!!ti[tr]}).forEach(tt=>{var[ta,ts]=tt;return nO.add(Object.assign(ti[ta],{extension:null!==(tr=ti[ta].extension)&&void 0!==tr?tr:ts}))})},tt=>{var tr=tt.ref;Object.keys(sw).filter(tt=>!!tr[tt]).forEach(tt=>nO.remove(tr[tt]))});class sE{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,tU._)(function*(){if(tt._assetList.length&&tt._isActive){tt._isLoading=!0;for(var tr=[],ti=Math.min(tt._assetList.length,tt._maxConcurrent),ta=0;ta<ti;ta++)tr.push(tt._assetList.pop());yield tt._loader.load(tr),tt._isLoading=!1,tt._next()}})()}get active(){return this._isActive}set active(tt){this._isActive!==tt&&(this._isActive=tt,tt&&!this._isLoading&&this._next())}constructor(tt,tr=!1){this._loader=tt,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=tr}}function sA(tt,tr){var ti=tt.split("?")[0],ta=r_.extname(ti).toLowerCase();return Array.isArray(tr)?tr.includes(ta):ta===tr}var sx=(tt,tr)=>(Array.isArray(tt)||(tt=[tt]),tr?tt.map(tt=>"string"==typeof tt?tr(tt):tt):tt);class sS{reset(){this._cacheMap.clear(),this._cache.clear()}has(tt){return this._cache.has(tt)}get(tt){var tr=this._cache.get(tt);return tr||console.warn("[Assets] Asset id ".concat(tt," was not found in the Cache")),tr}set(tt,tr){for(var ti,ta=sx(tt),ts=0;ts<this.parsers.length;ts++){var tu=this.parsers[ts];if(tu.test(tr)){ti=tu.getCacheableAssets(ta,tr);break}}ti||(ti={},ta.forEach(tt=>{ti[tt]=tr}));var tc=Object.keys(ti),td={cacheKeys:tc,keys:ta};if(ta.forEach(tt=>{this._cacheMap.set(tt,td)}),tc.forEach(tt=>{this._cache.has(tt)&&this._cache.get(tt)!==tr&&console.warn("[Cache] already has key:",tt),this._cache.set(tt,ti[tt])}),tr instanceof aw){var tp=tr;ta.forEach(tt=>{tp.baseTexture!==aw.EMPTY.baseTexture&&nJ.addToCache(tp.baseTexture,tt),aw.addToCache(tp,tt)})}}remove(tt){if(!this._cacheMap.has(tt)){console.warn("[Assets] Asset id ".concat(tt," was not found in the Cache"));return}var tr=this._cacheMap.get(tt);tr.cacheKeys.forEach(tt=>{this._cache.delete(tt)}),tr.keys.forEach(tt=>{this._cacheMap.delete(tt)})}get parsers(){return this._parsers}constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}}var sT=new sS,sM=tt=>!Array.isArray(tt);class sR{reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(tt,tr){var ti={promise:null,parser:null},ta=this;return ti.promise=(0,tU._)(function*(){var ts=null,tu=null;if(tr.loadParser&&((tu=ta._parserHash[tr.loadParser])||console.warn('[Assets] specified load parser "'.concat(tr.loadParser,'" not found while loading ').concat(tt))),!tu){for(var tc=0;tc<ta.parsers.length;tc++){var td,tp=ta.parsers[tc];if(tp.load&&(null===(td=tp.test)||void 0===td?void 0:td.call(tp,tt,tr,ta))){tu=tp;break}}if(!tu)return console.warn("[Assets] ".concat(tt," could not be loaded as we don't know how to parse it, ensure the correct parser has been added")),null}ts=yield tu.load(tt,tr,ta),ti.parser=tu;for(var tv=0;tv<ta.parsers.length;tv++){var tg,tb=ta.parsers[tv];tb.parse&&tb.parse&&(yield null===(tg=tb.testParse)||void 0===tg?void 0:tg.call(tb,ts,tr,ta))&&(ts=(yield tb.parse(ts,tr,ta))||ts,ti.parser=tb)}return ts})(),ti}load(tt,tr){var ti=this;return(0,tU._)(function*(){ti._parsersValidated||ti._validateParsers();var ta=0,ts={},tu=sM(tt),tc=sx(tt,tt=>({alias:[tt],src:tt})),td=tc.length,tp=tc.map(function(){var tt=(0,tU._)(function*(tt){var tu=r_.toAbsolute(tt.src);if(!ts[tt.src])try{ti.promiseCache[tu]||(ti.promiseCache[tu]=ti._getLoadPromiseAndParser(tu,tt)),ts[tt.src]=yield ti.promiseCache[tu].promise,tr&&tr(++ta/td)}catch(tr){throw delete ti.promiseCache[tu],delete ts[tt.src],Error("[Loader.load] Failed to load ".concat(tu,".\n").concat(tr))}});return function(tr){return tt.apply(this,arguments)}}());return yield Promise.all(tp),tu?ts[tc[0].src]:ts})()}unload(tt){var tr=this;return(0,tU._)(function*(){var ti=sx(tt,tt=>({alias:[tt],src:tt})).map(function(){var tt=(0,tU._)(function*(tt){var ti=r_.toAbsolute(tt.src),ta=tr.promiseCache[ti];if(ta){var ts,tu,tc=yield ta.promise;delete tr.promiseCache[ti],null===(ts=ta.parser)||void 0===ts||null===(tu=ts.unload)||void 0===tu||tu.call(ts,tc,tt,tr)}});return function(tr){return tt.apply(this,arguments)}}());yield Promise.all(ti)})()}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(tt=>tt.name).reduce((tt,tr)=>(tt[tr.name]&&console.warn('[Assets] loadParser name conflict "'.concat(tr.name,'"')),(0,td._)((0,tc._)({},tt),{[tr.name]:tr})),{})}constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(tt,tr,ti)=>(this._parsersValidated=!1,tt[tr]=ti,!0)}),this.promiseCache={}}}var sI=((un=sI||{})[un.Low=0]="Low",un[un.Normal=1]="Normal",un[un.High=2]="High",un);function sk(tt,tr){if(Array.isArray(tr)){for(var ti of tr)if(tt.startsWith("data:".concat(ti)))return!0;return!1}return tt.startsWith("data:".concat(tr))}var sP=".json",sC="application/json",sO={extension:{type:nk.LoadParser,priority:sI.Low},name:"loadJson",test:tt=>sk(tt,sC)||sA(tt,sP),load:tt=>(0,tU._)(function*(){return yield(yield e$.ADAPTER.fetch(tt)).json()})()};nO.add(sO);var sN=".txt",sB="text/plain",sL={name:"loadTxt",extension:{type:nk.LoadParser,priority:sI.Low},test:tt=>sk(tt,sB)||sA(tt,sN),load:tt=>(0,tU._)(function*(){return yield(yield e$.ADAPTER.fetch(tt)).text()})()};nO.add(sL);var sU=["normal","bold","100","200","300","400","500","600","700","800","900"],sD=[".ttf",".otf",".woff",".woff2"],sj=["font/ttf","font/otf","font/woff","font/woff2"],sF=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function sG(tt){var tr=r_.extname(tt),ti=r_.basename(tt,tr).replace(/(-|_)/g," ").toLowerCase().split(" ").map(tt=>tt.charAt(0).toUpperCase()+tt.slice(1)),ta=ti.length>0;for(var ts of ti)if(!ts.match(sF)){ta=!1;break}var tu=ti.join(" ");return ta||(tu='"'.concat(tu.replace(/[\\"]/g,"\\$&"),'"')),tu}var sH={extension:{type:nk.LoadParser,priority:sI.Low},name:"loadWebFont",test:tt=>sk(tt,sj)||sA(tt,sD),load:(tt,tr)=>(0,tU._)(function*(){var ti=e$.ADAPTER.getFontFaceSet();if(ti){for(var ta,ts,tu,tp,tv,tg,tb=[],t_=null!==(tp=null===(ta=tr.data)||void 0===ta?void 0:ta.family)&&void 0!==tp?tp:sG(tt),tE=null!==(tv=null===(ts=tr.data)||void 0===ts?void 0:null===(tu=ts.weights)||void 0===tu?void 0:tu.filter(tt=>sU.includes(tt)))&&void 0!==tv?tv:["normal"],tA=null!==(tg=tr.data)&&void 0!==tg?tg:{},tS=0;tS<tE.length;tS++){var tT=tE[tS],tM=new FontFace(t_,"url(".concat(encodeURI(tt),")"),(0,td._)((0,tc._)({},tA),{weight:tT}));yield tM.load(),ti.add(tM),tb.push(tM)}return 1===tb.length?tb[0]:tb}return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null})(),unload(tt){(Array.isArray(tt)?tt:[tt]).forEach(tt=>e$.ADAPTER.getFontFaceSet().delete(tt))}};nO.add(sH);var sV,sz,sq,sW,sY,sX,sK,sZ,sQ,sJ,s$,s0,s1,s2,s3,s6,s4,s8,s5,s7,s9,ut,ur,un,ui,ua,uo,us,uu,uh,uc,uf,ul=0,ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",up={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(ud,"');\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    ")},uv={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 um{isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise(tt=>{var tr=URL.createObjectURL(new Blob([up.code],{type:"application/javascript"})),ti=new Worker(tr);ti.addEventListener("message",ta=>{ti.terminate(),URL.revokeObjectURL(tr),tt(ta.data)})})),this._isImageBitmapSupported}loadImageBitmap(tt){return this._run("loadImageBitmap",[tt])}_initWorkers(){var tt=this;return(0,tU._)(function*(){tt._initialized||(tt._initialized=!0)})()}getWorker(){void 0===uf&&(uf=navigator.hardwareConcurrency||4);var tt=this.workerPool.pop();return!tt&&this._createdWorkers<uf&&(ta||(ta=URL.createObjectURL(new Blob([uv.code],{type:"application/javascript"}))),this._createdWorkers++,(tt=new Worker(ta)).addEventListener("message",tt=>{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,tr){var ti=this;return(0,tU._)(function*(){yield ti._initWorkers();var ta=new Promise((ta,ts)=>{ti.queue.push({id:tt,arguments:tr,resolve:ta,reject:ts})});return ti.next(),ta})()}next(){if(this.queue.length){var tt=this.getWorker();if(tt){var tr=this.queue.pop(),ti=tr.id;this.resolveHash[ul]={resolve:tr.resolve,reject:tr.reject},tt.postMessage({data:tr.arguments,uuid:ul++,id:ti})}}}constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}}var ug=new um;function ub(tt,tr,ti){tt.resource.internal=!0;var ta=new aw(tt),ts=()=>{delete tr.promiseCache[ti],sT.has(ti)&&sT.remove(ti)};return ta.baseTexture.once("destroyed",()=>{ti in tr.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),ts())}),ta.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."),ts())}),ta}var u_=[".jpeg",".jpg",".png",".webp",".avif"],uw=["image/jpeg","image/png","image/webp","image/avif"];function uE(tt){return uA.apply(this,arguments)}function uA(){return(uA=(0,tU._)(function*(tt){var tr=yield e$.ADAPTER.fetch(tt);if(!tr.ok)throw Error("[loadImageBitmap] Failed to fetch ".concat(tt,": ").concat(tr.status," ").concat(tr.statusText));var ti=yield tr.blob();return yield createImageBitmap(ti)})).apply(this,arguments)}var uS={name:"loadTextures",extension:{type:nk.LoadParser,priority:sI.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test:tt=>sk(tt,uw)||sA(tt,u_),load(tt,tr,ti){return(0,tU._)(function*(){var ta,ts,tu,td=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;ts=td?this.config.preferWorkers&&(yield ug.isImageBitmapSupported())?yield ug.loadImageBitmap(tt):yield uE(tt):yield new Promise((tr,ti)=>{var ta=new Image;ta.crossOrigin=this.config.crossOrigin,ta.src=tt,ta.complete?tr(ta):(ta.onload=()=>tr(ta),ta.onerror=tt=>ti(tt))});var tp=(0,tc._)({},tr.data);null!==(tu=tp.resolution)&&void 0!==tu||(tp.resolution=nI(tt)),td&&(null===(ta=tp.resourceOptions)||void 0===ta?void 0:ta.ownsImageBitmap)===void 0&&(tp.resourceOptions=(0,tc._)({},tp.resourceOptions),tp.resourceOptions.ownsImageBitmap=!0);var tv=new nJ(ts,tp);return tv.resource.src=tt,ub(tv,ti,tt)}).apply(this)},unload(tt){tt.destroy(!0)}};nO.add(uS);var uT=".svg",uM="image/svg+xml",uR={extension:{type:nk.LoadParser,priority:sI.High},name:"loadSVG",test:tt=>sk(tt,uM)||sA(tt,uT),testParse:tt=>(0,tU._)(function*(){return sa.test(tt)})(),parse:(tt,tr,ti)=>(0,tU._)(function*(){var ta,ts=new sa(tt,null==tr?void 0:null===(ta=tr.data)||void 0===ta?void 0:ta.resourceOptions);yield ts.load();var tu=new nJ(ts,(0,tc._)({resolution:nI(tt)},null==tr?void 0:tr.data));return tu.resource.src=tr.src,ub(tu,ti,tr.src)})(),load:(tt,tr)=>(0,tU._)(function*(){return(yield e$.ADAPTER.fetch(tt)).text()})(),unload:uS.unload};nO.add(uR);var uI=[".mp4",".m4v",".webm",".ogv"],uk=["video/mp4","video/webm","video/ogg"],uP={name:"loadVideo",extension:{type:nk.LoadParser,priority:sI.High},config:{defaultAutoPlay:!0},test:tt=>sk(tt,uk)||sA(tt,uI),load(tt,tr,ti){return(0,tU._)(function*(){var ta=yield(yield e$.ADAPTER.fetch(tt)).blob(),ts=URL.createObjectURL(ta);try{var tu,td,tp=(0,tc._)({autoPlay:this.config.defaultAutoPlay},null==tr?void 0:null===(td=tr.data)||void 0===td?void 0:td.resourceOptions),tv=new ss(ts,tp);yield tv.load();var tg=new nJ(tv,(0,tc._)({alphaMode:yield rG(),resolution:nI(tt)},null==tr?void 0:tr.data));tg.resource.src=tt,(tu=ub(tg,ti,tt)).baseTexture.once("destroyed",()=>{URL.revokeObjectURL(ts)})}catch(tt){throw URL.revokeObjectURL(ts),tt}return tu}).apply(this)},unload(tt){tt.destroy(!0)}};function uC(tt){return tt&&"undefined"!=typeof Symbol&&tt.constructor===Symbol?"symbol":typeof tt}function uO(tt,tr,ti,ta,ts){for(var tu=tr[ti],tc=0;tc<tu.length;tc++){var td=tu[tc];ti<tr.length-1?uO(tt.replace(ta[ti],td),tr,ti+1,ta,ts):ts.push(tt.replace(ta[ti],td))}}function uN(tt){var tr=/\{(.*?)\}/g,ti=tt.match(tr),ta=[];if(ti){var ts=[];ti.forEach(tt=>{var tr=tt.substring(1,tt.length-1).split(",");ts.push(tr)}),uO(tt,ts,0,ti,ta)}else ta.push(tt);return ta}nO.add(uP);class uB{setBundleIdentifier(tt){var tr,ti,ta;if(this._bundleIdConnector=null!==(tr=tt.connector)&&void 0!==tr?tr:this._bundleIdConnector,this._createBundleAssetId=null!==(ti=tt.createBundleAssetId)&&void 0!==ti?ti:this._createBundleAssetId,this._extractAssetIdFromBundle=null!==(ta=tt.extractAssetIdFromBundle)&&void 0!==ta?ta:this._extractAssetIdFromBundle,"bar"!==this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar")))throw Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];tr.forEach(tt=>{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 tr=tt;this._defaultSearchParams=Object.keys(tr).map(tt=>"".concat(encodeURIComponent(tt),"=").concat(encodeURIComponent(tr[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,tr){var ti=[];Array.isArray(tr)?tr.forEach(tr=>{var ta,ts,tu,tp=null!==(ta=tr.src)&&void 0!==ta?ta:tr.srcs,tv=null!==(ts=tr.alias)&&void 0!==ts?ts:tr.name;if("string"==typeof tv){var tg=this._createBundleAssetId(tt,tv);ti.push(tg),tu=[tv,tg]}else{var tb=tv.map(tr=>this._createBundleAssetId(tt,tr));ti.push(...tb),tu=[...tv,...tb]}this.add((0,td._)((0,tc._)({},tr),{alias:tu,src:tp}))}):Object.keys(tr).forEach(ta=>{var ts=[ta,this._createBundleAssetId(tt,ta)];if("string"==typeof tr[ta])this.add({alias:ts,src:tr[ta]});else if(Array.isArray(tr[ta]))this.add({alias:ts,src:tr[ta]});else{var tu,tp=tr[ta],tv=null!==(tu=tp.src)&&void 0!==tu?tu:tp.srcs;this.add((0,td._)((0,tc._)({},tp),{alias:ts,src:Array.isArray(tv)?tv:[tv]}))}ti.push(...ts)}),this._bundles[tt]=ti}add(tt,tr,ti,ta,ts){var tu,td=[];"string"==typeof tt||Array.isArray(tt)&&"string"==typeof tt[0]?(rd("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:tr,data:ti,format:ta,loadParser:ts})):Array.isArray(tt)?td.push(...tt):td.push(tt),tu=tt=>{this.hasKey(tt)&&console.warn("[Resolver] already has key: ".concat(tt," overwriting"))},sx(td).forEach(tt=>{var{alias:tr,name:ti,src:ta,srcs:ts}=tt,{data:td,format:tp,loadParser:tv}=tt,tg=sx(ta||ts).map(tt=>"string"==typeof tt?uN(tt):Array.isArray(tt)?tt:[tt]),tb=sx(tr||ti);Array.isArray(tr)?tr.forEach(tu):tu(tr);var t_=[];tg.forEach(tt=>{tt.forEach(tt=>{var tr,ti,ta,ts={};if("object"!=typeof tt){ts.src=tt;for(var tu=0;tu<this._parsers.length;tu++){var tg=this._parsers[tu];if(tg.test(tt)){ts=tg.parse(tt);break}}}else td=null!==(tr=tt.data)&&void 0!==tr?tr:td,tp=null!==(ti=tt.format)&&void 0!==ti?ti:tp,tv=null!==(ta=tt.loadParser)&&void 0!==ta?ta:tv,ts=(0,tc._)({},ts,tt);ts=this.buildResolvedAsset(ts,{aliases:tb,data:td,format:tp,loadParser:tv}),t_.push(ts)})}),tb.forEach(tt=>{this._assetMap[tt]=t_})})}resolveBundle(tt){var tr=sM(tt);tt=sx(tt);var ti={};return tt.forEach(tt=>{var tr=this._bundles[tt];if(tr){var ta=this.resolve(tr),ts={};for(var tu in ta){var tc=ta[tu];ts[this._extractAssetIdFromBundle(tt,tu)]=tc}ti[tt]=ts}}),tr?ti[tt[0]]:ti}resolveUrl(tt){var tr=this.resolve(tt);if("string"!=typeof tt){var ti={};for(var ta in tr)ti[ta]=tr[ta].src;return ti}return tr.src}resolve(tt){var tr=sM(tt);tt=sx(tt);var ti={};return tt.forEach(tt=>{if(!this._resolverHash[tt]){if(this._assetMap[tt]){var tr,ta=this._assetMap[tt],ts=ta[0],tu=this._getPreferredOrder(ta);null==tu||tu.priority.forEach(tt=>{tu.params[tt].forEach(tr=>{var ti=ta.filter(ti=>!!ti[tt]&&ti[tt]===tr);ti.length&&(ta=ti)})}),this._resolverHash[tt]=null!==(tr=ta[0])&&void 0!==tr?tr:ts}else this._resolverHash[tt]=this.buildResolvedAsset({alias:[tt],src:tt},{})}ti[tt]=this._resolverHash[tt]}),tr?ti[tt[0]]:ti}hasKey(tt){return!!this._assetMap[tt]}hasBundle(tt){return!!this._bundles[tt]}_getPreferredOrder(tt){for(var tr=this,ti=function(ti){var ta=tt[0],ts=tr._preferredOrder.find(tt=>tt.params.format.includes(ta.format));if(ts)return{v:ts}},ta=0;ta<tt.length;ta++){var ts=ti(ta);if("object"===uC(ts))return ts.v}return this._preferredOrder[0]}_appendDefaultSearchParams(tt){if(!this._defaultSearchParams)return tt;var tr=/\?/.test(tt)?"&":"?";return"".concat(tt).concat(tr).concat(this._defaultSearchParams)}buildResolvedAsset(tt,tr){var ti,{aliases:ta,data:ts,loadParser:tu,format:td}=tr;return(this._basePath||this._rootPath)&&(tt.src=r_.toAbsolute(tt.src,this._basePath,this._rootPath)),tt.alias=null!==(ti=null!=ta?ta:tt.alias)&&void 0!==ti?ti:[tt.src],tt.src=this._appendDefaultSearchParams(tt.src),tt.data=(0,tc._)({},ts||{},tt.data),tt.loadParser=null!=tu?tu:tt.loadParser,tt.format=null!=td?td:tt.src.split(".").pop(),tt.srcs=tt.src,tt.name=tt.alias,tt}constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(tt,tr)=>"".concat(tt).concat(this._bundleIdConnector).concat(tr),extractAssetIdFromBundle:(tt,tr)=>tr.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 uL{init(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=this;return(0,tU._)(function*(){if(tr._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(tr._initialized=!0,tt.defaultSearchParams&&tr.resolver.setDefaultSearchParams(tt.defaultSearchParams),tt.basePath&&(tr.resolver.basePath=tt.basePath),tt.bundleIdentifier&&tr.resolver.setBundleIdentifier(tt.bundleIdentifier),tt.manifest){var ti,ta,ts,tu=tt.manifest;"string"==typeof tu&&(tu=yield tr.load(tu)),tr.resolver.addManifest(tu)}var tc=null!==(ts=null===(ti=tt.texturePreference)||void 0===ti?void 0:ti.resolution)&&void 0!==ts?ts:1,td="number"==typeof tc?[tc]:tc,tp=yield tr._detectFormats({preferredFormats:null===(ta=tt.texturePreference)||void 0===ta?void 0:ta.format,skipDetections:tt.skipDetections,detections:tr._detections});tr.resolver.prefer({params:{format:tp,resolution:td}}),tt.preferences&&tr.setPreferences(tt.preferences)})()}add(tt,tr,ti,ta,ts){this.resolver.add(tt,tr,ti,ta,ts)}load(tt,tr){var ti=this;return(0,tU._)(function*(){ti._initialized||(yield ti.init());var ta=sM(tt),ts=sx(tt).map(tt=>{if("string"!=typeof tt){ti.add(tt);var tr=tt.src||tt.srcs,ta=tt.alias||tt.name;return ta&&Array.isArray(ta)?ta[0]:tr&&Array.isArray(tr)?tr[0]:ta||tr}return ti.resolver.hasKey(tt)||ti.add({alias:tt,src:tt}),tt}),tu=ti.resolver.resolve(ts),tc=yield ti._mapLoadToResolve(tu,tr);return ta?tc[ts[0]]:tc})()}addBundle(tt,tr){this.resolver.addBundle(tt,tr)}loadBundle(tt,tr){var ti=this;return(0,tU._)(function*(){ti._initialized||(yield ti.init());var ta=!1;"string"==typeof tt&&(ta=!0,tt=[tt]);var ts=ti.resolver.resolveBundle(tt),tu={},tc=Object.keys(ts),td=0,tp=0,tv=()=>{null==tr||tr(++td/tp)},tg=tc.map(tt=>{var tr=ts[tt];return tp+=Object.keys(tr).length,ti._mapLoadToResolve(tr,tv).then(tr=>{tu[tt]=tr})});return yield Promise.all(tg),ta?tu[tt[0]]:tu})()}backgroundLoad(tt){var tr=this;return(0,tU._)(function*(){tr._initialized||(yield tr.init()),"string"==typeof tt&&(tt=[tt]);var ti=tr.resolver.resolve(tt);tr._backgroundLoader.add(Object.values(ti))})()}backgroundLoadBundle(tt){var tr=this;return(0,tU._)(function*(){tr._initialized||(yield tr.init()),"string"==typeof tt&&(tt=[tt]),Object.values(tr.resolver.resolveBundle(tt)).forEach(tt=>{tr._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 sT.get(tt);for(var tr={},ti=0;ti<tt.length;ti++)tr[ti]=sT.get(tt[ti]);return tr}_mapLoadToResolve(tt,tr){var ti=this;return(0,tU._)(function*(){var ta=Object.values(tt),ts=Object.keys(tt);ti._backgroundLoader.active=!1;var tu=yield ti.loader.load(ta,tr);ti._backgroundLoader.active=!0;var tc={};return ta.forEach((tt,tr)=>{var ti=tu[tt.src],ta=[tt.src];tt.alias&&ta.push(...tt.alias),tc[ts[tr]]=ti,sT.set(ta,ti)}),tc})()}unload(tt){var tr=this;return(0,tU._)(function*(){tr._initialized||(yield tr.init());var ti=sx(tt).map(tt=>"string"!=typeof tt?tt.src:tt),ta=tr.resolver.resolve(ti);yield tr._unloadFromResolved(ta)})()}unloadBundle(tt){var tr=this;return(0,tU._)(function*(){tr._initialized||(yield tr.init()),tt=sx(tt);var ti=tr.resolver.resolveBundle(tt),ta=Object.keys(ti).map(tt=>tr._unloadFromResolved(ti[tt]));yield Promise.all(ta)})()}_unloadFromResolved(tt){var tr=this;return(0,tU._)(function*(){var ti=Object.values(tt);ti.forEach(tt=>{sT.remove(tt.src)}),yield tr.loader.unload(ti)})()}_detectFormats(tt){return(0,tU._)(function*(){var tr=[];for(var ti of(tt.preferredFormats&&(tr=Array.isArray(tt.preferredFormats)?tt.preferredFormats:[tt.preferredFormats]),tt.detections))tt.skipDetections||(yield ti.test())?tr=yield ti.add(tr):tt.skipDetections||(tr=yield ti.remove(tr));return tr=tr.filter((tt,ti)=>tr.indexOf(tt)===ti)})()}get detections(){return this._detections}get preferWorkers(){return uS.config.preferWorkers}set preferWorkers(tt){rd("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:tt})}setPreferences(tt){this.loader.parsers.forEach(tr=>{tr.config&&Object.keys(tr.config).filter(tr=>tr in tt).forEach(ti=>{tr.config[ti]=tt[ti]})})}constructor(){this._detections=[],this._initialized=!1,this.resolver=new uB,this.loader=new sR,this.cache=sT,this._backgroundLoader=new sE(this.loader),this._backgroundLoader.active=!0,this.reset()}}var uU=new uL;nO.handleByList(nk.LoadParser,uU.loader.parsers).handleByList(nk.ResolveParser,uU.resolver.parsers).handleByList(nk.CacheParser,uU.cache.parsers).handleByList(nk.DetectionParser,uU.detections);var uD={extension:nk.CacheParser,test:tt=>Array.isArray(tt)&&tt.every(tt=>tt instanceof aw),getCacheableAssets:(tt,tr)=>{var ti={};return tt.forEach(tt=>{tr.forEach((tr,ta)=>{ti[tt+(0===ta?"":ta+1)]=tr})}),ti}};nO.add(uD);var uj={extension:{type:nk.DetectionParser,priority:1},test:(0,tU._)(function*(){var tt="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=";return new Promise(tr=>{var ti=new Image;ti.onload=()=>{tr(!0)},ti.onerror=()=>{tr(!1)},ti.src=tt})}),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,"avif"]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>"avif"!==tt)});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uj);var uF={extension:{type:nk.DetectionParser,priority:0},test:(0,tU._)(function*(){var tt="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=";return new Promise(tr=>{var ti=new Image;ti.onload=()=>{tr(!0)},ti.onerror=()=>{tr(!1)},ti.src=tt})}),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,"webp"]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>"webp"!==tt)});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uF);var uG=["png","jpg","jpeg"],uH={extension:{type:nk.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,...uG]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>!uG.includes(tt))});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uH);var uV="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function uz(tt){return!uV&&""!==document.createElement("video").canPlayType(tt)}var uq={extension:{type:nk.DetectionParser,priority:0},test:(0,tU._)(function*(){return uz("video/webm")}),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,"webm"]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>"webm"!==tt)});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uq);var uW={extension:{type:nk.DetectionParser,priority:0},test:(0,tU._)(function*(){return uz("video/mp4")}),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,"mp4","m4v"]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>"mp4"!==tt&&"m4v"!==tt)});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uW);var uY={extension:{type:nk.DetectionParser,priority:0},test:(0,tU._)(function*(){return uz("video/ogg")}),add:function(){var tt=(0,tU._)(function*(tt){return[...tt,"ogv"]});return function(tr){return tt.apply(this,arguments)}}(),remove:function(){var tt=(0,tU._)(function*(tt){return tt.filter(tt=>"ogv"!==tt)});return function(tr){return tt.apply(this,arguments)}}()};nO.add(uY);var uX={extension:nk.ResolveParser,test:uS.test,parse:tt=>{var tr;return{resolution:parseFloat(null!==(ts=null===(tr=e$.RETINA_PREFIX.exec(tt))||void 0===tr?void 0:tr[1])&&void 0!==ts?ts:"1"),format:tt.split(".").pop(),src:tt}}};nO.add(uX);class uK{setAnimationItemsPosition(tt){this.animationItems.length>0&&this.animationItems.forEach(tr=>{var{figure:ti}=tr,ta=(0,tD._)(tr,["figure"]),ts=s_.from(ti);ts.scale.set(.5*tt,.5*tt);var tu=this.calculatePositionFromPercent("width",ta.from.left),tc=this.calculatePositionFromPercent("height",ta.from.top);ts.position={x:tu,y:tc},ts.zIndex=ta.styles.zIndex,this.containerFigures.addChild(ts)})}init(tt){var{animationConfig:tr,items:ti}=tt;this.animationItems=tr.map(tt=>(0,td._)((0,tc._)({},tt),{figure:ti[tt.key]}))}run(tt){var{rootContainerEl:tr,params:ti}=tt,ta=this;return(0,tU._)(function*(){ta.isRun||(ta.isRun=!0,ta.containerNode=tr,ta.app=new sm({backgroundAlpha:0,antialias:!0,width:tr.clientWidth,height:tr.clientHeight,resolution:uZ(),resizeTo:tr,autoDensity:!0}),globalThis.__PIXI_APP__=ta.app,tr.appendChild(ta.app.view),ta.containerFigures=new sp,ta.containerFigures.sortableChildren=!0,ta.app.stage.addChild(ta.containerFigures),ta.setAnimationItemsPosition(ti.scale),ta.animate())})()}animate(){this.containerFigures.children.forEach((tt,tr)=>{var ti=this.animationItems[tr];if(0!==Object.keys(ti.to).length){var{x:ta,y:ts}=tt.position,tu=ti.to.left?this.calculatePositionFromPercent("width",ti.to.left):ta,tc=ti.to.top?this.calculatePositionFromPercent("height",ti.to.top):ts;eJ({targets:tt,angle:ti.to.rotate||0,x:tu,y:tc,direction:"alternate",duration:(ti.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,tr)=>tr/100*this.app.screen[tt],this.animationItems=[],this.isRun=!1}}function uZ(){var tt=window.devicePixelRatio||1;return tt>2?2:tt}class uQ{init(){var tt=this;return(0,tU._)(function*(){document.cookie="sso_cookies_migrated=true; domain=.tbank.ru";var{isLocal:tr,isIframe:ti,isProd:ta}=tt.configService.getConfigEnvironment();if(ti)return tt.projectAuthModel.auth();tt.pixiAssetsLoaderService.initBundles();var ts=tt.projectAuthModel.getProjectUserAuth();tt.isMb=null!==tt.queryString.getMobileVersion(),!ta&&tt.isDevToolsEnabled()||(ts.subscribe(tr=>{tt.tracking.updateClientParams(tt.isMb,null===(ti=tr.data)||void 0===ti?void 0:ti.userInfo.userInfo.analyticsId);var ti,{data:ta}=tr,ts=(0,tD._)(tr,["data"]);if(tt.projectAuthModel.setState(ts),tt.isAuthStateLoggedIn(tr)){tt.userModel.setUserState(tr.data.userInfo.userInfo);var tu=tt.sortService.sortData({data:tr.data.userInfo.gifts,sortParams:[{orderDirection:tI.As.DESC,orderBy:"weight"},{orderDirection:tI.As.DESC,orderBy:"isAvailable"}]});tt.promoCodesModel.setPromoCodes(tr.data.userInfo.promocodes),tt.giftListModel.setInitialGifts(tu,tt.promoCodesModel.getPromoCodes()),tt.giftListModel.setInitialFilters(tt.resources.content.MainPage.filters)}}),tr?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)}constructor(tt,tr,ti,ta,ts,tu,td,tp,tv,tg,tb,t_,tE,tA,tS,tT){this.resourcesLoaderModel=tt,this.userModel=tr,this.giftListModel=ti,this.promoCodesModel=ta,this.projectAuthModel=ts,this.configService=tu,this.pixiAssetsLoaderService=td,this.appNavigation=tp,this.tracking=tv,this.queryString=tg,this.authScenarios=tb,this.resources=t_,this.sortService=tE,this.window=tA,this.logger=tS,this.projectApi=tT,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 tM=this;this.loadAnimationBundle=(0,tU._)(function*(){tM.resourcesLoaderModel.setAnimationBundleLoadingRequestState();try{var tt=yield tM.resourcesLoaderModel.loadAnimationBundle();tM.resourcesLoaderModel.setAnimationBundleSuccessRequestState(tt)}catch(tt){tM.resourcesLoaderModel.setAnimationBundleErrorRequestState(tt)}});var tR=this;this.logout=(0,tU._)(function*(){tR.logger.log("logout"),yield tR.projectAuthModel.getProjectUserAuth().logout(),tR.giftListModel.resetState(),tR.userModel.resetState()}),this.logoutAndRedirectToMainPage=()=>{this.projectAuthModel.getProjectUserAuth().logout(),this.appNavigation.navigateToMainPage()},this.reloadPage=()=>{this.logger.log("reload"),this.appNavigation.pageReload()},this.navigateTo=(tt,tr)=>{this.logger.log("navigateTo: ".concat(tt)),this.appNavigation.navigateTo(tt,tr)},this.navigateToAuthPage=tt=>{this.appNavigation.navigateToAuthPage(tt)},this.getIsMb=()=>this.isMb,this.isFiltersVisible=tt=>this.giftListModel.isFiltersVisible(tt),this.getPromoCodeAdditionalData=(tt,tr)=>this.promoCodesModel.isPromoCodeMatchedToGift(tt)?this.promoCodesModel.getPromoCodeAdditionalData(tr):{},this.updateSelectedFiltersAndFilteredGifts=tt=>{this.giftListModel.setSelectedFilters(tt),this.giftListModel.filterGifts()},this.simulateUserError=tt=>{var{errorCode:tr,httpCode:ti,isMb:ta}=tt,ts=this.configService.getQueryKeys().mobileVersion,tu=ta?{[ts]:!0}:{};this.logger.log("simulateUserError: ".concat(tr," : ").concat(ti)),this.appNavigation.navigateToMainPageWithReload((0,tc._)({errorCode:tr,httpCode:ti},tu))};var tI=this;this.fetchPromoCode=function(){var tt=(0,tU._)(function*(tt){tI.promoCodesModel.setCurrentPromoCodeLoadingRequestState(tt);try{var tr=yield tI.projectApi.getPromoCode(tt);tI.promoCodesModel.setCurrentPromoCodeSuccessRequestState(tr),tI.promoCodesModel.updatePromoCodes(tr),tI.promoCodesModel.setCurrentPromoCodeIdleRequestState(),tI.giftListModel.updateAllGiftsWithPromoCodes(tI.promoCodesModel.getPromoCodes())}catch(tt){tI.promoCodesModel.setCurrentPromoCodeErrorRequestState(tt)}});return function(tr){return tt.apply(this,arguments)}}(),this.getGiftById=(tt,tr)=>tr?this.giftListModel.getGiftById(tt,tr):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,tr)=>{this.tracking.trackGiftClick(tt,tr)},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(),tr=this.queryString.getHttpCode();return(!!tt||!!tr)&&(this.projectAuthModel.simulateUserError({errorCode:tt,httpCode:tr}),!0)}}}var uJ=ti(68109),u$=ti.n(uJ),u0=ti(94734),u1=ti.n(u0),u2=ti(31306);class u3 extends tN{constructor(tt){super({giftList:[],filteredGiftList:[],selectedFilters:[],filters:[]}),this.dateTimeService=tt,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:tr,selectedFilters:ti}=tt,ta=[];if(0===ti.length){this.setState((0,td._)((0,tc._)({},tt),{filteredGiftList:tr}));return}ta=ti.includes(tI.vA.All)?tr:tr.filter(tt=>ti.some(tr=>tt.filter.includes(tr))),this.setState((0,td._)((0,tc._)({},tt),{filteredGiftList:ta}))},this.setGifts=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{giftList:tt}))},this.setInitialGifts=(tt,tr)=>{var ti=this.getState(),ta=tt.map(tt=>{var ti=this.dateTimeService.transformIsoDateToDate(tt.createdDateTime);if(u3.isPromoCodeGift(tt)){var ta=tr.find(tr=>tr.giftId===tt.id);return(0,td._)((0,tc._)({},tt),{createdDateTime:ti,promoCode:(null==ta?void 0:ta.value)||null})}return(0,td._)((0,tc._)({},tt),{createdDateTime:ti})});this.setState((0,td._)((0,tc._)({},ti),{giftList:ta,filteredGiftList:ta}))},this.setInitialFilters=tt=>{var tr=this.getState(),ti=u1()(u$()(tr.giftList.map(tt=>tt.filter))),ta=tt.filter(tt=>ti.includes(tt.type));this.setState((0,td._)((0,tc._)({},tr),{filters:ta}))},this.setSelectedFilters=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{selectedFilters:tt}))},this.updateAllGiftsWithPromoCodes=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{giftList:this.updateGiftsWithPromoCodes(tr.giftList,tt),filteredGiftList:this.updateGiftsWithPromoCodes(tr.filteredGiftList,tt)}))},this.updateGiftsWithPromoCodes=(tt,tr)=>{var ti=tr.map(tt=>tt.giftId);return tt.map(tt=>u3.isPromoCodeGift(tt)&&ti.includes(tt.id)?(0,td._)((0,tc._)({},tt),{promoCode:tr.find(tr=>tr.giftId===tt.id).value}):tt)},this.getGiftById=(tt,tr)=>tt.find(tt=>tt.id===tr)}}(()=>{u3.isPromoCodeGift=tt=>[u2.RU.GiftWithModalWithPromoCode,u2.RU.GiftWithPromoCode].includes(tt.type)})(),function(tt){tt.Idle="idle",tt.Success="success",tt.Loading="loading",tt.Error="error"}(tu||(tu={}));class u6{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,tr){return{status:tu.Error,data:tr,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 u4 extends tN{constructor(){super({promoCodes:[],currentPromoCode:u6.createIdle()}),this.getPromoCodeAdditionalData=tt=>({isLoading:u6.isLoading(tt),isError:u6.isError(tt)}),this.isPromoCodeMatchedToGift=tt=>{var tr,{currentPromoCode:ti}=this.getState();return(null===(tr=ti.data)||void 0===tr?void 0:tr.giftId)===tt},this.setPromoCodes=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{promoCodes:tt.filter(tt=>null!==tt.value)}))},this.setCurrentPromoCodeIdleRequestState=()=>{var tt=this.getState();this.setState((0,td._)((0,tc._)({},tt),{currentPromoCode:u6.createIdle()}))},this.setCurrentPromoCodeLoadingRequestState=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{currentPromoCode:u6.createLoading({giftId:tt,value:"1"})}))},this.setCurrentPromoCodeSuccessRequestState=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{currentPromoCode:u6.createSuccess(tt)}))},this.setCurrentPromoCodeErrorRequestState=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{currentPromoCode:u6.createError(tt,tr.currentPromoCode.data)}))},this.getPromoCodes=()=>{var{promoCodes:tt}=this.getState();return tt},this.updatePromoCodes=tt=>{var tr=this.getState(),ti=[...tr.promoCodes,tt];this.setState((0,td._)((0,tc._)({},tr),{promoCodes:ti}))}}}class u8 extends tN{loadAnimationBundle(){var tt=this;return(0,tU._)(function*(){return yield tt.assetsLoader.loadBundle(tI.eT.AnimationScene)})()}constructor(tt){super({animation:u6.createLoading(null)}),this.assetsLoader=tt,this.setAnimationBundleIdleRequestState=()=>{var tt=this.getState();this.setState((0,td._)((0,tc._)({},tt),{animation:u6.createIdle()}))},this.setAnimationBundleLoadingRequestState=()=>{var tt=this.getState();this.setState((0,td._)((0,tc._)({},tt),{animation:u6.createLoading(null)}))},this.setAnimationBundleSuccessRequestState=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{animation:u6.createSuccess(tt)}))},this.setAnimationBundleErrorRequestState=tt=>{var tr=this.getState();this.setState((0,td._)((0,tc._)({},tr),{animation:u6.createError(tt)}))},this.isLoadingAnimationBundle=tt=>u6.isLoading(tt)}}class u5 extends tN{setUserState(tt){this.setState(tt)}getUser(){var tt=this.getState();if(!tt)throw Error("Пользователь не инициализирован");return tt}constructor(){super(null)}}function u7(tt){tt.bind(tk.V.userModel).toInstance(u5).inSingletonScope(),(0,tP.Lj)(u8,tk.V.pixiAssetsLoaderService),tt.bind(tk.V.resourcesLoaderModel).toInstance(u8).inSingletonScope(),(0,tP.Lj)(u3,tk.V.dateTimeService),tt.bind(tk.V.giftListModel).toInstance(u3).inSingletonScope(),tt.bind(tk.V.promoCodesModel).toInstance(u4).inSingletonScope(),(0,tP.Lj)(uQ,tk.V.resourcesLoaderModel,tk.V.userModel,tk.V.giftListModel,tk.V.promoCodesModel,tk.V.projectAuthModel,tk.V.configService,tk.V.pixiAssetsLoaderService,tk.V.appNavigation,tk.V.trackingService,tk.V.queryString,tk.V.authScenarios,tk.V.resources,tk.V.sortService,tk.V.window,tk.V.logger,tk.V.projectApi),tt.bind(tk.V.manager).toInstance(uQ).inSingletonScope(),tt.bind(tk.V.animationManager).toInstance(uK).inSingletonScope()}var u9=ti(40391),ht=ti(38725),hr=ti(48419),hn={config:ti(19732).Z,content:ti(94338).Z,errors:{webErrors:hr.Iv,webViewErrors:hr.VL}};class ha{navigateToMainPageWithReload(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=this.queryString.dataToSearchParams(tt),ti=this.routes.main+"?".concat(tr.toString());window.location.href=ti}navigateToMainPage(tt){this.appNavigate(this.routes.main,tt)}navigateToAuthPage(tt){this.appNavigate(this.routes.auth,tt)}navigateTo(tt,tr){this.appNavigate(tt,tr)}constructor(tt,tr,ti,ta){this.routes=tt,this.queryString=tr,this.globalWindow=ti,this.envs=ta,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 ho{constructor(tt){this.envs=tt,this.getConfigEnvironment=()=>({isLocal:this.envs.APP_ENVIRONMENT===tI.qA.Local,isStage:this.envs.APP_ENVIRONMENT===tI.qA.Stage,isProd:this.envs.APP_ENVIRONMENT===tI.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 hs{constructor(tt){this.window=tt,this.transformIsoDateToDate=tt=>new this.window.Date(tt)}}class hu{log(tt){console.log(tt)}warning(tt){console.warn(tt)}logToSentry(tt,tr){this.sentryLogger.captureEvent({message:tt,payload:tr})}error(tt,tr,ti){var{isProd:ta}=this.configService.getConfigEnvironment();ta||console.error(tt),this.sentryLogger.captureException({message:tt,error:tr,payload:ti})}constructor(tt,tr,ti){this.globalWindow=tt,this.configService=tr,this.sentryLogger=ti,this.errorNames={AuthErrorGuestMb:"AuthErrorGuestMb"},this.handleAuthErrorGuestMbData=()=>{this.error(this.errorNames.AuthErrorGuestMb,void 0,{cookies:this.globalWindow.document.cookie,locationHref:this.globalWindow.location.href})}}}class hh{buildPathSprite(tt,tr){return"".concat(this.getImagesBaseUrl(),"/").concat(tt,".").concat(tr)}getImagesBaseUrl(){return"".concat(this.envs.APP_STATIC_URL,"/images")}loadBundle(tt){return(0,tU._)(function*(){return yield uU.loadBundle(tt)})()}constructor(tt,tr){this.resources=tt,this.envs=tr,this.buildConfig=tt=>{var tr={};return Object.keys(tt).forEach(ti=>{var[ta,ts]=tt[ti].split(".");tr[ti]=this.buildPathSprite(ta,ts)}),tr},this.initBundles=()=>{uU.addBundle(tI.eT.AnimationScene,this.buildConfig(this.resources.content.MainPage.hero.animation.pixiAnimationItems))}}}class hc{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 hf=ti(38059),hl=ti.n(hf);class hd{constructor(tt){this.configService=tt,this.getHttpClient=()=>this.httpClient;var{APP_PROJECT_API_URL:tr}=this.configService.getEnvs();this.httpClient=new tC.HttpClient(new tC.AxiosHttpAdapter(hl().create({baseURL:tr})),new tC.HttpRetry)}}class hp{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]:{},tr=new URLSearchParams;return Object.entries(tt).forEach(tt=>{var[ti,ta]=tt;ta&&tr.append(ti,ta.toString())}),tr}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,tr){this.configService=tt,this.window=tr}}class hv{sort(tt){var{orderDirection:tr,orderBy:ti,data:ta}=tt;return ta.sort((tt,ta)=>{var[ts,tu]=tr===tI.As.DESC?[ta,tt]:[tt,ta];return ts[ti]===tu[ti]?0:ts[ti]>tu[ti]?1:-1})}sortData(tt){var{data:tr,sortParams:ti}=tt,ta=ti.length;if(!tr)return[];var ts=[...tr];if(!ta)return ts;var tu=[];return ti.forEach(tt=>{var{orderBy:tr,orderDirection:ti}=tt;tu=this.sort({orderBy:tr,orderDirection:ti,data:ts})}),tu}}class hm{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,tr){this.tracking=tt,this.projectApi=tr,this.clientParams={specScreenType:void 0,specDbId:void 0},this.updateClientParams=(tt,tr)=>{this.clientParams={specDbId:tr||"",specScreenType:this.getSpecScreenType(tt)}},this.updateLocation=()=>{this.tracking.updateLocation()},this.subscribeTrackingModuleLoad=tt=>{this.tracking.subscribeTrackingPageLoad(()=>{this.tracking.saveTrackingStateToCookie(),tt()})},this.trackGiftClick=(tt,tr)=>{this.sendExtendedEvent("specAction1",{specVar4:tt+"_".concat(tr)})},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 tr=tt?(0,tc._)({},tt):{},{specScreenType:ti,specDbId:ta}=this.clientParams;return tr.specScreenType=ti,ta&&(tr.specDbId=ta),tr},this.sendExtendedEvent=(tt,tr)=>{this.tracking.sendEvent(tt,this.addClientParamsToEventData(tr))},this.getSpecScreenType=tt=>tt?"web view":"web",this.trackAuth=tt=>{this.sendExtendedEvent("specAuth",{specVar:tt})}}}class hg{replaceDynamicParamsInUrl(tt,tr){return Object.entries(tr).forEach(tr=>{var[ti,ta]=tr;tt=tt.replace(":".concat(ti),"string"==typeof ta?ta:ta.toString())}),tt}createObjectURLFromFile(tt){return this.window.URL.createObjectURL(tt)}constructor(tt){var tr=this;this.window=tt,this.hasParamsInSearchString=function(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta<tt;ta++)ti[ta]=arguments[ta];var ts=new tr.window.URLSearchParams(tr.window.location.search);return ti.every(tt=>ts.has(tt))},this.removeSearchParamsFromUrl=function(){for(var tt=arguments.length,ti=Array(tt),ta=0;ta<tt;ta++)ti[ta]=arguments[ta];var ts=new tr.window.URL(tr.window.location.href);ti.forEach(tt=>{ts.searchParams.delete(tt)}),tr.window.history.replaceState(null,"",ts.toString())}}}function hb(tt){tt.bind(tk.V.envs).toConstant(ht.p),tt.bind(tk.V.resources).toConstant(hn),tt.bind(tk.V.clientRoutes).toConstant(ht.i),tt.bind(tk.V.window).toConstant(globalThis.window),tt.bind(tk.V.authScenarios).toConstant(tI.HF),tt.bind(tk.V.apiRoutes).toConstant(tI.QP),tt.bind(tk.V.sortService).toInstance(hv).inSingletonScope(),(0,tP.Lj)(hh,tk.V.resources,tk.V.envs),tt.bind(tk.V.pixiAssetsLoaderService).toInstance(hh).inSingletonScope(),(0,tP.Lj)(hd,tk.V.configService),tt.bind(tk.V.httpClientProjectApi).toInstance(hd).inSingletonScope(),(0,tP.Lj)(ho,tk.V.envs),tt.bind(tk.V.configService).toInstance(ho).inSingletonScope(),tt.bind(tk.V.sentryLogger).toInstance(()=>tM.SentryBrowser.getRealOrFake(tt.get(tk.V.window))).inSingletonScope(),(0,tP.Lj)(hu,tk.V.window,tk.V.configService,tk.V.sentryLogger),tt.bind(tk.V.logger).toInstance(hu).inSingletonScope(),(0,tP.Lj)(hg,tk.V.window),tt.bind(tk.V.urlQueryService).toInstance(hg).inSingletonScope(),(0,tP.Lj)(hs,tk.V.window),tt.bind(tk.V.dateTimeService).toInstance(hs).inSingletonScope(),tt.bind(tk.V.tinkoffWebTracking).toInstance(()=>(0,tR.createTracking)()).inSingletonScope(),tt.bind(tk.V.projectApiHeaders).toInstance(hc).inSingletonScope();var tr=ti(29124).U;(0,tP.Lj)(tr,tk.V.httpClientProjectApi,tk.V.apiRoutes,tk.V.urlQueryService,tk.V.projectApiHeaders),tt.bind(tk.V.projectApi).toInstance(tr).inSingletonScope(),(0,tP.Lj)(hm,tk.V.tinkoffWebTracking,tk.V.projectApi),tt.bind(tk.V.trackingService).toInstance(hm).inSingletonScope(),tt.bind(tk.V.localStorage).toInstance(()=>(0,u9.initLocalStorage)()).inSingletonScope(),(0,tP.Lj)(hp,tk.V.configService,tk.V.window),tt.bind(tk.V.queryString).toInstance(hp).inSingletonScope(),(0,tP.Lj)(ha,tk.V.clientRoutes,tk.V.queryString,tk.V.window,tk.V.envs),tt.bind(tk.V.appNavigation).toInstance(ha).inSingletonScope()}function h_(){var tt=new tP.W2;return hb(tt),tL(tt),u7(tt),tt}var hw=ti(70006);function hE(tt){var{children:tr}=tt,ti=(0,tv.useMemo)(h_,[]);return(0,tp.jsx)(hw.jm,{container:ti,children:tr})}var hA=ti(45932),hS=ti(69243),hT=ti(27977),hM=ti.n(hT),hR=()=>{var{title:tt,text:tr}=(0,hA.YS)().content.ErrorDefault;return(0,tp.jsxs)(hS.A,{classNameMain:hM().root,children:[(0,tp.jsx)("h2",{className:hM().title,children:tt}),(0,tp.jsx)("p",{className:hM().text,children:tr})]})},hI=tt=>{var{children:tr}=tt,ti=(0,hA.LB)(),ta=(0,hA.VU)().getErrors();return(0,tp.jsx)(hk,{message:ta.frontend.ErrorBoundaryError,sentryLogger:ti,children:tr})};class hk extends tv.Component{static getDerivedStateFromError(tt){return{error:tt}}componentDidCatch(tt,tr){this.props.sentryLogger.captureException({error:tt,payload:(0,tc._)({},tr),message:this.props.message}),this.setState({error:tt,errorInfo:tr})}render(){return this.state.error?(0,tp.jsx)(hR,{}):this.props.children}constructor(tt){super(tt),this.state={error:null,errorInfo:null}}}function hP(tt){var{children:tr}=tt,[ti,ta]=(0,tv.useState)(!1);return(0,tv.useEffect)(()=>{ta(!0)},[]),ti?tr:null}var hC=ti(74079).Z;function hO(tt){var{Component:tr,pageProps:ti}=tt,ta=[ht.p.APP_STATIC_URL,ht.p.APP_PROJECT_URL];return(0,tv.useEffect)(()=>{(0,tA.polyfill)()},[]),(0,tp.jsxs)(tp.Fragment,{children:[(0,tp.jsx)(tM.HeadScriptSentryBrowser,{wrapper:tb(),appStaticUrl:ht.p.APP_STATIC_URL,sentryBrowserParams:{captureExceptionAsEvent:!1,formattersOptions:{breadcrumbsResponse:!0,extras:!0,breadcrumbs:!0,payloadPostfix:ht.p.APP_SENTRY_PAYLOAD_POSTFIX},sentryOptions:{dsn:ht.p.APP_SENTRY_DSN,environment:ht.p.APP_ENVIRONMENT,enabled:ht.p.APP_ENVIRONMENT!==tI.qA.Local,release:"birthday-v4.3.35",allowUrls:ta}}}),(0,tp.jsx)(tS.HeadProject,(0,tc._)({wrapper:tb()},hC)),(0,tp.jsx)(tR.HeadScriptTracking,{head:tb(),productName:ht.p.APP_ANALYTICS_PRODUCT_NAME}),(0,tp.jsx)(hN,{children:(0,tp.jsx)(hP,{children:(0,tp.jsx)(hE,{children:(0,tp.jsx)(hI,{children:(0,tp.jsx)(tr,(0,tc._)({},ti))})})})}),(0,tp.jsx)(tR.ScriptTracking,{script:tE()})]})}function hN(tt){var tr=()=>(0,tT.createLoaderPropsLocal)(hn,tt=>{});return(0,tp.jsx)(tT.ResourcesLoader,(0,td._)((0,tc._)({},tr()),{children:tt.children}))}ti(59536);var hB=hO},38725:function(tt,tr,ti){"use strict";ti.d(tr,{i:function(){return tu},p:function(){return tc}});var ta=ti(2193),ts=ti(86549),tu={main:"/",auth:"/auth/user",login:"/auth/login"},tc=(0,ta.validateAndCreate)({APP_STATIC_URL:(0,ta.envString)("https://ps-static.cdn-tinkoff.ru/projects/birthday/prod/da1687da5f8dad87eafb383d600a7a379f1496f6"),APP_ENVIRONMENT:(0,ta.envEnum)("prod",ts.qA),APP_SENTRY_DSN:(0,ta.envString)("https://ded_ps@error-hub.tinkoff.ru/558"),APP_PROJECT_URL:(0,ta.envString)("https://birthday.tbank.ru"),APP_PROJECT_AUTH_API_MOCK_ENABLED:(0,ta.envBoolean)("false"),APP_PROJECT_API_URL:(0,ta.envString)("/api"),APP_POST_COMPLETE_REDIRECT_PATH:(0,ta.envString)("/auth/login"),APP_SSO_CLIENT_URL:(0,ta.envString)("/authorization"),APP_API_MOCK_ENABLED_PROJECT:(0,ta.envBoolean)("false"),APP_RESOURCES_USE_LOCAL:(0,ta.envBoolean)("true"),APP_RESOURCES_URL:(0,ta.envString)("TODO"),APP_SECRET_CODE_ENABLED:(0,ta.envBoolean)("false"),APP_SSO_API_URL:(0,ta.envString)("https://id.tbank.ru"),APP_SSO_API_MOCK_ENABLED:(0,ta.envBoolean)("false"),APP_SSO_CLIENT_API_MOCK_ENABLED:(0,ta.envBoolean)("false"),APP_STATIC_BASE_URL:(0,ta.envString)("https://ps-static.cdn-tinkoff.ru"),APP_ANALYTICS_PRODUCT_NAME:(0,ta.envString)("birthday"),APP_SENTRY_PAYLOAD_POSTFIX:(0,ta.envString)("birthday")})},86549:function(tt,tr,ti){"use strict";ti.d(tr,{As:function(){return tc},HF:function(){return t_},Hm:function(){return tg},K0:function(){return tp},QP:function(){return tE},aH:function(){return tv},eT:function(){return tb},qA:function(){return ta},sI:function(){return tA},vA:function(){return td}}),function(tt){tt.Prod="prod",tt.Stage="stage",tt.Local="local"}(ta||(ta={})),function(tt){tt.InvalidLoyaltiesError="INVALID_LOYALTIES_ERROR",tt.InvalidAgeError="INVALID_AGE_ERROR"}(ts||(ts={})),function(tt){tt.ErrorBoundaryError="ERROR_BOUNDARY_ERROR"}(tu||(tu={})),function(tt){tt.ASC="ASC",tt.DESC="DESC"}(tc||(tc={}));var ta,ts,tu,tc,td,tp,tv,tg,tb,t_={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"}(td||(td={})),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"}(tp||(tp={}));var tE={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"}(tv||(tv={}));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"}(tb||(tb={}))},45932:function(tt,tr,ti){"use strict";ti.d(tr,{$R:function(){return tg},LB:function(){return tv},Pk:function(){return tM},Ry:function(){return tS},VU:function(){return ts},YS:function(){return td},bM:function(){return tE},ku:function(){return t_},lQ:function(){return tA},nD:function(){return tb},rS:function(){return tc},u:function(){return tT},v1:function(){return tR},zY:function(){return tu}});var ta=ti(91502),[ts,tu,tc,td,tp,tv,tg,tb,t_,tE,tA,tS,tT,tM,tR]=(0,ti(70006).D0)(ta.V.configService,ta.V.window,ta.V.trackingService,ta.V.resources,ta.V.localStorage,ta.V.sentryLogger,ta.V.clientRoutes,ta.V.appNavigation,ta.V.projectAuthModel,ta.V.userModel,ta.V.promoCodesModel,ta.V.giftListModel,ta.V.resourcesLoaderModel,ta.V.animationManager,ta.V.manager)},91502:function(tt,tr,ti){"use strict";ti.d(tr,{V:function(){return ts}});var ta=ti(14322),ts={envs:(0,ta.r)("envs"),authScenarios:(0,ta.r)("authScenarios"),clientRoutes:(0,ta.r)("clientRoutes"),apiRoutes:(0,ta.r)("apiRoutes"),configService:(0,ta.r)("configService"),appNavigation:(0,ta.r)("appNavigation"),httpClientProjectApi:(0,ta.r)("httpClientProjectApi"),window:(0,ta.r)("window"),sentryLogger:(0,ta.r)("sentryLogger"),urlQueryService:(0,ta.r)("urlQueryService"),dateTimeService:(0,ta.r)("dateTimeService"),logger:(0,ta.r)("logger"),trackingService:(0,ta.r)("trackingService"),tinkoffWebTracking:(0,ta.r)("tinkoffWebTracking"),localStorage:(0,ta.r)("localStorage"),resources:(0,ta.r)("resources"),projectUserAuthCreator:(0,ta.r)("projectUserAuthCreator"),queryString:(0,ta.r)("queryString"),sortService:(0,ta.r)("sortService"),pixiAssetsLoaderService:(0,ta.r)("pixiAssetsLoaderService"),userModel:(0,ta.r)("userModel"),projectAuthModel:(0,ta.r)("projectAuthModel"),giftListModel:(0,ta.r)("giftListModel"),promoCodesModel:(0,ta.r)("promoCodesModel"),resourcesLoaderModel:(0,ta.r)("resourcesLoaderModel"),projectApiHeaders:(0,ta.r)("projectApiHeaders"),projectApi:(0,ta.r)("projectApi"),projectAuthApi:(0,ta.r)("projectAuthApi"),animationManager:(0,ta.r)("animationManager"),manager:(0,ta.r)("manager")}},31306:function(tt,tr,ti){"use strict";var ta,ts,tu;ti.d(tr,{RU:function(){return ta},TY:function(){return tu},Wg:function(){return ts}}),function(tt){tt.Gift="gift",tt.GiftWithPromoCode="gift-with-promocode",tt.GiftWithModal="gift-with-modal",tt.GiftWithModalWithPromoCode="gift-with-modal-with-promocode"}(ta||(ta={})),function(tt){tt.Pink="pink",tt.Yellow="yellow",tt.Orange="orange",tt.Blue="blue",tt.DarkBlue="darkBlue",tt.Purple="purple",tt.Aqua="aqua",tt.Green="green",tt.Red="red",tt.Black="black"}(ts||(ts={})),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,tr){"use strict";tr.Z={iframe:{origin:{test:"https://www-test.tinkoff.ru/",prod:"https://www.tinkoff.ru/"},path:"cards/debit-cards/tinkoff-black/iframe/form/"},projectFinished:{isModalActive:!1},secretCode:{key:"secret",code:"9439hrlc8g"}}},94338:function(tt,tr,ti){"use strict";var ta=ti(92297),ts=ti(38725),tu=ti(86549),tc=ti(31306),td="get-card",tp="./gift/images/universal_1.png",tv={excursion:"./gift/images/excursion.png",paket:"./gift/images/paket.png",vkusnoitochka:"./gift/images/vkusnoitochka.png",hoff:"./gift/images/hoff.png",yaplus:"./gift/images/yaplus_2.png",yvesrocher:"./gift/images/yvesrocher.png",vinlab:"./gift/images/vinlab.png",ya360:"./gift/images/ya360.png",tinkoff_shop:"./gift/images/tshop.png",cinema:"./gift/images/cinema.png",concert_and_theatre:"./gift/images/teaters.png",fuel:"./gift/images/fuel.png",litres:"./gift/images/booksLitres.png",vkusvill:"./gift/images/vkusvill.png",game:"./gift/images/games.png",insurance:"./gift/images/insurance.png",mobile:"./gift/images/mobile.png",ivi_with_pro:"./gift/images/cinemaIVI.png",ivi:"./gift/images/cinemaIVI.png",mybook_with_pro:"./gift/images/booksMybook.png",mybook:"./gift/images/booksMybook.png",vk_with_pro:"./gift/images/vk.png",vkmusic:"./gift/images/vk.png",kaspersky_with_pro:"./gift/images/kaspersky.png",kaspersky_without_pro:"./gift/images/kaspersky.png",tinkoff_pro:"./gift/images/pro.png",dodo:"./gift/images/foodDodo.png",invest_first_category:"./gift/images/invest.png",invest_second_category:"./gift/images/invest.png",invest_third_category:"./gift/images/invest.png",tour:"./gift/images/tour.png",hotel_current_buyers:"./gift/images/hotel.png",hotel:"./gift/images/hotel.png",avia:"./gift/images/avia.png",avia_current_buyers:"./gift/images/avia.png",avia500:"./gift/images/avia.png",sunlight:"./gift/images/sunlight.png",chefmarket:"./gift/images/chefmarket.png",mobile_pro:"./gift/images/mobile.png",savings_new:"./gift/images/savings_new.png",savings:"./gift/images/savings_new.png",flowwow:"./gift/images/flowwow.png",journal:"./gift/images/journal.png",ildebeaute:"./gift/images/rivegauche.png",junior:"./gift/images/junior.png",coffee:"./gift/images/coffee.png",sokolov:"./gift/images/sokolov.png",skyeng:"./gift/images/skyeng.png",stikershans:"./gift/images/stikershans.png"},tg={[tu.aH.Star]:"hero/animation/items/star.png",[tu.aH.BoxFront]:"hero/animation/items/boxFront.png",[tu.aH.BoxBack]:"hero/animation/items/boxBack.png",[tu.aH.Movie]:"hero/animation/items/movie.png",[tu.aH.Column]:"hero/animation/items/column.png",[tu.aH.Glass]:"hero/animation/items/glass.png",[tu.aH.OrangeHeart]:"hero/animation/items/orangeHeart.png",[tu.aH.GreenHeart]:"hero/animation/items/greenHeart.png",[tu.aH.PinkHeart]:"hero/animation/items/pinkHeart.png",[tu.aH.PinkBaloon]:"hero/animation/items/pinkBaloon.png",[tu.aH.GreenBaloon]:"hero/animation/items/greenBaloon.png",[tu.aH.YellowBaloon]:"hero/animation/items/yellowBaloon.png",[tu.aH.Plane]:"hero/animation/items/plane.png",[tu.aH.NotkaFirst]:"hero/animation/items/notka-1.png",[tu.aH.NotkaSecond]:"hero/animation/items/notka-2.png",[tu.aH.Book]:"hero/animation/items/book.png",[tu.aH.Car]:"hero/animation/items/car.png",[tu.aH.Tickets]:"hero/animation/items/tickets.png",[tu.aH.Cake]:"hero/animation/items/cake.png",[tu.aH.Item1]:"hero/animation/items/item-1.png",[tu.aH.Item2]:"hero/animation/items/item-2.png",[tu.aH.Item3]:"hero/animation/items/item-3.png",[tu.aH.Item4]:"hero/animation/items/item-4.png",[tu.aH.Item5]:"hero/animation/items/item-5.png",[tu.aH.Item6]:"hero/animation/items/item-6.png",[tu.aH.Item8]:"hero/animation/items/item-8.png",[tu.aH.Item9]:"hero/animation/items/item-9.png",[tu.aH.Item10]:"hero/animation/items/item-10.png",[tu.aH.Item11]:"hero/animation/items/item-11.png",[tu.aH.Item12]:"hero/animation/items/item-12.png",[tu.aH.Item13]:"hero/animation/items/item-13.png",[tu.aH.Item14]:"hero/animation/items/item-14.png",[tu.aH.Item15]:"hero/animation/items/item-15.png",[tu.aH.Item16]:"hero/animation/items/item-16.png",[tu.aH.Item17]:"hero/animation/items/item-17.png"};tr.Z={ErrorCodeMessage:{errorCodeTemplate:"Ошибка %errorCode%. Идентификатор:"},AuthPage:{textsByStep:{[ta.SsoAuthFormStep.Initial]:{title:"Вход по\xa0номеру телефона",subTitle:"Введите номер, на\xa0который мы\xa0отправим СМС‑код"},[ta.SsoAuthFormStep.Confirmation]:{title:"Подтверждение",subTitle:null}}},images:{closeImage:{src:"./icons/cross.svg",alt:"Закрыть"},copyImage:{src:"./icons/copy.svg",alt:"скопировать"},approveImage:{src:"./icons/approve.svg",alt:"подтверждено"},anchorImage:{src:"./icons/anchor.svg",alt:"тут"}},promoCode:{copiedText:"Код скопирован",errorCopiedText:"Ошибка",errorFetchText:"Что‑то пошло не\xa0так. Попробуйте ещё раз"},MainPage:{logoutImg:{src:"./icons/logout.svg",alt:"Логаут"},hero:{animation:{sceneImg:{src:"./hero/animation/scene/scene.png",alt:"Сцена"},pixiAnimationItems:tg}},logoImg:{src:"./logo/logo0506.png",alt:"Т-Банк"},giftCard:{qrText:"Отсканируйте куар‑код, чтобы получить подарок в\xa0мобильном приложении Т‑Банк",notAvailable:{label:"Завершено"},buttons:{takeGift:"Получить подарок",takePromoCode:"Получить промокод"},iconsBySvgType:{[tc.TY.Boom]:"./gift/icons/boom.svg",[tc.TY.Creme]:"./gift/icons/creme.svg",[tc.TY.Popcorn]:"./gift/icons/popcorn.svg",[tc.TY.Lent]:"./gift/icons/lent.svg",[tc.TY.Up]:"./gift/icons/up.svg",[tc.TY.Grow]:"./gift/icons/grow.svg",[tc.TY.Right]:"./gift/icons/right.svg",[tc.TY.Down]:"./gift/icons/down.svg"},defaultImagePath:tp,imagesBySlug:tv},auth:{titleTemplate:"%name%\nс\xa0днём\xa0рождения!",description:"Мы\xa0к\xa0вам с\xa0подарками. Подскажем, как отметить праздник"},generalFilter:{type:tu.vA.All,label:"Все варианты",icon:"./filters/all.svg"},filters:[{type:tu.vA.Aristocratic,label:"Аристократично",icon:"./filters/aristocratic.png"},{type:tu.vA.Friends,label:"С\xa0друзьями",icon:"./filters/with-friends.png"},{type:tu.vA.Alone,label:"Наедине с\xa0собой",icon:"./filters/alone.png"},{type:tu.vA.Adventures,label:"С\xa0приключениями",icon:"./filters/adventures.png"},{type:tu.vA.NewPlace,label:"В\xa0новом месте",icon:"./filters/new-place.png"},{type:tu.vA.Beauty,label:"Красота и здоровье",icon:"./filters/beauty.svg"},{type:tu.vA.TinkoffGorod,label:"В Городе",icon:"./filters/tinkoff-gorod.png"},{type:tu.vA.Noisy,label:"Шумно",icon:"./filters/noisy.png"},{type:tu.vA.Shopping,label:"Шоппинг",icon:"./filters/shopping.svg"},{type:tu.vA.Relax,icon:"./filters/rest.svg",label:"Отдых"},{type:tu.vA.Restaurants,icon:"./filters/restaurant.svg",label:"Рестораны и доставка"},{type:tu.vA.Education,icon:"./filters/edu.svg",label:"Обучение"},{type:tu.vA.Services,icon:"./filters/services.svg",label:"Услуги"},{type:tu.vA.Kids,icon:"./filters/child.svg",label:"Дети"},{type:tu.vA.Entertainment,icon:"./filters/entertainment.svg",label:"Развлечения"},{type:tu.vA.Sport,icon:"./filters/sport.svg",label:"Спорт"},{type:tu.vA.Tech,icon:"./filters/tech.svg",label:"Техника"},{type:tu.vA.Popular,icon:"./filters/popular.svg",label:"Популярное"}]},UnAuthMainPage:{images:{column:{src:"./unauth/items/column.png",alt:"Колонна"},glass:{src:"./unauth/items/glass.png",alt:"Очки"},orangeHeart:{src:"./unauth/items/orangeHeart.png",alt:"Оранжевое сердце"},greenHeart:{src:"./unauth/items/greenHeart.png",alt:"Зеленое сердце"},pinkBaloon:{src:"./unauth/items/blueBaloon.png",alt:"Розовый шар"},greenBaloon:{src:"./unauth/items/greenBaloon.png",alt:"Зеленый шар"},yellowBallon:{src:"./unauth/items/yellowBaloon.png",alt:"Желтый шар"},plane:{src:"./unauth/items/plane.png",alt:"Самолет"},book:{src:"./unauth/items/book.png",alt:"Книга"},movie:{src:"./unauth/items/movie.png",alt:"Фильм"}},hero:{title:"С\xa0днем рождения! А\xa0нет, погодите…",description:"Здесь мы\xa0поздравляем клиентов Т‑Банка, но\xa0мы\xa0вас не\xa0узнали. Авторизуйтесь и\xa0примите от\xa0нас подарки. Если вы\xa0еще не\xa0с\xa0нами, можете это исправить сейчас",buttons:{withoutCard:{text:"Стать клиентом",href:"#".concat(td)},getGifts:{text:"Я\xa0клиент Т‑Банка",href:ts.i.auth}}},description:{title:"Вот такие подарки мы\xa0дарим",description:"Не\xa0говорим, какие конкретно, иначе не\xa0будет сюрприза.",items:[{image:{src:"./description/items/bonus.svg",alt:"Бонусы"},text:"Скидки"},{image:{src:"./description/items/promotion.svg",alt:"Акции"},text:"Акции"},{image:{src:"./description/items/discounts.svg",alt:"Скидки"},text:"Промокоды"},{image:{src:"./description/items/free.svg",alt:"Бесплатные минуты"},text:"Повышенный кэшбэк"},{image:{src:"./description/items/cashback.svg",alt:"Повышенный кэшбэк"},text:"Кое‑что вкусное"},{image:{src:"./description/items/many.svg",alt:"И\xa0многое другое"},text:"И многое\nдругое"}]},order:{anchorCard:td,title:"Карта для любого праздника",description:"Красиво лежит в\xa0кошельке и\xa0помогает зарабатывать",cardImage:{src:"./order/card.png",alt:"Карта"},advantageImage:{src:"./order/point.svg",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,tr,ti){"use strict";ti.d(tr,{Iv:function(){return tu},VL:function(){return tc},Y:function(){return td}});var ta=ti(47764),ts=ti(93319),tu={projectErrors:[{title:"Что‑то пошло не\xa0так",text:"Попробуйте авторизоваться еще раз",errorCodes:[ts.S.SSOTokenNotActive,ts.S.CampaignNameAlreadyExist,ts.S.AuthSso],buttonText:"Войти",withLogout:!0,isErrorCodeVisible:!1,layout:{withLogoutButton:!0}},{title:"Не\xa0получилось войти",buttonText:"Перезагрузить страницу",text:"Перезагрузите страницу. Если не\xa0помогло, сделайте скриншот этого экрана и\xa0обратитесь в\xa0поддержку, мы\xa0поможем",errorCodes:[ts.S.Unauthorized,ts.S.BadRequest,ts.S.HeaderValidation,ts.S.NotFound,ts.S.RequestValidation,ts.S.InternalServer,ts.S.QueryFailed,ts.S.SsoTokenIntrospect,ts.S.SsoUserInfo],withReload:!0,isErrorCodeVisible:!0},{title:"Пользователь забанен",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[ts.S.UserBanned],layout:{withLogoutButton:!0},withReload:!1,isErrorCodeVisible:!1},{title:"Не\xa0знаем, когда ваш день рождения",text:"Дополните информацию о\xa0себе через поддержку. И\xa0тогда мы\xa0сможем вас поздравлять и\xa0присылать подарки!",errorCodes:[ts.S.BirthdayUnknown],withReload:!1,layout:{withLogoutButton:!0},isErrorCodeVisible:!1},{title:"Не\xa0удалось подобрать подарки",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[ts.S.GiftsIsEmpty],layout:{withLogoutButton:!0},withReload:!1,isErrorCodeVisible:!1},{title:"К\xa0сожалению, день рождения только раз в\xa0году",text:"Сейчас получить подарки нельзя, но\xa0обязательно вас поздравим в\xa0праздничный день. Мы\xa0и\xa0сами не\xa0можем дождаться вашего праздника!",errorCodes:[ts.S.BirthdayIsOutOfLimit],isErrorCodeVisible:!1,image:{src:"./errors/emptyGifts.png",alt:"Нет подарков"},layout:{withFooter:!0,withLogoutButton:!0,isWide:!0}},{title:"Некорректный возраст",text:"Вы\xa0можете авторизоваться под другим аккаунтом",layout:{withLogoutButton:!0},errorCodes:[ts.S.InvalidAge],isErrorCodeVisible:!1},{title:"Некорректные продукты лояльности",text:"Оформите карту",layout:{withLogoutButton:!0},errorCodes:[ts.S.UserIsNotClient],isErrorCodeVisible:!1}],backendErrors:[{title:"У\xa0нас проблемы",text:"Вернитесь позже.",httpCodes:[ta.HttpStatus.SERVICE_UNAVAILABLE]}],defaultError:{text:void 0,title:"Что‑то пошло не\xa0так",buttonText:"Перезагрузить страницу",errorCode:ts.S.UnknownError,isErrorCodeVisible:!0}},tc={projectErrors:[{title:"Что‑то пошло не\xa0так",text:"Пожалуйста закройте экран и\xa0зайдите еще раз",errorCodes:[ts.S.SSOTokenNotActive,ts.S.CampaignNameAlreadyExist,ts.S.AuthSso],isErrorCodeVisible:!1},{title:"Не\xa0получилось войти",buttonText:void 0,text:"Сделайте скриншот этого экрана и\xa0обратитесь в\xa0поддержку, мы\xa0поможем",errorCodes:[ts.S.Unauthorized,ts.S.BadRequest,ts.S.HeaderValidation,ts.S.NotFound,ts.S.RequestValidation,ts.S.InternalServer,ts.S.QueryFailed],isErrorCodeVisible:!0},{title:"Не\xa0получилось войти",buttonText:void 0,text:"Перезапустите приложение или попробуйте позднее. Если не помогло, сделайте скриншот этого экрана и обратитесь в поддержку, мы поможем",errorCodes:[ts.S.SsoTokenIntrospect,ts.S.SsoUserInfo],isErrorCodeVisible:!0},{title:"Пользователь забанен",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[ts.S.UserBanned],withReload:!1,isErrorCodeVisible:!1},{title:"Нет данных о\xa0вашем ДР",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[ts.S.BirthdayUnknown],withReload:!1,isErrorCodeVisible:!1},{title:"Не\xa0удалось подобрать подарки",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом. Обратитесь в\xa0поддержку",errorCodes:[ts.S.GiftsIsEmpty],withReload:!1,isErrorCodeVisible:!1},{title:"К\xa0сожалению, день рождения только раз в\xa0году",text:"Сейчас получить подарки нельзя, но\xa0обязательно вас поздравим в\xa0праздничный день. Мы\xa0и\xa0сами не\xa0можем дождаться вашего праздника!",errorCodes:[ts.S.BirthdayIsOutOfLimit],isErrorCodeVisible:!1,image:{src:"./errors/emptyGifts.png",alt:"Нет подарков"},layout:{withFooter:!1,withLogoutButton:!1,isWide:!0}},{title:"Некорректный возраст",text:"К\xa0сожалению вы\xa0не\xa0можете воспользоваться сервисом",errorCodes:[ts.S.InvalidAge],withLogout:!1,isErrorCodeVisible:!1},{title:"Некорректные продукты лояльности",text:"Оформите карту",errorCodes:[ts.S.UserIsNotClient],isErrorCodeVisible:!1}],backendErrors:[{title:"У\xa0нас проблемы",text:"Вернитесь позже.",httpCodes:[ta.HttpStatus.SERVICE_UNAVAILABLE]}],defaultError:{text:"Пожалуйста закройте экран и\xa0зайдите еще раз",title:"Что‑то пошло не\xa0так",errorCode:ts.S.UnknownError,isErrorCodeVisible:!0}},td={title:"Что-то пошло не так",text:"Не удалось проверить авторизационные данные. Попробуйте перезагрузить или заново открыть приложение.",errorCode:ts.S.UserIsGuestInMb,buttonText:"Перезагрузить"}},74079:function(tt,tr,ti){"use strict";var ta=ti(38725),ts={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(ta.p.APP_STATIC_URL,"/share/tbank/fb.png"),imageTwitter:"".concat(ta.p.APP_STATIC_URL,"/share/tbank/fb.png"),imageVk:"".concat(ta.p.APP_STATIC_URL,"/share/tbank/vk.png"),url:ta.p.APP_PROJECT_URL,appIdFb:"TODO"}};tr.Z=ts},29124:function(tt,tr,ti){"use strict";ti.d(tr,{U:function(){return td}});var ta=ti(48616),ts=ti(47764),tu=ti(93319),tc=ti(4831);class td extends tc.x{onProjectError(tt){this.httpClientProjectApi.getHttpClient().subscribe("error",tr=>{ts.HttpErrorProject.isHttpErrorProject(tr)&&tt(tr)})}isUserInvalidError(tt){return tt===tu.S.InvalidAge}extractResponsePayload(tt){return tt.payload}createHeaders(){return this.projectApiHeaders.getHeaders()}constructor(tt,tr,ti,ts){super(),this.httpClientProjectApi=tt,this.apiRoutes=tr,this.urlQueryService=ti,this.projectApiHeaders=ts;var tu=this;this.getPromoCode=function(){var tt=(0,ta._)(function*(tt){var tr=yield tu.httpClient.get({url:tu.urlQueryService.replaceDynamicParamsInUrl(tu.apiRoutes.getPromoCode,{id:tt}),headers:tu.createHeaders()});return tu.extractResponsePayload(tr)});return function(tr){return tt.apply(this,arguments)}}(),this.httpClient=tt.getHttpClient()}}},4831:function(tt,tr,ti){"use strict";ti.d(tr,{x:function(){return ta}});class ta{}},97361:function(tt,tr,ti){"use strict";ti.d(tr,{u:function(){return tv}});var ta=ti(48616),ts=ti(20110),tu=ti.n(ts),tc=ti(93319);function td(){var tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;return new Promise(tr=>setTimeout(tr,tt))}var tp=ti(4831);class tv extends tp.x{onProjectError(tt){return tr=>tt(tr)}isUserInvalidError(tt){return tt===tc.S.InvalidAge}constructor(tt,tr,ti){super(),this.httpClientProjectApi=tt,this.apiRoutes=tr,this.urlQueryService=ti,this.getPromoCode=function(){var tt=(0,ta._)(function*(tt){return yield td(500),{giftId:tt,value:tu()(100,999)+"promo"}});return function(tr){return tt.apply(this,arguments)}}()}}},48568:function(tt,tr,ti){"use strict";ti.d(tr,{T:function(){return tu}});var ta=ti(48616),ts=ti(47764);class tu extends ts.ProjectApi{login(tt){var tr=this;return(0,ta._)(function*(){var ti=yield tr.httpClient.post({url:tr.options.loginUrl,body:tt?{accessTokenSso:tt}:void 0});return ti.payload.authToken&&tr.projectApiHeaders.setAuthToken(ti.payload.authToken),ti.payload})()}userInfo(){var tt=this;return(0,ta._)(function*(){return(yield tt.httpClient.get({url:tt.options.userInfoUrl,headers:tt.createHeaders()})).payload})()}logout(){var tt=this;return(0,ta._)(function*(){yield tt.httpClient.post({url:tt.options.logoutUrl,headers:tt.createHeaders()})})()}createHeaders(){return this.projectApiHeaders.getHeaders()}constructor(tt,tr,ti,ta){super(tt.getHttpClient(),ts.PROJECT_API_OPTIONS,document),this.httpClientProjectApi=tt,this.queryString=tr,this.window=ti,this.projectApiHeaders=ta}}},93319:function(tt,tr,ti){"use strict";var ta;ti.d(tr,{S:function(){return ta}}),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.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"}(ta||(ta={}))},69243:function(tt,tr,ti){"use strict";ti.d(tr,{A:function(){return tg}});var ta=ti(98811),ts=ti(71408),tu=ti(49964),tc=ti(3063),td=ti.n(tc),tp=ti(12668),tv=ti.n(tp);function tg(tt){var{classNameMain:tr,header:ti,footer:tc,enableDiv100vh:tp,children:tg}=tt,tb=(0,ts.g)(),t_=()=>(0,ta.jsxs)(ta.Fragment,{children:[ti&&ti,(0,ta.jsx)("main",{className:td()(tv().main,tr),children:tg||(0,ta.jsx)(tu.j3,{})}),tc&&tc]});return(0,ta.jsx)("div",{style:{minHeight:tp?tb:"auto"},className:tv().root,children:t_()})}},59536:function(){},27977:function(tt){tt.exports={root:"ErrorDefault_root__2491P",title:"ErrorDefault_title__wbfZ5 typography_h2__m6vnc",text:"ErrorDefault_text__Kvjh4 typography_p1__jx5mn"}},12668:function(tt){tt.exports={root:"Layout_root__7H6qY",main:"Layout_main__4rfey"}},48616:function(tt,tr,ti){"use strict";function ta(tt,tr,ti,ta,ts,tu,tc){try{var td=tt[tu](tc),tp=td.value}catch(tt){ti(tt);return}td.done?tr(tp):Promise.resolve(tp).then(ta,ts)}function ts(tt){return function(){var tr=this,ti=arguments;return new Promise(function(ts,tu){var tc=tt.apply(tr,ti);function td(tt){ta(tc,ts,tu,td,tp,"next",tt)}function tp(tt){ta(tc,ts,tu,td,tp,"throw",tt)}td(void 0)})}}ti.d(tr,{_:function(){return ts}})},54393:function(tt,tr,ti){"use strict";function ta(tt,tr,ti){return tr in tt?Object.defineProperty(tt,tr,{value:ti,enumerable:!0,configurable:!0,writable:!0}):tt[tr]=ti,tt}function ts(tt){for(var tr=1;tr<arguments.length;tr++){var ti=null!=arguments[tr]?arguments[tr]:{},ts=Object.keys(ti);"function"==typeof Object.getOwnPropertySymbols&&(ts=ts.concat(Object.getOwnPropertySymbols(ti).filter(function(tt){return Object.getOwnPropertyDescriptor(ti,tt).enumerable}))),ts.forEach(function(tr){ta(tt,tr,ti[tr])})}return tt}ti.d(tr,{_:function(){return ts}})},45509:function(tt,tr,ti){"use strict";function ta(tt,tr){var ti=Object.keys(tt);if(Object.getOwnPropertySymbols){var ta=Object.getOwnPropertySymbols(tt);tr&&(ta=ta.filter(function(tr){return Object.getOwnPropertyDescriptor(tt,tr).enumerable})),ti.push.apply(ti,ta)}return ti}function ts(tt,tr){return tr=null!=tr?tr:{},Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(tr)):ta(Object(tr)).forEach(function(ti){Object.defineProperty(tt,ti,Object.getOwnPropertyDescriptor(tr,ti))}),tt}ti.d(tr,{_:function(){return ts}})},85530:function(tt,tr,ti){"use strict";function ta(tt,tr){if(null==tt)return{};var ti,ta,ts={},tu=Object.keys(tt);for(ta=0;ta<tu.length;ta++)ti=tu[ta],tr.indexOf(ti)>=0||(ts[ti]=tt[ti]);return ts}function ts(tt,tr){if(null==tt)return{};var ti,ts,tu=ta(tt,tr);if(Object.getOwnPropertySymbols){var tc=Object.getOwnPropertySymbols(tt);for(ts=0;ts<tc.length;ts++)ti=tc[ts],!(tr.indexOf(ti)>=0)&&Object.prototype.propertyIsEnumerable.call(tt,ti)&&(tu[ti]=tt[ti])}return tu}ti.d(tr,{_:function(){return ts}})},14322:function(tt,tr,ti){"use strict";ti.d(tr,{Lj:function(){return tH},W2:function(){return tG},r:function(){return tP}});var ta,ts,tu=new WeakMap,tc=new Map,td=new Map;!function(tt){tt[tt.Constant=0]="Constant",tt[tt.Instance=1]="Instance",tt[tt.Factory=2]="Factory"}(ta||(ta={})),function(tt){tt[tt.Container=0]="Container",tt[tt.Resolution=1]="Resolution",tt[tt.Singleton=2]="Singleton",tt[tt.Transient=3]="Transient"}(ts||(ts={}));var tp=class{constructor(tt){this.impl=tt,this.type=ta.Constant}},tv=class{constructor(tt){this.impl=tt,this.type=ta.Factory}},tg=tt=>tt.type===ta.Factory,tb=class{constructor(tt){this.impl=tt,this.type=ta.Instance}},t_=class extends tb{constructor(){super(...arguments),this.scope=ts.Container,this.cache=new WeakMap}},tE=class extends tb{constructor(){super(...arguments),this.scope=ts.Resolution}},tA=class extends tb{constructor(tt){super(tt),this.impl=tt,this.scope=ts.Singleton}},tS=class extends tb{constructor(){super(...arguments),this.scope=ts.Transient}},tT=tt=>tt.type===ta.Instance,tM=tt=>tt.scope===ts.Container,tR=tt=>tt.scope===ts.Resolution,tI=tt=>tt.scope===ts.Singleton,tk=tt=>Symbol(tt),tP=tt=>{let tr=Symbol(tt);return{__t:null,__d:tt,__s:tr,__o:!1,optional:{__t:null,__d:tt,__s:tr,__o:!0}}},tC=class{constructor(){this.parent=null,this.map=new Map}set(tt,tr,ti=tC.notag){let ta=this.map.get(tr.__s);ta?ta.set(ti,tt):this.map.set(tr.__s,new Map().set(ti,tt))}find(tt,tr,ti){let ta=this.map.get(tt.__s);if(void 0!==ta){if(ti){let tt=ta.get(ti);if(tt)return tt}if(tr)for(let tt=0,ti=tr.length;tt<ti;tt+=1){let ti=ta.get(tr[tt]);if(ti)return ti}return ta.get(tC.notag)}}resolve(tt,tr,ti,ta){let ts=this.find(tt,ti,ta);return void 0===ts?this.parent?this.parent.resolve(tt,tr,ti,ta):null:ts instanceof tC?(tr.vaults.push(ts),ts.resolve(tt,tr,ti,ta)):ts}get(tt,tr,ti,ta){let ts=this.resolve(tt,tr,ti,ta);if(ts)return ts;for(let ts=0,tu=tr.vaults,tc=tu.length;ts<tc;ts+=1){let tc=tu[ts].resolve(tt,tr,ti,ta);if(tc)return tc}return null}from(tt){let tr=new tC;return tr.parent=this.parent,this.map.forEach((ti,ta)=>{tr.map.set(ta,tt(ti))}),tr}clone(){return this.from(tt=>new Map(tt))}},tO=tC;tO.notag=tk("NO_TAG");var tN=class{constructor(tt,tr,ti,ta){this.vault=tt,this.tokens=tr,this.getVault=ti,this.condition=ta}from(tt){let{tokens:tr}=this;for(let ti=0,ta=tr.length;ti<ta;ti+=1)this.vault.set(this.getVault(tt),tr[ti],this.condition)}},tB=class{constructor(tt,tr,ti,ta){this.vault=tt,this.impl=tr,this.token=ti,this.condition=ta}inContainerScope(){this.set(t_)}inResolutionScope(){this.set(tE)}inSingletonScope(){this.set(tA)}inTransientScope(){this.set(tS)}set(tt){this.vault.set(new tt(this.impl),this.token,this.condition)}},tL=class{constructor(tt,tr,ti){this.vault=tt,this.token=tr,this.condition=ti}toConstant(tt){this.vault.set(new tp(tt),this.token,this.condition)}toFactory(tt,tr){this.vault.set(new tv({creator:tt,initializer:tr}),this.token,this.condition)}toInstance(tt){return new tB(this.vault,tt,this.token,this.condition)}},tU=class{constructor(tt,tr){this.vault=tt,this.condition=tr}static vault(tt){return tt.vault}bind(tt){return new tL(this.vault,tt,this.condition)}use(...tt){return new tN(this.vault,tt,tU.vault,this.condition)}},tD=class extends tU{when(tt){return new tU(this.vault,tt)}},tj=class extends tD{constructor(){super(new tO)}},tF=class{constructor(tt=new Map,tr=[]){this.instances=tt,this.vaults=tr}split(){return new tF(this.instances,this.vaults.slice())}},tG=class extends tj{constructor(){super(),this.snapshot=null}extend(tt){return this.vault.parent=null===tt?null:tt.vault,this}clone(){let tt=new tG;return tt.vault=this.vault.clone(),tt}get(tt,tr){return this.resolveToken(tt,tr)}resolveTokens(tt,tr,ti,ta){return tt.map(tt=>this.resolveToken(tt,ti,ta,tr.split()))}resolveToken(tt,tr,ti,ta=new tF){let ts=this.vault.get(tt,ta,tr,ti);if(ts)return this.resolveBinding(ts,ta);if(!tt.__o)throw Error(`No matching bindings found for '${tt.__d}' token.`)}resolveBinding(tt,tr){return tT(tt)?tI(tt)?this.resolveCache(tt,tr,()=>tt.cache,tr=>{tt.cache=tr}):tM(tt)?this.resolveCache(tt,tr,()=>tt.cache.get(this.vault),tr=>{tt.cache.set(this.vault,tr)}):tR(tt)?this.resolveCache(tt,tr,()=>tr.instances.get(tt),ti=>{tr.instances.set(tt,ti)}):this.createInstance(tt.impl,tr):tg(tt)?(...ti)=>{let ta=this.createInstance(tt.impl.creator,tr);return ta instanceof Promise?ta.then(tr=>tG.resolveInitialization(tr,ti,tt.impl.initializer)):tG.resolveInitialization(ta,ti,tt.impl.initializer)}:tt.impl}resolveCache(tt,tr,ti,ta){let ts=ti();if(void 0!==ts)return ts;let tu=this.createInstance(tt.impl,tr);return ta(tu),tu}createInstance(tt,tr){let ti=this.getParameters(tt,tr),ta=tu.get(tt);if(void 0!==ta)return ta?tt(...ti):new tt(...ti);try{let tr=tt(...ti);return tu.set(tt,!0),tr}catch(ta){let tr=new tt(...ti);return tu.set(tt,!1),tr}}getParameters(tt,tr){let ti=tc.get(tt);if(ti)return this.resolveTokens(ti,tr,td.get(tt),tt);if(0===tt.length)return[];throw Error(`Missing required 'injected' registration of '${tt.name}'`)}static resolveInitialization(tt,tr,ti){let ta=null==ti?void 0:ti(tt,...tr);return ta instanceof Promise?ta.then(()=>tt):tt}},tH=(tt,...tr)=>(tc.set(tt,tr),tt)},70006:function(tt,tr,ti){"use strict";ti.d(tr,{D0:function(){return tg},jm:function(){return tc}});var ta=ti(25470),ts=ta.createContext(null);function tu(){var tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0],tr=ta.useContext(ts);if(tt&&null===tr)throw Error("Could not get a container from a context. Did you forget to pass the container through 'ContainerProvider'?");return tr}var tc=tt=>{var{children:tr,container:ti,isolated:tc=!1}=tt,td=tu(!1),tp=tc?null:td,tv=ta.useMemo(()=>{var tt=ti.clone();return tp&&tt.extend(tp),tt},[ti,tp]);return ta.createElement(ts.Provider,{value:tv},tr)},td=ta.createContext([]),tp=()=>ta.useContext(td),tv=tt=>{var tr=tu(),ti=tp();return ta.useMemo(()=>tr.get(tt,ti),[tt,ti,tr])},tg=function(){for(var tt=arguments.length,tr=Array(tt),ti=0;ti<tt;ti++)tr[ti]=arguments[ti];return tr.map(tt=>()=>tv(tt))}}},function(tt){var tr=function(tr){return tt(tt.s=tr)};tt.O(0,[774,179],function(){return tr(6840),tr(5636)}),_N_E=tt.O()}]);
//# sourceMappingURL=_app-d94cfdeb213e57cf.js.map