1/*! For license information please see main.2d1d18c4.js.LICENSE.txt */ 2!function(){var e={2600:function(e,t,r){"use strict";r.r(t),r.d(t,{AccountNameRequiredError:function(){return f},AccountNotSupported:function(){return d},AmountRequired:function(){return h},BluetoothRequired:function(){return p},BtcUnmatchedApp:function(){return v},CantOpenDevice:function(){return b},CantScanQRCode:function(){return De},CashAddrNotSupported:function(){return m},CurrencyNotSupported:function(){return g},DBNotReset:function(){return Ge},DBWrongPassword:function(){return Qe},DeviceAppVerifyNotSupported:function(){return y},DeviceGenuineSocketEarlyClose:function(){return w},DeviceHalted:function(){return M},DeviceInOSUExpected:function(){return _},DeviceNameInvalid:function(){return A},DeviceNotGenuineError:function(){return k},DeviceOnDashboardExpected:function(){return x},DeviceOnDashboardUnexpected:function(){return S},DeviceShouldStayInApp:function(){return Oe},DeviceSocketFail:function(){return E},DeviceSocketNoBulkStatus:function(){return I},DisconnectedDevice:function(){return C},DisconnectedDeviceDuringOperation:function(){return T},ETHAddressNonEIP:function(){return ze},EnpointConfigError:function(){return N},EthAppPleaseEnableContractData:function(){return O},FeeEstimationFailed:function(){return P},FeeNotLoaded:function(){return Ze},FeeRequired:function(){return je},FeeTooHigh:function(){return Ue},FirmwareNotRecognized:function(){return L},FirmwareOrAppUpdateRequired:function(){return Ve},GasLessThanEstimate:function(){return ue},GenuineCheckFailed:function(){return qe},HardResetFail:function(){return R},InvalidAddress:function(){return z},InvalidAddressBecauseDestinationIsAlsoSource:function(){return D},InvalidXRPTag:function(){return B},LatestMCUInstalledError:function(){return Z},LedgerAPI4xx:function(){return He},LedgerAPI5xx:function(){return Ke},LedgerAPIError:function(){return U},LedgerAPIErrorWithMessage:function(){return F},LedgerAPINotAvailable:function(){return W},MCUNotGenuineToDashboard:function(){return ve},ManagerAppAlreadyInstalledError:function(){return q},ManagerAppDepInstallRequired:function(){return K},ManagerAppDepUninstallRequired:function(){return V},ManagerAppRelyOnBTCError:function(){return H},ManagerDeviceLockedError:function(){return Y},ManagerFirmwareNotEnoughSpaceError:function(){return Q},ManagerNotEnoughSpaceError:function(){return G},ManagerUninstallBTCDep:function(){return J},NetworkDown:function(){return X},NoAccessToCamera:function(){return oe},NoAddressesFound:function(){return $},NoDBPathGiven:function(){return Ye},NotEnoughBalance:function(){return ee},NotEnoughBalanceBecauseDestinationNotCreated:function(){return ie},NotEnoughBalanceInParentAccount:function(){return re},NotEnoughBalanceToDelegate:function(){return te},NotEnoughGas:function(){return ae},NotEnoughSpendableBalance:function(){return ne},NotSupportedLegacyAddress:function(){return se},PairingFailed:function(){return We},PasswordIncorrectError:function(){return le},PasswordsDontMatchError:function(){return ce},RecipientRequired:function(){return be},RecommendSubAccountsToEmpty:function(){return fe},RecommendUndelegation:function(){return de},StatusCodes:function(){return Xe},SyncError:function(){return Fe},TimeoutTagged:function(){return he},TransportError:function(){return Je},TransportInterfaceNotAvailable:function(){return Ce},TransportOpenUserCancelled:function(){return Ie},TransportRaceCondition:function(){return Te},TransportStatusError:function(){return et},TransportWebUSBGestureRequired:function(){return Ne},UnavailableTezosOriginatedAccountReceive:function(){return me},UnavailableTezosOriginatedAccountSend:function(){return ge},UnexpectedBootloader:function(){return pe},UnknownMCU:function(){return j},UpdateFetchFileFail:function(){return ye},UpdateIncorrectHash:function(){return we},UpdateIncorrectSig:function(){return ke},UpdateYourApp:function(){return xe},UserRefusedAddress:function(){return _e},UserRefusedAllowManager:function(){return Ae},UserRefusedDeviceNameChange:function(){return Se},UserRefusedFirmwareUpdate:function(){return Me},UserRefusedOnDevice:function(){return Ee},WebsocketConnectionError:function(){return Pe},WebsocketConnectionFailed:function(){return Le},WrongAppForCurrency:function(){return Be},WrongDeviceForAccount:function(){return Re},addCustomErrorDeserializer:function(){return a},createCustomErrorClass:function(){return s},deserializeError:function(){return u},getAltStatusMessage:function(){return $e},serializeError:function(){return c}});var n=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i={},o={},a=function(e,t){o[e]=t},s=function(e){var t=function(t,r){Object.assign(this,r),this.name=e,this.message=t||e,this.stack=(new Error).stack};return t.prototype=new Error,i[e]=t,t},u=function e(t){if("object"===typeof t&&t){try{var r=JSON.parse(t.message);r.message&&r.name&&(t=r)}catch(f){}var n=void 0;if("string"===typeof t.name){var a=t.name,u=o[a];if(u)n=u(t);else{var c="Error"===a?Error:i[a];c||(console.warn("deserializing an unknown class '"+a+"'"),c=s(a)),n=Object.create(c.prototype);try{for(var l in t)t.hasOwnProperty(l)&&(n[l]=t[l])}catch(f){}}}else n=new Error(t.message);return!n.stack&&Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return new Error(String(t))},c=function(e){return e?"object"===typeof e?l(e,[]):"function"===typeof e?"[Function: "+(e.name||"anonymous")+"]":e:e};function l(e,t){var r,i,o={};t.push(e);try{for(var a=n(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=e[u];"function"!==typeof c&&(c&&"object"===typeof c?-1!==t.indexOf(e[u])?o[u]="[Circular]":o[u]=l(e[u],t.slice(0)):o[u]=c)}}catch(f){r={error:f}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return"string"===typeof e.name&&(o.name=e.name),"string"===typeof e.message&&(o.message=e.message),"string"===typeof e.stack&&(o.stack=e.stack),o}var f=s("AccountNameRequired"),d=s("AccountNotSupported"),h=s("AmountRequired"),p=s("BluetoothRequired"),v=s("BtcUnmatchedApp"),b=s("CantOpenDevice"),m=s("CashAddrNotSupported"),g=s("CurrencyNotSupported"),y=s("DeviceAppVerifyNotSupported"),w=s("DeviceGenuineSocketEarlyClose"),k=s("DeviceNotGenuine"),x=s("DeviceOnDashboardExpected"),S=s("DeviceOnDashboardUnexpected"),_=s("DeviceInOSUExpected"),M=s("DeviceHalted"),A=s("DeviceNameInvalid"),E=s("DeviceSocketFail"),I=s("DeviceSocketNoBulkStatus"),C=s("DisconnectedDevice"),T=s("DisconnectedDeviceDuringOperation"),N=s("EnpointConfig"),O=s("EthAppPleaseEnableContractData"),P=s("FeeEstimationFailed"),L=s("FirmwareNotRecognized"),R=s("HardResetFail"),B=s("InvalidXRPTag"),z=s("InvalidAddress"),D=s("InvalidAddressBecauseDestinationIsAlsoSource"),Z=s("LatestMCUInstalledError"),j=s("UnknownMCU"),U=s("LedgerAPIError"),F=s("LedgerAPIErrorWithMessage"),W=s("LedgerAPINotAvailable"),q=s("ManagerAppAlreadyInstalled"),H=s("ManagerAppRelyOnBTC"),K=s("ManagerAppDepInstallRequired"),V=s("ManagerAppDepUninstallRequired"),Y=s("ManagerDeviceLocked"),Q=s("ManagerFirmwareNotEnoughSpace"),G=s("ManagerNotEnoughSpace"),J=s("ManagerUninstallBTCDep"),X=s("NetworkDown"),$=s("NoAddressesFound"),ee=s("NotEnoughBalance"),te=s("NotEnoughBalanceToDelegate"),re=s("NotEnoughBalanceInParentAccount"),ne=s("NotEnoughSpendableBalance"),ie=s("NotEnoughBalanceBecauseDestinationNotCreated"),oe=s("NoAccessToCamera"),ae=s("NotEnoughGas"),se=s("NotSupportedLegacyAddress"),ue=s("GasLessThanEstimate"),ce=s("PasswordsDontMatch"),le=s("PasswordIncorrect"),fe=s("RecommendSubAccountsToEmpty"),de=s("RecommendUndelegation"),he=s("TimeoutTagged"),pe=s("UnexpectedBootloader"),ve=s("MCUNotGenuineToDashboard"),be=s("RecipientRequired"),me=s("UnavailableTezosOriginatedAccountReceive"),ge=s("UnavailableTezosOriginatedAccountSend"),ye=s("UpdateFetchFileFail"),we=s("UpdateIncorrectHash"),ke=s("UpdateIncorrectSig"),xe=s("UpdateYourApp"),Se=s("UserRefusedDeviceNameChange"),_e=s("UserRefusedAddress"),Me=s("UserRefusedFirmwareUpdate"),Ae=s("UserRefusedAllowManager"),Ee=s("UserRefusedOnDevice"),Ie=s("TransportOpenUserCancelled"),Ce=s("TransportInterfaceNotAvailable"),Te=s("TransportRaceCondition"),Ne=s("TransportWebUSBGestureRequired"),Oe=s("DeviceShouldStayInApp"),Pe=s("WebsocketConnectionError"),Le=s("WebsocketConnectionFailed"),Re=s("WrongDeviceForAccount"),Be=s("WrongAppForCurrency"),ze=s("ETHAddressNonEIP"),De=s("CantScanQRCode"),Ze=s("FeeNotLoaded"),je=s("FeeRequired"),Ue=s("FeeTooHigh"),Fe=s("SyncError"),We=s("PairingFailed"),qe=s("GenuineCheckFailed"),He=s("LedgerAPI4xx"),Ke=s("LedgerAPI5xx"),Ve=s("FirmwareOrAppUpdateRequired"),Ye=s("NoDBPathGiven"),Qe=s("DBWrongPassword"),Ge=s("DBNotReset");
2function Je(e,t){this.name="TransportError",this.message=e,this.stack=(new Error).stack,this.id=t}Je.prototype=new Error,a("TransportError",(function(e){return new Je(e.message,e.id)}));var Xe={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function $e(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=e&&e<=28671)return"Internal error, please report"}function et(e){this.name="TransportStatusError";var t=Object.keys(Xe).find((function(t){return Xe[t]===e}))||"UNKNOWN_ERROR",r=$e(e)||t,n=e.toString(16);this.message="Ledger device: "+r+" (0x"+n+")",this.stack=(new Error).stack,this.statusCode=e,this.statusText=t}et.prototype=new Error,a("TransportStatusError",(function(e){return new et(e.statusCode)}))},670:function(e,t,r){"use strict";var n=r(7465),i=r.n(n),o=r(2600),a=r(9778).Buffer,s=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},u=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},l=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(){function e(){var e=this;this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(i()),this.send=function(t,r,n,i,c,l){return void 0===c&&(c=a.alloc(0)),void 0===l&&(l=[o.StatusCodes.OK]),s(e,void 0,void 0,(function(){var e,s;return u(this,(function(u){switch(u.label){case 0:if(c.length>
2=256)throw new o.TransportError("data.length exceed 256 bytes limit. Got: "+c.length,"DataLengthTooBig");return[4,this.exchange(a.concat([a.from([t,r,n,i]),a.from([c.length]),c]))];case 1:if(e=u.sent(),s=e.readUInt16BE(e.length-2),!l.some((function(e){return e===s})))throw new o.TransportStatusError(s);return[2,e]}}))}))},this.exchangeAtomicImpl=function(t){return s(e,void 0,void 0,(function(){var e,r,n,i,a,s=this;return u(this,(function(u){switch(u.label){case 0:if(this.exchangeBusyPromise)throw new o.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");r=new Promise((function(t){e=t})),this.exchangeBusyPromise=r,n=!1,i=setTimeout((function(){n=!0,s.emit("unresponsive")}),this.unresponsiveTimeout),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,t()];case 2:return a=u.sent(),n&&this.emit("responsive"),[2,a];case 3:return clearTimeout(i),e&&e(),this.exchangeBusyPromise=null,[7];case 4:return[2]}}))}))},this._appAPIlock=null}return e.prototype.exchange=function(e){throw new Error("exchange not implemented")},e.prototype.setScrambleKey=function(e){},e.prototype.close=function(){return Promise.resolve()},e.prototype.on=function(e,t){this._events.on(e,t)},e.prototype.off=function(e,t){this._events.removeListener(e,t)},e.prototype.emit=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=this._events).emit.apply(t,l([e],c(r),!1))},e.prototype.setDebugMode=function(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")},e.prototype.setExchangeTimeout=function(e){this.exchangeTimeout=e},e.prototype.setExchangeUnresponsiveTimeout=function(e){this.unresponsiveTimeout=e},e.create=function(e,t){var r=this;return void 0===e&&(e=3e3),new Promise((function(n,i){var a=!1,s=r.listen({next:function(t){a=!0,s&&s.unsubscribe(),u&&clearTimeout(u),r.open(t.descriptor,e).then(n,i)},error:function(e){u&&clearTimeout(u),i(e)},complete:function(){u&&clearTimeout(u),a||i(new o.TransportError(r.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),u=t?setTimeout((function(){s.unsubscribe(),i(new o.TransportError(r.ErrorMessage_ListenTimeout,"ListenTimeout"))}),t):null}))},e.prototype.decorateAppAPIMethods=function(e,t,r){var n,i;try{for(var o=f(t),a=o.next();!a.done;a=o.next()){var s=a.value;e[s]=this.decorateAppAPIMethod(s,e[s],e,r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.decorateAppAPIMethod=function(e,t,r,n){var i=this;return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return s(i,void 0,void 0,(function(){var i;return u(this,(function(s){switch(s.label){case 0:if(i=this._appAPIlock)return[2,Promise.reject(new o.TransportError("Ledger Device is busy (lock "+i+")","TransportLocked"))];s.label=1;case 1:return s.trys.push([1,,3,4]),this._appAPIlock=e,this.setScrambleKey(n),[4,t.apply(r,a)];case 2:return[2,s.sent()];case 3:return this._appAPIlock=null,[7];case 4:return[2]}}
2))}))}},e.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",e.ErrorMessage_NoDeviceFound="No Ledger device found",e}();t.ZP=d},2576:function(e,t,r){"use strict";var n=r(1588).default,i=r(3808).default,o=r(6115).default,a=r(4704).default,s=r(1655).default,u=r(6389).default,c=r(6690).default,l=r(9728).default;t._O=t.Jq=t.KB=t.u8=t.cv=void 0,t.Ik=t.A9=t.n_=t.gM=void 0;var f=r(9778);function d(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function h(e){return d(e),f.Buffer.from(e.buffer,e.byteOffset,e.length)}var p=function(){function e(t,r){if(c(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=r}return l(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function v(e,t){return t.property?e+"["+t.property+"]":e}var b=function(e){s(r,e);var t=u(r);function r(){return c(this,r),t.apply(this,arguments)}return l(r,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),r}(p);var m=function(e){s(r,e);var t=u(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1?arguments[1]:void 0;if(c(this,r),!Number.isInteger(n)||0>=n)throw new TypeError("elementSpan must be a (positive) integer");return(e=t.call(this,-1,i)).elementSpan=n,e}return l(r,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(e);var r=e.length-t;return Math.floor(r/this.elementSpan)}},{key:"encode",value:function(e,t,r){return 0}}]),r}(b);var g=function(e){s(r,e);var t=u(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;if(c(this,r),!(e instanceof p))throw new TypeError("layout must be a Layout");if(!Number.isInteger(i))throw new TypeError("offset must be integer or undefined");return(n=t.call(this,e.span,o||e.property)).layout=e,n.offset=i,n}return l(r,[{key:"isCount",value:function(){return this.layout instanceof y||this.layout instanceof w}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,r+this.offset)}}]),r}(b);var y=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),6<(i=t.call(this,e,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeUIntLE(e,r,this.span),this.span}}]),r}(p);var w=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),6<(i=t.call(this,e,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeUIntBE(e,r,this.span),this.span}}]),r}(p);var k=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),6<(i=t.call(this,e,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readIntLE(t,this.span)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeIntLE(e,r,this.span),this.span}}]),r}(p);var x=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),6<(i=t.call(this,e,n)).span)throw new RangeError("span must not exceed 6 bytes");return i}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readIntBE(t,this.span)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeIntBE(e,r,this.span),this.span}}]),r}(p);var S=Math.pow(2,32);function _(e){var t=Math.floor(e/S);return{hi32:t,lo32:e-t*S}}function M(e,t){return e*S+t}var A=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=h(e),n=r.readUInt32LE(t),i=r.readUInt32LE(t+4);return M(i,n)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=_(e),i=h(t);return i.writeUInt32LE(n.lo32,r),i.writeUInt32LE(n.hi32,r+4),8}}]),r}(p);var E=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=h(e),n=r.readUInt32BE(t),i=r.readUInt32BE(t+4);return M(n,i)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=_(e),i=h(t);return i.writeUInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8}}]),r}(p);var I=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=h(e),n=r.readUInt32LE(t),i=r.readInt32LE(t+4);return M(i,n)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=_(e),i=h(t);return i.writeUInt32LE(n.lo32,r),i.writeInt32LE(n.hi32,r+4),8}}]),r}(p);var C=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=h(e),n=r.readInt32BE(t),i=r.readUInt32BE(t+4);return M(n,i)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=_(e),i=h(t);return i.writeInt32BE(n.hi32,r),i.writeUInt32BE(n.lo32,r+4),8}}]),r}(p);var T=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,4,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readFloatLE(t)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeFloatLE(e,r),4}}]),r}(p);var N=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,4,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readFloatBE(t)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeFloatBE(e,r),4}}]),r}(p);var O=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readDoubleLE(t)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeDoubleLE(e,r),8}}]),r}(p);var P=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,8,e)}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h(e).readDoubleBE(t)}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return h(t).writeDoubleBE(e,r),8}}]),r}(p);var L=function(e){s(r,e);var t=u(r);function r(e,n,i){var o;if(c(this,r),!(e instanceof p))throw new TypeError("elementLayout must be a Layout");if(!(n instanceof b&&n.isCount()||Number.isInteger(n)&&0<=n))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(n instanceof b)&&0<e.span&&(a=n*e.span),(o=t.call(this,a,i)).elementLayout=e,o.count=n,o}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var r=0,n=this.count;if(n instanceof b&&(n=n.decode(e,t)),0<this.elementLayout.span)r=n*this.elementLayout.span;else for(var i=0;i<n;)r+=this.elementLayout.getSpan(e,t+r),++i;return r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=0,i=this.count;for(i instanceof b&&(i=i.decode(e,t));n<i;)r.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),n+=1;return r}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.elementLayout,i=e.reduce((function(e,i){return e+n.encode(i,t,r+e)}),0);return this.count instanceof b&&this.count.encode(e.length,t,r),i}}]),r}(p);var R=function(e){s(r,e);var t=u(r);function r(e,n,i){var o;if(c(this,r),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof p}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"===typeof n&&void 0===i&&(i=n,n=void 0);var s,u=a(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(0>l.span&&void 0===l.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(d){u.e(d)}finally{u.f()}var f=-1;try{f=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(h){}return(o=t.call(this,f,n)).fields=e,o.decodePrefixes=!!i,o}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var r=0;try{r=this.fields.reduce((function(r,n){var i=n.getSpan(e,t);return t+=i,r+i}),0)}catch(n){throw new RangeError("indeterminate span")}return r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(e);var r,n=this.makeDestinationObject(),i=a(this.fields);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(void 0!==o.property&&(n[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"encode",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=n,o=0,s=0,u=a(this.fields);try{for(u.s();!(r=u.n()).done;){var c=r.value,l=c.span;if(s=0<l?l:0,void 0!==c.property){var f=e[c.property];void 0!==f&&(s=c.encode(f,t,n),0>l&&(l=c.getSpan(t,n)))}o=n,n+=l}}catch(d){u.e(d)}finally{u.f()}return o+s-i}},{key:"fromArray",value:function(e){var t,r=this.makeDestinationObject(),n=a(this.fields);try{for(n.s();!(t=n.n()).done;){var i=t.value;void 0!==i.property&&0<e.length&&(r[i.property]=e.shift())}}catch(o){n.e(o)}finally{n.f()}return r}},{key:"layoutFor",value:function(e){if("string"!==typeof e)throw new TypeError("property must be string");var t,r=a(this.fields);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.property===e)return n}}catch(i){r.e(i)}finally{r.f()}}},{key:"offsetOf",value:function(e){if("string"!==typeof e)throw new TypeError("property must be string");var t,r=0,n=a(this.fields);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.property===e)return r;0>i.span?r=-1:0<=r&&(r+=i.span)}}catch(o){n.e(o)}finally{n.f()}}}]),r}(p);var B=function(){function e(t){c(this,e),this.property=t}return l(e,[{key:"decode",value:function(e,t){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(e,t,r){throw new Error("UnionDiscriminator is abstract")}}]),e}();var z=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),!(e instanceof b&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=t.call(this,n||e.property||"variant")).layout=e,i}return l(r,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,r){return this.layout.encode(e,t,r)}}]),r}(B);var D=function(e){s(r,e);var t=u(r);function r(e,n,i){var a,s;if(c(this,r),e instanceof y||e instanceof w)s=new z(new g(e));else if(e instanceof b&&e.isCount())s=new z(e);else{if(!(e instanceof B))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");s=e}if(void 0===n&&(n=null),!(null===n||n instanceof p))throw new TypeError("defaultLayout must be null or a Layout");if(null!==n){if(0>n.span)throw new Error("defaultLayout must have constant span");void 0===n.property&&(n=n.replicate("content"))}var u=-1;n&&0<=(u=n.span)&&(e instanceof y||e instanceof w)&&(u+=s.layout.span),(a=t.call(this,u,i)).discriminator=s,a.usesPrefixDiscriminator=e instanceof y||e instanceof w,a.defaultLayout=n,a.registry={};var l=a.defaultGetSourceVariant.bind(o(a));return a.getSourceVariant=function(e){return l(e)},a.configGetSourceVariant=function(e){l=e.bind(this)},a}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var r=this.getVariant(e,t);if(!r)throw new Error("unable to determine span for unrecognized variant");return r.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(var r in this.registry){var n=this.registry[r];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator,i=n.decode(e,r),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=n.layout.span),(t=this.makeDestinationObject())[n.property]=i,t[a.property]=a.decode(e,r+s)}else t=o.decode(e,r);return t}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.getSourceVariant(e);if(void 0===n){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(e[i.property],t,r),a+o.encode(e[o.property],t,r+a)}return n.encode(e,t,r)}},{key:"addVariant",value:function(e,t,r){var n=new Z(this,e,t,r);return this.registry[e]=n,n}},{key:"getVariant",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,r):e,this.registry[t]}}]),r}(p);var Z=function(e){s(r,e);var t=u(r);function r(e,n,i,o){var a;if(c(this,r),!(e instanceof D))throw new TypeError("union must be a Union");if(!Number.isInteger(n)||0>n)throw new TypeError("variant must be a (non-negative) integer");if("string"===typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof p))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=i.span&&i.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!==typeof o)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=i?i.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(a=t.call(this,s,o)).union=e,a.variant=n,a.layout=i||null,a}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);var n=0;return this.layout&&(n=this.layout.getSpan(e,t+r)),r+n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(e,t+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.s
2pan),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,r);var i=n;if(this.layout&&(this.layout.encode(e[this.property],t,r+n),i+=this.layout.getSpan(t,r+n),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),r}(p);function j(e){return 0>e&&(e+=4294967296),e}var U=function(e){s(r,e);var t=u(r);function r(e,n,i){var o;if(c(this,r),!(e instanceof y||e instanceof w))throw new TypeError("word must be a UInt or UIntBE layout");if("string"===typeof n&&void 0===i&&(i=n,n=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");(o=t.call(this,e.span,i)).word=e,o.msb=!!n,o.fields=[];var a=0;return o._packedSetValue=function(e){return a=j(e),this},o._packedGetValue=function(){return a},o}return l(r,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.makeDestinationObject(),n=this.word.decode(e,t);this._packedSetValue(n);var i,o=a(this.fields);try{for(o.s();!(i=o.n()).done;){var s=i.value;void 0!==s.property&&(r[s.property]=s.decode(e))}}catch(u){o.e(u)}finally{o.f()}return r}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.word.decode(t,r);this._packedSetValue(n);var i,o=a(this.fields);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(void 0!==s.property){var u=e[s.property];void 0!==u&&s.encode(u)}}}catch(c){o.e(c)}finally{o.f()}return this.word.encode(this._packedGetValue(),t,r)}},{key:"addField",value:function(e,t){var r=new F(this,e,t);return this.fields.push(r),r}},{key:"addBoolean",value:function(e){var t=new W(this,e);return this.fields.push(t),t}},{key:"fieldFor",value:function(e){if("string"!==typeof e)throw new TypeError("property must be string");var t,r=a(this.fields);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.property===e)return n}}catch(i){r.e(i)}finally{r.f()}}}]),r}(p);var F=function(){function e(t,r,n){if(c(this,e),!(t instanceof U))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(r)||0>=r)throw new TypeError("bits must be positive integer");var i=8*t.span,o=t.fields.reduce((function(e,t){return e+t.bits}),0);if(r+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=t,this.bits=r,this.valueMask=(1<<r)-1,32===r&&(this.valueMask=4294967295),this.start=o,this.container.msb&&(this.start=i-o-r),this.wordMask=j(this.valueMask<<this.start),this.property=n}return l(e,[{key:"decode",value:function(e,t){return j(this.container._packedGetValue()&this.wordMask)>>>this.start}},{key:"encode",value:function(e){if("number"!==typeof e||!Number.isInteger(e)||e!==j(e&this.valueMask))throw new TypeError(v("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),r=j(e<<this.start);this.container._packedSetValue(j(t&~this.wordMask)|r)}}]),e}();var W=function(e){s(r,e);var t=u(r);function r(e,n){return c(this,r),t.call(this,e,1,n)}return l(r,[{key:"decode",value:function(e,t){return!!n(i(r.prototype),"decode",this).call(this,e,t)}},{key:"encode",value:function(e){"boolean"===typeof e&&(e=+e),n(i(r.prototype),"encode",this).call(this,e)}}]),r}(F);var q=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),!(e instanceof b&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var o=-1;return e instanceof b||(o=e),(i=t.call(this,o,n)).length=e,i}return l(r,[{key:"getSpan",value:function(e,t){var r=this.span;return 0>r&&(r=this.length.decode(e,t)),r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.span;return 0>r&&(r=this.length.decode(e,t)),h(e).slice(t,t+r)}},{key:"encode",value:function(e,t,r){var n=this.length;if(this.length instanceof b&&(n=e.length),!(e instanceof Uint8Array&&n===e.length))throw new TypeError(v("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(r+n>t.length)throw new RangeError("encoding overruns Uint8Array");var i=h(e);return h(t).write(i.toString("hex"),r,n,"hex"),this.length instanceof b&&this.length.encode(n,t,r),n}}]),r}(p);var H=function(e){s(r,e);var t=u(r);function r(e){return c(this,r),t.call(this,-1,e)}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(e);for(var r=t;r<e.length&&0!==e[r];)r+=1;return 1+r-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.getSpan(e,t);return h(e).slice(t,t+r-1).toString("utf-8")}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!==typeof e&&(e=String(e));var n=f.Buffer.from(e,"utf8"),i=n.length;if(r+i>t.length)throw new RangeError("encoding overruns Buffer");var o=h(t);return n.copy(o,r),o[r+i]=0,i+1}}]),r}(p);var K=function(e){s(r,e);var t=u(r);function r(e,n){var i;if(c(this,r),"string"===typeof e&&void 0===n&&(n=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(i=t.call(this,-1,n)).maxSpan=e,i}return l(r,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return d(e),e.length-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return h(e).slice(t,t+r).toString("utf-8")}},{key:"encode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!==typeof e&&(e=String(e));var n=f.Buffer.from(e,"utf8"),i=n.length;if(0<=this.maxSpan&&this.maxSpan<i)throw new RangeError("text length exceeds maxSpan");if(r+i>t.length)throw new RangeError("encoding overruns Buffer");return n.copy(h(t),r),i}}]),r}(p);var V=function(e){s(r,e);var t=u(r);function r(e,n){var i;return c(this,r),(i=t.call(this,0,n)).value=e,i}return l(r,[{key:"decode",value:function(e,t){return this.value}},{key:"encode",value:function(e,t,r){return 0}}]),r}(p);t.cv=function(e,t,r){return new g(e,t,r)},t.u8=function(e){return new y(1,e)},t.KB=function(e){return new y(2,e)},t.Jq=function(e){return new y(4,e)},t._O=function(e){return new A(e)},t.gM=function(e){return new I(e)},t.n_=function(e,t,r){return new R(e,t,r)},t.A9=function(e,t,r){return new L(e,t,r)},t.Ik=function(e,t){return new q(e,t)}},6661:function(e,t,r){"use strict";r.d(t,{ew:function(){return io},nh:function(){return Rr},YW:function(){return ln}});var n=r(4925),i=r(8737),o=r(7762),a=r(9439),s=r(1413),u=r(3433),c=r(4165),l=r(5861),f=r(136),d=r(7277),h=r(5671),p=r(3144),v=r(2826),b=r.n(v),m=r(8443),g=r(518),y=r.n(g),w=r(6315),k=r.n(w),x=r
2(5127),S=r(6070),_=r(2576),M=r(3878),A=r(9199),E=r(181),I=r(5267);var C=r(7326),T=["message"],N=(0,c.Z)().mark(D),O=(0,c.Z)().mark(Z),P=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e,i){var o,a;(0,h.Z)(this,r);var s=e.message,c=(0,n.Z)(e,T),l=e.path,f=0===l.length?s:"At path: "+l.join(".")+" -- "+s;return o=t.call(this,f),Object.assign((0,C.Z)(o),c),o.name=o.constructor.name,o.failures=function(){var t;return null!=(t=a)?t:a=[e].concat((0,u.Z)(i()))},o}return(0,p.Z)(r)}((0,i.Z)(TypeError));function L(e){return"object"===typeof e&&null!=e}function R(e){return"string"===typeof e?JSON.stringify(e):""+e}function B(e){var t=e.next(),r=t.done,n=t.value;return r?void 0:n}function z(e,t,r,n){if(!0!==e){!1===e?e={}:"string"===typeof e&&(e={message:e});var i=t.path,o=t.branch,a=r.type,u=e,c=u.refinement,l=u.message,f=void 0===l?"Expected a value of type `"+a+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+R(n)+"`":l;return(0,s.Z)((0,s.Z)({value:n,type:a,refinement:c,key:i[i.length-1],path:i,branch:o},e),{},{message:f})}}function D(e,t,r,n){var i,a,s,u;return(0,c.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:L(l=e)&&"function"===typeof l[Symbol.iterator]||(e=[e]),i=(0,o.Z)(e),c.prev=2,i.s();case 4:if((a=i.n()).done){c.next=12;break}if(s=a.value,!(u=z(s,t,r,n))){c.next=10;break}return c.next=10,u;case 10:c.next=4;break;case 12:c.next=17;break;case 14:c.prev=14,c.t0=c.catch(2),i.e(c.t0);case 17:return c.prev=17,i.f(),c.finish(17);case 20:case"end":return c.stop()}var l}),N,null,[[2,14,17,20]])}function Z(e,t){var r,n,i,s,l,f,d,h,p,v,b,m,g,y,w,k,x,S,_,M,A,E,I,C,T,N,P,R,B=arguments;return(0,c.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(r=B.length>2&&void 0!==B[2]?B[2]:{},n=r.path,i=void 0===n?[]:n,s=r.branch,l=void 0===s?[e]:s,f=r.coerce,d=void 0!==f&&f,h=r.mask,p=void 0!==h&&h,v={path:i,branch:l},d&&(e=t.coercer(e,v),p&&"type"!==t.type&&L(t.schema)&&L(e)&&!Array.isArray(e)))for(b in e)void 0===t.schema[b]&&delete e[b];m=!0,g=(0,o.Z)(t.validator(e,v)),c.prev=6,g.s();case 8:if((y=g.n()).done){c.next=15;break}return w=y.value,m=!1,c.next=13,[w,void 0];case 13:c.next=8;break;case 15:c.next=20;break;case 17:c.prev=17,c.t0=c.catch(6),g.e(c.t0);case 20:return c.prev=20,g.f(),c.finish(20);case 23:k=(0,o.Z)(t.entries(e,v)),c.prev=24,k.s();case 26:if((x=k.n()).done){c.next=53;break}S=(0,a.Z)(x.value,3),_=S[0],M=S[1],A=S[2],E=Z(M,A,{path:void 0===_?i:[].concat((0,u.Z)(i),[_]),branch:void 0===_?l:[].concat((0,u.Z)(l),[M]),coerce:d,mask:p}),I=(0,o.Z)(E),c.prev=30,I.s();case 32:if((C=I.n()).done){c.next=43;break}if(!(T=C.value)[0]){c.next=40;break}return m=!1,c.next=38,[T[0],void 0];case 38:c.next=41;break;case 40:d&&(M=T[1],void 0===_?e=M:e instanceof Map?e.set(_,M):e instanceof Set?e.add(M):L(e)&&(e[_]=M));case 41:c.next=32;break;case 43:c.next=48;break;case 45:c.prev=45,c.t1=c.catch(30),I.e(c.t1);case 48:return c.prev=48,I.f(),c.finish(48);case 51:c.next=26;break;case 53:c.next=58;break;case 55:c.prev=55,c.t2=c.catch(24),k.e(c.t2);case 58:return c.prev=58,k.f(),c.finish(58);case 61:if(!m){c.next=80;break}N=(0,o.Z)(t.refiner(e,v)),c.prev=63,N.s();case 65:if((P=N.n()).done){c.next=72;break}return R=P.value,m=!1,c.next=70,[R,void 0];case 70:c.next=65;break;case 72:c.next=77;break;case 74:c.prev=74,c.t3=c.catch(63),N.e(c.t3);
2case 77:return c.prev=77,N.f(),c.finish(77);case 80:if(!m){c.next=83;break}return c.next=83,[void 0,e];case 83:case"end":return c.stop()}}),O,null,[[6,17,20,23],[24,55,58,61],[30,45,48,51],[63,74,77,80]])}var j=function(){function e(t){var r=this;(0,h.Z)(this,e);var n=t.type,i=t.schema,o=t.validator,a=t.refiner,s=t.coercer,u=void 0===s?function(e){return e}:s,l=t.entries,f=void 0===l?(0,c.Z)().mark((function e(){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):l;this.type=n,this.schema=i,this.entries=f,this.coercer=u,this.validator=o?function(e,t){return D(o(e,t),t,r,e)}:function(){return[]},this.refiner=a?function(e,t){return D(a(e,t),t,r,e)}:function(){return[]}}return(0,p.Z)(e,[{key:"assert",value:function(e){return function(e,t){var r=W(e,t);if(r[0])throw r[0]}(e,this)}},{key:"create",value:function(e){return U(e,this)}},{key:"is",value:function(e){return F(e,this)}},{key:"mask",value:function(e){return function(e,t){var r=W(e,t,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(e,this)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(e,this,t)}}]),e}();function U(e,t){var r=W(e,t,{coerce:!0});if(r[0])throw r[0];return r[1]}function F(e,t){return!W(e,t)[0]}function W(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Z(e,t,r),i=B(n);if(i[0]){var a=new P(i[0],(0,c.Z)().mark((function e(){var t,r,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,o.Z)(n),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=10;break}if(!(i=r.value)[0]){e.next=8;break}return e.next=8,i[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[a,void 0]}var s=i[1];return[void 0,s]}function q(e,t){return new j({type:e,schema:null,validator:t})}function H(e){return new j({type:"array",schema:e,entries:(0,c.Z)().mark((function t(r){var n,i,s,u,l;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(r)){t.next=18;break}n=(0,o.Z)(r.entries()),t.prev=2,n.s();case 4:if((i=n.n()).done){t.next=10;break}return s=(0,a.Z)(i.value,2),u=s[0],l=s[1],t.next=8,[u,l,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+R(e)}})}function K(){return q("boolean",(function(e){return"boolean"===typeof e}))}function V(e){return q("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+R(t)}))}function Y(e){var t=R(e),r=typeof e;return new j({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:function(r){return r===e||"Expected the literal `"+t+"`, but received: "+R(r)}})}function Q(){return q("never",(function(){return!1}))}function G(e){return new j((0,s.Z)((0,s.Z)({},e),{},{validator:function(t,r){return null===t||e.validator(t,r)},refiner:function(t,r){return null===t||e.refiner(t,r)}}))}function J(){return q("number",(function(e){return"number"===typeof e&&!isNaN(e)||"Expected a number, but received: "+R(e)}))}function X(e){return new j((0,s.Z)((0,s.Z)({},e),{},{validator:function(t,r){return void 0===t||e.validator(t,r)},refiner:function(t,r){return void 0===t||e.refiner(t,r)}}))}function $(e,t){return new j({type:"record",schema:null,entries:(0,c.Z)().mark((function r(n){var i,o;return(0,c.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!L(n)){r.next=11;break}r.t0=(0,c.Z)().keys(n);case 2:if((r.t1=r.t0()).done){r.next=11;break}return i=r.t1.value,o=n[i],r.next=7,[i,i,e];case 7:return r.next=9,[i,o,t];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),r)})),validator:function(e){return L(e)||"Expected an object, but received: "+R(e)}})}function ee(){return q("string",(function(e){return"string"===typeof e||"Expected a string, but received: "+R(e)}))}function te(e){var t=Q();return new j({type:"tuple",schema:null,entries:(0,c.Z)().mark((function r(n){var i,o;return(0,c.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=9;break}i=Math.max(e.length,n.length),o=0;case 3:if(!(o<i)){r.next=9;break}return r.next=6,[o,n[o],e[o]||t];case 6:o++,r.next=3;break;case 9:case"end":return r.stop()}}),r)})),validator:function(e){return Array.isArray(e)||"Expected an array, but received: "+R(e)}})}function re(e){var t=Object.keys(e);return new j({type:"type",schema:e,entries:(0,c.Z)().mark((function r(n){var i,a,s;return(0,c.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!L(n)){r.next=18;break}i=(0,o.Z)(t),r.prev=2,i.s();case 4:if((a=i.n()).done){r.next=10;break}return s=a.value,r.next=8,[s,n[s],e[s]];case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),i.e(r.t0);case 15:return r.prev=15,i.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[2,12,15,18]])}
2)),validator:function(e){return L(e)||"Expected an object, but received: "+R(e)}})}function ne(e){var t=e.map((function(e){return e.type})).join(" | ");return new j({type:"union",schema:null,validator:function(r,n){var i,s,u=[],c=(0,o.Z)(e);try{for(c.s();!(i=c.n()).done;){var l=Z(r,i.value,n),f=(s=l,(0,M.Z)(s)||(0,A.Z)(s)||(0,E.Z)(s)||(0,I.Z)()).slice(0);if(!(0,a.Z)(f,1)[0][0])return[];var d,h=(0,o.Z)(f);try{for(h.s();!(d=h.n()).done;){var p=(0,a.Z)(d.value,1)[0];p&&u.push(p)}}catch(v){h.e(v)}finally{h.f()}}}catch(v){c.e(v)}finally{c.f()}return["Expected the value to satisfy a union of `"+t+"`, but received: "+R(r)].concat(u)}})}function ie(){return q("unknown",(function(){return!0}))}function oe(e,t,r){return new j((0,s.Z)((0,s.Z)({},e),{},{coercer:function(n,i){return F(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)}}))}var ae=r(4876),se=r(9976),ue=r.n(se),ce=r(621),le=r.n(ce),fe=r(7898),de=r.n(fe),he=["commitment"],pe=["encoding"],ve=["commitment"],be=["commitment"],me=function(e){return m.lW.isBuffer(e)?e:e instanceof Uint8Array?m.lW.from(e.buffer,e.byteOffset,e.byteLength):m.lW.from(e)},ge={},ye={},we=ke;function ke(e,t){if(!e)throw new Error(t||"Assertion failed")}ke.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var xe={exports:{}};"function"===typeof Object.create?xe.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:xe.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var Se=we,_e=xe.exports;function Me(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function Ae(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function Ee(e){return 1===e.length?"0"+e:e}function Ie(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}ye.inherits=_e,ye.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):Me(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},ye.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=Ee(e[r].toString(16));return t},ye.htonl=Ae,ye.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=Ae(i)),r+=Ie(i.toString(16))}return r},ye.zero2=Ee,ye.zero8=Ie,ye.join32=function(e,t,r,n){var i=r-t;Se(i%4===0);for(var o=new Array(i/4),a=0,s=t;a<o.length;a++,s+=4){var u;u="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[a]=u>>>0}return o},ye.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},ye.rotr32=function(e,t){return e>>>t|e<<32-t},ye.rotl32=function(e,t){return e<<t|e>>>32-t},ye.sum32=function(e,t){return e+t>>>0},ye.sum32_3=function(e,t,r){return e+t+r>>>0},ye.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},ye.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},ye.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},ye.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},ye.sum64_lo=function(e,t,r,n){return t+n>>>0},ye.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},ye.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},ye.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+n>>>
vendor: 5,017 bytes, line 2
20)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+r+i+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},ye.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},ye.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},ye.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},ye.shr64_hi=function(e,t,r){return e>>>r},ye.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0};var Ce={},Te=ye,Ne=we;function Oe(){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}Ce.BlockHash=Oe,Oe.prototype.update=function(e,t){if(e=Te.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=Te.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},Oe.prototype.digest=function(e){return this.update(this._pad()),Ne(null===this.pending),this._digest(e)},Oe.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var Pe={},Le={},Re=ye.rotr32;function Be(e,t,r){return e&t^~e&r}function ze(e,t,r){return e&t^e&r^t&r}function De(e,t,r){return e^t^r}Le.ft_1=function(e,t,r,n){return 0===e?Be(t,r,n):1===e||3===e?De(t,r,n):2===e?ze(t,r,n):void 0},Le.ch32=Be,Le.maj32=ze,Le.p32=De,Le.s0_256=function(e){return Re(e,2)^Re(e,13)^Re(e,22)},Le.s1_256=function(e){return Re(e,6)^Re(e,11)^Re(e,25)},Le.g0_256=function(e){return Re(e,7)^Re(e,18)^e>>>3},Le.g1_256=function(e){return Re(e,17)^Re(e,19)^e>>>10};var Ze=ye,je=Ce,Ue=Le,Fe=Ze.rotl32,We=Ze.sum32,qe=Ze.sum32_5,He=Ue.ft_1,Ke=je.BlockHash,Ve=[1518500249,1859775393,2400959708,3395469782];function Ye(){if(!(this instanceof Ye))return new Ye;Ke.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ze.inherits(Ye,Ke);var Qe=Ye;Ye.blockSize=512,Ye.outSize=160,Ye.hmacStrength=80,Ye.padLength=64,Ye.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=Fe(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),l=qe(Fe(i,5),He(c,o,a,s),u,r[n],Ve[c]);u=s,s=a,a=Fe(o,30),o=i,i=l}this.h[0]=We(this.h[0],i),this.h[1]=We(this.h[1],o),this.h[2]=We(this.h[2],a),this.h[3]=We(this.h[3],s),this.h[4]=We(this.h[4],u)},Ye.prototype._digest=function(e){return"hex"===e?Ze.toHex32(this.h,"big"):Ze.split32(this.h,"big")};var Ge=ye,Je=Ce,Xe=Le,$e=we,et=Ge.sum32,tt=Ge.sum32_4,rt=Ge.sum32_5,nt=Xe.ch32,it=Xe.maj32,ot=Xe.s0_256,at=Xe.s1_256,st=Xe.g0_256,ut=Xe.g1_256,ct=Je.BlockHash,lt=[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 ft(){if(!(this instanceof ft))return new ft;ct.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=lt,this.W=new Array(64)}Ge.inherits(ft,ct);var dt=ft;ft.blockSize=512,ft.outSize=256,ft.hmacStrength=192,ft.padLength=64,ft.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=tt(ut(r[n-2]),r[n-7],st(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],l=this.h[6],f=this.h[7];for($e(this.k.length===r.length),n=0;n<r.length;n++){var d=rt(f,at(u),nt(u,c,l),this.k[n],r[n]),h=et(ot(i),it(i,o,a));f=l,l=c,c=u,u=et(s,d),s=a,a=o,o=i,i=et(d,h)}this.h[0]=et(this.h[0],i),this.h[1]=et(this.h[1],o),this.h[2]=et(this.h[2],a),this.h[3]=et(this.h[3],s),this.h[4]=et(this.h[4],u),this.h[5]=et(this.h[5],c),this.h[6]=et(this.h[6],l),this.h[7]=et(this.h[7],f)},ft.prototype._digest=function(e){return"hex"===e?Ge.toHex32(this.h,"big"):Ge.split32(this.h,"big")};var ht=ye,pt=dt;
2function vt(){if(!(this instanceof vt))return new vt;pt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ht.inherits(vt,pt);var bt=vt;vt.blockSize=512,vt.outSize=224,vt.hmacStrength=192,vt.padLength=64,vt.prototype._digest=function(e){return"hex"===e?ht.toHex32(this.h.slice(0,7),"big"):ht.split32(this.h.slice(0,7),"big")};var mt=ye,gt=Ce,yt=we,wt=mt.rotr64_hi,kt=mt.rotr64_lo,xt=mt.shr64_hi,St=mt.shr64_lo,_t=mt.sum64,Mt=mt.sum64_hi,At=mt.sum64_lo,Et=mt.sum64_4_hi,It=mt.sum64_4_lo,Ct=mt.sum64_5_hi,Tt=mt.sum64_5_lo,Nt=gt.BlockHash,Ot=[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,
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Pt(){if(!(this instanceof Pt))return new Pt;Nt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=Ot,this.W=new Array(160)}mt.inherits(Pt,Nt);var Lt=Pt;function Rt(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function Bt(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function zt(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function Dt(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function Zt(e,t){var r=wt(e,t,28)^wt(t,e,2)^wt(t,e,7);return r<0&&(r+=4294967296),r}function jt(e,t){var r=kt(e,t,28)^kt(t,e,2)^kt(t,e,7);return r<0&&(r+=4294967296),r}function Ut(e,t){var r=wt(e,t,14)^wt(e,t,18)^wt(t,e,9);return r<0&&(r+=4294967296),r}function Ft(e,t){var r=kt(e,t,14)^kt(e,t,18)^kt(t,e,9);return r<0&&(r+=4294967296),r}function Wt(e,t){var r=wt(e,t,1)^wt(e,t,8)^xt(e,t,7);return r<0&&(r+=4294967296),r}function qt(e,t){var r=kt(e,t,1)^kt(e,t,8)^St(e,t,7);return r<0&&(r+=4294967296),r}function Ht(e,t){var r=wt(e,t,19)^wt(t,e,29)^xt(e,t,6);return r<0&&(r+=4294967296),r}function Kt(e,t){var r=kt(e,t,19)^kt(t,e,29)^St(e,t,6);return r<0&&(r+=4294967296),r}Pt.blockSize=1024,Pt.outSize=512,Pt.hmacStrength=192,Pt.padLength=128,Pt.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=Ht(r[n-4],r[n-3]),o=Kt(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=Wt(r[n-30],r[n-29]),c=qt(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=Et(i,o,a,s,u,c,l,f),r[n+1]=It(i,o,a,s,u,c,l,f)}},Pt.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],u=this.h[5],c=this.h[6],l=this.h[7],f=this.h[8],d=this.h[9],h=this.h[10],p=this.h[11],v=this.h[12],b=this.h[13],m=this.h[14],g=this.h[15];yt(this.k.length===r.length);for(var y=0;y<r.length;y+=2){var w=m,k=g,x=Ut(f,d),S=Ft(f,d),_=Rt(f,d,h,p,v),M=Bt(f,d,h,p,v,b),A=this.k[y],E=this.k[y+1],I=r[y],C=r[y+1],T=Ct(w,k,x,S,_,M,A,E,I,C),N=Tt(w,k,x,S,_,M,A,E,I,C);w=Zt(n,i),k=jt(n,i),x=zt(n,i,o,a,s),S=Dt(n,i,o,a,s,u);var O=Mt(w,k,x,S),P=At(w,k,x,S);m=v,g=b,v=h,b=p,h=f,p=d,f=Mt(c,l,T,N),d=At(l,l,T,N),c=s,l=u,s=o,u=a,o=n,a=i,n=Mt(T,N,O,P),i=At(T,N,O,P)}_t(this.h,0,n,i),_t(this.h,2,o,a),_t(this.h,4,s,u),_t(this.h,6,c,l),_t(this.h,8,f,d),_t(this.h,10,h,p),_t(this.h,12,v,b),_t(this.h,14,m,g)},Pt.prototype._digest=function(e){return"hex"===e?mt.toHex32(this.h,"big"):mt.split32(this.h,"big")};var Vt=ye,Yt=Lt;function Qt(){if(!(this instanceof Qt))return new Qt;Yt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Vt.inherits(Qt,Yt);var Gt=Qt;Qt.blockSize=1024,Qt.outSize=384,Qt.hmacStrength=192,Qt.padLength=128,Qt.prototype._digest=function(e){return"hex"===e?Vt.toHex32(this.h.slice(0,12),"big"):Vt.split32(this.h.slice(0,12),"big")},Pe.sha1=Qe,Pe.sha224=bt,Pe.sha256=dt,Pe.sha384=Gt,Pe.sha512=Lt;var Jt={},Xt=ye,$t=Ce,er=Xt.rotl32,tr=Xt.sum32,rr=Xt.sum32_3,nr=Xt.sum32_4,ir=$t.BlockHash;function or(){if(!(this instanceof or))return new or;ir.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function ar(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function sr(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function ur(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}Xt.inherits(or,ir),Jt.ripemd160=or,or.blockSize=512,or.outSize=160,or.hmacStrength=192,or.padLength=64,or.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=r,u=n,c=i,l=o,f=a,d=0;d<80;d++){var h=tr(er(nr(r,ar(d,n,i,o),e[cr[d]+t],sr(d)),fr[d]),a);r=a,a=o,o=er(i,10),i=n,n=h,h=tr(er(nr(s,ar(79-d,u,c,l),e[lr[d]+t],ur(d)),dr[d]),f),s=f,f=l,l=er(c,10),c=u,u=h}h=rr(this.h[1],i,l),this.h[1]=rr(this.h[2],o,f),this.h[2]=rr(this.h[3],a,s),this.h[3]=rr(this.h[4],r,u),this.h[4]=rr(this.h[0],n,c),this.h[0]=h},or.prototype._digest=function(e){return"hex"===e?Xt.toHex32(this.h,"little"):Xt.split32(this.h,"little")};var cr=[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],lr=[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],fr=[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],dr=[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],hr=ye,pr=we;function vr(e,t,r){if(!(this instanceof vr))return new vr(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(hr.toArray(t,r))}var br=vr;vr.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),pr(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},vr.prototype.update=function(e,t){return this.inner.update(e,t),this},vr.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},function(e){var t=e;t.utils=ye,t.common=Ce,t.sha=Pe,t.ripemd=Jt,t.hmac=br,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}(ge);var mr=ge,gr=!1,yr=!1,wr={debug:1,default:2,info:2,warning:3,error:4,off:5},kr=wr.default,xr=null;var Sr,_r,Mr=function(){try{var e=[];
2if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(Sr||(Sr={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(_r||(_r={}));var Ar="0123456789abcdef",Er=function(){function e(t){(0,h.Z)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return(0,p.Z)(e,[{key:"_log",value:function(e,t){var r=e.toLowerCase();null==wr[r]&&this.throwArgumentError("invalid log level name","logLevel",e),kr>wr[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.DEBUG,r)}},{key:"info",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.INFO,r)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.WARNING,r)}},{key:"makeError",value:function(t,r,n){if(yr)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",o=0;o<t.length;o++)r+=Ar[t[o]>>4],r+=Ar[15&t[o]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(u){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var o=t,a="";switch(r){case _r.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=t;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case _r.CALL_EXCEPTION:case _r.INSUFFICIENT_FUNDS:case _r.MISSING_NEW:case _r.NONCE_EXPIRED:case _r.REPLACEMENT_UNDERPRICED:case _r.TRANSACTION_REPLACED:case _r.UNPREDICTABLE_GAS_LIMIT:a=r}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var u=new Error(t);return u.reason=o,u.code=r,Object.keys(n).forEach((function(e){u[e]=n[e]})),u}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){Mr&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Mr})}},{key:"checkSafeUint53",value:function(t,r){"number"===typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return xr||(xr=new e("logger/5.6.0")),xr}},{key:"setCensorship",value:function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),gr){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}yr=!!t,gr=!!r}},{key:"setLogLevel",value:function(t){var r=wr[t.toLowerCase()];null!=r?kr=r:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();Er.errors=_r,Er.levels=Sr;var Ir=new Er("bytes/5.6.0");function Cr(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return Cr(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Tr(e){return"number"===typeof e&&e==e&&e%1===0}function Nr(e,t){if(t||(t={}
2),"number"===typeof e){Ir.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),Cr(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),function(e){return!!e.toHexString}(e)&&(e=e.toHexString()),function(e,t){if("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))return!1;if(t&&e.length!==2+2*t)return!1;return!0}(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":Ir.throwArgumentError("hex data is odd-length","value",e));for(var i=[],o=0;o<n.length;o+=2)i.push(parseInt(n.substring(o,o+2),16));return Cr(new Uint8Array(i))}return function(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!Tr(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!Tr(r)||r<0||r>=256)return!1}return!0}(e)?Cr(new Uint8Array(e)):Ir.throwArgumentError("invalid arrayify value","value",e)}function Or(e){return"0x"+mr.sha256().update(Nr(e)).digest("hex")}new Er("sha2/5.6.0");var Pr=function(){function e(t){(0,h.Z)(this,e),Object.assign(this,t)}return(0,p.Z)(e,[{key:"encode",value:function(){return m.lW.from((0,x.serialize)(Lr,this))}}],[{key:"decode",value:function(e){return(0,x.deserialize)(Lr,this,e)}},{key:"decodeUnchecked",value:function(e){return(0,x.deserializeUnchecked)(Lr,this,e)}}]),e}(),Lr=new Map;var Rr=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n;if((0,h.Z)(this,r),(n=t.call(this,{}))._bn=void 0,function(e){return void 0!==e._bn}(e))n._bn=e._bn;else{if("string"===typeof e){var i=k().decode(e);if(32!=i.length)throw new Error("Invalid public key input");n._bn=new(y())(i)}else n._bn=new(y())(e);if(n._bn.byteLength()>32)throw new Error("Invalid public key input")}return n}return(0,p.Z)(r,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return k().encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){return this.toBuffer()}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(m.lW);if(32===e.length)return e;var t=m.lW.alloc(32);return e.copy(t,32-e.length),t}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"createWithSeed",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,n,i){var o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=m.lW.concat([t.toBuffer(),m.lW.from(n),i.toBuffer()]),a=Or(new Uint8Array(o)).slice(2),e.abrupt("return",new r(m.lW.from(a,"hex")));case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"createProgramAddressSync",value:function(e,t){var n=m.lW.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=m.lW.concat([n,me(e)])})),n=m.lW.concat([n,t.toBuffer(),m.lW.from("ProgramDerivedAddress")]);var i=Or(new Uint8Array(n)).slice(2),o=new(y())(i,16).toArray(void 0,32);if(zr(o))throw new Error("Invalid seeds, address must fall off the curve");return new r(o)}},{key:"createProgramAddress",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"findProgramAddressSync",value:function(e,t){for(var r,n=255;0!=n;){try{var i=e.concat(m.lW.from([n]));r=this.createProgramAddressSync(i,t)}catch(o){if(o instanceof TypeError)throw o;n--;continue}return[r,n]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"isOnCurve",value:function(e){return 1==zr(new r(e).toBytes())}}]),r}(Pr);Rr.default=new Rr("11111111111111111111111111111111"),Lr.set(Rr,{kind:"struct",fields:[["_bn","u256"]]});var Br=b().lowlevel;function zr(e){var t=[Br.gf(),Br.gf(),Br.gf(),Br.gf()],r=Br.gf(),n=Br.gf(),i=Br.gf(),o=Br.gf(),a=Br.gf(),s=Br.gf(),u=Br.gf();
2return Br.set25519(t[2],Dr),Br.unpack25519(t[1],e),Br.S(i,t[1]),Br.M(o,i,Br.D),Br.Z(i,i,t[2]),Br.A(o,t[2],o),Br.S(a,o),Br.S(s,a),Br.M(u,s,a),Br.M(r,u,i),Br.M(r,r,o),Br.pow2523(r,r),Br.M(r,r,i),Br.M(r,r,o),Br.M(r,r,o),Br.M(t[0],r,o),Br.S(n,t[0]),Br.M(n,n,o),jr(n,i)&&Br.M(t[0],t[0],Zr),Br.S(n,t[0]),Br.M(n,n,o),jr(n,i)?0:1}var Dr=Br.gf([1]),Zr=Br.gf([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function jr(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return Br.pack25519(r,e),Br.pack25519(n,t),Br.crypto_verify_32(r,0,n,0)}var Ur=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return _.Ik(32,e)},Fr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=_.n_([_.Jq("length"),_.Jq("lengthPadding"),_.Ik(_.cv(_.Jq(),-8),"chars")],e),r=t.decode.bind(t),n=t.encode.bind(t),i=t;return i.decode=function(e,t){return r(e,t).chars.toString()},i.encode=function(e,t,r){var i={chars:m.lW.from(e,"utf8")};return n(i,t,r)},i.alloc=function(e){return _.Jq().span+_.Jq().span+m.lW.from(e,"utf8").length},i};function Wr(e,t){var r=function e(r){if(r.span>=0)return r.span;if("function"===typeof r.alloc)return r.alloc(t[r.property]);if("count"in r&&"elementLayout"in r){var n=t[r.property];if(Array.isArray(n))return n.length*e(r.elementLayout)}return 0},n=0;return e.layout.fields.forEach((function(e){n+=r(e)})),n}var qr,Hr=(qr=8,function(e){var t=(0,_.Ik)(qr,e),r=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),n=r.encode,i=r.decode,o=t;return o.decode=function(e,t){var r=i(e,t);return(0,S.oU)(m.lW.from(r))},o.encode=function(e,t,r){var i=(0,S.k$)(e,qr);return n(i,t,r)},o});function Kr(e,t){var r=e.layout.span>=0?e.layout.span:Wr(e,t),n=m.lW.alloc(r),i=Object.assign({instruction:e.index},t);return e.layout.encode(i,n),n}var Vr=_._O("lamportsPerSignature"),Yr=_.n_([_.Jq("version"),_.Jq("state"),Ur("authorizedPubkey"),Ur("nonce"),_.n_([Vr],"feeCalculator")]),Qr=Yr.span,Gr=function(){function e(t){(0,h.Z)(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return(0,p.Z)(e,null,[{key:"fromAccountData",value:function(t){var r=Yr.decode(me(t),0);return new e({authorizedPubkey:new Rr(r.authorizedPubkey),nonce:new Rr(r.nonce).toString(),feeCalculator:r.feeCalculator})}}]),e}(),Jr=new Rr("SysvarC1ock11111111111111111111111111111111"),Xr=(new Rr("SysvarEpochSchedu1e111111111111111111111111"),new Rr("Sysvar1nstructions1111111111111111111111111"),new Rr("SysvarRecentB1ockHashes11111111111111111111")),$r=new Rr("SysvarRent111111111111111111111111111111111"),en=(new Rr("SysvarRewards111111111111111111111111111111"),new Rr("SysvarS1otHashes111111111111111111111111111"),new Rr("SysvarS1otHistory11111111111111111111111111"),new Rr("SysvarStakeHistory1111111111111111111111111")),tn=1232;function rn(e){for(var t=0,r=0;;){var n=e.shift();if(t|=(127&n)<<7*r,r+=1,0===(128&n))break}return t}function nn(e,t){for(var r=t;;){var n=127&r;if(0==(r>>=7)){e.push(n);break}n|=128,e.push(n)}}var on,an=function(){function e(t){var r=this;(0,h.Z)(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new Rr(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return r.indexToProgramIds.set(e.programIdIndex,r.accountKeys[e.programIdIndex])}))}return(0,p.Z)(e,[{key:"isAccountSigner",value:function(e){return e<this.header.numRequiredSignatures}},{key:"isAccountWritable",value:function(e){return e<this.header.numRequiredSignatures-this.header.numReadonlySignedAccounts||e>=this.header.numRequiredSignatures&&e<this.accountKeys.length-this.header.numReadonlyUnsignedAccounts}},{key:"isProgramId",value:function(e){return this.indexToProgramIds.has(e)}},{key:"programIds",value:function(){return(0,u.Z)(this.indexToProgramIds.values())}},{key:"nonProgramIds",value:function(){var e=this;return this.accountKeys.filter((function(t,r){return!e.isProgramId(r)}))}},{key:"serialize",value:function(){var e=this.accountKeys.length,t=[];nn(t,e);var r=this.instructions.map((function(e){var t=e.accounts,r=e.programIdIndex,n=Array.from(k().decode(e.data)),i=[];nn(i,t.length);var o=[];return nn(o,n.length),{programIdIndex:r,keyIndicesCount:m.lW.from(i),keyIndices:t,dataLength:m.lW.from(o),data:n}})),n=[];nn(n,r.length);var i=m.lW.alloc(tn);m.lW.from(n).copy(i);var o=n.length;r.forEach((function(e){var t=_.n_([_.u8("programIdIndex"),_.Ik(e.keyIndicesCount.length,"keyIndicesCount"),_.A9(_.u8("keyIndex"),e.keyIndices.length,"keyIndices"),_.Ik(e.dataLength.length,"dataLength"),_.A9(_.u8("userdatum"),e.data.length,"data")]).encode(e,i,o);o+=t})),i=i.slice(0,o);var a=_.n_([_.Ik(1,"numRequiredSignatures"),_.Ik(1,"numReadonlySignedAccounts"),_.Ik(1,"numReadonlyUnsignedAccounts"),_.Ik(t.length,"keyCount"),_.A9(Ur("key"),e,"keys"),Ur("recentBlockhash")]),s={numRequiredSignatures:m.lW.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:m.lW.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:m.lW.from([this.header.numReadonlyUnsignedAccounts]),keyCount:m.lW.from(t),keys:this.accountKeys.map((function(e){return me(e.toBytes())})),recentBlockhash:k().decode(this.recentBlockhash)},u=m.lW.alloc(2048),c=a.encode(s,u);return i.copy(u,c),u.slice(0,c+i.length)}}],[{key:"from",value:function(t){for(var r=(0,u.Z)(t),n=r.shift(),i=r.shift(),o=r.shift(),a=rn(r),s=[],c=0;c<a;c++){var l=r.slice(0,32);r=r.slice(32),s.push(k().encode(m.lW.from(l)))}for(var f=r.slice(0,32),d=rn(r=r.slice(32)),h=[],p=0;p<d;p++){var v=r.shift(),b=rn(r),g=r.slice(0,b),y=rn(r=r.slice(b)),w=r.slice(0,y),x=k().encode(m.lW.from(w));r=r.slice(y),h.push({programIdIndex:v,accounts:g,data:x})}return new e({header:{numRequiredSignatures:n,numReadonlySignedAccounts:i,numReadonlyUnsignedAccounts:o},recentBlockhash:k().encode(m.lW.from(f)),accountKeys:s,instructions:h})}}]),e}();function sn(e,t){if(!e)throw new Error(t||"Assertion failed")}!function(e){e[e.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",e[e.PROCESSED=1]="PROCESSED",e[e.TIMED_OUT=2]="TIMED_OUT"}(on||(on={}));var un=m.lW.alloc(64).fill(0),cn=function(){function e(t){(0,h.Z)(this,e),this.keys=void 0,this.programId=void 0,this.data=m.lW.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}return(0,p.Z)(e,[{key:"toJSON",value:function(){return{keys:this.keys.map((function(e){var t=e.pubkey,r=e.isSigner,n=e.isWritable;return{pubkey:t.toJSON(),isSigner:r,isWritable:n}})),programId:this.programId.toJSON(),data:(0,u.Z)(this.data)}}}]),e}(),ln=function(){function e(t){if((0,h.Z)(this,e),this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){var r=t.blockhash,n=t.lastValidBlockHeight;this.recentBlockhash=r,this.lastValidBlockHeight=n}else{var i=t.recentBlockhash,o=t.nonceInfo;o&&(this.nonceInfo=o),this.recentBlockhash=i}}return(0,p.Z)(e,[{key:"signature",get:function(){return this.signatures.length>0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
2ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(0===r.length)throw new Error("No instructions");return r.forEach((function(t){"instructions"in t?e.instructions=e.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?e.instructions.push(t):e.instructions.push(new cn(t))})),this}},{key:"compileMessage",value:function(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;var e,t,r;if(this.nonceInfo?(e=this.nonceInfo.nonce,t=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction].concat((0,u.Z)(this.instructions)):this.instructions):(e=this.recentBlockhash,t=this.instructions),!e)throw new Error("Transaction recentBlockhash required");if(t.length<1&&console.warn("No instructions provided"),this.feePayer)r=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");r=this.signatures[0].publicKey}for(var n=0;n<t.length;n++)if(void 0===t[n].programId)throw new Error("Transaction instruction index ".concat(n," has undefined program id"));var i=[],c=[];t.forEach((function(e){e.keys.forEach((function(e){c.push((0,s.Z)({},e))}));var t=e.programId.toString();i.includes(t)||i.push(t)})),i.forEach((function(e){c.push({pubkey:new Rr(e),isSigner:!1,isWritable:!1})}
2));var l=[];c.forEach((function(e){var t=e.pubkey.toString(),r=l.findIndex((function(e){return e.pubkey.toString()===t}));r>-1?(l[r].isWritable=l[r].isWritable||e.isWritable,l[r].isSigner=l[r].isSigner||e.isSigner):l.push(e)})),l.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));var f=l.findIndex((function(e){return e.pubkey.equals(r)}));if(f>-1){var d=l.splice(f,1),h=(0,a.Z)(d,1)[0];h.isSigner=!0,h.isWritable=!0,l.unshift(h)}else l.unshift({pubkey:r,isSigner:!0,isWritable:!0});var p,v=(0,o.Z)(this.signatures);try{var b=function(){var e=p.value,t=l.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));l[t].isSigner||(l[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(v.s();!(p=v.n()).done;)b()}catch(M){v.e(M)}finally{v.f()}var m=0,g=0,y=0,w=[],x=[];l.forEach((function(e){var t=e.pubkey,r=e.isSigner,n=e.isWritable;r?(w.push(t.toString()),m+=1,n||(g+=1)):(x.push(t.toString()),n||(y+=1))}));var S=w.concat(x),_=t.map((function(e){var t=e.data,r=e.programId;return{programIdIndex:S.indexOf(r.toString()),accounts:e.keys.map((function(e){return S.indexOf(e.pubkey.toString())})),data:k().encode(t)}}));return _.forEach((function(e){sn(e.programIdIndex>=0),e.accounts.forEach((function(e){return sn(e>=0)}))})),new an({header:{numRequiredSignatures:m,numReadonlySignedAccounts:g,numReadonlyUnsignedAccounts:y},accountKeys:S,recentBlockhash:e,instructions:_})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length&&this.signatures.every((function(e,r){return t[r].equals(e.publicKey)})))return e;return this.signatures=t.map((function(e){return{signature:null,publicKey:e}})),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)throw new Error("No signers");var n=new Set;this.signatures=t.filter((function(e){var t=e.toString();return!n.has(t)&&(n.add(t),!0)})).map((function(e){return{signature:null,publicKey:e}}))}},{key:"sign",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=t;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}this.signatures=i.map((function(e){return{signature:null,publicKey:e.publicKey}}));var c=this._compile();this._partialSign.apply(this,[c].concat(i))}},{key:"partialSign",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)throw new Error("No signers");for(var n=new Set,i=[],o=0,a=t;o<a.length;o++){var s=a[o],u=s.publicKey.toString();n.has(u)||(n.add(u),i.push(s))}var c=this._compile();this._partialSign.apply(this,[c].concat(i))}},{key:"_partialSign",value:function(e){for(var t=this,r=e.serialize(),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];i.forEach((function(e){var n=b().sign.detached(r,e.secretKey);t._addSignature(e.publicKey,me(n))}))}},{key:"addSignature",value:function(e,t){this._compile(),this._addSignature(e,t)}},{key:"_addSignature",value:function(e,t){sn(64===t.length);var r=this.signatures.findIndex((function(t){return e.equals(t.publicKey)}));if(r<0)throw new Error("unknown signer: ".concat(e.toString()));this.signatures[r].signature=m.lW.from(t)}},{key:"verifySignatures",value:function(){return this._verifySignatures(this.serializeMessage(),!0)}},{key:"_verifySignatures",value:function(e,t){var r,n=(0,o.Z)(this.signatures);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.signature,s=i.publicKey;if(null===a){if(t)return!1}else if(!b().sign.detached.verify(e,a,s.toBuffer()))return!1}}catch(u){n.e(u)}finally{n.f()}return!0}},{key:"serialize",value:function(e){var t=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),r=t.requireAllSignatures,n=t.verifySignatures,i=this.serializeMessage();if(n&&!this._verifySignatures(i,r))throw new Error("Signature verification failed");return this._serialize(i)}},{key:"_serialize",value:function(e){var t=this.signatures,r=[];nn(r,t.length);var n=r.length+64*t.length+e.length,i=m.lW.alloc(n);return sn(t.length<256),m.lW.from(r).copy(i,0),t.forEach((function(e,t){var n=e.signature;
2null!==n&&(sn(64===n.length,"signature has invalid length"),m.lW.from(n).copy(i,r.length+64*t))})),e.copy(i,r.length+64*t.length),sn(i.length<=tn,"Transaction too large: ".concat(i.length," > ").concat(tn)),i}},{key:"keys",get:function(){return sn(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return sn(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return sn(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var r=(0,u.Z)(t),n=rn(r),i=[],o=0;o<n;o++){var a=r.slice(0,64);r=r.slice(64),i.push(k().encode(m.lW.from(a)))}return e.populate(an.from(r),i)}},{key:"populate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new e;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),r.forEach((function(e,r){var i={signature:e==k().encode(un)?null:k().decode(e),publicKey:t.accountKeys[r]};n.signatures.push(i)})),t.instructions.forEach((function(e){var r=e.accounts.map((function(e){var r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some((function(e){return e.publicKey.toString()===r.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));n.instructions.push(new cn({keys:r,programId:t.accountKeys[e.programIdIndex],data:k().decode(e.data)}))})),n._message=t,n._json=n.toJSON(),n}}]),e}(),fn=Object.freeze({Create:{index:0,layout:_.n_([_.Jq("instruction"),_.gM("lamports"),_.gM("space"),Ur("programId")])},Assign:{index:1,layout:_.n_([_.Jq("instruction"),Ur("programId")])},Transfer:{index:2,layout:_.n_([_.Jq("instruction"),Hr("lamports")])},CreateWithSeed:{index:3,layout:_.n_([_.Jq("instruction"),Ur("base"),Fr("seed"),_.gM("lamports"),_.gM("space"),Ur("programId")])},AdvanceNonceAccount:{index:4,layout:_.n_([_.Jq("instruction")])},WithdrawNonceAccount:{index:5,layout:_.n_([_.Jq("instruction"),_.gM("lamports")])},InitializeNonceAccount:{index:6,layout:_.n_([_.Jq("instruction"),Ur("authorized")])},AuthorizeNonceAccount:{index:7,layout:_.n_([_.Jq("instruction"),Ur("authorized")])},Allocate:{index:8,layout:_.n_([_.Jq("instruction"),_.gM("space")])},AllocateWithSeed:{index:9,layout:_.n_([_.Jq("instruction"),Ur("base"),Fr("seed"),_.gM("space"),Ur("programId")])},AssignWithSeed:{index:10,layout:_.n_([_.Jq("instruction"),Ur("base"),Fr("seed"),Ur("programId")])},TransferWithSeed:{index:11,layout:_.n_([_.Jq("instruction"),Hr("lamports"),Fr("seed"),Ur("programId")])},UpgradeNonceAccount:{index:12,layout:_.n_([_.Jq("instruction")])}}),dn=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"createAccount",value:function(e){var t=Kr(fn.Create,{lamports:e.lamports,space:e.space,programId:me(e.programId.toBuffer())});return new cn({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:t})}},{key:"transfer",value:function(e){var t,r;"basePubkey"in e?(t=Kr(fn.TransferWithSeed,{lamports:BigInt(e.lamports),seed:e.seed,programId:me(e.programId.toBuffer())}),r=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]):(t=Kr(fn.Transfer,{lamports:BigInt(e.lamports)}),r=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]);return new cn({keys:r,programId:this.programId,data:t})}},{key:"assign",value:function(e){var t,r;"basePubkey"in e?(t=Kr(fn.AssignWithSeed,{base:me(e.basePubkey.toBuffer()),seed:e.seed,programId:me(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]):(t=Kr(fn.Assign,{programId:me(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]);return new cn({keys:r,programId:this.programId,data:t})}},{key:"createAccountWithSeed",value:function(e){var t=Kr(fn.CreateWithSeed,{base:me(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:me(e.programId.toBuffer())}),r=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey!=e.fromPubkey&&r.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new cn({keys:r,programId:this.programId,data:t})}},{key:"createNonceAccount",value:function(t){var r=new ln;"basePubkey"in t&&"seed"in t?r.add(e.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Qr,programId:this.programId})):r.add(e.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Qr,programId:this.programId}));var n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return r.add(this.nonceInitialize(n)),r}},{key:"nonceInitialize",value:function(e){var t=Kr(fn.InitializeNonceAccount,{authorized:me(e.authorizedPubkey.toBuffer())}),r={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Xr,isSigner:!1,isWritable:!1},{pubkey:$r,isSigner:!1,isWritable:!1}],programId:this.programId,data:t};return new cn(r)}},{key:"nonceAdvance",value:function(e){var t=Kr(fn.AdvanceNonceAccount),r={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Xr,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t};return new cn(r)}},{key:"nonceWithdraw",value:function(e){var t=Kr(fn.WithdrawNonceAccount,{lamports:e.lamports});return new cn({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:Xr,isSigner:!1,isWritable:!1},{pubkey:$r,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}},{key:"nonceAuthorize",value:function(e){var t=Kr(fn.AuthorizeNonceAccount,{authorized:me(e.newAuthorizedPubkey.toBuffer())});return new cn({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:t})}},{key:"allocate",value:function(e){var t,r;"basePubkey"in e?(t=Kr(fn.AllocateWithSeed,{base:me(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:me(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]):(t=Kr(fn.Allocate,{space:e.space}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]);return new cn({keys:r,programId:this.programId,data:t})}}]),e}();dn.programId=new Rr("11111111111111111111111111111111");var hn=Object.freeze({CreateLookupTable:{index:0,layout:_.n_([_.Jq("instruction"),Hr("recentSlot"),_.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:_.n_([_.Jq("instruction")])},ExtendLookupTable:{index:2,layout:_.n_([_.Jq("instruction"),Hr(),_.A9(Ur(),_.cv(_.Jq(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:_.n_([_.Jq("instruction")])},CloseLookupTable:{index:4,layout:_.n_([_.Jq("instruction")])}}),pn=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"createLookupTable",value:function(e){var t=Rr.findProgramAddressSync([e.authority.toBuffer(),(0,S.k$)(BigInt(e.recentSlot),8)],this.programId),r=(0,a.Z)(t,2),n=r[0],i=r[1],o=Kr(hn.CreateLookupTable,{recentSlot:BigInt(e.recentSlot),bumpSeed:i}),s=[{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:dn.programId,isSigner:!1,isWritable:!1}];return[new cn({programId:this.programId,keys:s,data:o}),n]}},{key:"freezeLookupTable",value:function(e){var t=Kr(hn.FreezeLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:r,data:t})}},{key:"extendLookupTable",value:function(e){var t=Kr(hn.ExtendLookupTable,{addresses:e.addresses.map((function(e){return e.toBytes()}))}),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return e.payer&&r.push({pubkey:e.payer,isSigner:!0,isWritable:!0},{pubkey:dn.programId,isSigner:!1,isWritable:!1}),new cn({programId:this.programId,keys:r,data:t})}},{key:"deactivateLookupTable",value:function(e){var t=Kr(hn.DeactivateLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1}];return new cn({programId:this.programId,keys:r,data:t})}},{key:"closeLookupTable",value:function(e){var t=Kr(hn.CloseLookupTable),r=[{pubkey:e.lookupTable,isSigner:!1,isWritable:!0},{pubkey:e.authority,isSigner:!0,isWritable:!1},{pubkey:e.recipient,isSigner:!1,isWritable:!0}];return new cn({programId:this.programId,keys:r,data:t})}}]),e}();pn.programId=new Rr("AddressLookupTab1e1111111111111111111111111");new Rr("BPFLoader1111111111111111111111111111111111");function vn(e,t,r,n){return bn.apply(this,arguments)}function bn(){return(bn=(0,l.Z)((0,c.Z)().mark((function e(t,r,n,i){var o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,maxRetries:i.maxRetries,minContextSlot:i.minContextSlot},e.next=3,t.sendTransaction(r,n,o);case 3:if(a=e.sent,null==r.recentBlockhash||null==r.lastValidBlockHeight){e.next=10;break}return e.next=7,t.confirmTransaction({signature:a,blockhash:r.re
2centBlockhash,lastValidBlockHeight:r.lastValidBlockHeight},i&&i.commitment);case 7:e.t0=e.sent.value,e.next=13;break;case 10:return e.next=12,t.confirmTransaction(a,i&&i.commitment);case 12:e.t0=e.sent.value;case 13:if(!(s=e.t0).err){e.next=16;break}throw new Error("Transaction ".concat(a," failed (").concat(JSON.stringify(s),")"));case 16:return e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function mn(e){return new Promise((function(t){return setTimeout(t,e)}))}var gn=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"getMinNumSignatures",value:function(t){return 2*(Math.ceil(t/e.chunkSize)+1+1)}},{key:"load",value:function(){var t=(0,l.Z)((0,c.Z)().mark((function t(r,n,i,o,a){var s,u,l,f,d,h,p,v,b,g,y,w,k,x;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.getMinimumBalanceForRentExemption(a.length);case 2:return s=t.sent,t.next=5,r.getAccountInfo(i.publicKey,"confirmed");case 5:if(u=t.sent,l=null,null===u){t.next=16;break}if(!u.executable){t.next=11;break}return console.error("Program load failed, account is already executable"),t.abrupt("return",!1);case 11:u.data.length!==a.length&&(l=l||new ln).add(dn.allocate({accountPubkey:i.publicKey,space:a.length})),u.owner.equals(o)||(l=l||new ln).add(dn.assign({accountPubkey:i.publicKey,programId:o})),u.lamports<s&&(l=l||new ln).add(dn.transfer({fromPubkey:n.publicKey,toPubkey:i.publicKey,lamports:s-u.lamports})),t.next=17;break;case 16:l=(new ln).add(dn.createAccount({fromPubkey:n.publicKey,newAccountPubkey:i.publicKey,lamports:s>0?s:1,space:a.length,programId:o}));case 17:if(null===l){t.next=20;break}return t.next=20,vn(r,l,[n,i],{commitment:"confirmed"});case 20:f=_.n_([_.Jq("instruction"),_.Jq("offset"),_.Jq("bytesLength"),_.Jq("bytesLengthPadding"),_.A9(_.u8("byte"),_.cv(_.Jq(),-8),"bytes")]),d=e.chunkSize,h=0,p=a,v=[];case 25:if(!(p.length>0)){t.next=39;break}if(b=p.slice(0,d),g=m.lW.alloc(d+16),f.encode({instruction:0,offset:h,bytes:b,bytesLength:0,bytesLengthPadding:0},g),y=(new ln).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:g}),v.push(vn(r,y,[n,i],{commitment:"confirmed"})),!r._rpcEndpoint.includes("solana.com")){t.next=35;break}return 4,t.next=35,mn(250);case 35:h+=d,p=p.slice(d),t.next=25;break;case 39:return t.next=41,Promise.all(v);case 41:return w=_.n_([_.Jq("instruction")]),k=m.lW.alloc(w.span),w.encode({instruction:1},k),x=(new ln).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:$r,isSigner:!1,isWritable:!1}],programId:o,data:k}),t.next=47,vn(r,x,[n,i],{commitment:"confirmed"});case 47:return t.abrupt("return",!0);case 48:case"end":return t.stop()}}),t)})));return function(e,r,n,i,o){return t.apply(this,arguments)}}()}]),e}();gn.chunkSize=932;new Rr("BPFLoader2111111111111111111111111111111111");var yn=Object.freeze({RequestUnits:{index:0,layout:_.n_([_.u8("instruction"),_.Jq("units"),_.Jq("additionalFee")])},RequestHeapFrame:{index:1,layout:_.n_([_.u8("instruction"),_.Jq("bytes")])},SetComputeUnitLimit:{index:2,layout:_.n_([_.u8("instruction"),_.Jq("units")])},SetComputeUnitPrice:{index:3,layout:_.n_([_.u8("instruction"),Hr("microLamports")])}}),wn=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"requestUnits",value:function(e){var t=Kr(yn.RequestUnits,e);return new cn({keys:[],programId:this.programId,data:t})}},{key:"requestHeapFrame",value:function(e){var t=Kr(yn.RequestHeapFrame,e);return new cn({keys:[],programId:this.programId,data:t})}},{key:"setComputeUnitLimit",value:function(e){var t=Kr(yn.SetComputeUnitLimit,e);return new cn({keys:[],programId:this.programId,data:t})}},{key:"setComputeUnitPrice",value:function(e){var t=Kr(yn.SetComputeUnitPrice,{microLamports:BigInt(e.microLamports)});return new cn({keys:[],programId:this.programId,data:t})}}]),e}();wn.programId=new Rr("ComputeBudget111111111111111111111111111111");var kn=Object.prototype.toString,xn=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};function Sn(e,t){var r,n,i,o,a,s,u;if(!0===e)return"true";if(!1===e)return"false";switch(typeof e){case"object":if(null===e)return null;if(e.toJSON&&"function"===typeof e.toJSON)return Sn(e.toJSON(),t);
2if("[object Array]"===(u=kn.call(e))){for(i="[",n=e.length-1,r=0;r<n;r++)i+=Sn(e[r],!0)+",";return n>-1&&(i+=Sn(e[r],!0)),i+"]"}if("[object Object]"===u){for(n=(o=xn(e).sort()).length,i="",r=0;r<n;)void 0!==(s=Sn(e[a=o[r]],!1))&&(i&&(i+=","),i+=JSON.stringify(a)+":"+s),r++;return"{"+i+"}"}return JSON.stringify(e);case"function":case"undefined":return t?null:void 0;case"string":return JSON.stringify(e);default:return isFinite(e)?e:null}}var _n=function(e){var t=Sn(e,!1);if(void 0!==t)return""+t},Mn=globalThis.URL;function An(e){for(var t=0;e>1;)e/=2,t++;return t}var En=function(){function e(t,r,n,i,o){(0,h.Z)(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=r,this.warmup=n,this.firstNormalEpoch=i,this.firstNormalSlot=o}return(0,p.Z)(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e<this.firstNormalSlot){var t=An(0===(r=e+32+1)?1:(r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,1+(r|=r>>32)))-An(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var r,n=e-this.firstNormalSlot,i=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+i,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e<this.firstNormalEpoch?Math.pow(2,e+An(32)):this.slotsPerEpoch}}]),e}(),In=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e,n){var i;return(0,h.Z)(this,r),(i=t.call(this,e)).logs=void 0,i.logs=n,i}return(0,p.Z)(r)}((0,i.Z)(Error)),Cn=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e,n){var i,o=e.code,a=e.message,s=e.data;return(0,h.Z)(this,r),(i=t.call(this,null!=n?"".concat(n,": ").concat(a):a)).code=void 0,i.data=void 0,i.code=o,i.data=s,i.name="SolanaJSONRPCError",i}return(0,p.Z)(r)}((0,i.Z)(Error)),Tn=globalThis.fetch,Nn=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e){var n;return(0,h.Z)(this,r),(n=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,n.signature=e,n}return(0,p.Z)(r)}((0,i.Z)(Error));Object.defineProperty(Nn.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var On,Pn=function(e){(0,f.Z)(r,e);var t=(0,d.Z)(r);function r(e,n){var i;return(0,h.Z)(this,r),(i=t.call(this,"Transaction was not confirmed in ".concat(n.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,i.signature=e,i}return(0,p.Z)(r)}((0,i.Z)(Error));Object.defineProperty(Pn.prototype,"name",{value:"TransactionExpiredTimeoutError"});var Ln=oe(V(Rr),ee(),(function(e){return new Rr(e)})),Rn=te([ee(),Y("base64")]),Bn=oe(V(m.lW),Rn,(function(e){return m.lW.from(e[0],"base64")}));function zn(e){var t,r;if("string"===typeof e)t=e;else if(e){t=e.commitment,r=(0,n.Z)(e,he)}return{commitment:t,config:r}}function Dn(e){return ne([re({jsonrpc:Y("2.0"),id:ee(),result:e}),re({jsonrpc:Y("2.0"),id:ee(),error:re({code:ie(),message:ee(),data:X(q("any",(function(){return!0})))})})])}var Zn=Dn(ie());function jn(e){return oe(Dn(e),Zn,(function(t){return"error"in t?t:(0,s.Z)((0,s.Z)({},t),{},{result:U(t.result,e)})}))}function Un(e){return jn(re({context:re({slot:J()}),value:e}))}function Fn(e){return re({context:re({slot:J()}),value:e})}var Wn=re({foundation:J(),foundationTerm:J(),initial:J(),taper:J(),terminal:J()}),qn=jn(H(G(re({epoch:J(),effectiveSlot:J(),amount:J(),postBalance:J()})))),Hn=re({epoch:J(),slotIndex:J(),slotsInEpoch:J(),absoluteSlot:J(),blockHeight:X(J()),transactionCount:X(J())}),Kn=re({slotsPerEpoch:J(),leaderScheduleSlotOffset:J(),warmup:K(),firstNormalEpoch:J(),firstNormalSlot:J()}),Vn=$(ee(),H(J())),Yn=G(ne([re({}),ee()])),Qn=re({err:Yn}),Gn=Y("receivedSignature"),Jn=re({"solana-core":ee(),"feature-set":X(J())}),Xn=Un(re({err:G(ne([re({}),ee()])),logs:G(H(ee())),accounts:X(G(H(G(re({executable:K(),owner:ee(),lamports:J(),data:H(ee()),rentEpoch:X(J())}))))),unitsConsumed:X(J()),returnData:X(G(re({programId:ee(),data:te([ee(),Y("base64")])})))})),$n=Un(re({byIdentity:$(ee(),H(J())),range:re({firstSlot:J(),lastSlot:J()})}));var ei=jn(Wn),ti=jn(Hn),ri=jn(Kn),ni=jn(Vn),ii=jn(J()),oi=Un(re({total:J(),circulating:J(),nonCirculating:J(),nonCirculatingAccounts:H(Ln)})),ai=re({amount:ee(),uiAmount:G(J()),decimals:J(),uiAmountString:X(ee())}),si=Un(H(re({address:Ln,amount:ee(),uiAmount:G(J()),decimals:J(),uiAmountString:X(ee())}
2))),ui=Un(H(re({pubkey:Ln,account:re({executable:K(),owner:Ln,lamports:J(),data:Bn,rentEpoch:J()})}))),ci=re({program:ee(),parsed:ie(),space:J()}),li=Un(H(re({pubkey:Ln,account:re({executable:K(),owner:Ln,lamports:J(),data:ci,rentEpoch:J()})}))),fi=Un(H(re({lamports:J(),address:Ln}))),di=re({executable:K(),owner:Ln,lamports:J(),data:Bn,rentEpoch:J()}),hi=re({pubkey:Ln,account:di}),pi=oe(ne([V(m.lW),ci]),ne([Rn,ci]),(function(e){return Array.isArray(e)?U(e,Bn):e})),vi=re({executable:K(),owner:Ln,lamports:J(),data:pi,rentEpoch:J()}),bi=re({pubkey:Ln,account:vi}),mi=re({state:ne([Y("active"),Y("inactive"),Y("activating"),Y("deactivating")]),active:J(),inactive:J()}),gi=jn(H(re({signature:ee(),slot:J(),err:Yn,memo:G(ee()),blockTime:X(G(J()))}))),yi=jn(H(re({signature:ee(),slot:J(),err:Yn,memo:G(ee()),blockTime:X(G(J()))}))),wi=re({subscription:J(),result:Fn(di)}),ki=re({pubkey:Ln,account:di}),xi=re({subscription:J(),result:Fn(ki)}),Si=re({parent:J(),slot:J(),root:J()}),_i=re({subscription:J(),result:Si}),Mi=ne([re({type:ne([Y("firstShredReceived"),Y("completed"),Y("optimisticConfirmation"),Y("root")]),slot:J(),timestamp:J()}),re({type:Y("createdBank"),parent:J(),slot:J(),timestamp:J()}),re({type:Y("frozen"),slot:J(),timestamp:J(),stats:re({numTransactionEntries:J(),numSuccessfulTransactions:J(),numFailedTransactions:J(),maxTransactionsPerEntry:J()})}),re({type:Y("dead"),slot:J(),timestamp:J(),err:ee()})]),Ai=re({subscription:J(),result:Mi}),Ei=re({subscription:J(),result:Fn(ne([Qn,Gn]))}),Ii=re({subscription:J(),result:J()}),Ci=re({pubkey:ee(),gossip:G(ee()),tpu:G(ee()),rpc:G(ee()),version:G(ee())}),Ti=re({votePubkey:ee(),nodePubkey:ee(),activatedStake:J(),epochVoteAccount:K(),epochCredits:H(te([J(),J(),J()])),commission:J(),lastVote:J(),rootSlot:G(J())}),Ni=jn(re({current:H(Ti),delinquent:H(Ti)})),Oi=ne([Y("processed"),Y("confirmed"),Y("finalized")]),Pi=re({slot:J(),confirmations:G(J()),err:Yn,confirmationStatus:X(Oi)}),Li=Un(H(G(Pi))),Ri=jn(J()),Bi=re({signatures:H(ee()),message:re({accountKeys:H(ee()),header:re({numRequiredSignatures:J(),numReadonlySignedAccounts:J(),numReadonlyUnsignedAccounts:J()}),instructions:H(re({accounts:H(J()),data:ee(),programIdIndex:J()})),recentBlockhash:ee()})}),zi=re({parsed:ie(),program:ee(),programId:Ln}),Di=re({accounts:H(Ln),data:ee(),programId:Ln}),Zi=oe(ne([Di,zi]),ne([re({parsed:ie(),program:ee(),programId:ee()}),re({accounts:H(ee()),data:ee(),programId:ee()})]),(function(e){return U(e,"accounts"in e?Di:zi)})),ji=re({signatures:H(ee()),message:re({accountKeys:H(re({pubkey:Ln,signer:K(),writable:K()})),instructions:H(Zi),recentBlockhash:ee()})}),Ui=re({accountIndex:J(),mint:ee(),owner:X(ee()),uiTokenAmount:ai}),Fi=re({err:Yn,fee:J(),innerInstructions:X(G(H(re({index:J(),instructions:H(re({accounts:H(J()),data:ee(),programIdIndex:J()}))})))),preBalances:H(J()),postBalances:H(J()),logMessages:X(G(H(ee()))),preTokenBalances:X(G(H(Ui))),postTokenBalances:X(G(H(Ui)))}),Wi=re({err:Yn,fee:J(),innerInstructions:X(G(H(re({index:J(),instructions:H(Zi)})))),preBalances:H(J()),postBalances:H(J()),logMessages:X(G(H(ee()))),preTokenBalances:X(G(H(Ui))),postTokenBalances:X(G(H(Ui)))}),qi=jn(G(re({blockhash:ee(),previousBlockhash:ee(),parentSlot:J(),transactions:H(re({transaction:Bi,meta:G(Fi)})),rewards:X(H(re({pubkey:ee(),lamports:J(),postBalance:G(J()),rewardType:G(ee())}))),blockTime:G(J()),blockHeight:G(J())}))),Hi=jn(G(re({blockhash:ee(),previousBlockhash:ee(),parentSlot:J(),transactions:H(re({transaction:Bi,meta:G(Fi)})),rewards:X(H(re({pubkey:ee(),lamports:J(),postBalance:G(J()),rewardType:G(ee())}))),blockTime:G(J())}))),Ki=jn(G(re({blockhash:ee(),previousBlockhash:ee(),parentSlot:J(),signatures:H(ee()),blockTime:G(J())}))),Vi=jn(G(re({slot:J(),meta:Fi,blockTime:X(G(J())),transaction:Bi}))),Yi=jn(G(re({slot:J(),transaction:ji,meta:G(Wi),blockTime:X(G(J()))}))),Qi=Un(re({blockhash:ee(),feeCalculator:re({lamportsPerSignature:J()})})),Gi=Un(re({blockhash:ee(),lastValidBlockHeight:J()})),Ji=jn(H(re({slot:J(),numTransactions:J(),numSlots:J(),samplePeriodSecs:J()}))),Xi=Un(G(re({feeCalculator:re({lamportsPerSignature:J()})}
2))),$i=jn(ee()),eo=jn(ee()),to=re({err:Yn,logs:H(ee()),signature:ee()}),ro=re({result:Fn(to),subscription:J()}),no={"solana-client":"js/".concat(null!==(On="0.0.0-development")?On:"UNKNOWN")},io=function(){function e(t,r){(0,h.Z)(this,e),this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set;var n,i,o,a,s,f,d=new Mn(t);d.protocol;r&&"string"===typeof r?this._commitment=r:r&&(this._commitment=r.commitment,this._confirmTransactionInitialTimeout=r.confirmTransactionInitialTimeout,n=r.wsEndpoint,i=r.httpHeaders,o=r.fetch,a=r.fetchMiddleware,s=r.disableRetryOnRateLimit),this._rpcEndpoint=t,this._rpcWsEndpoint=n||function(e){var t=new Mn(e),r="https:"===t.protocol;return t.protocol=r?"wss:":"ws:",t.host="",""!==t.port&&(t.port=String(Number(t.port)+1)),t.toString()}(t),this._rpcClient=function(e,t,r,n,i,o){var a,s=n||Tn;i&&(a=function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,n){try{i(t,r,(function(t,r){return e([t,r])}))}catch(o){n(o)}}));case 2:return n=e.sent,e.next=5,s.apply(void 0,(0,u.Z)(n));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}());var f=new(ue())(function(){var t=(0,l.Z)((0,c.Z)().mark((function t(n,i){var u,l,f,d,h;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u={method:"POST",body:n,agent:void 0,headers:Object.assign({"Content-Type":"application/json"},r||{},no)},t.prev=2,l=5,d=500;case 5:if(!a){t.next=11;break}return t.next=8,a(e,u);case 8:f=t.sent,t.next=14;break;case 11:return t.next=13,s(e,u);case 13:f=t.sent;case 14:if(429===f.status){t.next=16;break}return t.abrupt("break",27);case 16:if(!0!==o){t.next=18;break}return t.abrupt("break",27);case 18:if(0!==(l-=1)){t.next=21;break}return t.abrupt("break",27);case 21:return console.log("Server responded with ".concat(f.status," ").concat(f.statusText,". Retrying after ").concat(d,"ms delay...")),t.next=24,mn(d);case 24:d*=2;case 25:t.next=5;break;case 27:return t.next=29,f.text();case 29:h=t.sent,f.ok?i(null,h):i(new Error("".concat(f.status," ").concat(f.statusText,": ").concat(h))),t.next=36;break;case 33:t.prev=33,t.t0=t.catch(2),t.t0 instanceof Error&&i(t.t0);case 36:return t.prev=36,t.finish(36);case 38:case"end":return t.stop()}}),t,null,[[2,33,36,38]])})));return function(e,r){return t.apply(this,arguments)}}(),{});return f}(d.toString(),0,i,o,a,s),this._rpcRequest=(f=this._rpcClient,function(e,t){return new Promise((function(r,n){f.request(e,t,(function(e,t){e?n(e):r(t)}))}))}),this._rpcBatchRequest=function(e){return function(t){return new Promise((function(r,n){0===t.length&&r([]);var i=t.map((function(t){return e.request(t.methodName,t.args)}));e.request(i,(function(e,t){e?n(e):r(t)}))}))}}(this._rpcClient),this._rpcWebSocket=new ae.K(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}
2return(0,p.Z)(e,[{key:"commitment",get:function(){return this._commitment}},{key:"rpcEndpoint",get:function(){return this._rpcEndpoint}},{key:"getBalanceAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zn(r),i=n.commitment,o=n.config,a=this._buildArgs([t.toBase58()],i,void 0,o),e.next=4,this._rpcRequest("getBalance",a);case 4:if(s=e.sent,!("error"in(u=U(s,Un(J()))))){e.next=8;break}throw new Cn(u.error,"failed to get balance for ".concat(t.toBase58()));case 8:return e.abrupt("return",u.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getBalance",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBalanceAndContext(t,r).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get balance of account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getBlockTime",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getBlockTime",[t]);case 2:if(r=e.sent,!("error"in(n=U(r,jn(G(J())))))){e.next=6;break}throw new Cn(n.error,"failed to get block time for slot ".concat(t));case 6:return e.abrupt("return",n.result);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMinimumLedgerSlot",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("minimumLedgerSlot",[]);case 2:if(t=e.sent,!("error"in(r=U(t,jn(J()))))){e.next=6;break}throw new Cn(r.error,"failed to get minimum ledger slot");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFirstAvailableBlock",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getFirstAvailableBlock",[]);case 2:if(t=e.sent,!("error"in(r=U(t,ii)))){e.next=6;break}throw new Cn(r.error,"failed to get first available block");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getSupply",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},r="string"===typeof t?{commitment:t}:t?(0,s.Z)((0,s.Z)({},t),{},{commitment:t&&t.commitment||this.commitment}):{commitment:this.commitment},e.next=4,this._rpcRequest("getSupply",[r]);case 4:if(n=e.sent,!("error"in(i=U(n,oi)))){e.next=8;break}throw new Cn(i.error,"failed to get supply");case 8:return e.abrupt("return",i.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTokenSupply",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t.toBase58()],r),e.next=3,this._rpcRequest("getTokenSupply",n);case 3:if(i=e.sent,!("error"in(o=U(i,Un(ai))))){e.next=7;break}throw new Cn(o.error,"failed to get token supply");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTokenAccountBalance",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t.toBase58()],r),e.next=3,this._rpcRequest("getTokenAccountBalance",n);case 3:if(i=e.sent,!("error"in(o=U(i,Un(ai))))){e.next=7;break}throw new Cn(o.error,"failed to get token account balance");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTokenAccountsByOwner",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,s,u,l,f;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zn(n),o=i.commitment,a=i.config,s=[t.toBase58()],"mint"in r?s.push({mint:r.mint.toBase58()}):s.push({programId:r.programId.toBase58()}),u=this._buildArgs(s,o,"base64",a),e.next=6,this._rpcRequest("getTokenAccountsByOwner",u);case 6:if(l=e.sent,!("error"in(f=U(l,ui)))){e.next=10;break}throw new Cn(f.error,"failed to get token accounts owned by account ".concat(t.toBase58()
2));case 10:return e.abrupt("return",f.result);case 11:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getParsedTokenAccountsByOwner",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[t.toBase58()],"mint"in r?i.push({mint:r.mint.toBase58()}):i.push({programId:r.programId.toBase58()}),o=this._buildArgs(i,n,"jsonParsed"),e.next=5,this._rpcRequest("getTokenAccountsByOwner",o);case 5:if(a=e.sent,!("error"in(s=U(a,li)))){e.next=9;break}throw new Cn(s.error,"failed to get token accounts owned by account ".concat(t.toBase58()));case 9:return e.abrupt("return",s.result);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getLargestAccounts",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,s.Z)((0,s.Z)({},t),{},{commitment:t&&t.commitment||this.commitment}),n=r.filter||r.commitment?[r]:[],e.next=4,this._rpcRequest("getLargestAccounts",n);case 4:if(i=e.sent,!("error"in(o=U(i,fi)))){e.next=8;break}throw new Cn(o.error,"failed to get largest accounts");case 8:return e.abrupt("return",o.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTokenLargestAccounts",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t.toBase58()],r),e.next=3,this._rpcRequest("getTokenLargestAccounts",n);case 3:if(i=e.sent,!("error"in(o=U(i,si)))){e.next=7;break}throw new Cn(o.error,"failed to get token largest accounts");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getAccountInfoAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zn(r),i=n.commitment,o=n.config,a=this._buildArgs([t.toBase58()],i,"base64",o),e.next=4,this._rpcRequest("getAccountInfo",a);case 4:if(s=e.sent,!("error"in(u=U(s,Un(G(di)))))){e.next=8;break}throw new Cn(u.error,"failed to get info about account ".concat(t.toBase58()
2));case 8:return e.abrupt("return",u.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedAccountInfo",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t.toBase58()],r,"jsonParsed"),e.next=3,this._rpcRequest("getAccountInfo",n);case 3:if(i=e.sent,!("error"in(o=U(i,Un(G(vi)))))){e.next=7;break}throw new Cn(o.error,"failed to get info about account ".concat(t.toBase58()));case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getAccountInfo",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getAccountInfoAndContext(t,r);case 3:return n=e.sent,e.abrupt("return",n.value);case 7:throw e.prev=7,e.t0=e.catch(0),new Error("failed to get info about account "+t.toBase58()+": "+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getMultipleAccountsInfoAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u,l;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zn(r),i=n.commitment,o=n.config,a=t.map((function(e){return e.toBase58()})),s=this._buildArgs([a],i,"base64",o),e.next=5,this._rpcRequest("getMultipleAccounts",s);case 5:if(u=e.sent,!("error"in(l=U(u,Un(H(G(di))))))){e.next=9;break}throw new Cn(l.error,"failed to get info for accounts ".concat(a));case 9:return e.abrupt("return",l.result);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getMultipleAccountsInfo",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getMultipleAccountsInfoAndContext(t,r);case 2:return n=e.sent,e.abrupt("return",n.value);case 4:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getStakeActivation",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,u,l,f;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zn(r),o=i.commitment,a=i.config,u=this._buildArgs([t.toBase58()],o,void 0,(0,s.Z)((0,s.Z)({},a),{},{epoch:null!=n?n:null===a||void 0===a?void 0:a.epoch})),e.next=4,this._rpcRequest("getStakeActivation",u);case 4:if(l=e.sent,!("error"in(f=U(l,jn(mi))))){e.next=8;break}throw new Cn(f.error,"failed to get Stake Activation ".concat(t.toBase58()
2));case 8:return e.abrupt("return",f.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getProgramAccounts",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var i,o,a,s,u,l,f,d,h;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zn(r),o=i.commitment,a=i.config,u=(s=a||{}).encoding,l=(0,n.Z)(s,pe),f=this._buildArgs([t.toBase58()],o,u||"base64",l),e.next=5,this._rpcRequest("getProgramAccounts",f);case 5:if(d=e.sent,!("error"in(h=U(d,jn(H(hi)))))){e.next=9;break}throw new Cn(h.error,"failed to get accounts owned by program ".concat(t.toBase58()));case 9:return e.abrupt("return",h.result);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedProgramAccounts",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zn(r),i=n.commitment,o=n.config,a=this._buildArgs([t.toBase58()],i,"jsonParsed",o),e.next=4,this._rpcRequest("getProgramAccounts",a);case 4:if(s=e.sent,!("error"in(u=U(s,jn(H(bi)))))){e.next=8;break}throw new Cn(u.error,"failed to get accounts owned by program ".concat(t.toBase58()
2));case 8:return e.abrupt("return",u.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"confirmTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u,f,d,h,p,v=this;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="string"==typeof t?t:t.signature,e.prev=1,i=k().decode(n),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),new Error("signature must be base58 encoded: "+n);case 8:return sn(64===i.length,"signature has invalid length"),o=r||this.commitment,u=!1,f=new Promise((function(e,t){try{s=v.onSignature(n,(function(t,r){s=void 0;var n={context:r,value:t};u=!0,e({__type:on.PROCESSED,response:n})}),o)}catch(r){t(r)}})),d=new Promise((function(e){if("string"===typeof t){var n=v._confirmTransactionInitialTimeout||6e4;switch(o){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":n=v._confirmTransactionInitialTimeout||3e4}a=setTimeout((function(){return e({__type:on.TIMED_OUT,timeoutMs:n})}),n)}else{var i=t,s=function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.getBlockHeight(r);case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",-1);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();(0,l.Z)((0,c.Z)().mark((function t(){var r;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s();case 2:if(r=t.sent,!u){t.next=5;break}return t.abrupt("return");case 5:if(!(r<=i.lastValidBlockHeight)){t.next=17;break}return t.next=8,mn(1e3);case 8:if(!u){t.next=10;break}return t.abrupt("return");case 10:return t.next=12,s();case 12:if(r=t.sent,!u){t.next=15;break}return t.abrupt("return");case 15:t.next=5;break;case 17:e({__type:on.BLOCKHEIGHT_EXCEEDED});case 18:case"end":return t.stop()}}),t)})))()}})),e.prev=13,e.next=16,Promise.race([f,d]);case 16:p=e.sent,e.t1=p.__type,e.next=e.t1===on.BLOCKHEIGHT_EXCEEDED?20:e.t1===on.PROCESSED?21:e.t1===on.TIMED_OUT?23:24;break;case 20:throw new Nn(n);case 21:return h=p.response,e.abrupt("break",24);case 23:throw new Pn(n,p.timeoutMs/1e3);case 24:return e.prev=24,clearTimeout(a),s&&this.removeSignatureListener(s),e.finish(24);case 28:return e.abrupt("return",h);case 29:case"end":return e.stop()}}),e,this,[[1,5],[13,,24,28]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getClusterNodes",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getClusterNodes",[]);case 2:if(t=e.sent,!("error"in(r=U(t,jn(H(Ci)))))){e.next=6;break}throw new Cn(r.error,"failed to get cluster nodes");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getVoteAccounts",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._buildArgs([],t),e.next=3,this._rpcRequest("getVoteAccounts",r);case 3:if(n=e.sent,!("error"in(i=U(n,Ni)))){e.next=7;break}throw new Cn(i.error,"failed to get vote accounts");case 7:return e.abrupt("return",i.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSlot",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getSlot",o);case 4:if(a=e.sent,!("error"in(s=U(a,jn(J()))))){e.next=8;break}throw new Cn(s.error,"failed to get slot");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSlotLeader",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getSlotLeader",o);case 4:if(a=e.sent,!("error"in(s=U(a,jn(ee()))))){e.next=8;break}throw new Cn(s.error,"failed to get slot leader");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSlotLeaders",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[t,r],e.next=3,this._rpcRequest("getSlotLeaders",n);case 3:if(i=e.sent,!("error"in(o=U(i,jn(H(Ln)))))){e.next=7;break}throw new Cn(o.error,"failed to get slot leaders");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getSignatureStatus",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return e.next=2,this.getSignatureStatuses([t],r);case 2:return n=e.sent,i=n.context,sn(1===(o=n.value).length),a=o[0],e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getSignatureStatuses",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[t],r&&n.push(r),e.next=4,this._rpcRequest("getSignatureStatuses",n);case 4:if(i=e.sent,!("error"in(o=U(i,Li)))){e.next=8;break}throw new Cn(o.error,"failed to get signature status");case 8:return e.abrupt("return",o.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTransactionCount",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getTransactionCount",o);case 4:if(a=e.sent,!("error"in(s=U(a,jn(J()))))){e.next=8;break}throw new Cn(s.error,"failed to get transaction count");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTotalSupply",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0});case 2:return r=e.sent,e.abrupt("return",r.value.total);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getInflationGovernor",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._buildArgs([],t),e.next=3,this._rpcRequest("getInflationGovernor",r);case 3:if(n=e.sent,!("error"in(i=U(n,ei)))){e.next=7;break}throw new Cn(i.error,"failed to get inflation");case 7:return e.abrupt("return",i.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getInflationReward",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,u,l,f;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=zn(n),o=i.commitment,a=i.config,u=this._buildArgs([t.map((function(e){return e.toBase58()}))],o,void 0,(0,s.Z)((0,s.Z)({},a),{},{epoch:null!=r?r:null===a||void 0===a?void 0:a.epoch})),e.next=4,this._rpcRequest("getInflationReward",u);case 4:if(l=e.sent,!("error"in(f=U(l,qn)))){e.next=8;break}throw new Cn(f.error,"failed to get inflation reward");case 8:return e.abrupt("return",f.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getEpochInfo",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getEpochInfo",o);case 4:if(a=e.sent,!("error"in(s=U(a,ti)))){e.next=8;break}throw new Cn(s.error,"failed to get epoch info");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getEpochSchedule",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r,n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getEpochSchedule",[]);case 2:if(t=e.sent,!("error"in(r=U(t,ri)))){e.next=6;break}throw new Cn(r.error,"failed to get epoch schedule");case 6:return n=r.result,e.abrupt("return",new En(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getLeaderSchedule",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getLeaderSchedule",[]);case 2:if(t=e.sent,!("error"in(r=U(t,ni)))){e.next=6;break}throw new Cn(r.error,"failed to get leader schedule");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getMinimumBalanceForRentExemption",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t],r),e.next=3,this._rpcRequest("getMinimumBalanceForRentExemption",n);
2case 3:if(i=e.sent,!("error"in(o=U(i,Ri)))){e.next=8;break}return console.warn("Unable to fetch minimum balance for rent exemption"),e.abrupt("return",0);case 8:return e.abrupt("return",o.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getRecentBlockhashAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._buildArgs([],t),e.next=3,this._rpcRequest("getRecentBlockhash",r);case 3:if(n=e.sent,!("error"in(i=U(n,Qi)))){e.next=7;break}throw new Cn(i.error,"failed to get recent blockhash");case 7:return e.abrupt("return",i.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRecentPerformanceSamples",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]);case 2:if(r=e.sent,!("error"in(n=U(r,Ji)))){e.next=6;break}throw new Cn(n.error,"failed to get recent performance samples");case 6:return e.abrupt("return",n.result);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getFeeCalculatorForBlockhash",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgs([t],r),e.next=3,this._rpcRequest("getFeeCalculatorForBlockhash",n);case 3:if(i=e.sent,!("error"in(o=U(i,Xi)))){e.next=7;break}throw new Cn(o.error,"failed to get fee calculator");case 7:return a=o.result,s=a.context,u=a.value,e.abrupt("return",{context:s,value:null!==u?u.feeCalculator:null});case 9:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getFeeForMessage",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.serialize().toString("base64"),i=this._buildArgs([n],r),e.next=4,this._rpcRequest("getFeeForMessage",i);case 4:if(o=e.sent,!("error"in(a=U(o,Un(G(J())))))){e.next=8;break}throw new Cn(a.error,"failed to get slot");case 8:if(null!==a.result){e.next=10;break}throw new Error("invalid blockhash");case 10:return e.abrupt("return",a.result);case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getRecentBlockhash",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getRecentBlockhashAndContext(t);case 3:return r=e.sent,e.abrupt("return",r.value);case 7:throw e.prev=7,e.t0=e.catch(0),new Error("failed to get recent blockhash: "+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getLatestBlockhash",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getLatestBlockhashAndContext(t);case 3:return r=e.sent,e.abrupt("return",r.value);case 7:throw e.prev=7,e.t0=e.catch(0),new Error("failed to get recent blockhash: "+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"getLatestBlockhashAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getLatestBlockhash",o);case 4:if(a=e.sent,!("error"in(s=U(a,Gi)))){e.next=8;break}throw new Cn(s.error,"failed to get latest blockhash");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getVersion",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getVersion",[]);case 2:if(t=e.sent,!("error"in(r=U(t,jn(Jn))))){e.next=6;break}throw new Cn(r.error,"failed to get version");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getGenesisHash",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("getGenesisHash",[]);case 2:if(t=e.sent,!("error"in(r=U(t,jn(ee()))))){e.next=6;break}throw new Cn(r.error,"failed to get genesis hash");case 6:return e.abrupt("return",r.result);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBlock",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r&&r.commitment),e.next=3,this._rpcRequest("getBlock",n);case 3:if(i=e.sent,!("error"in(o=U(i,qi)))){e.next=7;break}throw new Cn(o.error,"failed to get confirmed block");case 7:if(a=o.result){e.next=10;break}return e.abrupt("return",a);case 10:return e.abrupt("return",(0,s.Z)((0,s.Z)({},a),{},{transactions:a.transactions.map((function(e){var t=e.transaction,r=e.meta,n=new an(t.message);return{meta:r,transaction:(0,s.Z)((0,s.Z)({},t),{},{message:n})}}))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getBlockHeight",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n,i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=zn(t),n=r.commitment,i=r.config,o=this._buildArgs([],n,void 0,i),e.next=4,this._rpcRequest("getBlockHeight",o);case 4:if(a=e.sent,!("error"in(s=U(a,jn(J()))))){e.next=8;break}throw new Cn(s.error,"failed to get block height information");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getBlockProduction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,i,o,a,s,u,l;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"===typeof t?i=t:t&&(o=t.commitment,a=(0,n.Z)(t,ve),i=o,r=a),s=this._buildArgs([],i,"base64",r),e.next=4,this._rpcRequest("getBlockProduction",s);case 4:if(u=e.sent,!("error"in(l=U(u,$n)))){e.next=8;break}throw new Cn(l.error,"failed to get block production information");case 8:return e.abrupt("return",l.result);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r&&r.commitment),e.next=3,this._rpcRequest("getTransaction",n);case 3:if(i=e.sent,!("error"in(o=U(i,Vi)))){e.next=7;break}throw new Cn(o.error,"failed to get transaction");case 7:if(a=o.result){e.next=10;break}return e.abrupt("return",a);case 10:return e.abrupt("return",(0,s.Z)((0,s.Z)({},a),{},{transaction:(0,s.Z)((0,s.Z)({},a.transaction),{},{message:new an(a.transaction.message)})}
2));case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r,"jsonParsed"),e.next=3,this._rpcRequest("getTransaction",n);case 3:if(i=e.sent,!("error"in(o=U(i,Yi)))){e.next=7;break}throw new Cn(o.error,"failed to get transaction");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedTransactions",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a=this;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return{methodName:"getTransaction",args:a._buildArgsAtLeastConfirmed([e],r,"jsonParsed")}})),e.next=3,this._rpcBatchRequest(n);case 3:return i=e.sent,o=i.map((function(e){var t=U(e,Yi);if("error"in t)throw new Cn(t.error,"failed to get transactions");return t.result})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTransactions",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a=this;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return{methodName:"getTransaction",args:a._buildArgsAtLeastConfirmed([e],r)}})),e.next=3,this._rpcBatchRequest(n);case 3:return i=e.sent,o=i.map((function(e){var t=U(e,Vi);if("error"in t)throw new Cn(t.error,"failed to get transactions");var r=t.result;return r?(0,s.Z)((0,s.Z)({},r),{},{transaction:(0,s.Z)((0,s.Z)({},r.transaction),{},{message:new an(r.transaction.message)})}):r})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getConfirmedBlock",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r),e.next=3,this._rpcRequest("getConfirmedBlock",n);case 3:if(i=e.sent,!("error"in(o=U(i,Hi)))){e.next=7;break}throw new Cn(o.error,"failed to get confirmed block");case 7:if(a=o.result){e.next=10;break}throw new Error("Confirmed block "+t+" not found");case 10:return u=(0,s.Z)((0,s.Z)({},a),{},{transactions:a.transactions.map((function(e){var t=e.transaction,r=e.meta,n=new an(t.message);return{meta:r,transaction:(0,s.Z)((0,s.Z)({},t),{},{message:n})}}))}),e.abrupt("return",(0,s.Z)((0,s.Z)({},u),{},{transactions:u.transactions.map((function(e){var t=e.transaction;return{meta:e.meta,transaction:ln.populate(t.message,t.signatures)}}))}));case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getBlocks",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed(void 0!==r?[t,r]:[t],n),e.next=3,this._rpcRequest("getBlocks",i);case 3:if(o=e.sent,!("error"in(a=U(o,jn(H(J())))))){e.next=7;break}throw new Cn(a.error,"failed to get blocks");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getBlockSignatures",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetails:"signatures",rewards:!1}),e.next=3,this._rpcRequest("getBlock",n);case 3:if(i=e.sent,!("error"in(o=U(i,Ki)))){e.next=7;break}throw new Cn(o.error,"failed to get block");case 7:if(a=o.result){e.next=10;break}throw new Error("Block "+t+" not found");case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getConfirmedBlockSignatures",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r,void 0,{transactionDetail
2s:"signatures",rewards:!1}),e.next=3,this._rpcRequest("getConfirmedBlock",n);case 3:if(i=e.sent,!("error"in(o=U(i,Ki)))){e.next=7;break}throw new Cn(o.error,"failed to get confirmed block");case 7:if(a=o.result){e.next=10;break}throw new Error("Confirmed block "+t+" not found");case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getConfirmedTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,u,l;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r),e.next=3,this._rpcRequest("getConfirmedTransaction",n);case 3:if(i=e.sent,!("error"in(o=U(i,Vi)))){e.next=7;break}throw new Cn(o.error,"failed to get transaction");case 7:if(a=o.result){e.next=10;break}return e.abrupt("return",a);case 10:return u=new an(a.transaction.message),l=a.transaction.signatures,e.abrupt("return",(0,s.Z)((0,s.Z)({},a),{},{transaction:ln.populate(u,l)}));case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedConfirmedTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._buildArgsAtLeastConfirmed([t],r,"jsonParsed"),e.next=3,this._rpcRequest("getConfirmedTransaction",n);case 3:if(i=e.sent,!("error"in(o=U(i,Yi)))){e.next=7;break}throw new Cn(o.error,"failed to get confirmed transaction");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getParsedConfirmedTransactions",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a=this;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return{methodName:"getConfirmedTransaction",args:a._buildArgsAtLeastConfirmed([e],r,"jsonParsed")}})),e.next=3,this._rpcBatchRequest(n);case 3:return i=e.sent,o=i.map((function(e){var t=U(e,Yi);if("error"in t)throw new Cn(t.error,"failed to get confirmed transactions");return t.result})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getConfirmedSignaturesForAddress",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,s,u,l;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={},e.next=3,this.getFirstAvailableBlock();case 3:o=e.sent;case 4:if("until"in i){e.next=24;break}if(!(--r<=0||r<o)){e.next=8;break}return e.abrupt("break",24);case 8:return e.prev=8,e.next=11,this.getConfirmedBlockSignatures(r,"finalized");case 11:(a=e.sent).signatures.length>0&&(i.until=a.signatures[a.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in i){e.next=47;break}if(!(++n>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(n);case 34:(u=e.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,i);case 49:return l=e.sent,e.abrupt("return",l.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getConfirmedSignaturesForAddress2",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i
2);case 3:if(o=e.sent,!("error"in(a=U(o,gi)))){e.next=7;break}throw new Cn(a.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getSignaturesForAddress",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,r),e.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=e.sent,!("error"in(a=U(o,yi)))){e.next=7;break}throw new Cn(a.error,"failed to get signatures for address");case 7:return e.abrupt("return",a.result);case 8:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getNonceAndContext",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,r);case 2:return n=e.sent,i=n.context,o=n.value,a=null,null!==o&&(a=Gr.fromAccountData(o.data)),e.abrupt("return",{context:i,value:a});case 8:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getNonce",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,r).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"requestAirdrop",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),r]);case 2:if(n=e.sent,!("error"in(i=U(n,$i)))){e.next=6;break}throw new Cn(i.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",i.result);case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_blockhashWithExpiryBlockHeight",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var r,n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,mn(100);case 4:e.next=1;break;case 6:if(r=Date.now()-this._blockhashInfo.lastFetch,n=r>=3e4,null===this._blockhashInfo.latestBlockhash||n){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_pollNewBlockhash",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r,n,i,o;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),r=this._blockhashInfo.latestBlockhash,n=r?r.blockhash:null,i=0;case 6:if(!(i<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(o=e.sent,n===o.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",o);case 13:return e.next=15,mn(200);case 15:i++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])})));return function(){return e.apply(this,arguments)}}()},{key:"simulateTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,s,l,f,d,h,p,v,b,m,g,y,w,k,x,S,_;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof ln?(o=t,(i=new ln).feePayer=o.feePayer,i.instructions=t.instructions,i.nonceInfo=o.nonceInfo,i.signatures=o.signatures):(i=ln.populate(t))._message=i._json=void 0,!i.nonceInfo||!r){e.next=5;break}(a=i).sign.apply(a,(0,u.Z)(r)),e.next=25;break;case 5:s=this._disableBlockhashCaching;case 6:return e.next=8,this._blockhashWithExpiryBlockHeight(s);
2case 8:if(f=e.sent,i.lastValidBlockHeight=f.lastValidBlockHeight,i.recentBlockhash=f.blockhash,r){e.next=13;break}return e.abrupt("break",25);case 13:if((l=i).sign.apply(l,(0,u.Z)(r)),i.signature){e.next=16;break}throw new Error("!signature");case 16:if(d=i.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(d)||this._blockhashInfo.transactionSignatures.includes(d)){e.next=22;break}return this._blockhashInfo.simulatedSignatures.push(d),e.abrupt("break",25);case 22:s=!0;case 23:e.next=6;break;case 25:return h=i._compile(),p=h.serialize(),v=i._serialize(p),b=v.toString("base64"),m={encoding:"base64",commitment:this.commitment},n&&(g=(Array.isArray(n)?n:h.nonProgramIds()).map((function(e){return e.toBase58()})),m.accounts={encoding:"base64",addresses:g}),r&&(m.sigVerify=!0),y=[b,m],e.next=35,this._rpcRequest("simulateTransaction",y);case 35:if(w=e.sent,!("error"in(k=U(w,Xn)))){e.next=40;break}throw"data"in k.error&&(x=k.error.data.logs)&&Array.isArray(x)&&(_=(S="\n ")+x.join(S),console.error(k.error.message,_)),new In("failed to simulate transaction: "+k.error.message,x);case 40:return e.abrupt("return",k.result);case 41:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"sendTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r,n){var i,o,a,s;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.nonceInfo){e.next=4;break}t.sign.apply(t,(0,u.Z)(r)),e.next=22;break;case 4:i=this._disableBlockhashCaching;case 5:return e.next=7,this._blockhashWithExpiryBlockHeight(i);case 7:if(o=e.sent,t.lastValidBlockHeight=o.lastValidBlockHeight,t.recentBlockhash=o.blockhash,t.sign.apply(t,(0,u.Z)(r)),t.signature){e.next=13;break}throw new Error("!signature");case 13:if(a=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(a)){e.next=19;break}return this._blockhashInfo.transactionSignatures.push(a),e.abrupt("break",22);case 19:i=!0;case 20:e.next=5;break;case 22:return s=t.serialize(),e.next=25,this.sendRawTransaction(s,n);case 25:return e.abrupt("return",e.sent);case 26:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"sendRawTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=me(t).toString("base64"),e.next=3,this.sendEncodedTransaction(n,r);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"sendEncodedTransaction",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n,i,o,a,s,u,l;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={encoding:"base64"},i=r&&r.skipPreflight,o=r&&r.preflightCommitment||this.commitment,r&&null!=r.maxRetries&&(n.maxRetries=r.maxRetries),r&&null!=r.minContextSlot&&(n.minContextSlot=r.minContextSlot),i&&(n.skipPreflight=i),o&&(n.preflightCommitment=o),a=[t,n],e.next=10,this._rpcRequest("sendTransaction",a);case 10:if(s=e.sent,!("error"in(u=U(s,eo)))){e.next=15;break}throw"data"in u.error&&(l=u.error.data.logs),new In("failed to send transaction: "+u.error.message,l);case 15:return e.abrupt("return",u.result);case 16:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){e._rpcWebSocket.notify("ping").catch((function(){}))}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration++,this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var r=(0,a.Z)(e,2),n=r[0],i=r[1];t._subscriptionsByHash[n]=(0,s.Z)((0,s.Z)({},i),{},{state:"pending"})}))):this._updateSubscriptions()}},{key:"_updateSubscriptions",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(){var t,r,n=this;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){n._rpcWebSocketIdleTimeout=null;try{n._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,r=function(){return t===n._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){var i;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(i=n._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=i.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==i.callbacks.size){e.next=12;break}return delete n._subscriptionsByHash[t],"unsubscribed"===i.state&&delete n._subscriptionCallbacksByServerSubscriptionId[i.serverSubscriptionId],e.next=11,n._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,(0,l.Z)((0,c.Z)().mark((function e(){var o,a,u;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=i.args,a=i.method,e.prev=1,n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{state:"subscribing"}),e.next=5,n._rpcWebSocket.call(a,o);case 5:return u=e.sent,n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{serverSubscriptionId:u,state:"subscribed"}),n._subscriptionCallbacksByServerSubscriptionId[u]=i.callbacks,e.next=10,n._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(a," error for argument"),o,e.t0.message),r()){e.next=17;break}return e.abrupt("return");case 17:return n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{state:"pending"}),e.next=20,n._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==i.callbacks.size){e.next=18;break}return e.next=18,(0,l.Z)((0,c.Z)().mark((function e(){var o,a;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.serverSubscriptionId,a=i.unsubscribeMethod,!n._subscriptionsAutoDisposedByRpc.has(o)){e.next=5;break}n._subscriptionsAutoDisposedByRpc.delete(o),e.next=20;break;case 5:return n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{state:"unsubscribing"}),e.prev=6,e.next=9,n._rpcWebSocket.call(a,[o]);case 9:e.next=20;break;case 11:if(e.prev=11,e.t0=e.catch(6),e.t0 instanceof Error&&console.error("".concat(a," error:"),e.t0.message),r()){e.next=16;break}return e.abrupt("return");case 16:return n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{state:"subscribed"}),e.next=19,n._updateSubscriptions();case 19:return e.abrupt("return");case 20:return n._subscriptionsByHash[t]=(0,s.Z)((0,s.Z)({},i),{},{state:"unsubscribed"}),e.next=23,n._updateSubscriptions();case 23:case"end":return e.stop()}}),e,null,[[6,11]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_handleServerNotification",value:function(e,t){var r=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==r&&r.forEach((function(e){try{e.apply(void 0,(0,u.Z)(t))}catch(r){console.error(r)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=U(e,wi),r=t.result,n=t.subscription;this._handleServerNotification(n,[r.value,r.context])}},{key:"_makeSubscription",value:function(e,t){var r=this,n=this._nextClientSubscriptionId++,i=_n([e.method,t],!0),o=this._subscriptionsByHash[i];return void 0===o?this._subscriptionsByHash[i]=(0,s.Z)((0,s.Z)({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):o.callbacks.add(e.callback),this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=(0,l.Z)((0,c.Z)().mark((function t(){var o;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete r._subscriptionDisposeFunctionsByClientSubscriptionId[n],sn(void 0!==(o=r._subscriptionsByHash[i]),"Could not find a `Subscription` when tearing down client subscription #".concat(n)),o.callbacks.delete(e.callback),t.next=6,r._updateSubscriptions();case 6:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),n}},{key:"onAccountChange",value:function(e,t,r){var n=this._buildArgs([e.toBase58()],r||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},n)}},{key:"removeAccountChangeListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wsOnProgramAccountNotification",value:function(e){var t=U(e,xi),r=t.result,n=t.subscription;this._handleServerNotification(n,[{accountId:r.value.pubkey,accountInfo:r.value.account},r.context])}},{key:"onProgramAccountChange",value:function(e,t,r,n){var i=this._buildArgs([e.toBase58()],r||this._commitment||"finalized","base64",n?{filters:n}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}},{key:"removeProgramAccountChangeListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLogs",value:function(e,t,r){var n=this._buildArgs(["object"===typeof e?{mentions:[e.toString()]}:e],r||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},n)}},{key:"removeOnLogsListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wsOnLogsNotification",value:function(e){var t=U(e,ro),r=t.result,n=t.subscription;this._handleServerNotification(n,[r.value,r.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=U(e,_i),r=t.result,n=t.subscription;this._handleServerNotification(n,[r])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=U(e,Ai),r=t.result,n=t.subscription;this._handleServerNotification(n,[r])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_unsubscribeClientSubscription",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t,r){var n;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,n();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(r,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_buildArgs",value:function(e,t,r,n){var i=t||this._commitment;if(i||r||n){var o={};r&&(o.encoding=r),i&&(o.commitment=i),n&&(o=Object.assign(o,n)),e.push(o)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,r,n){var i=t||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,r,n)}},{key:"_wsOnSignatureNotification",value:function(e){var t=U(e,Ei),r=t.result,n=t.subscription;"receivedSignature"!==r.value&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,"receivedSignature"===r.value?[{type:"received"},r.context]:[{type:"status",result:r.value},r.context])}},{key:"onSignature",value:function(e,t,r){var n=this,i=this._buildArgs([e],r||this._commitment||"finalized"),o=this._makeSubscription({callback:function(e,r){if("status"===e.type){t(e.result,r);try{n.removeSignatureListener(o)}catch(i){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return o}},{key:"onSignatureWithOptions",value:function(e,t,r){var i=this,o=(0,s.Z)((0,s.Z)({},r),{},{commitment:r&&r.commitment||this._commitment||"finalized"}),a=o.commitment,u=(0,n.Z)(o,be),c=this._buildArgs([e],a,void 0,u),l=this._makeSubscription({callback:function(e,r){t(e,r);try{i.removeSignatureListener(l)}catch(n){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},c);return l}},{key:"removeSignatureListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_wsOnRootNotification",value:function(e){var t=U(e,Ii),r=t.result,n=t.subscription;this._handleServerNotification(n,[r])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:function(){var e=(0,l.Z)((0,c.Z)().mark((function e(t){return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),oo=function(){function e(t){(0,h.Z)(this,e),this._keypair=void 0,this._keypair=t||b().sign.keyPair()}return(0,p.Z)(e,[{key:"publicKey",get:function(){return new Rr(this._keypair.publicKey)}},{key:"secretKey",get:function(){return this._keypair.secretKey}}],[{key:"generate",value:function(){return new e(b().sign.keyPair())}},{key:"fromSecretKey",value:function(t,r){var n=b().sign.keyPair.fromSecretKey(t);if(!r||!r.skipValidation){var i=(new TextEncoder).encode("@solana/web3.js-validation-v1"),o=b().sign.detached(i,n.secretKey);if(!b().sign.detached.verify(i,o,n.publicKey))throw new Error("provided secretKey is invali
2d")}return new e(n)}},{key:"fromSeed",value:function(t){return new e(b().sign.keyPair.fromSeed(t))}}]),e}(),ao=_.n_([_.u8("numSignatures"),_.u8("padding"),_.KB("signatureOffset"),_.KB("signatureInstructionIndex"),_.KB("publicKeyOffset"),_.KB("publicKeyInstructionIndex"),_.KB("messageDataOffset"),_.KB("messageDataSize"),_.KB("messageInstructionIndex")]),so=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"createInstructionWithPublicKey",value:function(t){var r=t.publicKey,n=t.message,i=t.signature,o=t.instructionIndex;sn(32===r.length,"Public Key must be ".concat(32," bytes but received ").concat(r.length," bytes")),sn(64===i.length,"Signature must be ".concat(64," bytes but received ").concat(i.length," bytes"));var a=ao.span,s=a+r.length,u=s+i.length,c=m.lW.alloc(u+n.length),l=null==o?65535:o;return ao.encode({numSignatures:1,padding:0,signatureOffset:s,signatureInstructionIndex:l,publicKeyOffset:a,publicKeyInstructionIndex:l,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:l},c),c.fill(r,a),c.fill(i,s),c.fill(n,u),new cn({keys:[],programId:e.programId,data:c})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,r=e.message,n=e.instructionIndex;sn(64===t.length,"Private key must be ".concat(64," bytes but received ").concat(t.length," bytes"));try{var i=oo.fromSecretKey(t),o=i.publicKey.toBytes(),a=b().sign.detached(r,i.secretKey);return this.createInstructionWithPublicKey({publicKey:o,message:r,signature:a,instructionIndex:n})}catch(s){throw new Error("Error creating instruction; ".concat(s))}}}]),e}();so.programId=new Rr("Ed25519SigVerify111111111111111111111111111");var uo=new Rr("StakeConfig11111111111111111111111111111111"),co=(0,p.Z)((function e(t,r,n){(0,h.Z)(this,e),this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=r,this.custodian=n}));co.default=new co(0,0,Rr.default);var lo=Object.freeze({Initialize:{index:0,layout:_.n_([_.Jq("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"authorized";return _.n_([Ur("staker"),Ur("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return _.n_([_.gM("unixTimestamp"),_.gM("epoch"),Ur("custodian")],e)}()])},Authorize:{index:1,layout:_.n_([_.Jq("instruction"),Ur("newAuthorized"),_.Jq("stakeAuthorizationType")])},Delegate:{index:2,layout:_.n_([_.Jq("instruction")])},Split:{index:3,layout:_.n_([_.Jq("instruction"),_.gM("lamports")])},Withdraw:{index:4,layout:_.n_([_.Jq("instruction"),_.gM("lamports")])},Deactivate:{index:5,layout:_.n_([_.Jq("instruction")])},Merge:{index:7,layout:_.n_([_.Jq("instruction")])},AuthorizeWithSeed:{index:8,layout:_.n_([_.Jq("instruction"),Ur("newAuthorized"),_.Jq("stakeAuthorizationType"),Fr("authoritySeed"),Ur("authorityOwner")])}}),fo=(Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,r=e.authorized,n=e.lockup||co.default,i=Kr(lo.Initialize,{authorized:{staker:me(r.staker.toBuffer()),withdrawer:me(r.withdrawer.toBuffer())},lockup:{unixTimestamp:n.unixTimestamp,epoch:n.epoch,custodian:me(n.custodian.toBuffer())}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:$r,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new cn(o)}},{key:"createAccountWithSeed",value:function(e){var t=new ln;t.add(dn.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var r=e.stakePubkey,n=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"createAccount",value:function(e){var t=new ln;t.add(dn.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var r=e.stakePubkey,n=e.authorized,i=e.lockup;return t.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=e.votePubkey,i=Kr(lo.Delegate);return(new ln).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:en,isSigner:!1,isWritable:!1},{pubkey:uo,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=e.newAuthorizedPubkey,i=e.stakeAuthorizationType,o=e.custodianPubkey,a=Kr(lo.Authorize,{newAuthorized:me(n.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Jr,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new ln).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,r=e.authorityBase,n=e.authoritySeed,i=e.authorityOwner,o=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,s=e.custodianPubkey,u=Kr(lo.AuthorizeWithSeed,{newAuthorized:me(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:n,authorityOwner:me(i.toBuffer())}),c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:Jr,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ln).add({keys:c,programId:this.programId,data:u})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=e.splitStakePubkey,i=e.lamports,o=Kr(lo.Split,{lamports:i});return new cn({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}},{key:"split",value:function(e){var t=new ln;return t.add(dn.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=e.splitStakePubkey,i=e.basePubkey,o=e.seed,a=e.lamports,s=new ln;return s.add(dn.allocate({accountPubkey:n,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:r,splitStakePubkey:n,lamports:a}))}},{key:"merge",value:function(e){var t=e.stakePubkey,r=e.sourceStakePubKey,n=e.authorizedPubkey,i=Kr(lo.Merge);return(new ln).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:en,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=e.toPubkey,i=e.lamports,o=e.custodianPubkey,a=Kr(lo.Withdraw,{lamports:i}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:en,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new ln).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,r=e.authorizedPubkey,n=Kr(lo.Deactivate);return(new ln).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}}]),e}());fo.programId=new Rr("Stake11111111111111111111111111111111111111"),fo.space=2
200;var ho=le().publicKeyCreate,po=le().ecdsaSign,vo=_.n_([_.u8("numSignatures"),_.KB("signatureOffset"),_.u8("signatureInstructionIndex"),_.KB("ethAddressOffset"),_.u8("ethAddressInstructionIndex"),_.KB("messageDataOffset"),_.KB("messageDataSize"),_.u8("messageInstructionIndex"),_.Ik(20,"ethAddress"),_.Ik(64,"signature"),_.u8("recoveryId")]),bo=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"publicKeyToEthAddress",value:function(e){sn(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return m.lW.from(de().keccak_256.update(me(e)).digest()).slice(-20)}catch(t){throw new Error("Error constructing Ethereum address: ".concat(t))}}},{key:"createInstructionWithPublicKey",value:function(t){var r=t.publicKey,n=t.message,i=t.signature,o=t.recoveryId,a=t.instructionIndex;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(r),message:n,signature:i,recoveryId:o,instructionIndex:a})}},{key:"createInstructionWithEthAddress",value:function(t){var r,n=t.ethAddress,i=t.message,o=t.signature,a=t.recoveryId,s=t.instructionIndex,u=void 0===s?0:s;sn(20===(r="string"===typeof n?n.startsWith("0x")?m.lW.from(n.substr(2),"hex"):m.lW.from(n,"hex"):n).length,"Address must be ".concat(20," bytes but received ").concat(r.length," bytes"));var c=12+r.length,l=c+o.length+1,f=m.lW.alloc(vo.span+i.length);return vo.encode({numSignatures:1,signatureOffset:c,signatureInstructionIndex:u,ethAddressOffset:12,ethAddressInstructionIndex:u,messageDataOffset:l,messageDataSize:i.length,messageInstructionIndex:u,signature:me(o),ethAddress:me(r),recoveryId:a},f),f.fill(me(i),vo.span),new cn({keys:[],programId:e.programId,data:f})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,r=e.message,n=e.instructionIndex;sn(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{var i=me(t),o=ho(i,!1).slice(1),a=m.lW.from(de().keccak_256.update(me(r)).digest()),s=po(a,i),u=s.signature,c=s.recid;return this.createInstructionWithPublicKey({publicKey:o,message:r,signature:u,recoveryId:c,instructionIndex:n})}catch(l){throw new Error("Error creating instruction; ".concat(l))}}}]),e}();bo.programId=new Rr("KeccakSecp256k11111111111111111111111111111");new Rr("Va1idator1nfo111111111111111111111111111111"),re({name:ee(),website:X(ee()),details:X(ee()),keybaseUsername:X(ee())}),new Rr("Vote111111111111111111111111111111111111111"),_.n_([Ur("nodePubkey"),Ur("authorizedWithdrawer"),_.u8("commission"),_._O(),_.A9(_.n_([_._O("slot"),_.Jq("confirmationCount")]),_.cv(_.Jq(),-8),"votes"),_.u8("rootSlotValid"),_._O("rootSlot"),_._O(),_.A9(_.n_([_._O("epoch"),Ur("authorizedVoter")]),_.cv(_.Jq(),-8),"authorizedVoters"),_.n_([_.A9(_.n_([Ur("authorizedPubkey"),_._O("epochOfLastAuthorizedSwitch"),_._O("targetEpoch")]),32,"buf"),_._O("idx"),_.u8("isEmpty")],"priorVoters"),_._O(),_.A9(_.n_([_._O("epoch"),_._O("credits"),_._O("prevCredits")]),_.cv(_.Jq(),-8),"epochCredits"),_.n_([_._O("slot"),_._O("timestamp")],"lastTimestamp")]);var mo=Object.freeze({InitializeAccount:{index:0,layout:_.n_([_.Jq("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteInit";return _.n_([Ur("nodePubkey"),Ur("authorizedVoter"),Ur("authorizedWithdrawer"),_.u8("commission")],e)}()])},Authorize:{index:1,layout:_.n_([_.Jq("instruction"),Ur("newAuthorized"),_.Jq("voteAuthorizationType")])},Withdraw:{index:3,layout:_.n_([_.Jq("instruction"),_.gM("lamports")])}}),go=(Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,r=e.nodePubkey,n=e.voteInit,i=Kr(mo.InitializeAccount,{voteInit:{nodePubkey:me(n.nodePubkey.toBuffer()),authorizedVoter:me(n.authorizedVoter.toBuffer()),authorizedWithdrawer:me(n.authorizedWithdrawer.toBuffer()),commission:n.commission}}),o={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:$r,isSigner:!1,isWritable:!1},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new cn(o)}},{key:"createAccount",value:function(e){var t=new ln;return t.add(dn.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,r=e.authorizedPubkey,n=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=Kr(mo.Authorize,{newAuthorized:me(n.toBuffer()),voteAuthorizationType:i.index}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:Jr,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return(new ln).add({keys:a,programId:this.programId,data:o})}},{key:"withdraw",value:function(e){var t=e.votePubkey,r=e.authorizedWithdrawerPubkey,n=e.lamports,i=e.toPubkey,o=Kr(mo.Withdraw,{lamports:n}),a=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return(new ln).add({keys:a,programId:this.programId,data:o})}}]),e}());go.programId=new Rr("Vote111111111111111111111111111111111111111"),go.space=3731},8443:function(e,t,r){"use strict";var n=r(6690).default,i=r(9728).default,o=r(6115).default,a=r(1655).default,s=r(6389).default,u=r(2009),c=r(4038),l="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=h,t.h2=50;var f=2147483647;function d(e){if(e>
2f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return p(e,t,r)}function p(e,t,r){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=d(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return g(e,t,r);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return h.from(n,t,r);var i=function(e){if(h.isBuffer(e)){var t=0|y(e.length),r=d(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?d(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function v(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function b(e){return v(e),d(e<0?0:0|y(e))}function m(e){for(var t=e.length<0?0:0|y(e.length),r=d(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,h.prototype),n}function y(e){if(e>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function w(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(i)return n?-1:J(e).length;t=(""+t).toLowerCase(),i=!0}}function k(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),te(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=h.from(t,n)),h.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;
vendor: 1,102 bytes, line 2
2o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function M(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o,a=t.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(te(s))return o;e[r+o]=s}return o}function A(e,t,r,n){return $(J(t,e.length-r),e,r,n)}function E(e,t,r,n){return $(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function I(e,t,r,n){return $(X(t),e,r,n)}function C(e,t,r,n){return $(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function T(e,t,r){return 0===t&&r===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,r))}function N(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u=void 0,c=void 0,l=void 0,f=void 0;switch(s){case 1:o<128&&(a=o);break;
vendor: 16,013 bytes, line 2
2case 2:128===(192&(u=e[i+1]))&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=e[i+1],c=e[i+2],128===(192&u)&&128===(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(r){return!1}}(),h.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,r){return p(e,t,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,r){return function(e,t,r){return v(e),e<=0?d(e):void 0!==t?"string"===typeof r?d(e).fill(t,r):d(e).fill(t):d(e)}(e,t,r)},h.allocUnsafe=function(e){return b(e)},h.allocUnsafeSlow=function(e){return b(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(e){switch(String(e).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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=h.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(ee(o,Uint8Array))i+o.length>n.length?(h.isBuffer(o)||(o=h.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else{if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?N(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},l&&(h.prototype[l]=h.prototype.inspect),h.prototype.compare=function(e,t,r,n,i){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},h.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},h.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},h.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},h.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function L(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=re[e[o]];return i}function B(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function z(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Z(e,t,r,n,i){V(t,n,i,e,r,7);var o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,i){V(t,n,i,e,r,7);var o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function U(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,0,r,4),c.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,0,r,8),c.write(e,t,r,n,52,8),r+8}h.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},h.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},h.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigUInt64LE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},h.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},h.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},h.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigInt64LE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},h.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},h.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},h.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},h.prototype.copy=function(e,t,r,n){if(!h.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},h.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=h.isBuffer(e)?e:h.from(e,n),s=a.length;
2if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var q={};function H(e,t,r){q[e]=function(r){a(c,r);var u=s(c);function c(){var r;return n(this,c),r=u.call(this),Object.defineProperty(o(r),"message",{value:t.apply(o(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(e,"]"),r.stack,delete r.name,r}return i(c,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),c}(r)}function K(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function V(e,t,r,n,i,o){if(e>r||e<t){var a,s="bigint"===typeof t?"n":"";throw a=o>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(o+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(o+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(r).concat(s),new q.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){Y(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Q(t,e.length-(r+1))}(n,i,o)}function Y(e,t){if("number"!==typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw Y(e,r),new q.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=K(String(r)):"bigint"===typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=K(i)),i+="n"),n+=" It must be ".concat(t,". Received ").concat(i)}),RangeError);var G=/[^+/0-9A-Za-z-_]/g;function J(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(e){return u.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,r,n){var i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}();function ne(e){return"undefined"===typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}},2307:function(e,t,r){"use strict";var n=r(2543).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,u=e.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function f(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===u;)i++,r++;for(var a=(e.length-r)*c+1>>>0,l=new Uint8Array(a);e[r];){var f=t[e.charCodeAt(r)];if(255===f)return;for(var d=0,h=a-1;(0!==f||d<o)&&-1!==h;h--,d++)f+=s*l[h]>>>0,l[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");o=d,r++}for(var p=a-o;p!==a&&0===l[p];)p++;var v=n.allocUnsafe(i+(a-p));v.fill(0,0,i);for(var b=i;p!==a;)v[b++]=l[p++];return v}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var c=(a-o)*l+1>>>0,f=new Uint8Array(c);o!==a;){for(var d=t[o],h=0,p=c-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*f[p]>>>0,f[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var v=c-i;v!==c&&0===f[v];)v++;for(var b=u.repeat(r);v<c;++v)b+=e.charAt(f[v]);return b},decodeUnsafe:f,decode:function(e){var t=f(e);
2if(t)return t;throw new Error("Non-base"+s+" character")}}}},2009:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6070:function(e,t,r){"use strict";var n=r(9778).Buffer;t.oU=function(e){var t=n.from(e);t.reverse();var r=t.toString("hex");return 0===r.length?BigInt(0):BigInt("0x".concat(r))},t.k$=function(e,t){var r=e.toString(16),i=n.from(r.padStart(2*t,"0").slice(0,2*t),"hex");return i.reverse(),i}},518:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(6601).Buffer}catch(I){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>
vendor: 7,358 bytes, line 2
226-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(I){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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"],h=[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],p=[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];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var v=f.modrn(l).toString(e);r=(f=f.idivn(l)).isZero()?v+r:d[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function v(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 10,025 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,v=h>>>13,b=0|a[2],m=8191&b,g=b>>>13,y=0|a[3],w=8191&y,k=y>>>13,x=0|a[4],S=8191&x,_=x>>>13,M=0|a[5],A=8191&M,E=M>>>13,I=0|a[6],C=8191&I,T=I>>>13,N=0|a[7],O=8191&N,P=N>>>13,L=0|a[8],R=8191&L,B=L>>>13,z=0|a[9],D=8191&z,Z=z>>>13,j=0|s[0],U=8191&j,F=j>>>13,W=0|s[1],q=8191&W,H=W>>>13,K=0|s[2],V=8191&K,Y=K>>>13,Q=0|s[3],G=8191&Q,J=Q>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;r.negative=e.negative^t.negative,r.length=19;var be=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,F))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,F))+Math.imul(v,U)|0,o=Math.imul(v,F);var me=(c+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,U),i=(i=Math.imul(m,F))+Math.imul(g,U)|0,o=Math.imul(g,F),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,H)|0;var ge=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,F))+Math.imul(k,U)|0,o=Math.imul(k,F),n=n+Math.imul(m,q)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,Y)|0;var ye=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,F))+Math.imul(_,U)|0,o=Math.imul(_,F),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,J)|0;var we=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,F))+Math.imul(E,U)|0,o=Math.imul(E,F),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0;var ke=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,F))+Math.imul(T,U)|0,o=Math.imul(T,F),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0;var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,U),i=(i=Math.imul(O,F))+Math.imul(P,U)|0,o=Math.imul(P,F),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,H)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0;var Se=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,F))+Math.imul(B,U)|0,o=Math.imul(B,F),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,H)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,H)|0,n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0;var _e=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,F))+Math.imul(Z,U)|0,o=Math.imul(Z,F),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,de)|0;var Me=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,H))+Math.imul(Z,q)|0,o=Math.imul(Z,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(m,fe)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ae=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Y))+Math.imul(Z,V)|0,o=Math.imul(Z,Y),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,ve)|0)+Math.imul(g,pe)|0)
vendor: 4,409 bytes, line 2
2)<<13)|0;c=((o=o+Math.imul(g,ve)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(Z,G)|0,o=Math.imul(Z,J),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Ie=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ve)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(Z,$)|0,o=Math.imul(Z,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ce=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,ve)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(Z,re)|0,o=Math.imul(Z,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Te=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,ve)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(Z,oe)|0,o=Math.imul(Z,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,de)|0;var Ne=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ve)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,ve)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(D,ue),i=(i=Math.imul(D,ce))+Math.imul(Z,ue)|0,o=Math.imul(Z,ce),n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Oe=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ve)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,ve)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,de))+Math.imul(Z,fe)|0,o=Math.imul(Z,de);var Pe=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ve)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Le=(c+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,ve))+Math.imul(Z,pe)|0))<<13)|0;return c=((o=Math.imul(Z,ve))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=be,u[1]=me,u[2]=ge,u[3]=ye,u[4]=we,u[5]=ke,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=Me,u[10]=Ae,u[11]=Ee,u[12]=Ie,u[13]=Ce,u[14]=Te,u[15]=Ne,u[16]=Oe,u[17]=Pe,u[18]=Le,0!==c&&(u[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(e,t,r){return m(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=v),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?v(this,e,t):r<1024?m(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],v=n[l+h],b=r[l+h+a],m=n[l+h+a],g=f*b-d*m;
vendor: 4,529 bytes, line 2
2m=f*m+d*b,b=g,r[l+h]=p+b,n[l+h]=v+m,r[l+h+a]=p-b,n[l+h+a]=v-m,h!==s&&(g=u*f-c*d,d=u*d+c*f,f=g)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?
vendor: 16,443 bytes, line 2
2(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function k(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}k.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(e,t){e.iushrn(this.n,0,t)},k.prototype.imulK=function(e){return e.imul(this.k)},i(x,k),x.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(S,k),i(_,k),i(M,k),M.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new S;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var v=h,b=0;0!==v.cmp(s);b++)v=v.redSqr();n(b<p);var m=this.pow(f,new o(1).iushln(p-b-1));d=d.redMul(m),f=m.redSqr(),h=h.redMul(f),p=b}return d},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},5127:function(e,t,r){"use strict";var n=r(9778).Buffer,i=r(8416).default,o=r(7424).default,a=r(4704).default,s=r(6690).default,u=r(9728).default,c=r(1655).default,l=r(6389).default,f=r(3496).default,d=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),h=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),p=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}
2,v=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&d(t,e,r);return h(t,e),t},b=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;var m=b(r(518)),g=b(r(6315)),y=v(r(9344)),w=new("function"!==typeof TextDecoder?y.TextDecoder:TextDecoder)("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"===typeof e&&(e=n.from(e,"utf8")),g.default.encode(n.from(e))},t.baseDecode=function(e){return n.from(g.default.decode(e))};var k=1024,x=function(e){c(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,e)).fieldPath=[],n.originalMessage=e,n}return u(r,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),r}(f(Error));t.BorshError=x;var S=function(){function e(){s(this,e),this.buf=n.alloc(k),this.length=0}return u(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=n.concat([this.buf,n.alloc(k)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(n.from(new m.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(n.from(new m.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(n.from(new m.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(n.from(new m.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=n.concat([n.from(this.buf.subarray(0,this.length)),e,n.alloc(k)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=n.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(n.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var r,n=a(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;this.maybeResize(),t(i)}}catch(o){n.e(o)}finally{n.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function _(e,t,r){var n=r.value;r.value=function(){try{for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,t)}catch(o){if(o instanceof RangeError){var i=o.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(i)>=0)throw new x("Reached the end of buffer when deserializing")}throw o}}}t.BinaryWriter=S;var M=function(){function e(t){s(this,e),this.buf=t,this.offset=0}return u(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new m.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new m.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new m.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new m.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new x("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return w.decode(t)}catch(r){throw new x("Error decoding UTF-8 string: ".concat(r))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),r=Array(),n=0;n<t;++n)r.push(e());return r}}]),e}();function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}function E(e,t,r,n,i){try{if("string"===typeof n)i["write".concat(A(n))](r);
2else if(n instanceof Array)if("number"===typeof n[0]){if(r.length!==n[0])throw new x("Expecting byte array of length ".concat(n[0],", but got ").concat(r.length," bytes"));i.writeFixedArray(r)}else if(2===n.length&&"number"===typeof n[1]){if(r.length!==n[1])throw new x("Expecting byte array of length ".concat(n[1],", but got ").concat(r.length," bytes"));for(var o=0;o<n[1];o++)E(e,null,r[o],n[0],i)}else i.writeArray(r,(function(r){E(e,t,r,n[0],i)}));else if(void 0!==n.kind)switch(n.kind){case"option":null===r||void 0===r?i.writeU8(0):(i.writeU8(1),E(e,t,r,n.type,i));break;case"map":i.writeU32(r.size),r.forEach((function(r,o){E(e,t,o,n.key,i),E(e,t,r,n.value,i)}));break;default:throw new x("FieldType ".concat(n," unrecognized"))}else I(e,r,i)}catch(a){throw a instanceof x&&a.addToFieldPath(t),a}}function I(e,t,r){if("function"!==typeof t.borshSerialize){var n=e.get(t.constructor);if(!n)throw new x("Class ".concat(t.constructor.name," is missing in schema"));if("struct"===n.kind)n.fields.map((function(n){var i=o(n,2),a=i[0],s=i[1];E(e,a,t[a],s,r)}));else{if("enum"!==n.kind)throw new x("Unexpected schema kind: ".concat(n.kind," for ").concat(t.constructor.name));for(var i=t[n.field],a=0;a<n.values.length;++a){var s=o(n.values[a],2),u=s[0],c=s[1];if(u===i){r.writeU8(a),E(e,u,t[u],c,r);break}}}}else t.borshSerialize(r)}function C(e,t,r,n){try{if("string"===typeof r)return n["read".concat(A(r))]();if(r instanceof Array){if("number"===typeof r[0])return n.readFixedArray(r[0]);if("number"===typeof r[1]){for(var i=[],o=0;o<r[1];o++)i.push(C(e,null,r[0],n));return i}return n.readArray((function(){return C(e,t,r[0],n)}))}if("option"===r.kind)return n.readU8()?C(e,t,r.type,n):void 0;if("map"===r.kind){for(var a=new Map,s=n.readU32(),u=0;u<s;u++){var c=C(e,t,r.key,n),l=C(e,t,r.value,n);a.set(c,l)}return a}return T(e,r,n)}catch(f){throw f instanceof x&&f.addToFieldPath(t),f}}function T(e,t,r){if("function"===typeof t.borshDeserialize)return t.borshDeserialize(r);var n=e.get(t);if(!n)throw new x("Class ".concat(t.name," is missing in schema"));if("struct"===n.kind){var s,u={},c=a(e.get(t).fields);try{for(c.s();!(s=c.n()).done;){var l=o(s.value,2),f=l[0],d=l[1];u[f]=C(e,f,d,r)}}catch(m){c.e(m)}finally{c.f()}return new t(u)}if("enum"===n.kind){var h=r.readU8();if(h>=n.values.length)throw new x("Enum index: ".concat(h," is out of range"));var p=o(n.values[h],2),v=p[0],b=C(e,v,p[1],r);return new t(i({},v,b))}throw new x("Unexpected schema kind: ".concat(n.kind," for ").concat(t.constructor.name))}p([_],M.prototype,"readU8",null),p([_],M.prototype,"readU16",null),p([_],M.prototype,"readU32",null),p([_],M.prototype,"readU64",null),p([_],M.prototype,"readU128",null),p([_],M.prototype,"readU256",null),p([_],M.prototype,"readU512",null),p([_],M.prototype,"readString",null),p([_],M.prototype,"readFixedArray",null),p([_],M.prototype,"readArray",null),t.BinaryReader=M,t.serialize=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,n=new r;return I(e,t,n),n.toArray()},t.deserialize=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:M,i=new n(r),o=T(e,t,i);if(i.offset<r.length)throw new x("Unexpected ".concat(r.length-i.offset," bytes after deserialized data"));return o},t.deserializeUnchecked=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:M,i=new n(r);return T(e,t,i)}},6084:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(9214);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(a){}},6315:function(e,t,r){var n=r(2307);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},9778:function(e,t,r){"use strict";var n=r(6690).default,i=r(9728).default,o=r(6115).default,a=r(1655).default,s=r(6389).default,u=r(2009),c=r(4038),l="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var f=2147483647;function d(e){if(e>
2f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return b(e)}return p(e,t,r)}function p(e,t,r){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=d(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return g(e,t,r);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return h.from(n,t,r);var i=function(e){if(h.isBuffer(e)){var t=0|y(e.length),r=d(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?d(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function v(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function b(e){return v(e),d(e<0?0:0|y(e))}function m(e){for(var t=e.length<0?0:0|y(e.length),r=d(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,h.prototype),n}function y(e){if(e>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function w(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(i)return n?-1:J(e).length;t=(""+t).toLowerCase(),i=!0}}function k(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),te(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=h.from(t,n)),h.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;
vendor: 1,102 bytes, line 2
2o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function M(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o,a=t.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(te(s))return o;e[r+o]=s}return o}function A(e,t,r,n){return $(J(t,e.length-r),e,r,n)}function E(e,t,r,n){return $(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function I(e,t,r,n){return $(X(t),e,r,n)}function C(e,t,r,n){return $(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function T(e,t,r){return 0===t&&r===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,r))}function N(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u=void 0,c=void 0,l=void 0,f=void 0;switch(s){case 1:o<128&&(a=o);break;
vendor: 16,043 bytes, line 2
2case 2:128===(192&(u=e[i+1]))&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=e[i+1],c=e[i+2],128===(192&u)&&128===(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.kMaxLength=f,h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(r){return!1}}(),h.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,r){return p(e,t,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,r){return function(e,t,r){return v(e),e<=0?d(e):void 0!==t?"string"===typeof r?d(e).fill(t,r):d(e).fill(t):d(e)}(e,t,r)},h.allocUnsafe=function(e){return b(e)},h.allocUnsafeSlow=function(e){return b(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(e){switch(String(e).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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=h.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(ee(o,Uint8Array))i+o.length>n.length?(h.isBuffer(o)||(o=h.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else{if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?N(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},l&&(h.prototype[l]=h.prototype.inspect),h.prototype.compare=function(e,t,r,n,i){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},h.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},h.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},h.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},h.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return I(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function L(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=re[e[o]];return i}function B(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function z(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,i,o){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Z(e,t,r,n,i){V(t,n,i,e,r,7);var o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function j(e,t,r,n,i){V(t,n,i,e,r,7);var o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function U(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,0,r,4),c.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,0,r,8),c.write(e,t,r,n,52,8),r+8}h.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,h.prototype),n},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),h.prototype.readBigUInt64BE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),h.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},h.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},h.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=ne((function(e){Y(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Q(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),c.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),c.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),c.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),c.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||D(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigUInt64LE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return j(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},h.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},h.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},h.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},h.prototype.writeBigInt64LE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=ne((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return j(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},h.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},h.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},h.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},h.prototype.copy=function(e,t,r,n){if(!h.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},h.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=h.isBuffer(e)?e:h.from(e,n),s=a.length;
2if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var q={};function H(e,t,r){q[e]=function(r){a(c,r);var u=s(c);function c(){var r;return n(this,c),r=u.call(this),Object.defineProperty(o(r),"message",{value:t.apply(o(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(e,"]"),r.stack,delete r.name,r}return i(c,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),c}(r)}function K(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function V(e,t,r,n,i,o){if(e>r||e<t){var a,s="bigint"===typeof t?"n":"";throw a=o>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(o+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(o+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(r).concat(s),new q.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,r){Y(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Q(t,e.length-(r+1))}(n,i,o)}function Y(e,t){if("number"!==typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw Y(e,r),new q.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=K(String(r)):"bigint"===typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=K(i)),i+="n"),n+=" It must be ".concat(t,". Received ").concat(i)}),RangeError);var G=/[^+/0-9A-Za-z-_]/g;function J(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(e){return u.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function $(e,t,r,n){var i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var re=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}();function ne(e){return"undefined"===typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}},6289:function(e,t,r){"use strict";var n=t;n.version=r(8597).i8,n.utils=r(2629),n.rand=r(6084),n.curve=r(7075),n.curves=r(3297),n.ec=r(4170),n.eddsa=r(156)},5950:function(e,t,r){"use strict";var n=r(7548),i=r(2629),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 5,187 bytes, line 2
2function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var l=a+r.step-1;l>=a;l--)u=(u<<1)+n[l];c.push(u)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(u=c[a])===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));f=f.add(d)}return f.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++;if(c>=0&&l++,u=u.dblp(l),c<0)break;var f=a[c];s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,l=this._wnafT1,f=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);l[s]=p.wnd,f[s]=p.points}for(s=n-1;s>=1;s-=2){var v=s-1,b=s;if(1===l[v]&&1===l[b]){var m=[t[v],null,null,t[b]];0===t[v].y.cmp(t[b].y)?(m[1]=t[v].add(t[b]),m[2]=t[v].toJ().mixedAdd(t[b].neg())):0===t[v].y.cmp(t[b].y.redNeg())?(m[1]=t[v].toJ().mixedAdd(t[b]),m[2]=t[v].add(t[b].neg())):(m[1]=t[v].toJ().mixedAdd(t[b]),m[2]=t[v].toJ().mixedAdd(t[b].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[v],r[b]);for(h=Math.max(y[0].length,h),d[v]=new Array(h),d[b]=new Array(h),u=0;u<h;u++){var w=0|y[0][u],k=0|y[1][u];d[v][u]=g[3*(w+1)+(k+1)],d[b][u]=0,f[v]=m}}else d[v]=o(r[v],l[v],this._bitLength),d[b]=o(r[b],l[b],this._bitLength),h=Math.max(d[v].length,h),h=Math.max(d[b].length,h)}var x=this.jpoint(null,null,null),S=this._wnafT4;for(s=h;s>=0;s--){for(var _=0;s>=0;){var M=!0;for(u=0;u<n;u++)S[u]=0|d[u][s],0!==S[u]&&(M=!1);if(!M)break;_++,s--}if(s>=0&&_++,x=x.dblp(_),s<0)break;for(u=0;u<n;u++){var A=S[u];0!==A&&(A>0?c=f[u][A-1>>1]:A<0&&(c=f[u][-A-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s<n;s++)f[s]=null;return i?x:x.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r)return 6===e[0]?s(e[e.length-1]%2===0):7===e[0]&&s(e[e.length-1]%2===1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2124:function(e,t,r){"use strict";var n=r(2629),i=r(7548),o=r(2534),a=r(5950),s=n.assert;function u(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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 i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,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()))))}
vendor: 5,197 bytes, line 2
2o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(c,l,d,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},7075:function(e,t,r){"use strict";var n=t;n.base=r(5950),n.short=r(5536),n.mont=r(9113),n.edwards=r(2124)},9113:function(e,t,r){"use strict";var n=r(7548),i=r(2534),o=r(5950),a=r(2629);
vendor: 6,283 bytes, line 2
2function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},5536:function(e,t,r){"use strict";var n=r(2629),i=r(7548),o=r(2534),a=r(5950),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.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(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(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 l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,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}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),v=new i(0),b=new i(0),m=new i(1),g=0;0!==d.cmpn(0);){var y=h.div(d);c=h.sub(y.mul(d)),l=b.sub(y.mul(p));var w=m.sub(y.mul(v));if(!n&&c.cmp(f)<0)t=u.neg(),r=p,n=c.neg(),o=l;else if(n&&2===++g)break;u=c,h=d,d=c,b=p,p=l,m=v,v=w}a=c.neg(),s=l;var k=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(k)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,195 bytes, line 2
2omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.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]},c.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),d=u.redSqr().redIAdd(l).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
vendor: 4,090 bytes, line 2
2var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var l=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),v=h.redSqr().redISub(p.redAdd(p)),b=p.redISub(v),m=h.redMul(b);m=m.redIAdd(m).redISub(d);var g=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=v,s=g,c=m}return this.curve.jpoint(o,c.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),v=p.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=v.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),v=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(v),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=h.redMul(p.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,347 bytes, line 2
2,l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},3297:function(e,t,r){"use strict";var n,i=t,o=r(3125),a=r(7075),s=r(2629).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:o.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"]}),c("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:o.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(1025)}catch(l){n=void 0}c("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 10,724 bytes, line 2
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4170:function(e,t,r){"use strict";var n=r(7548),i=r(7411),o=r(2629),a=r(3297),s=r(6084),u=o.assert,c=r(615),l=r(3198);function f(e){if(!(this instanceof f))return new f(e);"string"===typeof e&&(u(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var v=p.getX(),b=v.umod(this.n);if(0!==b.cmpn(0)){var m=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==v.cmp(b)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new l({r:b,s:m,recoveryParam:g})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),v=c.mul(h).umod(o);return this.g.mulAdd(p,s,v)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},615:function(e,t,r){"use strict";var n=r(7548),i=r(2629).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},o.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},3198:function(e,t,r){"use strict";var n=r(7548),i=r(2629),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=u(e,r);if(!1===l)return!1;if(e.length!==l+r.place)return!1;var f=e.slice(r.place,l+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},156:function(e,t,r){"use strict";var n=r(3125),i=r(3297),o=r(2629),a=o.assert,s=o.parseBytes,u=r(1722),c=r(8574);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!==(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},1722:function(e,t,r){"use strict";var n=r(2629),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},8574:function(e,t,r){"use strict";var n=r(7548),i=r(2629),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},1025:function(e
vendor: 26,140 bytes, line 2
2){e.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"]]}}},
vendor: 1,427 bytes, line 2
22629:function(e,t,r){"use strict";var n=t,i=r(7548),o=r(2325),a=r(4034);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0===(1&c)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},7548:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;
vendor: 4,110 bytes, line 2
2"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(5568).Buffer}catch(M){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],f=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,350 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?v+r:l[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;
vendor: 10,021 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,v=h>>>13,b=0|a[2],m=8191&b,g=b>>>13,y=0|a[3],w=8191&y,k=y>>>13,x=0|a[4],S=8191&x,_=x>>>13,M=0|a[5],A=8191&M,E=M>>>13,I=0|a[6],C=8191&I,T=I>>>13,N=0|a[7],O=8191&N,P=N>>>13,L=0|a[8],R=8191&L,B=L>>>13,z=0|a[9],D=8191&z,Z=z>>>13,j=0|s[0],U=8191&j,F=j>>>13,W=0|s[1],q=8191&W,H=W>>>13,K=0|s[2],V=8191&K,Y=K>>>13,Q=0|s[3],G=8191&Q,J=Q>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;r.negative=e.negative^t.negative,r.length=19;var be=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,F))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,F))+Math.imul(v,U)|0,o=Math.imul(v,F);var me=(c+(n=n+Math.imul(f,q)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,U),i=(i=Math.imul(m,F))+Math.imul(g,U)|0,o=Math.imul(g,F),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(v,q)|0,o=o+Math.imul(v,H)|0;var ge=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,V)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,F))+Math.imul(k,U)|0,o=Math.imul(k,F),n=n+Math.imul(m,q)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,H)|0,n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,Y)|0;var ye=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,F))+Math.imul(_,U)|0,o=Math.imul(_,F),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,H)|0)+Math.imul(k,q)|0,o=o+Math.imul(k,H)|0,n=n+Math.imul(m,V)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,Y)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,J)|0;var we=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,F))+Math.imul(E,U)|0,o=Math.imul(E,F),n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,ee)|0;var ke=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,F))+Math.imul(T,U)|0,o=Math.imul(T,F),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0;var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,U),i=(i=Math.imul(O,F))+Math.imul(P,U)|0,o=Math.imul(P,F),n=n+Math.imul(C,q)|0,i=(i=i+Math.imul(C,H)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(m,re)|0,i=(i=i+Math.imul(m,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0;var Se=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,F))+Math.imul(B,U)|0,o=Math.imul(B,F),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,H)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,H)|0,n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0;var _e=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,F))+Math.imul(Z,U)|0,o=Math.imul(Z,F),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,Y)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,de)|0;var Me=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,q),i=(i=Math.imul(D,H))+Math.imul(Z,q)|0,o=Math.imul(Z,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,Y)|0,n=n+Math.imul(O,G)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,ce)|0,n=n+Math.imul(m,fe)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ae=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Y))+Math.imul(Z,V)|0,o=Math.imul(Z,Y),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(k,fe)|0,o=o+Math.imul(k,de)|0;var Ee=(c+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,ve)|0)+Math.imul(g,pe)|0)
vendor: 4,421 bytes, line 2
2)<<13)|0;c=((o=o+Math.imul(g,ve)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,J))+Math.imul(Z,G)|0,o=Math.imul(Z,J),n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Ie=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ve)|0)+Math.imul(k,pe)|0))<<13)|0;c=((o=o+Math.imul(k,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(Z,$)|0,o=Math.imul(Z,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ce=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,ve)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,re),i=(i=Math.imul(D,ne))+Math.imul(Z,re)|0,o=Math.imul(Z,ne),n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Te=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,ve)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(Z,oe)|0,o=Math.imul(Z,ae),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,de)|0;var Ne=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ve)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,ve)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(D,ue),i=(i=Math.imul(D,ce))+Math.imul(Z,ue)|0,o=Math.imul(Z,ce),n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Oe=(c+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,ve)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,ve)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,fe),i=(i=Math.imul(D,de))+Math.imul(Z,fe)|0,o=Math.imul(Z,de);var Pe=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ve)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Le=(c+(n=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,ve))+Math.imul(Z,pe)|0))<<13)|0;return c=((o=Math.imul(Z,ve))+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,u[0]=be,u[1]=me,u[2]=ge,u[3]=ye,u[4]=we,u[5]=ke,u[6]=xe,u[7]=Se,u[8]=_e,u[9]=Me,u[10]=Ae,u[11]=Ee,u[12]=Ie,u[13]=Ce,u[14]=Te,u[15]=Ne,u[16]=Oe,u[17]=Pe,u[18]=Le,0!==c&&(u[19]=c,r.length++),r};function v(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):v(this,e,t),r},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],v=n[l+h],b=r[l+h+a],m=n[l+h+a],g=f*b-d*m;
vendor: 5,749 bytes, line 2
2m=f*m+d*b,b=g,r[l+h]=p+b,n[l+h]=v+m,r[l+h+a]=p-b,n[l+h+a]=v-m,h!==s&&(g=u*f-c*d,d=u*d+c*f,f=g)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 4,738 bytes, line 2
226,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;
vendor: 10,639 bytes, line 2
2if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(y,g),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,g),i(k,g),i(x,g),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var v=h,b=0;0!==v.cmp(s);b++)v=v.redSqr();n(b<p);var m=this.pow(f,new o(1).iushln(p-b-1));d=d.redMul(m),f=m.redSqr(),h=h.redMul(f),p=b}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new _(e)},i(_,S),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},7143:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;
2if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},7465:function(e){"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return e}function l(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
vendor: 9,786 bytes, line 2
2,set:function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"===typeof u)n(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r<c;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3125:function(e,t,r){var n=t;n.utils=r(9046),n.common=r(9684),n.sha=r(9194),n.ripemd=r(6645),n.hmac=r(3609),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},9684:function(e,t,r){"use strict";var n=r(9046),i=r(2325);function o(){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}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},3609:function(e,t,r){"use strict";var n=r(9046),i=r(2325);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},6645:function(e,t,r){"use strict";var n=r(9046),i=r(9684),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,c),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],g=r,y=n,w=i,k=c,x=l,S=0;S<80;S++){var _=a(o(u(r,f(S,n,i,c),e[p[S]+t],d(S)),b[S]),l);r=l,l=c,c=o(i,10),i=n,n=_,_=a(o(u(g,f(79-S,y,w,k),e[v[S]+t],h(S)),m[S]),x),g=x,x=k,k=o(w,10),w=y,y=_}_=s(this.h[1],i,k),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],l,g),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,w),this.h[0]=_},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],v=[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],b=[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],m=[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]},9194:function(e,t,r){"use strict";t.sha1=r(7361),t.sha224=r(7753),t.sha256=r(6966),t.sha384=r(1233),t.sha512=r(9063)},7361:function(e,t,r){"use strict";var n=r(9046),i=r(9684),o=r(4343),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),v=u(a(i,5),c(p,o,l,d),h,r[n],f[p]);h=d,d=l,l=a(o,30),o=i,i=v}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7753:function(e,t,r){"use strict";var n=r(9046),i=r(6966);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},6966:function(e,t,r){"use strict";var n=r(9046),i=r(9684),o=r(4343),a=r(2325),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,v=o.g1_256,b=i.BlockHash,m=[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,2756
vendor: 8,530 bytes, line 2
2734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(g,b),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(v(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],b=this.h[2],m=this.h[3],g=this.h[4],y=this.h[5],w=this.h[6],k=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=c(k,h(g),l(g,y,w),this.k[n],r[n]),S=s(d(i),f(i,o,b));k=w,w=y,y=g,g=s(m,x),m=b,b=o,o=i,i=s(x,S)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],k)},g.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1233:function(e,t,r){"use strict";var n=r(9046),i=r(9063);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},9063:function(e,t,r){"use strict";var n=r(9046),i=r(9684),o=r(2325),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,l=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,v=n.sum64_5_hi,b=n.sum64_5_lo,m=i.BlockHash,g=[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 y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function _(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function N(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,m),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=T(r[n-4],r[n-3]),o=N(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=I(r[n-30],r[n-29]),c=C(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,u,c,l,f),r[n+1]=p(i,o,a,s,u,c,l,f)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],m=this.h[8],g=this.h[9],y=this.h[10],I=this.h[11],C=this.h[12],T=this.h[13],N=this.h[14],O=this.h[15];o(this.k.length===r.length);for(var P=0;P<r.length;P+=2){var L=N,R=O,B=A(m,g),z=E(m,g),D=w(m,g,y,I,C),Z=k(m,g,y,I,C,T),j=this.k[P],U=this.k[P+1],F=r[P],W=r[P+1],q=v(L,R,B,z,D,Z,j,U,F,W),H=b(L,R,B,z,D,Z,j,U,F,W);L=_(n,i),R=M(n,i),B=x(n,i,a,s,u),z=S(n,i,a,s,u,c);var K=f(L,R,B,z),V=d(L,R,B,z);N=C,O=T,C=y,T=I,y=m,I=g,m=f(h,p,q,H),g=d(p,p,q,H),h=u,p=c,u=a,c=s,a=n,s=i,n=f(q,H,K,V),i=d(q,H,K,V)}l(this.h,0,n,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,h,p),l(this.h,8,m,g),l(this.h,10,y,I),l(this.h,12,C,T),l(this.h,14,N,O)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},4343:function(e,t,r){"use strict";var n=r(9046).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},9046:function(e,t,r){"use strict";var n=r(2325),i=r(2534);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4===0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>
20,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+n>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+r+i+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},7411:function(e,t,r){"use strict";var n=r(3125),i=r(4034),o=r(2325);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},2110:function(e,t,r){"use strict";var n=r(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=u(t),v=u(r),b=0;b<a.length;++b){var m=a[b];if(!o[m]&&(!n||!n[m])&&(!v||!v[m])&&(!s||!s[m])){var g=d(r,m);try{c(t,m,g)}catch(y){}}}}return t}},746:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case b:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===b},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===w||e.$$typeof===m)},t.typeOf=k},8309:function(e,t,r){"use strict";e.exports=r(746)},4038:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*v}},2534:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},9976:function(e,t,r){"use strict";var n=r(3741).v4,i=r(9353),o=function e(t,r){if(!(this instanceof e))return new e(t,r);r||(r={}),this.options={reviver:"undefined"!==typeof r.reviver?r.reviver:null,replacer:"undefined"!==typeof r.replacer?r.replacer:null,generator:"undefined"!==typeof r.generator?r.generator:function(){return n()},version:"undefined"!==typeof r.version?r.version:2,notificationIdNull:"boolean"===typeof r.notificationIdNull&&r.notificationIdNull},this.callServer=t};e.exports=o,o.prototype.request=function(e,t,r,n){var o,a=this,s=null,u=Array.isArray(e)&&"function"===typeof t;if(1===this.options.version&&u)throw new TypeError("JSON-RPC 1.0 does not support batching");if(u||!u&&e&&"object"===typeof e&&"function"===typeof t)n=t,s=e;else{"function"===typeof r&&(n=r,r=void 0);var c="function"===typeof n;try{s=i(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(l){if(c)return n(l);throw l}if(!c)return s}try{o=JSON.stringify(s,this.options.replacer)}catch(l){return n(l)}return this.callServer(o,(function(e,t){a._parseResponse(e,t,n)})),s},o.prototype._parseResponse=function(e,t,r){if(e)r(e);else{if(!t)return r();var n;try{n=JSON.parse(t,this.options.reviver)}catch(e){return r(e)}if(3===r.length){if(Array.isArray(n)){var i=function(e){return"undefined"!==typeof e.error};return r(null,n.filter(i),n.filter((function(e){return!i(e)})))}return r(null,n.error,n.result)}r(null,n)}}},9353:function(e,t,r){"use strict";var n=r(3741).v4;e.exports=function(e,t,r,i){if("string"!==typeof e)throw new TypeError(e+" must be a string");var o="number"===typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");var a={method:e};if(2===o&&(a.jsonrpc="2.0"),t){if("object"!==typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");a.params=t}if("undefined"===typeof r){var s="function"===typeof i.generator?i.generator:function(){return n()};a.id=s(a,i)}else 2===o&&null===r?i.notificationIdNull&&(a.id=null):a.id=r;return a}},7898:function(e,t,r){var n,i=r(1426);!function(){"use strict";
2var o="input is invalid type",a="object"===typeof window,s=a?window:{};s.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&"object"===typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?s=r.g:u&&(s=self);var c=!s.JS_SHA3_NO_COMMON_JS&&e.exports,l=r.amdO,f=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[4,1024,262144,67108864],p=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],m=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!f||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new R(e,t,e).update(n)[r]()}},k=function(e,t,r){return function(n,i){return new R(e,t,i).update(n)[r]()}},x=function(e,t,r){return function(t,n,i,o){return E["cshake"+e].update(t,n,i,o)[r]()}},S=function(e,t,r){return function(t,n,i,o){return E["kmac"+e].update(t,n,i,o)[r]()}},_=function(e,t,r,n){for(var i=0;i<g.length;++i){var o=g[i];e[o]=t(r,n,o)}return e},M=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new R(e,t,e)},r.update=function(e){return r.create().update(e)},_(r,w,e,t)},A=[{name:"keccak",padding:[1,256,65536,16777216],bits:b,createMethod:M},{name:"sha3",padding:[6,1536,393216,100663296],bits:b,createMethod:M},{name:"shake",padding:[31,7936,2031616,520093696],bits:m,createMethod:function(e,t){var r=k(e,t,"hex");return r.create=function(r){return new R(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},_(r,k,e,t)}},{name:"cshake",padding:h,bits:m,createMethod:function(e,t){var r=y[e],n=x(e,0,"hex");return n.create=function(n,i,o){return i||o?new R(e,t,n).bytepad([i,o],r):E["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},_(n,x,e,t)}},{name:"kmac",padding:h,bits:m,createMethod:function(e,t){var r=y[e],n=S(e,0,"hex");return n.create=function(n,i,o){return new B(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},_(n,S,e,t)}}],E={},I=[],C=0;C<A.length;
vendor: 4,741 bytes, line 2
2++C)for(var T=A[C],N=T.bits,O=0;O<N.length;++O){var P=T.name+"_"+N[O];if(I.push(P),E[P]=T.createMethod(N[O],T.padding),"sha3"!==T.name){var L=T.name+N[O];I.push(L),E[L]=E[P]}}function R(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){R.call(this,e,t,r)}R.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var n,i,a=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,d=this.s;l<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<c+1;++n)a[n]=0;if(t)for(n=this.start;l<u&&n<s;++l)a[n>>2]|=e[l]<<p[3&n++];else for(n=this.start;l<u&&n<s;++l)(i=e.charCodeAt(l))<128?a[n>>2]|=i<<p[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<p[3&n++],a[n>>2]|=(128|i>>6&63)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),a[n>>2]|=(240|i>>18)<<p[3&n++],a[n>>2]|=(128|i>>12&63)<<p[3&n++],a[n>>2]|=(128|i>>6&63)<<p[3&n++],a[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[c],n=0;n<c;++n)d[n]^=a[n];z(d),this.reset=!0}else this.start=n}return this},R.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},R.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},R.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];z(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<n;){for(o=0;o<t&&a<n;++o,++a)e=r[o],s+=d[e>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t===0&&(z(r),o=0)}return i&&(e=r[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)u[a]=r[o];a%t===0&&z(r)}return i&&(u[o]=r[o],e=e.slice(0,s)),e},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r===0&&z(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},B.prototype=new R,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var z=function(e){var t,r,n,i,o,a,s,u,c,l,f,d,h,p,b,m,g,y,w,k,x,S,_,M,A,E,I,C,T,N,O,P,L,R,B,z,D,Z,j,U,F,W,q,H,K,V,Y,Q,G,J,X,$,ee,te,re,ne,ie,oe,ae,se,ue,ce,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>
231),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|h>>>31),r=c^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],V=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,C=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,W=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,Q=e[22]<<10|e[23]>>>22,G=e[23]<<10|e[22]>>>22,N=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,z=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,P=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,M=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>
29,ie=e[16]<<23|e[17]>>>9,Z=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,k=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,F=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,_=e[49]<<14|e[48]>>>18,e[0]=p^~m&y,e[1]=b^~g&w,e[10]=M^~E&C,e[11]=A^~I&T,e[20]=R^~z&Z,e[21]=B^~D&j,e[30]=H^~V&Q,e[31]=K^~Y&G,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=m^~y&k,e[3]=g^~w&x,e[12]=E^~C&N,e[13]=I^~T&O,e[22]=z^~Z&U,e[23]=D^~j&F,e[32]=V^~Q&J,e[33]=Y^~G&X,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=y^~k&S,e[5]=w^~x&_,e[14]=C^~N&P,e[15]=T^~O&L,e[24]=Z^~U&W,e[25]=j^~F&q,e[34]=Q^~J&$,e[35]=G^~X&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=k^~S&p,e[7]=x^~_&b,e[16]=N^~P&M,e[17]=O^~L&A,e[26]=U^~W&R,e[27]=F^~q&B,e[36]=J^~$&H,e[37]=X^~ee&K,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=S^~p&m,e[9]=_^~b&g,e[18]=P^~M&E,e[19]=L^~A&I,e[28]=W^~R&z,e[29]=q^~B&D,e[38]=$^~H&V,e[39]=ee^~K&Y,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=v[n],e[1]^=v[n+1]};if(c)e.exports=E;else{for(C=0;C<I.length;++C)s[I[C]]=E[I[C]];l&&(void 0===(n=function(){return E}.call(t,r,t,e))||(e.exports=n))}}()},2325:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},4034:function(e,t){"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},1426:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},4463:function(e,t,r){"use strict";var n=r(2791),i=r(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];b[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function y(e,t,r,n){var i=b.hasOwnProperty(t)?b[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,g);b[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,g);b[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,g);b[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),E=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var B,z=Object.assign;function D(e){if(void 0===B)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var Z=!1;function j(e,t){if(!e||Z)return"";Z=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{Z=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?D(e):""}function U(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case M:return"Profiler";case _:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return F(e(t))}catch(r){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=H(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var r=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function G(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=q(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){J(e,t);var r=q(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&Y(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+q(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function oe(e,t){var r=q(t.value),n=q(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le,fe=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function be(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=ve(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,_e=null;function Me(e){if(e=yi(e)){if("function"!==typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=ki(t),xe(e.stateNode,e.type,t))}}function Ae(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Ee(){if(Se){var e=Se,t=_e;if(_e=Se=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Ie(e,t){return e(t)}function Ce(){}var Te=!1;function Ne(e,t,r){if(Te)return e(t,r);Te=!0;try{return Ie(e,t,r)}finally{Te=!1,(null!==Se||null!==_e)&&(Ce(),Ee())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var n=ki(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(o(231,t,typeof r));return r}var Pe=!1;if(l)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(le){Pe=!1}function Re(e,t,r,n,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(l){this.onError(l)}}var Be=!1,ze=null,De=!1,Ze=null,je={onError:function(e){Be=!0,ze=e}};function Ue(e,t,r,n,i,o,a,s,u){Be=!1,ze=null,Re.apply(je,arguments)}function Fe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(Fe(e)!==e)throw Error(o(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return qe(i),e;if(a===n)return qe(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,u=i.child;u;){if(u===r){s=!0,r=i,n=a;break}if(u===n){s=!0,n=i,r=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===r){s=!0,r=a,n=i;break}if(u===n){s=!0,n=a,r=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ve=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Je=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,lt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=ft(s):0!==(o&=a)&&(n=ft(o))}else 0!==(a=r&~i)?n=ft(a):0!==o&&(n=ft(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function bt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function mt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function gt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,St,_t,Mt,At=!1,Et=[],It=null,Ct=null,Tt=null,Nt=new Map,Ot=new Map,Pt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Bt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=yi(t))&&xt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function zt(e){var t=gi(e.target);if(null!==t){var r=Fe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=We(r)))return e.blockedOn=t,void Mt(e.priority,(function(){St(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=yi(r))&&xt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Zt(e,t,r){Dt(e)&&r.delete(t)}function jt(){At=!1,null!==It&&Dt(It)&&(It=null),null!==Ct&&Dt(Ct)&&(Ct=null),null!==Tt&&Dt(Tt)&&(Tt=null),Nt.forEach(Zt),Ot.forEach(Zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Ft(e){function t(t){return Ut(t,e)}if(0<Et.length){Ut(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==It&&Ut(It,e),null!==Ct&&Ut(Ct,e),null!==Tt&&Ut(Tt,e),Nt.forEach(t),Ot.forEach(t),r=0;r<Pt.length;r++)(n=Pt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Pt.length&&null===(r=Pt[0]).blockedOn;)zt(r),null===r.blockedOn&&Pt.shift()}var Wt=w.ReactCurrentBatchConfig,qt=!0;function Ht(e,t,r,n){var i=yt,o=Wt.transition;Wt.transition=null;try{yt=1,Vt(e,t,r,n)}finally{yt=i,Wt.transition=o}}function Kt(e,t,r,n){var i=yt,o=Wt.transition;Wt.transition=null;try{yt=4,Vt(e,t,r,n)}finally{yt=i,Wt.transition=o}}function Vt(e,t,r,n){if(qt){var i=Qt(e,t,r,n);if(null===i)qn(e,t,n,Yt,r),Rt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return It=Bt(It,e,t,r,n,i),!0;case"dragenter":return Ct=Bt(Ct,e,t,r,n,i),!0;case"mouseover":return Tt=Bt(Tt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,Bt(Nt.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ot.set(o,Bt(Ot.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Rt(e,n),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=yi(i);if(null!==o&&kt(o),null===(o=Qt(e,t,r,n))&&qn(e,t,n,Yt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else qn(e,t,n,null,r)}}var Yt=null;function Qt(e,t,r,n){if(Yt=null,null!==(e=gi(e=ke(n))))if(null===(t=Fe(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case $e:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,$t=null;function er(){if($t)return $t;var e,t,r=Xt,n=r.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(ur),lr=z({},ur,{view:0,detail:0}),fr=ir(lr),dr=z({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),hr=ir(dr),pr=ir(z({},dr,{dataTransfer:0})),vr=ir(z({},lr,{relatedTarget:0})),br=ir(z({},ur,{animationName:0,elapsedTime:0,pseudoElement:0})),mr=z({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gr=ir(mr),yr=ir(z({},ur,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xr[e])&&!!t[e]}function _r(){return Sr}var Mr=z({},lr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ar=ir(Mr),Er=ir(z({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ir=ir(z({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Cr=ir(z({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tr=z({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nr=ir(Tr),Or=[9,13,27,32],Pr=l&&"CompositionEvent"in window,Lr=null;l&&"documentMode"in document&&(Lr=document.documentMode);var Rr=l&&"TextEvent"in window&&!Lr,Br=l&&(!Pr||Lr&&8<Lr&&11>=Lr),zr=String.fromCharCode(32),Dr=!1;function Zr(e,t){switch(e){case"keyup":return-1!==Or.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1;var Fr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fr[e.type]:"textarea"===t}function qr(e,t,r,n){Ae(n),0<(t=Kn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hr=null,Kr=null;function Vr(e){Dn(e,0)}function Yr(e){if(V(wi(e)))return e}function Qr(e,t){if("change"===e)return t}var Gr=!1;if(l){var Jr;if(l){var Xr="oninput"in document;if(!Xr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Xr="function"===typeof $r.oninput}Jr=Xr}else Jr=!1;Gr=Jr&&(!document.documentMode||9<document.documentMode)}function en(){Hr&&(Hr.detachEvent("onpropertychange",tn),Kr=Hr=null)}function tn(e){if("value"===e.propertyName&&Yr(Kr)){var t=[];qr(t,Kr,e,ke(e)),Ne(Vr,t)}}function rn(e,t,r){"focusin"===e?(en(),Kr=r,(Hr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yr(Kr)}function on(e,t){if("click"===e)return Yr(t)}function an(e,t){if("input"===e||"change"===e)return Yr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function un(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!f.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ln(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Y((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=ln(r,o);var a=ln(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vn=l&&"documentMode"in document&&11>=document.documentMode,bn=null,mn=null,gn=null,yn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;yn||null==bn||bn!==Y(n)||("selectionStart"in(n=bn)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},gn&&un(gn,n)||(gn=n,0<(n=Kn(mn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bn)))}function kn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var xn={animationend:kn("Animation","AnimationEnd"),animationiteration:kn("Animation","AnimationIteration"),animationstart:kn("Animation","AnimationStart"),transitionend:kn("Transition","TransitionEnd")},Sn={},_n={};function Mn(e){if(Sn[e])return Sn[e];if(!xn[e])return e;var t,r=xn[e];for(t in r)if(r.hasOwnProperty(t)&&t in _n)return Sn[e]=r[t];return e}l&&(_n=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);var An=Mn("animationend"),En=Mn("animationiteration"),In=Mn("animationstart"),Cn=Mn("transitionend"),Tn=new Map,Nn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function On(e,t){Tn.set(e,t),u(t,[e])}for(var Pn=0;Pn<Nn.length;Pn++){var Ln=Nn[Pn];On(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}On(An,"onAnimationEnd"),On(En,"onAnimationIteration"),On(In,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Cn,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));function zn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,u,c){if(Ue.apply(this,arguments),Be){if(!Be)throw Error(o(198));var l=ze;Be=!1,ze=null,De||(De=!0,Ze=l)}}(n,t,void 0,e),e.currentTarget=null}function Dn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;zn(i,s,c),o=u}else for(a=0;a<n.length;a++){if(u=(s=n[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;zn(i,s,c),o=u}}}if(De)throw e=Ze,De=!1,Ze=null,e}function Zn(e,t){var r=t[vi];void 0===r&&(r=t[vi]=new Set);var n=e+"__bubble";r.has(n)||(Wn(t,e,2,!1),r.add(n))}function jn(e,t,r){var n=0;t&&(n|=4),Wn(r,e,n,t)}var Un="_reactListening"+Math.random().toString(36).slice(2);function Fn(e){if(!e[Un]){e[Un]=!0,a.forEach((function(t){"selectionchange"!==t&&(Bn.has(t)||jn(t,!1,e),jn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Un]||(t[Un]=!0,jn("selectionchange",!1,t))}}function Wn(e,t,r,n){switch(Gt(t)){case 1:var i=Ht;break;case 4:i=Kt;break;default:i=Vt}r=i.bind(null,t,r,e),i=void 0,!Pe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function qn(e,t,r,n,i){var o=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=gi(s)))return;if(5===(u=a.tag)||6===u){n=o=a;continue e}s=s.parentNode}}n=n.return}Ne((function(){var n=o,i=ke(r),a=[];e:{var s=Tn.get(e);if(void 0!==s){var u=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":u=Ar;break;case"focusin":c="focus",u=vr;break;case"focusout":c="blur",u=vr;break;case"beforeblur":case"afterblur":u=vr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Ir;break;case An:case En:case In:u=br;break;case Cn:u=Cr;break;case"scroll":u=fr;break;case"wheel":u=Nr;break;case"copy":case"cut":case"paste":u=gr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Er}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var h,p=n;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Oe(p,d))&&l.push(Hn(p,v,h)))),f)break;p=p.return}0<l.length&&(s=new u(s,c,null,r,i),a.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(c=r.relatedTarget||r.fromElement)||!gi(c)&&!c[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=n,null!==(c=(c=r.relatedTarget||r.toElement)?gi(c):null)&&(c!==(f=Fe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=n),u!==c)){if(l=hr,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(l=Er,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:wi(u),h=null==c?s:wi(c),(s=new l(v,p+"leave",u,r,i)).target=f,s.relatedTarget=h,v=null,gi(i)===n&&((l=new l(d,p+"enter",c,r,i)).target=h,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(d=c,p=0,h=l=u;h;h=Vn(h))p++;for(h=0,v=d;v;v=Vn(v))h++;for(;0<p-h;)l=Vn(l),p--;for(;0<h-p;)d=Vn(d),h--;for(;p--;){if(l===d||null!==d&&l===d.alternate)break e;l=Vn(l),d=Vn(d)}l=null}else l=null;null!==u&&Yn(a,s,u,l,!1),null!==c&&null!==f&&Yn(a,f,c,l,!0)}if("select"===(u=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var b=Qr;else if(Wr(s))if(Gr)b=an;else{b=nn;var m=rn}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(b=on);switch(b&&(b=b(e,n))?qr(a,b,r,i):(m&&m(e,s,n),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=n?wi(n):window,e){case"focusin":(Wr(m)||"true"===m.contentEditable)&&(bn=m,mn=n,gn=null);break;case"focusout":gn=mn=bn=null;break;case"mousedown":yn=!0;break;case"contextmenu":case"mouseup":case"dragend":yn=!1,wn(a,r,i);break;case"selectionchange":if(vn)break;case"keydown":case"keyup":wn(a,r,i)}var g;if(Pr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Ur?Zr(e,r)&&(y="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(y="onCompositionStart");y&&(Br&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==y?"onCompositionEnd"===y&&Ur&&(g=er()):(Xt="value"in(Jt=i)?Jt.value:Jt.textContent,Ur=!0)),0<(m=Kn(n,y)).length&&(y=new yr(y,e,null,r,i),a.push({event:y,listeners:m}),g?y.data=g:null!==(g=jr(r))&&(y.data=g))),(g=Rr?function(e,t){switch(e){case"compositionend":return jr(t);case"keypress":return 32!==t.which?null:(Dr=!0,zr);case"textInput":return(e=t.data)===zr&&Dr?null:e;default:return null}}(e,r):function(e,t){if(Ur)return"compositionend"===e||!Pr&&Zr(e,t)?(e=er(),$t=Xt=Jt=null,Ur=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Br&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Kn(n,"onBeforeInput")).length&&(i=new yr("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=g))}Dn(a,t)}))}function Hn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Kn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Oe(e,r))&&n.unshift(Hn(e,o,i)),null!=(o=Oe(e,t))&&n.push(Hn(e,o,i))),e=e.return}return n}function Vn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,u=s.alternate,c=s.stateNode;if(null!==u&&u===n)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Oe(r,o))&&a.unshift(Hn(r,u,s)):i||null!=(u=Oe(r,o))&&a.push(Hn(r,u,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Qn=/\r\n?/g,Gn=/\u0000|\uFFFD/g;function Jn(e){return("string"===typeof e?e:""+e).replace(Qn,"\n").replace(Gn,"")}function Xn(e,t,r){if(t=Jn(t),Jn(e)!==t&&r)throw Error(o(425))}function $n(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var r=t,n=0;do{var i=r.nextSibling;
vendor: 91,530 bytes, line 2
2if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void Ft(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);Ft(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,vi="__reactEvents$"+fi,bi="__reactListeners$"+fi,mi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[di]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=li(e);null!==e;){if(r=e[di])return r;e=li(e)}return t}r=(e=r).parentNode}return null}function yi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ki(e){return e[hi]||null}var xi=[],Si=-1;function _i(e){return{current:e}}function Mi(e){0>Si||(e.current=xi[Si],xi[Si]=null,Si--)}function Ai(e,t){Si++,xi[Si]=e.current,e.current=t}var Ei={},Ii=_i(Ei),Ci=_i(!1),Ti=Ei;function Ni(e,t){var r=e.type.contextTypes;if(!r)return Ei;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){Mi(Ci),Mi(Ii)}function Li(e,t,r){if(Ii.current!==Ei)throw Error(o(168));Ai(Ii,t),Ai(Ci,r)}function Ri(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,W(e)||"Unknown",i));return z({},r,n)}function Bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ti=Ii.current,Ai(Ii,e),Ai(Ci,Ci.current),!0}function zi(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Ri(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,Mi(Ci),Mi(Ii),Ai(Ii,e)):Mi(Ci),Ai(Ci,r)}var Di=null,Zi=!1,ji=!1;function Ui(e){null===Di?Di=[e]:Di.push(e)}function Fi(){if(!ji&&null!==Di){ji=!0;var e=0,t=yt;try{var r=Di;for(yt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Di=null,Zi=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),Ve($e,Fi),i}finally{yt=t,ji=!1}}return null}var Wi=[],qi=0,Hi=null,Ki=0,Vi=[],Yi=0,Qi=null,Gi=1,Ji="";function Xi(e,t){Wi[qi++]=Ki,Wi[qi++]=Hi,Hi=e,Ki=t}function $i(e,t,r){Vi[Yi++]=Gi,Vi[Yi++]=Ji,Vi[Yi++]=Qi,Qi=e;var n=Gi;e=Ji;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Gi=1<<32-at(t)+i|r<<i|n,Ji=o+e}else Gi=1<<o|r<<i|n,Ji=e}function eo(e){null!==e.return&&(Xi(e,1),$i(e,1,0))}function to(e){for(;e===Hi;)Hi=Wi[--qi],Wi[qi]=null,Ki=Wi[--qi],Wi[qi]=null;for(;e===Qi;)Qi=Vi[--Yi],Vi[Yi]=null,Ji=Vi[--Yi],Vi[Yi]=null,Gi=Vi[--Yi],Vi[Yi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Nc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Qi?{id:Gi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Nc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function uo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=ci(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function lo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function fo(e){if(e!==ro)return!1;if(!io)return lo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(uo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(lo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ci(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=no;e;)e=ci(e.nextSibling)}function po(){no=ro=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var bo=w.ReactCurrentBatchConfig;function mo(e,t){if(e&&e.defaultProps){for(var r in t=z({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var go=_i(null),yo=null,wo=null,ko=null;function xo(){ko=wo=yo=null}function So(e){var t=go.current;Mi(go),e._currentValue=t}function _o(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mo(e,t){yo=e,ko=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ao(e){var t=e._currentValue;if(ko!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===yo)throw Error(o(308));wo=e,yo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Eo=null;function Io(e){null===Eo?Eo=[e]:Eo.push(e)}function Co(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Io(t)):(r.next=i.next,i.next=r),t.interleaved=r,To(e,n)}function To(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var No=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ro(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Iu)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,To(e,r)}return null===(i=n.interleaved)?(t.next=t,Io(n)):(t.next=i.next,i.next=t),n.interleaved=t,To(e,r)}function Bo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}function zo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Do(e,t,r,n){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===a?o=c:a.next=c,a=u;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==a&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=u))}if(null!==o){var f=i.baseState;for(a=0,l=c=u=null,s=o;;){var d=s.lane,h=s.eventTime;if((n&d)===d){null!==l&&(l=l.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=r,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=z({},f,d);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=h,u=f):l=l.next=h,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===l&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=l,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Bu|=a,e.lanes=a,e.memoizedState=f}}function Zo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!==typeof i)throw Error(o(191,i));i.call(n)}}}var jo=(new n.Component).refs;function Uo(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:z({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Fo={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Lo(n,i);o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Ro(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=Lo(n,i);o.tag=1,o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Ro(e,o,i))&&(rc(t,e,i,n),Bo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),i=Lo(r,n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Ro(e,i,n))&&(rc(t,e,n,r),Bo(t,e,n))}};function Wo(e,t,r,n,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!un(r,n)||!un(i,o))}function qo(e,t,r){var n=!1,i=Ei,o=t.contextType;return"object"===typeof o&&null!==o?o=Ao(o):(i=Oi(t)?Ti:Ii.current,o=(n=null!==(n=t.contextTypes)&&void 0!==n)?Ni(e,i):Ei),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Fo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ho(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Fo.enqueueReplaceState(t,t.state,null)}function Ko(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=jo,Oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Ao(o):(o=Oi(t)?Ti:Ii.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Uo(e,t,o,r),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Fo.enqueueReplaceState(i,i.state,null),Do(e,r,i,n),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Vo(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===jo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Go(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=zc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){var o=r.type;return o===S?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&Qo(o)===t.type)?((n=i(t,r.props)).ref=Vo(e,t,r),n.return=e,n):((n=Lc(r.type,r.key,r.props,null,e.mode,n)).ref=Vo(e,t,r),n.return=e,n)}function l(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Dc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,o){return null===t||7!==t.tag?((t=Rc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zc(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(r=Lc(t.type,t.key,t.props,null,e.mode,r)).ref=Vo(e,null,t),r.return=e,r;case x:return(t=Dc(t,e.mode,r)).return=e,t;case O:return d(e,(0,t._init)(t._payload),r)}if(te(t)||R(t))return(t=Rc(t,e.mode,r,null)).return=e,t;Yo(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==i?null:u(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return r.key===i?c(e,t,r,n):null;case x:return r.key===i?l(e,t,r,n):null;case O:return h(e,t,(i=r._init)(r._payload),n)}if(te(r)||R(r))return null!==i?null:f(e,t,r,n,null);Yo(e,r)}return null}function p(e,t,r,n,i){if("string"===typeof n&&""!==n||"number"===typeof n)return u(t,e=e.get(r)||null,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case x:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i);case O:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||R(n))return f(t,e=e.get(r)||null,n,i,null);Yo(t,n)}return null}function v(i,o,s,u){for(var c=null,l=null,f=o,v=o=0,b=null;null!==f&&v<s.length;v++){f.index>v?(b=f,f=null):b=f.sibling;var m=h(i,f,s[v],u);if(null===m){null===f&&(f=b);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===l?c=m:l.sibling=m,l=m,f=b}if(v===s.length)return r(i,f),io&&Xi(i,v),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(o=a(f,o,v),null===l?c=f:l.sibling=f,l=f);return io&&Xi(i,v),c}for(f=n(i,f);v<s.length;v++)null!==(b=p(f,i,v,s[v],u))&&(e&&null!==b.alternate&&f.delete(null===b.key?v:b.key),o=a(b,o,v),null===l?c=b:l.sibling=b,l=b);return e&&f.forEach((function(e){return t(i,e)})),io&&Xi(i,v),c}function b(i,s,u,c){var l=R(u);if("function"!==typeof l)throw Error(o(150));if(null==(u=l.call(u)))throw Error(o(151));for(var f=l=null,v=s,b=s=0,m=null,g=u.next();null!==v&&!g.done;b++,g=u.next()){v.index>b?(m=v,v=null):m=v.sibling;var y=h(i,v,g.value,c);if(null===y){null===v&&(v=m);break}e&&v&&null===y.alternate&&t(i,v),s=a(y,s,b),null===f?l=y:f.sibling=y,f=y,v=m}if(g.done)return r(i,v),io&&Xi(i,b),l;if(null===v){for(;!g.done;b++,g=u.next())null!==(g=d(i,g.value,c))&&(s=a(g,s,b),null===f?l=g:f.sibling=g,f=g);return io&&Xi(i,b),l}for(v=n(i,v);!g.done;b++,g=u.next())null!==(g=p(v,i,b,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?b:g.key),s=a(g,s,b),null===f?l=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),io&&Xi(i,b),l}return function e(n,o,a,u){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case k:e:{for(var c=a.key,l=o;null!==l;){if(l.key===c){if((c=a.type)===S){if(7===l.tag){r(n,l.sibling),(o=i(l,a.props.children)).return=n,n=o;break e}}else if(l.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===O&&Qo(c)===l.type){r(n,l.sibling),(o=i(l,a.props)).ref=Vo(n,l,a),o.return=n,n=o;break e}r(n,l);break}t(n,l),l=l.sibling}a.type===S?((o=Rc(a.props.children,n.mode,u,a.key)).return=n,n=o):((u=Lc(a.type,a.key,a.props,null,n.mode,u)).ref=Vo(n,o,a),u.return=n,n=u)}return s(n);case x:e:{for(l=a.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Dc(a,n.mode,u)).return=n,n=o}return s(n);case O:return e(n,o,(l=a._init)(a._payload),u)}if(te(a))return v(n,o,a,u);if(R(a))return b(n,o,a,u);Yo(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=zc(a,n.mode,u)).return=n,n=o),s(n)):r(n,o)}}var Jo=Go(!0),Xo=Go(!1),$o={},ea=_i($o),ta=_i($o),ra=_i($o);function na(e){if(e===$o)throw Error(o(174));return e}function ia(e,t){switch(Ai(ra,t),Ai(ta,e),Ai(ea,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mi(ea),Ai(ea,t)}function oa(){Mi(ea),Mi(ta),Mi(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=ue(t,e.type);t!==r&&(Ai(ta,e),Ai(ea,r))}function sa(e){ta.current===e&&(Mi(ea),Mi(ta))}var ua=_i(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=[];function fa(){for(var e=0;e<la.length;e++)la[e]._workInProgressVersionPrimary=null;la.length=0}var da=w.ReactCurrentDispatcher,ha=w.ReactCurrentBatchConfig,pa=0,va=null,ba=null,ma=null,ga=!1,ya=!1,wa=0,ka=0;function xa(){throw Error(o(321))}function Sa(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function _a(e,t,r,n,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:us,e=r(n,i),ya){a=0;do{if(ya=!1,wa=0,25<=a)throw Error(o(301));a+=1,ma=ba=null,t.updateQueue=null,da.current=cs,e=r(n,i)}while(ya)}if(da.current=as,t=null!==ba&&null!==ba.next,pa=0,ma=ba=va=null,ga=!1,t)throw Error(o(300));return e}function Ma(){var e=0!==wa;return wa=0,e}function Aa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function Ea(){if(null===ba){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ba.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ba=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ba=e).memoizedState,baseState:ba.baseState,baseQueue:ba.baseQueue,queue:ba.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function Ia(e,t){return"function"===typeof t?t(e):t}function Ca(e){var t=Ea(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=ba,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var u=s=null,c=null,l=a;do{var f=l.lane;if((pa&f)===f)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(u=c=d,s=n):c=c.next=d,va.lanes|=f,Bu|=f}l=l.next}while(null!==l&&l!==a);null===c?s=n:c.next=u,sn(n,t.memoizedState)||(ws=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,va.lanes|=a,Bu|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ta(e){var t=Ea(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Na(){}function Oa(e,t){var r=va,n=Ea(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,ws=!0),n=n.queue,qa(Ra.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(r.flags|=2048,Za(9,La.bind(null,r,n,i,t),void 0,null),null===Cu)throw Error(o(349));0!==(30&pa)||Pa(r,t,i)}return i}function Pa(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function La(e,t,r,n){t.value=r,t.getSnapshot=n,Ba(t)&&za(e)}function Ra(e,t,r){return r((function(){Ba(t)&&za(e)}))}function Ba(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function za(e){var t=To(e,1);null!==t&&rc(t,e,1,-1)}function Da(e){var t=Aa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,va,e),[t.memoizedState,e]}function Za(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ja(){return Ea().memoizedState}function Ua(e,t,r,n){var i=Aa();va.flags|=e,i.memoizedState=Za(1|t,r,void 0,void 0===n?null:n)}function Fa(e,t,r,n){var i=Ea();n=void 0===n?null:n;var o=void 0;if(null!==ba){var a=ba.memoizedState;if(o=a.destroy,null!==n&&Sa(n,a.deps))return void(i.memoizedState=Za(t,r,o,n))}va.flags|=e,i.memoizedState=Za(1|t,r,o,n)}function Wa(e,t){return Ua(8390656,8,e,t)}function qa(e,t){return Fa(2048,8,e,t)}function Ha(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Va(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Fa(4,4,Va.bind(null,t,e),r)}function Qa(){}function Ga(e,t){var r=Ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Sa(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ja(e,t){var r=Ea();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Sa(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Xa(e,t,r){return 0===(21&pa)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r):(sn(r,t)||(r=vt(),va.lanes|=r,Bu|=r,e.baseState=!0),t)}function $a(e,t){var r=yt;yt=0!==r&&4>r?r:4,e(!0);var n=ha.transition;ha.transition={};try{e(!1),t()}finally{yt=r,ha.transition=n}}function es(){return Ea().memoizedState}function ts(e,t,r){var n=tc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=Co(e,t,r,n))){rc(r,e,n,ec()),os(r,t,n)}}function rs(e,t,r){var n=tc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var u=t.interleaved;return null===u?(i.next=i,Io(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(c){}null!==(r=Co(e,t,i,n))&&(rc(r,e,n,i=ec()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ya=ga=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}var as={readContext:Ao,useCallback:xa,useContext:xa,useEffect:xa,useImperativeHandle:xa,useInsertionEffect:xa,useLayoutEffect:xa,useMemo:xa,useReducer:xa,useRef:xa,useState:xa,useDebugValue:xa,useDeferredValue:xa,useTransition:xa,useMutableSource:xa,useSyncExternalStore:xa,useId:xa,unstable_isNewReconciler:!1},ss={readContext:Ao,useCallback:function(e,t){return Aa().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Wa,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Ua(4194308,4,Va.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var r=Aa();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Aa();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,va,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Aa().memoizedState=e},useState:Da,useDebugValue:Qa,useDeferredValue:function(e){return Aa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=$a.bind(null,e[1]),Aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=va,i=Aa();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Cu)throw Error(o(349));0!==(30&pa)||Pa(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Wa(Ra.bind(null,n,a,e),[e]),n.flags|=2048,Za(9,La.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Aa(),t=Cu.identifierPrefix;if(io){var r=Ji;t=":"+t+"R"+(r=(Gi&~(1<<32-at(Gi)-1)).toString(32)+r),0<(r=wa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ka++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:Ao,useCallback:Ga,useContext:Ao,useEffect:qa,useImperativeHandle:Ya,useInsertionEffect:Ha,useLayoutEffect:Ka,useMemo:Ja,useReducer:Ca,useRef:ja,useState:function(){return Ca(Ia)},useDebugValue:Qa,useDeferredValue:function(e){return Xa(Ea(),ba.memoizedState,e)},useTransition:function(){return[Ca(Ia)[0],Ea().memoizedState]},useMutableSource:Na,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ao,useCallback:Ga,useContext:Ao,useEffect:qa,useImperativeHandle:Ya,useInsertionEffect:Ha,useLayoutEffect:Ka,useMemo:Ja,useReducer:Ta,useRef:ja,useState:function(){return Ta(Ia)},useDebugValue:Qa,useDeferredValue:function(e){var t=Ea();return null===ba?t.memoizedState=e:Xa(t,ba.memoizedState,e)},useTransition:function(){return[Ta(Ia)[0],Ea().memoizedState]},useMutableSource:Na,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1};function ls(e,t){try{var r="",n=t;do{r+=U(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Lo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qu||(qu=!0,Hu=n),ds(0,t)},r}function vs(e,t,r){(r=Lo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!==typeof n&&(null===Ku?Ku=new Set([this]):Ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function bs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Mc.bind(null,e,t,r),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Lo(-1,1)).tag=2,Ro(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=w.ReactCurrentOwner,ws=!1;function ks(e,t,r,n){t.child=null===e?Xo(t,null,r,n):Jo(t,e.child,r,n)}function xs(e,t,r,n,i){r=r.render;var o=t.ref;return Mo(t,i),n=_a(e,t,r,n,o,i),r=Ma(),null===e||ws?(io&&r&&eo(t),t.flags|=1,ks(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var o=r.type;return"function"!==typeof o||Oc(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Lc(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,_s(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:un)(a,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Pc(o,n)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(un(o,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Es(e,t,r,n,i)}function Ms(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Pu,Ou),Ou|=r;else{if(0===(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Pu,Ou),Ou|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ai(Pu,Ou),Ou|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ai(Pu,Ou),Ou|=n;return ks(e,t,i,r),t.child}function As(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,r,n,i){var o=Oi(r)?Ti:Ii.current;return o=Ni(t,o),Mo(t,i),r=_a(e,t,r,n,o,i),n=Ma(),null===e||ws?(io&&n&&eo(t),t.flags|=1,ks(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Is(e,t,r,n,i){if(Oi(r)){var o=!0;Bi(t)}else o=!1;if(Mo(t,i),null===t.stateNode)Ws(e,t),qo(t,r,n),Ko(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=r.contextType;"object"===typeof c&&null!==c?c=Ao(c):c=Ni(t,c=Oi(r)?Ti:Ii.current);var l=r.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||u!==c)&&Ho(t,a,n,c),No=!1;var d=t.memoizedState;a.state=d,Do(t,n,a,i),u=t.memoizedState,s!==n||d!==u||Ci.current||No?("function"===typeof l&&(Uo(t,r,l,n),u=t.memoizedState),(s=No||Wo(t,r,s,n,d,u,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=c,n=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Po(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:mo(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"===typeof(u=r.contextType)&&null!==u?u=Ao(u):u=Ni(t,u=Oi(r)?Ti:Ii.current);var h=r.getDerivedStateFromProps;(l="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==u)&&Ho(t,a,n,u),No=!1,d=t.memoizedState,a.state=d,Do(t,n,a,i);var p=t.memoizedState;s!==f||d!==p||Ci.current||No?("function"===typeof h&&(Uo(t,r,h,n),p=t.memoizedState),(c=No||Wo(t,r,c,n,d,p,u)||!1)?(l||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=u,n=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Cs(e,t,r,n,o,i)}function Cs(e,t,r,n,i,o){As(e,t);var a=0!==(128&t.flags);if(!n&&!a)return i&&zi(t,r,!1),qs(e,t,o);n=t.stateNode,ys.current=t;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,s,o)):ks(e,t,s,o),t.memoizedState=n.state,i&&zi(t,r,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),ia(e,t.containerInfo)}function Ns(e,t,r,n,i){return po(),vo(i),t.flags|=256,ks(e,t,r,n),t.child}var Os,Ps,Ls,Rs={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,i=t.pendingProps,a=ua.current,s=!1,u=0!==(128&t.flags);if((n=u)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ai(ua,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Bc(u,i,0,null),e=Rc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Bs(r),t.memoizedState=Rs,e):Ds(t,u));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Zs(e,t,s,n=fs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Bc({mode:"visible",children:n.children},i,0,null),(a=Rc(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&Jo(t,e.child,null,s),t.child.memoizedState=Bs(s),t.memoizedState=Rs,a);if(0===(1&t.mode))return Zs(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var u=n.dgst;return n=u,Zs(e,t,s,n=fs(a=Error(o(419)),n,void 0))}if(u=0!==(s&e.childLanes),ws||u){if(null!==(n=Cu)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),rc(n,e,i,-1))}return vc(),Zs(e,t,s,n=fs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ec.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ci(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Vi[Yi++]=Gi,Vi[Yi++]=Ji,Vi[Yi++]=Qi,Gi=e.id,Ji=e.overflow,Qi=t),(t=Ds(t,n.children)).flags|=4096,t)}(e,t,u,i,n,a,r);if(s){s=i.fallback,u=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Pc(n,s):(s=Rc(s,u,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Bs(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~r,t.memoizedState=Rs,i}return e=(s=e.child).sibling,i=Pc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Ds(e,t){return(t=Bc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zs(e,t,r,n){return null!==n&&vo(n),Jo(t,e.child,null,r),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_o(e.return,t,r)}function Us(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Fs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(ks(e,t,n.children,r),0!==(2&(n=ua.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,r,t);else if(19===e.tag)js(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ai(ua,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ca(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Us(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Us(t,!0,r,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Bu|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Pc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Vs(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Oi(t.type)&&Pi(),Ks(t),null;case 3:return n=t.stateNode,oa(),Mi(Ci),Mi(Ii),fa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Ks(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Ps(e,t,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ks(t),null}if(e=na(ea.current),fo(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[di]=t,n[hi]=a,e=0!==(1&t.mode),r){case"dialog":Zn("cancel",n),Zn("close",n);break;case"iframe":case"object":case"embed":Zn("load",n);break;case"video":case"audio":for(i=0;i<Rn.length;i++)Zn(Rn[i],n);break;case"source":Zn("error",n);break;case"img":case"image":case"link":Zn("error",n),Zn("load",n);break;case"details":Zn("toggle",n);break;case"input":G(n,a),Zn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Zn("invalid",n);break;case"textarea":ie(n,a),Zn("invalid",n)}for(var u in ge(r,a),i=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"===typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xn(n.textContent,c,e),i=["children",c]):"number"===typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xn(n.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Zn("scroll",n)}switch(r){case"input":K(n),$(n,a,!0);break;case"textarea":K(n),ae(n);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(n.onclick=$n)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=u.createElement(r,{is:n.is}):(e=u.createElement(r),"select"===r&&(u=e,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):e=u.createElementNS(e,r),e[di]=t,e[hi]=n,Os(e,t),t.stateNode=e;e:{switch(u=ye(r,n),r){case"dialog":Zn("cancel",e),Zn("close",e),i=n;break;case"iframe":case"object":case"embed":Zn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Rn.length;i++)Zn(Rn[i],e);i=n;break;case"source":Zn("error",e),i=n;break;case"img":case"image":case"link":Zn("error",e),Zn("load",e),i=n;break;case"details":Zn("toggle",e),i=n;break;case"input":G(e,n),i=Q(e,n),Zn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=z({},n,{value:void 0}),Zn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Zn("invalid",e)}for(a in ge(r,i),c=i)if(c.hasOwnProperty(a)){var l=c[a];"style"===a?be(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&fe(e,l):"children"===a?"string"===typeof l?("textarea"!==r||""!==l)&&de(e,l):"number"===typeof l&&de(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Zn("scroll",e):null!=l&&y(e,a,l,u))}switch(r){case"input":K(e),$(e,n,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+q(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$n)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ls(0,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(o(166));if(r=na(ra.current),na(ea.current),fo(t)){if(n=t.stateNode,r=t.memoizedProps,n[di]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Xn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xn(n.nodeValue,r,0!==(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[di]=t,t.stateNode=n}return Ks(t),null;case 13:if(Mi(ua),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[di]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ua.current)?0===Lu&&(Lu=3):vc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return oa(),null===e&&Fn(t.stateNode.containerInfo),Ks(t),null;case 10:return So(t.type._context),Ks(t),null;case 19:if(Mi(ua),null===(a=t.memoizedState))return Ks(t),null;if(n=0!==(128&t.flags),null===(u=a.rendering))if(n)Hs(a,!1);else{if(0!==Lu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ca(e))){for(t.flags|=128,Hs(a,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ai(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Fu&&(t.flags|=128,n=!0,Hs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ca(u))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return Ks(t),null}else 2*Je()-a.renderingStartTime>Fu&&1073741824!==r&&(t.flags|=128,n=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=a.last)?r.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,r=ua.current,Ai(ua,n?1&r|2:1&r),t):(Ks(t),null);case 22:case 23:return fc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Ou)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Oi(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Mi(Ci),Mi(Ii),fa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Mi(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mi(ua),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Os=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ps=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=Q(e,i),n=Q(e,n),a=[];break;case"select":i=z({},i,{value:void 0}),n=z({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=$n)}for(l in ge(r,n),r=null,i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var u=i[l];for(o in u)u.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in n){var c=n[l];if(u=null!=i?i[l]:void 0,n.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(a||(a=[]),a.push(l,r)),r=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(l,c)):"children"===l?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&Zn("scroll",e),a||u===c||(a=[])):(a=a||[]).push(l,c))}r&&(a=a||[]).push("style",r);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},Ls=function(e,t,r,n){r!==n&&(t.flags|=4)};var Qs=!1,Gs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Xs=null;function $s(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){_c(e,t,n)}else r.current=null}function eu(e,t,r){try{r()}catch(n){_c(e,t,n)}}var tu=!1;function ru(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&eu(t,r,o)}i=i.next}while(i!==n)}}function nu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function iu(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[vi],delete t[bi],delete t[mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=$n));else if(4!==n&&null!==(e=e.child))for(uu(e,t,r),e=e.sibling;null!==e;)uu(e,t,r),e=e.sibling}function cu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cu(e,t,r),e=e.sibling;null!==e;)cu(e,t,r),e=e.sibling}var lu=null,fu=!1;function du(e,t,r){for(r=r.child;null!==r;)hu(e,t,r),r=r.sibling}function hu(e,t,r){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Gs||$s(r,t);case 6:var n=lu,i=fu;lu=null,du(e,t,r),fu=i,null!==(lu=n)&&(fu?(e=lu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):lu.removeChild(r.stateNode));break;case 18:null!==lu&&(fu?(e=lu,r=r.stateNode,8===e.nodeType?ui(e.parentNode,r):1===e.nodeType&&ui(e,r),Ft(e)):ui(lu,r.stateNode));break;case 4:n=lu,i=fu,lu=r.stateNode.containerInfo,fu=!0,du(e,t,r),lu=n,fu=i;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&eu(r,t,a),i=i.next}while(i!==n)}du(e,t,r);break;case 1:if(!Gs&&($s(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){_c(r,t,s)}du(e,t,r);break;case 21:du(e,t,r);break;case 22:1&r.mode?(Gs=(n=Gs)||null!==r.memoizedState,du(e,t,r),Gs=n):du(e,t,r);break;default:du(e,t,r)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Ic.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function vu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:lu=u.stateNode,fu=!1;break e;case 3:case 4:lu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===lu)throw Error(o(160));hu(a,s,i),lu=null,fu=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(l){_c(i,t,l)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bu(t,e),t=t.sibling}function bu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),mu(e),4&n){try{ru(3,e,e.return),nu(3,e)}catch(b){_c(e,e.return,b)}try{ru(5,e,e.return)}catch(b){_c(e,e.return,b)}}break;case 1:vu(t,e),mu(e),512&n&&null!==r&&$s(r,r.return);break;case 5:if(vu(t,e),mu(e),512&n&&null!==r&&$s(r,r.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(b){_c(e,e.return,b)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===a.type&&null!=a.name&&J(i,a),ye(u,s);var l=ye(u,a);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?be(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):y(i,f,d,l)}switch(u){case"input":X(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(b){_c(e,e.return,b)}}break;case 6:if(vu(t,e),mu(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(b){_c(e,e.return,b)}}break;case 3:if(vu(t,e),mu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(b){_c(e,e.return,b)}break;case 4:default:vu(t,e),mu(e);break;case 13:vu(t,e),mu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Uu=Je())),4&n&&pu(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Gs=(l=Gs)||f,vu(t,e),Gs=l):vu(t,e),mu(e),8192&n){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!f&&0!==(1&e.mode))for(Xs=e,f=e.child;null!==f;){for(d=Xs=f;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:ru(4,h,h.return);break;case 1:$s(h,h.return);var v=h.stateNode;if("function"===typeof v.componentWillUnmount){n=h,r=h.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(b){_c(n,r,b)}}break;case 5:$s(h,h.return);break;case 22:if(null!==h.memoizedState){ku(d);continue}}null!==p?(p.return=h,Xs=p):ku(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,l?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,u.style.display=ve("display",s))}catch(b){_c(e,e.return,b)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(b){_c(e,e.return,b)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),mu(e),4&n&&pu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(au(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(de(i,""),n.flags&=-33),cu(e,su(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;uu(e,su(e),a);break;default:throw Error(o(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,r){Xs=e,yu(e,t,r)}function yu(e,t,r){for(var n=0!==(1&e.mode);null!==Xs;){var i=Xs,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Qs;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Gs;s=Qs;var c=Gs;if(Qs=a,(Gs=u)&&!c)for(Xs=i;null!==Xs;)u=(a=Xs).child,22===a.tag&&null!==a.memoizedState?xu(i):null!==u?(u.return=a,Xs=u):xu(i);for(;null!==o;)Xs=o,yu(o,t,r),o=o.sibling;Xs=i,Qs=s,Gs=c}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Xs=o):wu(e)}}function wu(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gs||nu(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Gs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:mo(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Zo(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Zo(t,s,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var f=l.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ft(d)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&iu(t)}catch(h){_c(t,t.return,h)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function ku(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Xs=r;break}Xs=t.return}}function xu(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nu(4,t)}catch(u){_c(t,r,u)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(u){_c(t,i,u)}}var o=t.return;try{iu(t)}catch(u){_c(t,o,u)}break;case 5:var a=t.return;try{iu(t)}catch(u){_c(t,a,u)}}}catch(u){_c(t,t.return,u)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Su,_u=Math.ceil,Mu=w.ReactCurrentDispatcher,Au=w.ReactCurrentOwner,Eu=w.ReactCurrentBatchConfig,Iu=0,Cu=null,Tu=null,Nu=0,Ou=0,Pu=_i(0),Lu=0,Ru=null,Bu=0,zu=0,Du=0,Zu=null,ju=null,Uu=0,Fu=1/0,Wu=null,qu=!1,Hu=null,Ku=null,Vu=!1,Yu=null,Qu=0,Gu=0,Ju=null,Xu=-1,$u=0;function ec(){return 0!==(6&Iu)?Je():-1!==Xu?Xu:Xu=Je()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Iu)&&0!==Nu?Nu&-Nu:null!==bo.transition?(0===$u&&($u=vt()),$u):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function rc(e,t,r,n){if(50<Gu)throw Gu=0,Ju=null,Error(o(185));mt(e,r,n),0!==(2&Iu)&&e===Cu||(e===Cu&&(0===(2&Iu)&&(zu|=r),4===Lu&&sc(e,Nu)),nc(e,n),1===r&&0===Iu&&0===(1&t.mode)&&(Fu=Je()+500,Zi&&Fi()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&r)&&0===(s&n)||(i[a]=ht(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=dt(e,e===Cu?Nu:0);if(0===n)null!==r&&Ye(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ye(r),1===t)0===e.tag?function(e){Zi=!0,Ui(e)}(uc.bind(null,e)):Ui(uc.bind(null,e)),ai((function(){0===(6&Iu)&&Fi()})),r=null;else{switch(wt(n)){case 1:r=$e;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Cc(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Xu=-1,$u=0,0!==(6&Iu))throw Error(o(327));var r=e.callbackNode;if(xc()&&e.callbackNode!==r)return null;var n=dt(e,e===Cu?Nu:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=bc(e,n);else{t=n;var i=Iu;Iu|=2;var a=pc();for(Cu===e&&Nu===t||(Wu=null,Fu=Je()+500,dc(e,t));;)try{gc();break}catch(u){hc(e,u)}xo(),Mu.current=a,Iu=i,null!==Tu?t=0:(Cu=null,Nu=0,t=Lu)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(n=i,t=oc(e,i))),1===t)throw r=Ru,dc(e,0),sc(e,n),nc(e,Je()),r;if(6===t)sc(e,n);else{if(i=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=bc(e,n))&&(0!==(a=pt(e))&&(n=a,t=oc(e,a))),1===t))throw r=Ru,dc(e,0),sc(e,n),nc(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:kc(e,ju,Wu);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Uu+500-Je())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(kc.bind(null,e,ju,Wu),t);break}kc(e,ju,Wu);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Je()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_u(n/1960))-n)){e.timeoutHandle=ni(kc.bind(null,e,ju,Wu),n);break}kc(e,ju,Wu);break;default:throw Error(o(329))}}}return nc(e,Je()),e.callbackNode===r?ic.bind(null,e):null}function oc(e,t){var r=Zu;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=ju,ju=r,null!==t&&ac(t)),e}function ac(e){null===ju?ju=e:ju.push.apply(ju,e)}function sc(e,t){for(t&=~Du,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function uc(e){if(0!==(6&Iu))throw Error(o(327));xc();var t=dt(e,0);if(0===(1&t))return nc(e,Je()),null;var r=bc(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=oc(e,n))}if(1===r)throw r=Ru,dc(e,0),sc(e,t),nc(e,Je()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,ju,Wu),nc(e,Je()),null}function cc(e,t){var r=Iu;Iu|=1;try{return e(t)}finally{0===(Iu=r)&&(Fu=Je()+500,Zi&&Fi())}}function lc(e){null!==Yu&&0===Yu.tag&&0===(6&Iu)&&xc();var t=Iu;Iu|=1;var r=Eu.transition,n=yt;try{if(Eu.transition=null,yt=1,e)return e()}finally{yt=n,Eu.transition=r,0===(6&(Iu=t))&&Fi()}}function fc(){Ou=Pu.current,Mi(Pu)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Tu)for(r=Tu.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Pi();break;case 3:oa(),Mi(Ci),Mi(Ii),fa();break;case 5:sa(n);break;case 4:oa();break;case 13:case 19:Mi(ua);break;case 10:So(n.type._context);break;case 22:case 23:fc()}r=r.return}if(Cu=e,Tu=e=Pc(e.current,null),Nu=Ou=t,Lu=0,Ru=null,Du=zu=Bu=0,ju=Zu=null,null!==Eo){for(t=0;t<Eo.length;t++)if(null!==(n=(r=Eo[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Eo=null}return e}function hc(e,t){for(;;){var r=Tu;try{if(xo(),da.current=as,ga){for(var n=va.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ga=!1}if(pa=0,ma=ba=va=null,ya=!1,wa=0,Au.current=null,null===r||null===r.return){Lu=1,Ru=t,Tu=null;break}e:{var a=e,s=r.return,u=r,c=t;if(t=Nu,u.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,gs(p,s,u,0,t),1&p.mode&&bs(a,l,t),c=l;var v=(t=p).updateQueue;if(null===v){var b=new Set;b.add(c),t.updateQueue=b}else v.add(c);break e}if(0===(1&t)){bs(a,l,t),vc();break e}c=Error(o(426))}else if(io&&1&u.mode){var m=ms(s);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),gs(m,s,u,0,t),vo(ls(c,u));break e}}a=c=ls(c,u),4!==Lu&&(Lu=2),null===Zu?Zu=[a]:Zu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zo(a,ps(0,c,t));break e;case 1:u=c;var g=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof g.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Ku||!Ku.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zo(a,vs(a,u,t));break e}}a=a.return}while(null!==a)}wc(r)}catch(w){t=w,Tu===r&&null!==r&&(Tu=r=r.return);continue}break}}function pc(){var e=Mu.current;return Mu.current=as,null===e?as:e}function vc(){0!==Lu&&3!==Lu&&2!==Lu||(Lu=4),null===Cu||0===(268435455&Bu)&&0===(268435455&zu)||sc(Cu,Nu)}function bc(e,t){var r=Iu;Iu|=2;var n=pc();for(Cu===e&&Nu===t||(Wu=null,dc(e,t));;)try{mc();break}catch(i){hc(e,i)}if(xo(),Iu=r,Mu.current=n,null!==Tu)throw Error(o(261));return Cu=null,Nu=0,Lu}function mc(){for(;null!==Tu;)yc(Tu)}function gc(){for(;null!==Tu&&!Qe();)yc(Tu)}function yc(e){var t=Su(e.alternate,e,Ou);e.memoizedProps=e.pendingProps,null===t?wc(e):Tu=t,Au.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Vs(r,t,Ou)))return void(Tu=r)}else{if(null!==(r=Ys(r,t)))return r.flags&=32767,void(Tu=r);if(null===e)return Lu=6,void(Tu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Tu=t);Tu=t=e}while(null!==t);0===Lu&&(Lu=5)}function kc(e,t,r){var n=yt,i=Eu.transition;try{Eu.transition=null,yt=1,function(e,t,r,n){do{xc()}while(null!==Yu);if(0!==(6&Iu))throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Cu&&(Tu=Cu=null,Nu=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Vu||(Vu=!0,Cc(tt,(function(){return xc(),null}))),a=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||a){a=Eu.transition,Eu.transition=null;var s=yt;yt=1;var u=Iu;Iu|=4,Au.current=null,function(e,t){if(ei=qt,hn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(k){r=null;break e}var s=0,u=-1,c=-1,l=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==r||0!==i&&3!==d.nodeType||(u=s+i),d!==a||0!==n&&3!==d.nodeType||(c=s+n),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++l===i&&(u=s),h===a&&++f===n&&(c=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}r=-1===u||-1===c?null:{start:u,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},qt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var b=v.memoizedProps,m=v.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:mo(t.type,b),m);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(k){_c(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}v=tu,tu=!1}(e,r),bu(r,e),pn(ti),qt=!!ei,ti=ei=null,e.current=r,gu(r,e,i),Ge(),Iu=u,yt=s,Eu.transition=a}else e.current=r;if(Vu&&(Vu=!1,Yu=e,Qu=i),0===(a=e.pendingLanes)&&(Ku=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),nc(e,Je()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if(qu)throw qu=!1,e=Hu,Hu=null,e;0!==(1&Qu)&&0!==e.tag&&xc(),0!==(1&(a=e.pendingLanes))?e===Ju?Gu++:(Gu=0,Ju=e):Gu=0,Fi()}(e,t,r,n)}finally{Eu.transition=i,yt=n}return null}function xc(){if(null!==Yu){var e=wt(Qu),t=Eu.transition,r=yt;try{if(Eu.transition=null,yt=16>e?16:e,null===Yu)var n=!1;else{if(e=Yu,Yu=null,Qu=0,0!==(6&Iu))throw Error(o(331));var i=Iu;for(Iu|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var u=a.deletions;if(null!==u){for(var c=0;c<u.length;c++){var l=u[c];for(Xs=l;null!==Xs;){var f=Xs;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Xs=d;else for(;null!==Xs;){var h=(f=Xs).sibling,p=f.return;if(ou(f),f===l){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var v=a.alternate;if(null!==v){var b=v.child;if(null!==b){v.child=null;do{var m=b.sibling;b.sibling=null,b=m}while(null!==b)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Xs=g;break e}Xs=a.return}}var y=e.current;for(Xs=y;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=y;null!==Xs;){if(0!==(2048&(u=Xs).flags))try{switch(u.tag){case 0:case 11:case 15:nu(9,u)}}catch(x){_c(u,u.return,x)}if(u===s){Xs=null;break e}var k=u.sibling;if(null!==k){k.return=u.return,Xs=k;break e}Xs=u.return}}if(Iu=i,Fi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(x){}n=!0}return n}finally{yt=r,Eu.transition=t}}return!1}function Sc(e,t,r){e=Ro(e,t=ps(0,t=ls(r,t),1),1),t=ec(),null!==e&&(mt(e,1,t),nc(e,t))}function _c(e,t,r){if(3===e.tag)Sc(e,e,r);else for(;null!==t;){if(3===t.tag){Sc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Ku||!Ku.has(n))){t=Ro(t,e=vs(t,e=ls(r,e),1),1),e=ec(),null!==t&&(mt(t,1,e),nc(t,e));break}}t=t.return}}function Mc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Cu===e&&(Nu&r)===r&&(4===Lu||3===Lu&&(130023424&Nu)===Nu&&500>Je()-Uu?dc(e,0):Du|=r),nc(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=lt,0===(130023424&(lt<<=1))&&(lt=4194304)));var r=ec();null!==(e=To(e,t))&&(mt(e,t,r),nc(e,r))}function Ec(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Ac(e,r)}function Ic(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Ac(e,r)}function Cc(e,t){return Ve(e,t)}function Tc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,r,n){return new Tc(e,t,r,n)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var r=e.alternate;return null===r?((r=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Lc(e,t,r,n,i,a){var s=2;if(n=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Rc(r.children,i,a,t);case _:s=8,i|=8;break;case M:return(e=Nc(12,r,t,2|i)).elementType=M,e.lanes=a,e;case C:return(e=Nc(13,r,t,i)).elementType=C,e.lanes=a,e;case T:return(e=Nc(19,r,t,i)).elementType=T,e.lanes=a,e;case P:return Bc(r,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case E:s=9;break e;case I:s=11;break e;case N:s=14;break e;case O:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Nc(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Rc(e,t,r,n){return(e=Nc(7,e,n,t)).lanes=r,e}function Bc(e,t,r,n){return(e=Nc(22,e,n,t)).elementType=P,e.lanes=r,e.stateNode={isHidden:!1},e}function zc(e,t,r){return(e=Nc(6,e,null,t)).lanes=r,e}function Dc(e,t,r){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zc(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jc(e,t,r,n,i,o,a,s,u){return e=new Zc(e,t,r,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Nc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function Uc(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function Fc(e){if(!e)return Ei;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Oi(r))return Ri(e,r,t)}return t}function Wc(e,t,r,n,i,o,a,s,u){return(e=jc(r,n,!0,e,0,o,0,s,u)).context=Fc(null),r=e.current,(o=Lo(n=ec(),i=tc(r))).callback=void 0!==t&&null!==t?t:null,Ro(r,o,i),e.current.lanes=i,mt(e,i,n),nc(e,n),e}function qc(e,t,r,n){var i=t.current,o=ec(),a=tc(i);return r=Fc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Lo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ro(i,t,a))&&(rc(e,i,a,o),Bo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Vc(e,t){Kc(e,t),(e=e.alternate)&&Kc(e,t)}Su=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)ws=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Ts(t),po();break;case 5:aa(t);break;case 1:Oi(t.type)&&Bi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ai(go,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ai(ua,1&ua.current),t.flags|=128,null):0!==(r&t.child.childLanes)?zs(e,t,r):(Ai(ua,1&ua.current),null!==(e=qs(e,t,r))?e.sibling:null);Ai(ua,1&ua.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Fs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ai(ua,ua.current),n)break;return null;case 22:case 23:return t.lanes=0,Ms(e,t,r)}return qs(e,t,r)}(e,t,r);ws=0!==(131072&e.flags)}else ws=!1,io&&0!==(1048576&t.flags)&&$i(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ws(e,t),e=t.pendingProps;var i=Ni(t,Ii.current);Mo(t,r),i=_a(null,t,n,e,i,r);var a=Ma();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(n)?(a=!0,Bi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Oo(t),i.updater=Fo,t.stateNode=i,i._reactInternals=t,Ko(t,n,e,r),t=Cs(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),ks(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===I)return 11;if(e===N)return 14}return 2}(n),e=mo(n,e),i){case 0:t=Es(null,t,n,e,r);break e;case 1:t=Is(null,t,n,e,r);break e;case 11:t=xs(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,mo(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Es(e,t,n,i=t.elementType===n?i:mo(n,i),r);case 1:return n=t.type,i=t.pendingProps,Is(e,t,n,i=t.elementType===n?i:mo(n,i),r);case 3:e:{if(Ts(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,Po(e,t),Do(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ns(e,t,n,r,i=ls(Error(o(423)),t));break e}if(n!==i){t=Ns(e,t,n,r,i=ls(Error(o(424)),t));break e}for(no=ci(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=Xo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(po(),n===i){t=qs(e,t,r);break e}ks(e,t,n,r)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),As(e,t),ks(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return zs(e,t,r);case 4:return ia(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Jo(t,null,n,r):ks(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,xs(e,t,n,i=t.elementType===n?i:mo(n,i),r);case 7:return ks(e,t,t.pendingProps,r),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ai(go,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Ci.current){t=qs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var c=u.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=Lo(-1,r&-r)).tag=2;var l=a.updateQueue;if(null!==l){var f=(l=l.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),_o(a.return,r,t),u.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),_o(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ks(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Mo(t,r),n=n(i=Ao(i)),t.flags|=1,ks(e,t,n,r),t.child;case 14:return i=mo(n=t.type,t.pendingProps),Ss(e,t,n,i=mo(n.type,i),r);case 15:return _s(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mo(n,i),Ws(e,t),t.tag=1,Oi(n)?(e=!0,Bi(t)):e=!1,Mo(t,r),qo(t,n,i),Ko(t,n,i,r),Cs(null,t,n,!0,e,r);case 19:return Fs(e,t,r);case 22:return Ms(e,t,r)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $c(){}function el(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}qc(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"===typeof n){var o=n;n=function(){var e=Hc(a);o.call(e)}}var a=Wc(t,n,e,0,null,!1,0,"",$c);return e._reactRootContainer=a,e[pi]=a.current,Fn(8===e.nodeType?e.parentNode:e),lc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof n){var s=n;n=function(){var e=Hc(u);s.call(e)}}var u=jc(e,0,!1,null,0,!1,0,"",$c);return e._reactRootContainer=u,e[pi]=u.current,Fn(8===e.nodeType?e.parentNode:e),lc((function(){qc(t,u,r,n)})),u}(r,t,e,i,n);return Hc(a)}Gc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));qc(e,t,null,null)},Gc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lc((function(){qc(null,e,null,null)})),t[pi]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Pt.length&&0!==t&&t<Pt[r].priority;r++);Pt.splice(r,0,e),0===r&&zt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(gt(t,1|r),nc(t,Je()),0===(6&Iu)&&(Fu=Je()+500,Fi()))}break;case 13:lc((function(){var t=To(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Vc(e,1)}},xt=function(e){if(13===e.tag){var t=To(e,134217728);if(null!==t)rc(t,e,134217728,ec());Vc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),r=To(e,t);if(null!==r)rc(r,e,t,ec());Vc(e,t)}},_t=function(){return yt},Mt=function(e,t){var r=yt;try{return yt=e,t()}finally{yt=r}},xe=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=ki(n);if(!i)throw Error(o(90));V(n),X(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ie=cc,Ce=lc;var tl={usingClientEntryPoint:!1,Events:[yi,wi,ki,Ae,Ee,cc]},rl={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nl={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{it=il.inject(nl),ot=il}catch(le){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(o(200));return Uc(e,t,null,r)},t.createRoot=function(e,t){if(!Jc(e))throw Error(o(299));var r=!1,n="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=jc(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,Fn(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return lc(e)},t.hydrate=function(e,t,r){if(!Xc(t))throw Error(o(200));return el(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Jc(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Yc;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Wc(t,null,e,1,null!=r?r:null,i,0,a,s),e[pi]=t.current,Fn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Gc(t)},t.render=function(e,t,r){if(!Xc(t))throw Error(o(200));return el(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(lc((function(){el(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xc(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return el(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,r){"use strict";var n=r(4164);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4164:function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(4463)},1372:function(e,t){"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,u=60110,c=60112,l=60113,f=60120,d=60115,h=60116,p=60121,v=60122,b=60117,m=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),i=y("react.fragment"),o=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),u=y("react.context"),c=y("react.forward_ref"),l=y("react.suspense"),f=y("react.suspense_list"),d=y("react.memo"),h=y("react.lazy"),p=y("react.block"),v=y("react.server.block"),b=y("react.fundamental"),m=y("react.debug_trace_mode"),g=y("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case d:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===m||e===o||e===l||e===f||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===b||e.$$typeof===p||e[0]===v)},t.typeOf=w},7441:function(e,t,r){"use strict";e.exports=r(1372)},6374:function(e,t,r){"use strict";var n=r(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,n)&&!u.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},9117:function(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}function g(){}function y(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var w=y.prototype=new g;w.constructor=y,v(w,m.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,i)&&!_.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:S.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function I(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case n:u=!0}}if(u)return a=a(u=e),e=""===o?"."+I(u,0):o,k(a)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),C(a,t,i,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",k(e))for(var c=0;c<e.length;c++){var l=o+I(s=e[c],c);u+=C(s,t,i,l,a)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=C(s=s.value,t,i,l=o+I(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function T(e,t,r){if(null==e)return e;var n=[],i=0;return C(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},P={transition:null},L={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:P,ReactCurrentOwner:S};t.Children={map:T,forEach:function(e,t,r){T(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=a,t.PureComponent=y,t.StrictMode=o,t.Suspense=l,t.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=M,t.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,r){return O.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,r){return O.current.useReducer(e,t,r)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return O.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},2791:function(e,t,r){"use strict";e.exports=r(9117)},184:function(e,t,r){"use strict";e.exports=r(6374)},9118:function(e){"use strict";e.exports={name:"original",anchor:"#1034a6",anchorVisited:"#440381",borderDark:"#848584",borderDarkest:"#0a0a0a",borderLight:"#dfdfdf",borderLightest:"#fefefe",canvas:"#ffffff",canvasText:"#0a0a0a",canvasTextDisabled:"#848584",canvasTextDisabledShadow:"#fefefe",canvasTextInvert:"#fefefe",checkmark:"#0a0a0a",checkmarkDisabled:"#848584",desktopBackground:"#008080",flatDark:"#9e9e9e",flatLight:"#d8d8d8",focusSecondary:"#fefe03",headerBackground:"#060084",headerNotActiveBackground:"#7f787f",headerNotActiveText:"#c6c6c6",headerText:"#fefefe",hoverBackground:"#060084",material:"#c6c6c6",materialDark:"#9a9e9c",materialText:"#0a0a0a",materialTextDisabled:"#848584",materialTextDisabledShadow:"#fefefe",materialTextInvert:"#fefefe",progress:"#060084",tooltip:"#fefbcc"}},4876:function(e,t,r){"use strict";var n=r(4836);t.K=void 0;var i=n(r(9728)),o=n(r(6690)),a=n(r(1655)),s=n(r(4993)),u=n(r(3808)),c=n(r(5421));function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var f=function(e){(0,a.default)(r,e);var t=l(r);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8080",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.autoconnect,a=void 0===i||i,s=n.reconnect,u=void 0===s||s,l=n.reconnect_interval,f=void 0===l?1e3:l,d=n.max_reconnects,h=void 0===d?5:d,p=arguments.length>2?arguments[2]:void 0;return(0,o.default)(this,r),t.call(this,c.default,e,{autoconnect:a,reconnect:u,reconnect_interval:f,max_reconnects:h},p)}return(0,i.default)(r)}(n(r(4641)).default);t.K=f},4641:function(e,t,r){"use strict";var n=r(9778).Buffer,i=r(4836);
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(4687)),a=i(r(7156)),s=i(r(8698)),u=i(r(6690)),c=i(r(9728)),l=i(r(1655)),f=i(r(4993)),d=i(r(3808)),h=r(7143);function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var i=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,f.default)(this,r)}}var v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},b=function(e){(0,l.default)(r,e);var t=p(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;(0,u.default)(this,r);var s=o.autoconnect,c=void 0===s||s,l=o.reconnect,f=void 0===l||l,d=o.reconnect_interval,h=void 0===d?1e3:d,p=o.max_reconnects,b=void 0===p?5:p,m=v(o,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(n=t.call(this)).webSocketFactory=e,n.queue={},n.rpc_id=0,n.address=i,n.autoconnect=c,n.ready=!1,n.reconnect=f,n.reconnect_interval=h,n.max_reconnects=b,n.rest_options=m,n.current_reconnects=0,n.generate_request_id=a||function(){return++n.rpc_id},n.autoconnect&&n._connect(n.address,Object.assign({autoconnect:n.autoconnect,reconnect:n.reconnect,reconnect_interval:n.reconnect_interval,max_reconnects:n.max_reconnects},n.rest_options)),n}return(0,c.default)(r,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(e,t,r,n){var i=this;return n||"object"!==(0,s.default)(r)||(n=r,r=null),new Promise((function(o,a){if(!i.ready)return a(new Error("socket not ready"));var s=i.generate_request_id(e,t),u={jsonrpc:"2.0",method:e,params:t||null,id:s};i.socket.send(JSON.stringify(u),n,(function(e){if(e)return a(e);i.queue[s]={promise:[o,a]},r&&(i.queue[s].timeout=setTimeout((function(){delete i.queue[s],a(new Error("reply timeout"))}),r))}))}))}},{key:"login",value:function(){var e=(0,a.default)(o.default.mark((function e(t){var r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("rpc.login",t);case 2:if(r=e.sent){e.next=5;break}throw new Error("authentication failed");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"listMethods",value:function(){var e=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("__listMethods");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notify",value:function(e,t){var r=this;return new Promise((function(n,i){if(!r.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:e,params:t||null};r.socket.send(JSON.stringify(o),(function(e){if(e)return i(e);n()}))}))}},{key:"subscribe",value:function(){var e=(0,a.default)(o.default.mark((function e(t){var r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"===typeof t&&(t=[t]),e.next=3,this.call("rpc.on",t);case 3:if(r=e.sent,"string"!==typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed subscribing to an event '"+t+"' with: "+r[t]);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var e=(0,a.default)(o.default.mark((function e(t){var r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"string"===typeof t&&(t=[t]),e.next=3,this.call("rpc.off",t);case 3:if(r=e.sent,"string"!==typeof t||"ok"===r[t]){e.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"close",value:function(e,t){this.socket.close(e||1e3,t)}},{key:"_connect",value:function(e,t){var r=this;this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",(function(){r.ready=!0,r.emit("open"),r.current_reconnects=0})),this.socket.addEventListener("message",(function(e){var t=e.data;t instanceof ArrayBuffer&&(t=n.from(t).toString());try{t=JSON.parse(t)}catch(a){return}if(t.notification&&r.listeners(t.notification).length){if(!Object.keys(t.params).length)return r.emit(t.notification);var i=[t.notification];if(t.params.constructor===Object)i.push(t.params);else for(var o=0;o<t.params.length;o++)i.push(t.params[o]);return Promise.resolve().then((function(){r.emit.apply(r,i)}))}if(!r.queue[t.id])return t.method&&t.params?Promise.resolve().then((function(){r.emit(t.method,t.params)})):void 0;"error"in t==="result"in t&&r.queue[t.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),r.queue[t.id].timeout&&clearTimeout(r.queue[t.id].timeout),t.error?r.queue[t.id].promise[1](t.error):r.queue[t.id].promise[0](t.result),delete r.queue[t.id]})),this.socket.addEventListener("error",(function(e){return r.emit("error",e)})),this.socket.addEventListener("close",(function(n){var i=n.code,o=n.reason;r.ready&&setTimeout((function(){return r.emit("close",i,o)}),0),r.ready=!1,r.socket=void 0,1e3!==i&&(r.current_reconnects++,r.reconnect&&(r.max_reconnects>r.current_reconnects||0===r.max_reconnects)&&setTimeout((function(){return r._connect(e,t)}),r.reconnect_interval))}))}}]),r}(h.EventEmitter);t.default=b},5421:function(e,t,r){"use strict";var n=r(4836);
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return new l(e,t)};var i=n(r(6690)),o=n(r(9728)),a=n(r(1655)),s=n(r(4993)),u=n(r(3808));function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,s.default)(this,r)}}var l=function(e){(0,a.default)(r,e);var t=c(r);function r(e,n,o){var a;return(0,i.default)(this,r),(a=t.call(this)).socket=new window.WebSocket(e,o),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(e){return a.emit("message",e.data)},a.socket.onerror=function(e){return a.emit("error",e)},a.socket.onclose=function(e){a.emit("close",e.code,e.reason)},a}return(0,o.default)(r,[{key:"send",value:function(e,t,r){var n=r||t;try{this.socket.send(e),n()}catch(i){n(i)}}},{key:"close",value:function(e,t){this.socket.close(e,t)}},{key:"addEventListener",value:function(e,t,r){this.socket.addEventListener(e,t,r)}}]),r}(r(7143).EventEmitter)},2543:function(e,t,r){var n=r(9778),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6813:function(e,t){"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,u=e[s],c=s+1,l=e[c];if(0>o(u,r))c<i&&0>o(l,u)?(e[n]=l,e[c]=r,n=c):(e[n]=u,e[s]=r,n=s);else{if(!(c<i&&0>o(l,r)))break e;e[n]=l,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],f=1,d=null,h=3,p=!1,v=!1,b=!1,m="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,r(c,t)}t=n(l)}}function k(e){if(b=!1,w(e),!v)if(null!==n(c))v=!0,P(x);else{var t=n(l);null!==t&&L(k,t.startTime-e)}}function x(e,r){v=!1,b&&(b=!1,g(A),A=-1),p=!0;var o=h;try{for(w(r),d=n(c);null!==d&&(!(d.expirationTime>r)||e&&!C());){var a=d.callback;if("function"===typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?d.callback=s:d===n(c)&&i(c),w(r)}else i(c);d=n(c)}if(null!==d)var u=!0;else{var f=n(l);null!==f&&L(k,f.startTime-r),u=!1}return u}finally{d=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,M=null,A=-1,E=5,I=-1;function C(){return!(t.unstable_now()-I<E)}function T(){if(null!==M){var e=t.unstable_now();I=e;var r=!0;try{r=M(!0,e)}finally{r?S():(_=!1,M=null)}}else _=!1}if("function"===typeof y)S=function(){y(T)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,O=N.port2;N.port1.onmessage=T,S=function(){O.postMessage(null)}}else S=function(){m(T,0)};function P(e){M=e,_||(_=!0,S())}function L(e,r){A=m((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,P(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}
2var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(l,e),null===n(c)&&e===n(l)&&(b?(g(A),A=-1):b=!0,L(k,o-a))):(e.sortIndex=s,r(c,e),v||p||(v=!0,P(x))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},5296:function(e,t,r){"use strict";e.exports=r(6813)},621:function(e,t,r){e.exports=r(2899)(r(4513))},4513:function(e,t,r){var n=new(0,r(6289).ec)("secp256k1"),i=n.curve,o=i.n.constructor;function a(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new o(t);if(r.cmp(i.p)>=0)return null;var a=(r=r.toRed(i.red)).redSqr().redIMul(r).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),n.keyPair({pub:{x:r,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var a=new o(t),s=new o(r);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var u=a.redSqr().redIMul(a);return s.redSqr().redISub(u.redIAdd(i.b)).isZero()?n.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var r=t.encode(null,33===e.length),n=0;n<e.length;++n)e[n]=r[n]}e.exports={contextRandomize:function(){return 0},privateKeyVerify:function(e){var t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate:function(e){var t=new o(e),r=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0)return 1;if(r.iadd(new o(e)),r.cmp(i.n)>=0&&r.isub(i.n),r.isZero())return 1;var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul:function(e,t){var r=new o(t);if(r.cmp(i.n)>=0||r.isZero())return 1;r.imul(new o(e)),r.cmp(i.n)>=0&&(r=r.umod(i.n));var n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:function(e){return null===a(e)?1:0},publicKeyCreate:function(e,t){var r=new o(t);return r.cmp(i.n)>=0||r.isZero()?1:(s(e,n.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var r=a(t);return null===r?1:(s(e,r.getPublic()),0)},publicKeyNegate:function(e,t){var r=a(t);if(null===r)return 1;var n=r.getPublic();
2return n.y=n.y.redNeg(),s(e,n),0},publicKeyCombine:function(e,t){for(var r=new Array(t.length),n=0;n<t.length;++n)if(r[n]=a(t[n]),null===r[n])return 1;for(var i=r[0].getPublic(),o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(s(e,i),0)},publicKeyTweakAdd:function(e,t,r){var n=a(t);if(null===n)return 1;if((r=new o(r)).cmp(i.n)>=0)return 2;var u=n.getPublic().add(i.g.mul(r));return u.isInfinity()?2:(s(e,u),0)},publicKeyTweakMul:function(e,t,r){var n=a(t);return null===n?1:(r=new o(r)).cmp(i.n)>=0||r.isZero()?2:(s(e,n.getPublic().mul(r)),0)},signatureNormalize:function(e){var t=new o(e.subarray(0,32)),r=new o(e.subarray(32,64));return t.cmp(i.n)>=0||r.cmp(i.n)>=0?1:(1===r.cmp(n.nh)&&e.set(i.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var r=t.subarray(0,32),n=t.subarray(32,64);if(new o(r).cmp(i.n)>=0)return 1;if(new o(n).cmp(i.n)>=0)return 1;var a=e.output,s=a.subarray(4,37);s[0]=0,s.set(r,1);for(var u=33,c=0;u>1&&0===s[c]&&!(128&s[c+1]);--u,++c);if(128&(s=s.subarray(c))[0])return 1;if(u>1&&0===s[0]&&!(128&s[1]))return 1;var l=a.subarray(39,72);l[0]=0,l.set(n,1);for(var f=33,d=0;f>1&&0===l[d]&&!(128&l[d+1]);--f,++d);return 128&(l=l.subarray(d))[0]||f>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+u+f,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+u]=2,a[5+u]=l.length,a.set(l,6+u),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;var n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;var a=t.subarray(4,4+r);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var s=t.subarray(6+r);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var u=new o(a);u.cmp(i.n)>=0&&(u=new o(0));var c=new o(t.subarray(6+r));return c.cmp(i.n)>=0&&(c=new o(0)),e.set(u.toArrayLike(Uint8Array,"be",32),0),e.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,r,a,s){if(s){var u=s;s=function(e){var n=u(t,r,null,a,e);if(!(n instanceof Uint8Array&&32===n.length))throw new Error("This is the way");return new o(n)}}var c,l=new o(r);if(l.cmp(i.n)>=0||l.isZero())return 1;try{c=n.sign(t,r,{canonical:!0,k:s,pers:a})}catch(f){return 1}return e.signature.set(c.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(c.s.toArrayLike(Uint8Array,"be",32),32),e.recid=c.recoveryParam,0},ecdsaVerify:function(e,t,r){var s={r:e.subarray(0,32),s:e.subarray(32,64)},u=new o(s.r),c=new o(s.s);if(u.cmp(i.n)>=0||c.cmp(i.n)>=0)return 1;if(1===c.cmp(n.nh)||u.isZero()||c.isZero())return 3;var l=a(r);if(null===l)return 2;var f=l.getPublic();return n.verify(t,s,f)?0:3},ecdsaRecover:function(e,t,r,a){var u,c={r:t.slice(0,32),s:t.slice(32,64)},l=new o(c.r),f=new o(c.s);if(l.cmp(i.n)>=0||f.cmp(i.n)>=0)return 1;if(l.isZero()||f.isZero())return 2;try{u=n.recoverPubKey(a,c,r)}catch(d){return 2}return s(e,u),0},ecdh:function(e,t,r,s,u,c,l){var f=a(t);if(null===f)return 1;var d=new o(r);if(d.cmp(i.n)>=0||d.isZero())return 2;var h=f.getPublic().mul(d);if(void 0===u)for(var p=h.encode(null,!0),v=n.hash().update(p).digest(),b=0;b<32;++b)e[b]=v[b];else{c||(c=new Uint8Array(32));for(var m=h.getX().toArray("be",32),g=0;g<32;++g)c[g]=m[g];l||(l=new Uint8Array(32));for(var y=h.getY().toArray("be",32),w=0;w<32;++w)l[w]=y[w];var k=u(c,l,s);if(!(k instanceof Uint8Array&&k.length===e.length))return 2;e.set(k)}return 0}}},2899:function(e,t,r){var n=r(4704).default,i="Impossible case. Please create issue.",o="The tweak was out of range or the resulted private key is invalid",a="The tweak was out of range or equal to zero",s="Unknow error on context randomization",u="Private Key is invalid",c="Public Key could not be parsed",l="Public Key serialization error",f="The sum of the public keys is not valid",d="Signature could not be parsed",h="The nonce generation function failed, or the private key was invali
2d",p="Public key could not be recover",v="Scalar was invalid (zero or overflow)";function b(e,t){if(!e)throw new Error(t)}function m(e,t,r){if(b(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==r)if(Array.isArray(r)){var n=r.join(", "),i="Expected ".concat(e," to be an Uint8Array with length [").concat(n,"]");b(r.includes(t.length),i)}else{var o="Expected ".concat(e," to be an Uint8Array with length ").concat(r);b(t.length===r,o)}}function g(e){b("Boolean"===w(e),"Expected compressed to be a Boolean")}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"===typeof e&&(e=e(t)),m("output",e,t),e}function w(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(b(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&m("seed",t,32),1===e.contextRandomize(t))throw new Error(s)},privateKeyVerify:function(t){return m("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(m("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakAdd:function(t,r){switch(m("private key",t,32),m("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(o)}},privateKeyTweakMul:function(t,r){switch(m("private key",t,32),m("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(a)}},publicKeyVerify:function(t){return m("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("private key",t,32),g(r),n=y(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(l)}},publicKeyConvert:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("public key",t,[33,65]),g(r),n=y(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(l)}},publicKeyNegate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(m("public key",t,[33,65]),g(r),n=y(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw new Error(c);case 2:throw new Error(i);case 3:throw new Error(l)}},publicKeyCombine:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;b(Array.isArray(t),"Expected public keys to be an Array"),b(t.length>0,"Expected public keys array will have more than zero items");var o,a=n(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;m("public key",s,[33,65])}}catch(u){a.e(u)}finally{a.f()}switch(g(r),i=y(i,r?33:65),e.publicKeyCombine(i,t)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(f);case 3:throw new Error(l)}},publicKeyTweakAdd:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(m("public key",t,[33,65]),m("tweak",r,32),g(n),i=y(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(o)}},publicKeyTweakMul:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;switch(m("public key",t,[33,65]),m("tweak",r,32),g(n),i=y(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(a)}},signatureNormalize:function(t){switch(m("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(d)}},signatureExport:function(t,r){m("signature",t,64);var n={output:r=y(r,72),outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw new Error(d);case 2:throw new Error(i)}},signatureImport:function(t,r){switch(m("signature",t),r=y(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(d);case 2:throw new Error(i)}},ecdsaSign:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;m("message",t,32),m("private key",r,32),b("Object"===w(n),"Expected options to be an Object"),void 0!==n.data&&m("options.data",n.data),void 0!==n.noncefn&&b("Function"===w(n.noncefn),"Expected options.noncefn to be a Function");var a={signature:o=y(o,64),recid:null};switch(e.ecdsaSign(a,t,r,n.data,n.noncefn)){case 0:return a;case 1:throw new Error(h);case 2:throw new Error(i)}},ecdsaVerify:function(t,r,n){switch(m("signature",t,64),m("message",r,32),m("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(d);case 2:throw new Error(c)}},ecdsaRecover:function(t,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0;switch(m("signature",t,64),b("Number"===w(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),m("message",n,32),g(o),a=y(a,o?33:65),e.ecdsaRecover(a,t,r,n)){case 0:return a;case 1:throw new Error(d);case 2:throw new Error(p);case 3:throw new Error(i)}},ecdh:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;switch(m("public key",t,[33,65]),m("private key",r,32),b("Object"===w(n),"Expected options to be an Object"),void 0!==n.data&&m("options.data",n.data),void 0!==n.hashfn?(b("Function"===w(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&m("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&m("options.ybuf",n.ybuf,32),m("output",i)):i=y(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i;case 1:throw new Error(c);case 2:throw new Error(v)}}}}},9613:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;
2if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},2826:function(e,t,r){!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),u=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function v(e,t,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^r[n+o];return(1&a-1>>>8)-1}function b(e,t,r,n){return v(e,t,r,n,16)}function m(e,t,r,n){return v(e,t,r,n,32)}function g(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,b=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,k=o,x=a,S=s,_=u,M=c,A=l,E=f,I=d,C=h,T=p,N=v,O=b,P=m,L=g,R=y,B=w,z=0;z<20;z+=2)k^=(i=(P^=(i=(C^=(i=(M^=(i=k+P|0)<<7|i>>>25)+k|0)<<9|i>>>23)+M|0)<<13|i>>>19)+C|0)<<18|i>>>14,A^=(i=(x^=(i=(L^=(i=(T^=(i=A+x|0)<<7|i>>>25)+A|0)<<9|i>>>23)+T|0)<<13|i>>>19)+L|0)<<18|i>>>14,N^=(i=(E^=(i=(S^=(i=(R^=(i=N+E|0)<<7|i>>>25)+N|0)<<9|i>>>23)+R|0)<<13|i>>>19)+S|0)<<18|i>>>14,B^=(i=(O^=(i=(I^=(i=(_^=(i=B+O|0)<<7|i>>>25)+B|0)<<9|i>>>23)+_|0)<<13|i>>>19)+I|0)<<18|i>>>14,k^=(i=(_^=(i=(S^=(i=(x^=(i=k+_|0)<<7|i>>>25)+k|0)<<9|i>>>23)+x|0)<<13|i>>>19)+S|0)<<18|i>>>14,A^=(i=(M^=(i=(I^=(i=(E^=(i=A+M|0)<<7|i>>>25)+A|0)<<9|i>>>23)+E|0)<<13|i>>>19)+I|0)<<18|i>>>14,N^=(i=(T^=(i=(C^=(i=(O^=(i=N+T|0)<<7|i>>>25)+N|0)<<9|i>>>23)+O|0)<<13|i>>>19)+C|0)<<18|i>>>14,B^=(i=(R^=(i=(L^=(i=(P^=(i=B+R|0)<<7|i>>>25)+B|0)<<9|i>>>23)+P|0)<<13|i>>>19)+L|0)<<18|i>>>14;k=k+o|0,x=x+a|0,S=S+s|0,_=_+u|0,M=M+c|0,A=A+l|0,E=E+f|0,I=I+d|0,C=C+h|0,T=T+p|0,N=N+v|0,O=O+b|0,P=P+m|0,L=L+g|0,R=R+y|0,B=B+w|0,e[0]=k>>>0&255,e[1]=k>>>8&255,e[2]=k>>>16&255,e[3]=k>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=M>>>0&255,e[17]=M>>>8&255,e[18]=M>>>16&255,e[19]=M>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=E>>>0&255,e[25]=E>>>8&255,e[26]=E>>>16&255,e[27]=E>>>24&255,e[28]=I>>>0&255,e[29]=I>>>8&255,e[30]=I>>>16&255,e[31]=I>>>24&255,e[32]=C>>>0&255,e[33]=C>>>8&255,e[34]=C>>>16&255,e[35]=C>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=N>>>0&255,e[41]=N>>>8&255,e[42]=N>>>16&255,e[43]=N>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=P>>>0&255,e[49]=P>>>8&255,e[50]=P>>>16&255,e[51]=P>>>24&255,e[52]=L>>>0&255,e[53]=L>>>8&255,e[54]=L>>>16&255,e[55]=L>>>24&255,e[56]=R>>>0&255,e[57]=R>>>8&255,e[58]=R>>>16&255,e[59]=R>>>24&255,e[60]=B>>>0&255,e[61]=B>>>8&255,e[62]=B>>>16&255,e[63]=B>>>24&255}(e,t,r,n)}function y(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,b=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,y=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,k=0;k<20;k+=2)o^=(i=(m^=(i=(h^=(i=(c^=(i=o+m|0)<<7|i>>>25)+o|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(a^=(i=(g^=(i=(p^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+g|0)<<18|i>>>14,v^=(i=(f^=(i=(s^=(i=(y^=(i=v+f|0)<<7|i>>>25)+v|0)<<9|i>>>23)+y|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(b^=(i=(d^=(i=(u^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(c^=(i=(d^=(i=(f^=(i=l+c|0)<<7|i>>>25)+l|0)<<9|i>>>23)+f|0)<<13|i>>>19)+d|0)<<18|i>>>14,v^=(i=(p^=(i=(h^=(i=(b^=(i=v+p|0)<<7|i>>>25)+v|0)<<9|i>>>23)+b|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(y^=(i=(g^=(i=(m^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+m|0)<<13|i>>>19)+g|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=v>>>0&255,e[9]=v>>>8&255,e[10]=v>>>16&255,e[11]=v>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>
vendor: 9,923 bytes, line 2
2>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function k(e,t,r,n,i,o,a){var s,u,c=new Uint8Array(16),l=new Uint8Array(64);for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=o[u];for(;i>=64;){for(g(l,c,a,w),u=0;u<64;u++)e[t+u]=r[n+u]^l[u];for(s=1,u=8;u<16;u++)s=s+(255&c[u])|0,c[u]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(g(l,c,a,w),u=0;u<i;u++)e[t+u]=r[n+u]^l[u];return 0}function x(e,t,r,n,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(g(u,s,i,w),a=0;a<64;a++)e[t+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(g(u,s,i,w),a=0;a<r;a++)e[t+a]=u[a];return 0}function S(e,t,r,n,i){var o=new Uint8Array(32);y(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return x(e,t,r,a,o)}function _(e,t,r,n,i,o,a){var s=new Uint8Array(32);y(s,o,a,w);for(var u=new Uint8Array(8),c=0;c<8;c++)u[c]=o[c+16];return k(e,t,r,n,i,u,s)}var M=function(e){var t,r,n,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,r,n,i,o){var a=new M(o);return a.update(r,n,i),a.finish(e,t),0}function E(e,t,r,n,i,o){var a=new Uint8Array(16);return A(a,0,r,n,i,o),b(e,t,a,0)}function I(e,t,r,n,i){var o;if(r<32)return-1;for(_(e,0,t,0,r,n,i),A(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function C(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(S(a,0,32,n,i),0!==E(t,16,t,32,r-32,a))return-1;for(_(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function T(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function N(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function O(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function P(e,r){var n,i,o,a=t(),s=t();for(n=0;n<16;n++)s[n]=r[n];for(N(s),N(s),N(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,O(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function L(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return P(r,e),P(n,t),m(r,0,n,0)}function R(e){var t=new Uint8Array(32);return P(t,e),1&t[0]}function B(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function z(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function D(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function Z(e,t,r){var n,i,o=0,a=0,s=0,u=0,c=0,l=0,f=0,d=0,h=0,p=0,v=0,b=0,m=0,g=0,y=0,w=0,k=0,x=0,S=0,_=0,M=0,A=0,E=0,I=0,C=0,T=0,N=0,O=0,P=0,L=0,R=0,B=r[0],z=r[1],D=r[2],Z=r[3],j=r[4],U=r[5],F=r[6],W=r[7],q=r[8],H=r[9],K=r[10],V=r[11],Y=r[12],Q=r[13],G=r[14],J=r[15];o+=(n=t[0])*B,a+=n*z,s+=n*D,u+=n*Z,c+=n*j,l+=n*U,f+=n*F,d+=n*W,h+=n*q,p+=n*H,v+=n*K,b+=n*V,m+=n*Y,g+=n*Q,y+=n*G,w+=n*J,a+=(n=t[1])*B,s+=n*z,u+=n*D,c+=n*Z,l+=n*j,f+=n*U,d+=n*F,h+=n*W,p+=n*q,v+=n*H,b+=n*K,m+=n*V,g+=n*Y,y+=n*Q,w+=n*G,k+=n*J,s+=(n=t[2])*B,u+=n*z,c+=n*D,l+=n*Z,f+=n*j,d+=n*U,h+=n*F,p+=n*W,v+=n*q,b+=n*H,m+=n*K,g+=n*V,y+=n*Y,w+=n*Q,k+=n*G,x+=n*J,u+=(n=t[3])*B,c+=n*z,l+=n*D,f+=n*Z,d+=n*j,h+=n*U,p+=n*F,v+=n*W,b+=n*q,m+=n*H,g+=n*K,y+=n*V,w+=n*Y,k+=n*Q,x+=n*G,S+=n*J,c+=(n=t[4])*B,l+=n*z,f+=n*D,d+=n*Z,h+=n*j,p+=n*U,v+=n*F,b+=n*W,m+=n*q,g+=n*H,y+=n*K,w+=n*V,k+=n*Y,x+=n*Q,S+=n*G,_+=n*J,l+=(n=t[5])*B,f+=n*z,d+=n*D,h+=n*Z,p+=n*j,v+=n*U,b+=n*F,m+=n*W,g+=n*q,y+=n*H,w+=n*K,k+=n*V,x+=n*Y,S+=n*Q,_+=n*G,M+=n*J,f+=(n=t[6])*B,d+=n*z,h+=n*D,p+=n*Z,v+=n*j,b+=n*U,m+=n*F,g+=n*W,y+=n*q,w+=n*H,k+=n*K,x+=n*V,S+=n*Y,_+=n*Q,M+=n*G,A+=n*J,d+=(n=t[7])*B,h+=n*z,p+=n*D,v+=n*Z,b+=n*j,m+=n*U,g+=n*F,y+=n*W,w+=n*q,k+=n*H,x+=n*K,S+=n*V,_+=n*Y,M+=n*Q,A+=n*G,E+=n*J,h+=(n=t[8])*B,p+=n*z,v+=n*D,b+=n*Z,m+=n*j,g+=n*U,y+=n*F,w+=n*W,k+=n*q,x+=n*H,S+=n*K,_+=n*V,M+=n*Y,A+=n*Q,E+=n*G,I+=n*J,p+=(n=t[9])*B,v+=n*z,b+=n*D,m+=n*Z,g+=n*j,y+=n*U,w+=n*F,k+=n*W,x+=n*q,S+=n*H,_+=n*K,M+=n*V,A+=n*Y,E+=n*Q,I+=n*G,C+=n*J,v+=(n=t[10])*B,b+=n*z,m+=n*D,g+=n*Z,y+=n*j,w+=n*U,k+=n*F,x+=n*W,S+=n*q,_+=n*H,M+=n*K,A+=n*V,E+=n*Y,I+=n*Q,C+=n*G,T+=n*J,b+=(n=t[11])*B,m+=n*z,g+=n*D,y+=n*Z,w+=n*j,k+=n*U,x+=n*F,S+=n*W,_+=n*q,M+=n*H,A+=n*K,E+=n*V,I+=n*Y,C+=n*Q,T+=n*G,N+=n*J,m+=(n=t[12])*B,g+=n*z,y+=n*D,w+=n*Z,k+=n*j,x+=n*U,S+=n*F,_+=n*W,M+=n*q,A+=n*H,E+=n*K,I+=n*V,C+=n*Y,T+=n*Q,N+=n*G,O+=n*J,g+=(n=t[13])*B,y+=n*z,w+=n*D,k+=n*Z,x+=n*j,S+=n*U,_+=n*F,M+=n*W,A+=n*q,E+=n*H,I+=n*K,C+=n*V,T+=n*Y,N+=n*Q,O+=n*G,P+=n*J,y+=(n=t[14])*B,w+=n*z,k+=n*D,x+=n*Z,S+=n*j,_+=n*U,M+=n*F,A+=n*W,E+=n*q,I+=n*H,C+=n*K,T+=n*V,N+=n*Y,O+=n*Q,P+=n*G,L+=n*J,w+=(n=t[15])*B,a+=38*(x+=n*D),s+=38*(S+=n*Z),u+=38*(_+=n*j),c+=38*(M+=n*U),l+=38*(A+=n*F),f+=38*(E+=n*W),d+=38*(I+=n*q),h+=38*(C+=n*H),p+=38*(T+=n*K),v+=38*(N+=n*V),b+=38*(O+=n*Y),m+=38*(P+=n*Q),g+=38*(L+=n*G),y+=38*(R+=n*J),o=(n=(o+=38*(k+=n*z))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=u,e[4]=c,e[5]=l,e[6]=f,e[7]=d,e[8]=h,e[9]=p,e[10]=v,e[11]=b,e[12]=m,e[13]=g,e[14]=y,e[15]=w}function j(e,t){Z(e,t,t)}function U(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)j(i,i),2!==n&&4!==n&&Z(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function F(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)j(i,i),1!==n&&Z(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function W(e,r,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),c=t(),l=t(),f=t(),d=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,B(s,n),o=0;o<16;o++)l[o]=s[o],d[o]=c[o]=f[o]=0;for(c[0]=d[0]=1,o=254;o>=0;--o)O(c,l,i=a[o>>>3]>>>(7&o)&1),O(f,d,i),z(h,c,f),D(c,c,f),z(f,l,d),D(l,l,d),j(d,h),j(p,c),Z(c,f,c),Z(f,l,h),z(h,c,f),D(c,c,f),j(l,c),D(f,d,p),Z(c,f,u),z(c,c,d),Z(f,f,c),Z(c,d,p),Z(d,l,s),j(l,h),O(c,l,i),O(f,d,i);for(o=0;o<16;o++)s[o+16]=c[o],s[o+32]=f[o],s[o+48]=l[o],s[o+64]=d[o];var v=s.subarray(32),b=s.subarray(16);return U(v,v),Z(b,b,v),P(e,b),0}function q(e,t){return W(e,t,o)}function H(e,t){return n(t,32),q(e,t)}function K(e,t,r){var n=new Uint8Array(32);return W(n,r,t),y(e,i,n,w)}M.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,u,c,l,f,d,h,p,v,b,m,g,y,w,k,x=this.fin?0:2048,S=this.h[0],_=this.h[1],M=this.h[2],A=this.h[3],E=this.h[4],I=this.h[5],C=this.h[6],T=this.h[7],N=this.h[8],O=this.h[9],P=this.r[0],L=this.r[1],R=this.r[2],B=this.r[3],z=this.r[4],D=this.r[5],Z=this.r[6],j=this.r[7],U=this.r[8],F=this.r[9];r>=16;)d=f=0,d+=(S+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*P,d+=(_+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),d+=(M+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),d+=(A+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*j),f=(d+=(E+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*Z))>>>13,d&=8191,d+=(I+=s>>>1&8191)*(5*D),d+=(C+=8191&(s>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*z),d+=(T+=8191&(u>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*B),d+=(N+=8191&(c>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*R),h=f+=(d+=(O+=l>>>5|x)*(5*L))>>>13,h+=S*L,h+=_*P,h+=M*(5*F),h+=A*(5*U),f=(h+=E*(5*j))>>>13,h&=8191,h+=I*(5*Z),h+=C*(5*D),h+=T*(5*z),h+=N*(5*B),f+=(h+=O*(5*R))>>>13,h&=8191,p=f,p+=S*R,p+=_*L,p+=M*P,p+=A*(5*F),f=(p+=E*(5*U))>>>13,p&=8191,p+=I*(5*j),p+=C*(5*Z),p+=T*(5*D),p+=N*(5*z),v=f+=(p+=O*(5*B))>>>13,v+=S*B,v+=_*R,v+=M*L,v+=A*P,f=(v+=E*(5*F))>>>13,v&=8191,v+=I*(5*U),v+=C*(5*j),v+=T*(5*Z),v+=N*(5*D),b=f+=(v+=O*(5*z))>>>13,b+=S*z,b+=_*B,b+=M*R,b+=A*L,f=(b+=E*P)>>>13,b&=8191,b+=I*(5*F),b+=C*(5*U),b+=T*(5*j),b+=N*(5*Z),m=f+=(b+=O*(5*D))>>>13,m+=S*D,m+=_*z,m+=M*B,m+=A*R,f=(m+=E*L)>>>13,m&=8191,m+=I*P,m+=C*(5*F),m+=T*(5*U),m+=N*(5*j),g=f+=(m+=O*(5*Z))>>>
vendor: 14,219 bytes, line 2
213,g+=S*Z,g+=_*D,g+=M*z,g+=A*B,f=(g+=E*R)>>>13,g&=8191,g+=I*L,g+=C*P,g+=T*(5*F),g+=N*(5*U),y=f+=(g+=O*(5*j))>>>13,y+=S*j,y+=_*Z,y+=M*D,y+=A*z,f=(y+=E*B)>>>13,y&=8191,y+=I*R,y+=C*L,y+=T*P,y+=N*(5*F),w=f+=(y+=O*(5*U))>>>13,w+=S*U,w+=_*j,w+=M*Z,w+=A*D,f=(w+=E*z)>>>13,w&=8191,w+=I*B,w+=C*R,w+=T*L,w+=N*P,k=f+=(w+=O*(5*F))>>>13,k+=S*F,k+=_*U,k+=M*j,k+=A*Z,f=(k+=E*D)>>>13,k&=8191,k+=I*z,k+=C*B,k+=T*R,k+=N*L,S=d=8191&(f=(f=((f+=(k+=O*P)>>>13)<<2)+f|0)+(d&=8191)|0),_=h+=f>>>=13,M=p&=8191,A=v&=8191,E=b&=8191,I=m&=8191,C=g&=8191,T=y&=8191,N=w&=8191,O=k&=8191,t+=16,r-=16;this.h[0]=S,this.h[1]=_,this.h[2]=M,this.h[3]=A,this.h[4]=E,this.h[5]=I,this.h[6]=C,this.h[7]=T,this.h[8]=N,this.h[9]=O},M.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},M.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var V=I,Y=C;var Q=[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 G(e,t,r,n){for(var i,o,a,s,u,c,l,f,d,h,p,v,b,m,g,y,w,k,x,S,_,M,A,E,I,C,T=new Int32Array(16),N=new Int32Array(16),O=e[0],P=e[1],L=e[2],R=e[3],B=e[4],z=e[5],D=e[6],Z=e[7],j=t[0],U=t[1],F=t[2],W=t[3],q=t[4],H=t[5],K=t[6],V=t[7],Y=0;n>=128;){for(x=0;x<16;x++)S=8*x+Y,T[x]=r[S+0]<<24|r[S+1]<<16|r[S+2]<<8|r[S+3],N[x]=r[S+4]<<24|r[S+5]<<16|r[S+6]<<8|r[S+7];for(x=0;x<80;x++)if(i=O,o=P,a=L,s=R,u=B,c=z,l=D,Z,d=j,h=U,p=F,v=W,b=q,m=H,g=K,V,A=65535&(M=V),E=M>>>16,I=65535&(_=Z),C=_>>>16,A+=65535&(M=(q>>>14|B<<18)^(q>>>18|B<<14)^(B>>>9|q<<23)),E+=M>>>16,I+=65535&(_=(B>>>14|q<<18)^(B>>>18|q<<14)^(q>>>9|B<<23)),C+=_>>>16,A+=65535&(M=q&H^~q&K),E+=M>>>16,I+=65535&(_=B&z^~B&D),C+=_>>>16,A+=65535&(M=Q[2*x+1]),E+=M>>>16,I+=65535&(_=Q[2*x]),C+=_>>>16,_=T[x%16],E+=(M=N[x%16])>>>16,I+=65535&_,C+=_>>>16,I+=(E+=(A+=65535&M)>>>16)>>>16,A=65535&(M=k=65535&A|E<<16),E=M>>>16,I=65535&(_=w=65535&I|(C+=I>>>16)<<16),C=_>>>16,A+=65535&(M=(j>>>28|O<<4)^(O>>>2|j<<30)^(O>>>7|j<<25)),E+=M>>>16,I+=65535&(_=(O>>>28|j<<4)^(j>>>2|O<<30)^(j>>>7|O<<25)),C+=_>>>16,E+=(M=j&U^j&F^U&F)>>>16,I+=65535&(_=O&P^O&L^P&L),C+=_>>>16,f=65535&(I+=(E+=(A+=65535&M)>>>16)>>>16)|(C+=I>>>16)<<16,y=65535&A|E<<16,A=65535&(M=v),E=M>>>16,I=65535&(_=s),C=_>>>16,E+=(M=k)>>>16,I+=65535&(_=w),C+=_>>>16,P=i,L=o,R=a,B=s=65535&(I+=(E+=(A+=65535&M)>>>16)>>>16)|(C+=I>>>16)<<16,z=u,D=c,Z=l,O=f,U=d,F=h,W=p,q=v=65535&A|E<<16,H=b,K=m,V=g,j=y,x%16===15)for(S=0;S<16;S++)_=T[S],A=65535&(M=N[S]),E=M>>>16,I=65535&_,C=_>>>16,_=T[(S+9)%16],A+=65535&(M=N[(S+9)%16]),E+=M>>>16,I+=65535&_,C+=_>>>16,w=T[(S+1)%16],A+=65535&(M=((k=N[(S+1)%16])>>>1|w<<31)^(k>>>8|w<<24)^(k>>>7|w<<25)),E+=M>>>16,I+=65535&(_=(w>>>1|k<<31)^(w>>>8|k<<24)^w>>>7),C+=_>>>16,w=T[(S+14)%16],E+=(M=((k=N[(S+14)%16])>>>19|w<<13)^(w>>>29|k<<3)^(k>>>6|w<<26))>>>16,I+=65535&(_=(w>>>19|k<<13)^(k>>>29|w<<3)^w>>>6),C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,T[S]=65535&I|C<<16,N[S]=65535&A|E<<16;A=65535&(M=j),E=M>>>16,I=65535&(_=O),C=_>>>16,_=e[0],E+=(M=t[0])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[0]=O=65535&I|C<<16,t[0]=j=65535&A|E<<16,A=65535&(M=U),E=M>>>16,I=65535&(_=P),C=_>>>16,_=e[1],E+=(M=t[1])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[1]=P=65535&I|C<<16,t[1]=U=65535&A|E<<16,A=65535&(M=F),E=M>>>16,I=65535&(_=L),C=_>>>16,_=e[2],E+=(M=t[2])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[2]=L=65535&I|C<<16,t[2]=F=65535&A|E<<16,A=65535&(M=W),E=M>>>16,I=65535&(_=R),C=_>>>16,_=e[3],E+=(M=t[3])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[3]=R=65535&I|C<<16,t[3]=W=65535&A|E<<16,A=65535&(M=q),E=M>>>16,I=65535&(_=B),C=_>>>16,_=e[4],E+=(M=t[4])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[4]=B=65535&I|C<<16,t[4]=q=65535&A|E<<16,A=65535&(M=H),E=M>>>16,I=65535&(_=z),C=_>>>16,_=e[5],E+=(M=t[5])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[5]=z=65535&I|C<<16,t[5]=H=65535&A|E<<16,A=65535&(M=K),E=M>>>16,I=65535&(_=D),C=_>>>16,_=e[6],E+=(M=t[6])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[6]=D=65535&I|C<<16,t[6]=K=65535&A|E<<16,A=65535&(M=V),E=M>>>16,I=65535&(_=Z),C=_>>>16,_=e[7],E+=(M=t[7])>>>16,I+=65535&_,C+=_>>>16,C+=(I+=(E+=(A+=65535&M)>>>16)>>>16)>>>16,e[7]=Z=65535&I|C<<16,t[7]=V=65535&A|E<<16,Y+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,G(i,o,t,r),r%=128,n=0;n<r;n++)a[n]=t[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),G(i,o,a,r),n=0;n<8;n++)p(e,8*n,i[n],o[n]);return 0}function X(e,r){var n=t(),i=t(),o=t(),a=t(),s=t(),u=t(),c=t(),f=t(),d=t();D(n,e[1],e[0]),D(d,r[1],r[0]),Z(n,n,d),z(i,e[0],e[1]),z(d,r[0],r[1]),Z(i,i,d),Z(o,e[3],r[3]),Z(o,o,l),Z(a,e[2],r[2]),z(a,a,a),D(s,i,n),D(u,a,o),z(c,a,o),z(f,i,n),Z(e[0],s,u),Z(e[1],f,c),Z(e[2],c,u),Z(e[3],s,f)}function $(e,t,r){var n;for(n=0;n<4;n++)O(e[n],t[n],r)}function ee(e,r){var n=t(),i=t(),o=t();U(o,r[2]),Z(n,r[0],o),Z(i,r[1],o),P(e,i),e[31]^=R(n)<<7}function te(e,t,r){var n,i;for(T(e[0],a),T(e[1],s),T(e[2],s),T(e[3],a),i=255;i>=0;--i)$(e,t,n=r[i/8|0]>>(7&i)&1),X(t,e),X(e,e),$(e,t,n)}function re(e,r){var n=[t(),t(),t(),t()];T(n[0],f),T(n[1],d),T(n[2],s),Z(n[3],f,d),te(e,n,r)}function ne(e,r,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||n(r,32),J(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,re(s,a),ee(e,s),o=0;o<32;o++)r[o+32]=e[o];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*ie[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ae(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function se(e,r,n,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),f=[t(),t(),t(),t()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=n+64;for(o=0;o<n;o++)e[64+o]=r[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(J(c,e.subarray(32),n+32),ae(c),re(f,c),ee(e,f),o=32;o<64;o++)e[o]=i[o];for(J(u,e,n+64),ae(u),o=0;o<64;o++)l[o]=0;for(o=0;o<32;o++)l[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)l[o+a]+=u[o]*s[a];return oe(e.subarray(32),l),d}function ue(e,r,n,i){var o,u=new Uint8Array(32),l=new Uint8Array(64),f=[t(),t(),t(),t()],d=[t(),t(),t(),t()];if(n<64)return-1;if(function(e,r){var n=t(),i=t(),o=t(),u=t(),l=t(),f=t(),d=t();return T(e[2],s),B(e[1],r),j(o,e[1]),Z(u,o,c),D(o,o,e[2]),z(u,e[2],u),j(l,u),j(f,l),Z(d,f,l),Z(n,d,o),Z(n,n,u),F(n,n),Z(n,n,o),Z(n,n,u),Z(n,n,u),Z(e[0],n,u),j(i,e[0]),Z(i,i,u),L(i,o)&&Z(e[0],e[0],h),j(i,e[0]),Z(i,i,u),L(i,o)?-1:(R(e[0])===r[31]>>7&&D(e[0],a,e[0]),Z(e[3],e[0],e[1]),0)}(d,i))return-1;for(o=0;o<n;o++)e[o]=r[o];for(o=0;o<32;o++)e[o+32]=i[o];if(J(l,e,n),ae(l),te(f,d,l),re(d,r.subarray(32)),X(f,d),ee(u,f),n-=64,m(r,0,u,0)){for(o=0;o<n;o++)e[o]=0;return-1}for(o=0;o<n;o++)e[o]=r[o+64];return n}var ce=16,le=64,fe=32,de=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ve(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:_,crypto_stream:S,crypto_stream_salsa20_xor:k,crypto_stream_salsa20:x,crypto_onetimeauth:A,crypto_onetimeauth_verify:E,crypto_verify_16:b,crypto_verify_32:m,crypto_secretbox:I,crypto_secretbox_open:C,crypto_scalarmult:W,crypto_scalarmult_base:q,crypto_box_beforenm:K,crypto_box_afternm:V,crypto_box:function(e,t,r,n,i,o){var a=new Uint8Array(32);return K(a,i,o),V(e,t,r,n,a)},crypto_box_open:function(e,t,r,n,i,o){var a=new Uint8Array(32);return K(a,i,o),Y(e,t,r,n,a)},crypto_box_keypair:H,crypto_hash:J,crypto_sign:se,crypto_sign_keypair:ne,crypto_sign_open:ue,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:le,crypto_sign_PUBLICKEYBYTES:fe,crypto_sign_SECRETKEYBYTES:de,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:ie,pack25519:P,unpack25519:B,M:Z,A:z,S:j,Z:D,pow2523:F,add:X,set25519:T,modL:oe,scalarmult:te,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return I(i,n,n.length,t,r),i.subarray(ce)},e.secretbox.open=function(e,t,r){pe(e,t,r),he(r,t);for(var n=new Uint8Array(ce+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+ce]=e[o];return n.length<32||0!==C(i,n,n.length,t,r)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return W(r,e,t),r},e.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox(t,r,o)},e.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return K(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox.open(t,r,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return H(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad secret key size");var r=new Uint8Array(le+e.length);return se(r,e,e.length,t),r},e.sign.open=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad public key size");
2var r=new Uint8Array(e.length),n=ue(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(le),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached.verify=function(e,t,r){if(pe(e,t,r),t.length!==le)throw new Error("bad signature size");if(r.length!==fe)throw new Error("bad public key size");var n,i=new Uint8Array(le+e.length),o=new Uint8Array(le+e.length);for(n=0;n<le;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+le]=e[n];return ue(o,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(fe),t=new Uint8Array(de);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==de)throw new Error("bad secret key size");for(var t=new Uint8Array(fe),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(fe),r=new Uint8Array(de),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=fe,e.sign.secretKeyLength=de,e.sign.seedLength=32,e.sign.signatureLength=le,e.hash=function(e){pe(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===v(e,0,t,0,e.length))},e.setPRNG=function(e){n=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)t.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)e[n]=i[n];ve(i)}))}else(t=r(5024))&&t.randomBytes&&e.setPRNG((function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];ve(i)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},3741:function(e,t,r){"use strict";r.d(t,{v4:function(){return n.Z}});var n=r(2810)},2810:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return f}});var i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"===typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var f=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return l(n)}},9752:function(e,t,r){"use strict";r.r(t),t.default={}},6601:function(){},9214:function(){},5568:function(){},5024:function(){},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7156:function(e){function t(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,r){var n=r(6015),i=r(9617);function o(t,r,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}
2e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4704:function(e,t,r){var n=r(6116);e.exports=function(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,r){var n=r(3808),i=r(9617),o=r(4993);e.exports=function(e){var t=i();return function(){var r,i=n(e);if(t){var a=n(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return o(this,r)}},e.exports.__esModule=!0,e.exports.default=e.exports},8416:function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,r){var n=r(1753);function i(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var i=n(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,r){var n=r(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6035:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,r){var n=r(8698).default,i=r(6115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,r){var n=r(8698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}
vendor: 4,140 bytes, line 2
2try{l({},"")}catch(C){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),a=new A(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return I()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=f;var h={};function p(){}function v(){}function b(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==r&&o.call(y,s)&&(m=y);var w=b.prototype=p.prototype=Object.create(m);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,a,s,u){var c=d(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=b,l(w,"constructor",b),l(b,"constructor",v),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},k(x.prototype),l(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new x(f(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),l(w,c,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(M),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,r){var n=r(5372),i=r(8872),o=r(6116),a=r(2218);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,r){var n=r(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,r){var n=r(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},3496:function(e,t,r){var n=r(3808),i=r(6015),o=r(6035),a=r(3515);function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,r){var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},907:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},3878:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{Z:function(){return n}})},7326:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},5861:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}r.d(t,{Z:function(){return i}})},5671:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},3144:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{Z:function(){return i}})},7762:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(181);function i(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,n.Z)(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e}
2,f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}},7277:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(1120),i=r(8814),o=r(1002),a=r(7326);function s(e,t){if(t&&("object"===(0,o.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function u(e){var t=(0,i.Z)();return function(){var r,i=(0,n.Z)(e);if(t){var o=(0,n.Z)(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return s(this,r)}}},4942:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return n}})},1120:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},136:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(9611);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.Z)(e,t)}},8814:function(e,t,r){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}r.d(t,{Z:function(){return n}})},9199:function(e,t,r){"use strict";function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},5267:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return n}})},1413:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(4942);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},4925:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{Z:function(){return n}})},4165:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1002);function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(I){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new M(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function h(){}function p(){}function v(){}var b={};c(b,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(A([])));g&&g!==t&&r.call(g,a)&&(b=g);var y=v.prototype=h.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,397 bytes, line 2
2))}function k(e,t){function i(o,a,s,u){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==(0,n.Z)(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=v,c(y,"constructor",v),c(v,"constructor",p),p.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},w(k.prototype),c(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(y),c(y,u,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];
2if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}},9611:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})},9439:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(3878);var i=r(181),o=r(5267);function a(e,t){return(0,n.Z)(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},3433:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(907);var i=r(9199),o=r(181);function a(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:function(){return n}})},181:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(907);function i(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}},8737:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(1120),i=r(9611);var o=r(8814);function a(e,t,r){return a=(0,o.Z)()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,i.Z)(o,r.prototype),o},a.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,(0,n.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(o,e)},s(e)}},9344:function(e,t,r){"use strict";function n(e,t,r){return t<=e&&e<=r}function i(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}r.r(t),r.d(t,{TextDecoder:function(){return c},TextEncoder:function(){return l}});function o(e){this.tokens=[].slice.call(e)}o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var a=-1;function s(e,t){if(e)throw TypeError("Decoder error");return t||65533}var u="utf-8";function c(e,t){if(!(this instanceof c))return new c(e,t);if((e=void 0!==e?String(e).toLowerCase():u)!==u)throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function l(e,t){if(!(this instanceof l))return new l(e,t);
2if((e=void 0!==e?String(e).toLowerCase():u)!==u)throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function f(e){var t=e.fatal,r=0,i=0,o=0,u=128,c=191;this.handler=function(e,l){if(-1===l&&0!==o)return o=0,s(t);if(-1===l)return a;if(0===o){if(n(l,0,127))return l;if(n(l,194,223))o=1,r=l-192;else if(n(l,224,239))224===l&&(u=160),237===l&&(c=159),o=2,r=l-224;else{if(!n(l,240,244))return s(t);240===l&&(u=144),244===l&&(c=143),o=3,r=l-240}return r<<=6*o,null}if(!n(l,u,c))return r=o=i=0,u=128,c=191,e.prepend(l),s(t);if(u=128,c=191,r+=l-128<<6*(o-(i+=1)),i!==o)return null;var f=r;return r=o=i=0,f}}function d(e){e.fatal;this.handler=function(e,t){if(-1===t)return a;if(n(t,0,127))return t;var r,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var o=[(t>>6*r)+i];r>0;){var s=t>>6*(r-1);o.push(128|63&s),r-=1}return o}}c.prototype={decode:function(e,t){var r;r="object"===typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"===typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=i(t),this._streaming||(this._decoder=new f({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var n,s=new o(r),u=[];!s.endOfStream()&&(n=this._decoder.handler(s,s.read()))!==a;)null!==n&&(Array.isArray(n)?u.push.apply(u,n):u.push(n));if(!this._streaming){do{if((n=this._decoder.handler(s,s.read()))===a)break;null!==n&&(Array.isArray(n)?u.push.apply(u,n):u.push(n))}while(!s.endOfStream());this._decoder=null}return u.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===u[0]?(this._BOMseen=!0,u.shift()):this._BOMseen=!0)),function(e){for(var t="",r=0;r<e.length;++r){var n=e[r];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return t}(u)}},l.prototype={encode:function(e,t){e=e?String(e):"",t=i(t),this._streaming||(this._encoder=new d(this._options)),this._streaming=Boolean(t.stream);for(var r,n=[],s=new o(function(e){for(var t=String(e),r=t.length,n=0,i=[];n<r;){var o=t.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===r-1)i.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),n+=1}else i.push(65533)}n+=1}return i}(e));!s.endOfStream()&&(r=this._encoder.handler(s,s.read()))!==a;)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;(r=this._encoder.handler(s,s.read()))!==a;)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}}},8597:function(e){"use strict";e.exports={i8:"6.5.4"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,r.amdO={},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(o,a),o}}(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return"static/js/"+e+"."+{126:"c9da7e95",220:"d7d909b2",431:"a492c266",489:"566a864f",507:"4b86d64a",608:"0f5a1b8e",787:"e6cb1a90"}[e]+".chunk.js"},r.miniCssF=function(e){},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}
2}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="corp:";r.l=function(n,i,o,a){if(e[n])e[n].push(i);else{var s,u;if(void 0!==o)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var f=c[l];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[i];var d=function(t,r){s.onerror=s.onload=null,clearTimeout(h);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(r)})),t)return t(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.p="/",function(){var e={179:0};r.f.j=function(t,n){var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((function(r,n){i=e[t]=[r,n]}));n.push(i[2]=o);var a=r.p+r.u(t),s=new Error;r.l(a,(function(n){if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,n){var i,o,a=n[0],s=n[1],u=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(u)u(r)}for(t&&t(n);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkcorp=self.webpackChunkcorp||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";var e=r(2791),t=r(1250),n=r(6661),i=(0,e.createContext)({});var o,a=function(t){var r=t.children,o=t.endpoint,a=t.config,s=void 0===a?{commitment:"confirmed"}:a,u=(0,e.useMemo)((function(){return new n.ew(o,s)}),[o,s]);return e.createElement(i.Provider,{value:{connection:u}},r)},s=r(3144),u=r(5671),c=r(136),l=r(7277),f=r(7762),d=r(4165),h=r(5861),p=r(7143),v=r(8737),b=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e,n){var i;return(0,u.Z)(this,r),(i=t.call(this,e)).error=n,i}return(0,s.Z)(r)}((0,v.Z)(Error)),m=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletNotReadyError",e}return(0,s.Z)(r)}(b),g=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletLoadError",e}return(0,s.Z)(r)}(b),y=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletConfigError",e}return(0,s.Z)(r)}(b),w=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletConnectionError",e}return(0,s.Z)(r)}(b),k=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletDisconnectedError",e}return(0,s.Z)(r)}(b),x=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletDisconnectionError",e}return(0,s.Z)(r)}(b),S=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletAccountError",e}return(0,s.Z)(r)}(b),_=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletPublicKeyError",e}return(0,s.Z)(r)}(b),M=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletNotConnectedError",e}return(0,s.Z)(r)}(b),A=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletSendTransactionError",e}return(0,s.Z)(r)}(b),E=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletSignMessageError",e}return(0,s.Z)(r)}(b),I=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletSignTransactionError",e}return(0,s.Z)(r)}(b),C=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletWindowClosedError",e}return(0,s.Z)(r)}(b);!function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"}(o||(o={}));var T=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){return(0,u.Z)(this,r),t.apply(this,arguments)}
2return(0,s.Z)(r,[{key:"connected",get:function(){return!!this.publicKey}},{key:"prepareTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r){var n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.publicKey){e.next=3;break}throw new M;case 3:if(t.feePayer=t.feePayer||n,e.t0=t.recentBlockhash,e.t0){e.next=9;break}return e.next=8,r.getRecentBlockhash("finalized");case 8:e.t0=e.sent.blockhash;case 9:return t.recentBlockhash=e.t0,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(p);function N(e){if("undefined"!==typeof window&&"undefined"!==typeof document){var t=[],r=setInterval(n,1e3);t.push((function(){return clearInterval(r)})),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),t.push((function(){return document.removeEventListener("DOMContentLoaded",n)}))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),t.push((function(){return window.removeEventListener("load",n)}))),n()}function n(){if(e()){var r,n=(0,f.Z)(t);try{for(n.s();!(r=n.n()).done;){(0,r.value)()}}catch(i){n.e(i)}finally{n.f()}}}}var O,P=r(3433),L=r(4925),R=["signers"],B=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){return(0,u.Z)(this,r),t.apply(this,arguments)}return(0,s.Z)(r,[{key:"sendTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r){var n,i,o,a,s,u,c=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},i=!0,e.prev=2,e.prev=3,e.next=6,this.prepareTransaction(t,r);case 6:return t=e.sent,a=n.signers,s=(0,L.Z)(n,R),(null===a||void 0===a?void 0:a.length)&&(o=t).partialSign.apply(o,(0,P.Z)(a)),e.next=11,this.signTransaction(t);case 11:return t=e.sent,u=t.serialize(),e.next=15,r.sendRawTransaction(u,s);case 15:return e.abrupt("return",e.sent);case 18:if(e.prev=18,e.t0=e.catch(3),!(e.t0 instanceof I)){e.next=23;break}throw i=!1,e.t0;case 23:throw new A(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 24:e.next=30;break;case 26:throw e.prev=26,e.t1=e.catch(2),i&&this.emit("error",e.t1),e.t1;case 30:case"end":return e.stop()}}),e,this,[[2,26],[3,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(T),z=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){return(0,u.Z)(this,r),t.apply(this,arguments)}return(0,s.Z)(r)}(B);!function(e){e.Mainnet="mainnet-beta",e.Testnet="testnet",e.Devnet="devnet"}(O||(O={}));var D=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.apply(this,arguments)).name="WalletNotSelectedError",e}return(0,s.Z)(r)}(b),Z=[],j={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select:function(e){console.error(U("get","select"))},connect:function(){return Promise.reject(console.error(U("get","connect")))},disconnect:function(){return Promise.reject(console.error(U("get","disconnect")))},sendTransaction:function(e,t,r){return Promise.reject(console.error(U("get","sendTransaction")))},signTransaction:function(e){return Promise.reject(console.error(U("get","signTransaction")))},signAllTransactions:function(e){return Promise.reject(console.error(U("get","signAllTransactions")))},signMessage:function(e){return Promise.reject(console.error(U("get","signMessage")))}};function U(e,t){return"You have tried to "+" ".concat(e,' "').concat(t,'"')+" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext"}Object.defineProperty(j,"wallets",{get:function(){return console.error(U("read","wallets")),Z}}),Object.defineProperty(j,"wallet",{get:function(){return console.error(U("read","wallet")),null}}),Object.defineProperty(j,"publicKey",{get:function(){return console.error(U("read","publicKey")),null}});var F=(0,e.createContext)(j);function W(){return(0,e.useContext)(F)}var q=r(1413),H=r(9439),K={wallet:null,adapter:null,publicKey:null,connected:!1},V=function(t){var r=t.children,n=t.wallets,i=t.autoConnect,a=void 0!==i&&i,s=t.onError,u=t.localStorageKey,c=function(t,r){var n=(0,e.useState)((function(){try{var e=localStorage.getItem(t);if(e)return JSON.parse(e)}catch(n){"undefined"!==typeof window&&console.error(n)}return r})),i=n[0],o=(0,e.useRef)(!0);return(0,e.useEffect)((function(){if(o.current)o.current=!1;else try{null===i?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(i))}catch(e){"undefined"!==typeof window&&console.error(e)}}),[i]),n}(void 0===u?"walletName":u,null),l=(0,H.Z)(c,2),p=l[0],v=l[1],b=(0,e.useState)(K),g=(0,H.Z)(b,2),y=g[0],w=y.wallet,k=y.adapter,x=y.publicKey,S=y.connected,_=g[1],A=(null===k||void 0===k?void 0:k.readyState)||o.Unsupported,E=(0,e.useState)(!1),I=(0,H.Z)(E,2),C=I[0],T=I[1],N=(0,e.useState)(!1),O
2=(0,H.Z)(N,2),L=O[0],R=O[1],B=(0,e.useRef)(!1),z=(0,e.useRef)(!1),Z=(0,e.useRef)(!1),j=(0,e.useState)((function(){return n.map((function(e){return{adapter:e,readyState:e.readyState}}))})),U=(0,H.Z)(j,2),W=U[0],V=U[1];(0,e.useEffect)((function(){function e(e){var t=this;V((function(r){var n=r.findIndex((function(e){return e.adapter.name===t.name}));return-1===n?r:[].concat((0,P.Z)(r.slice(0,n)),[(0,q.Z)((0,q.Z)({},r[n]),{},{readyState:e})],(0,P.Z)(r.slice(n+1)))}))}var t,r=(0,f.Z)(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.on("readyStateChange",e,i)}}catch(o){r.e(o)}finally{r.f()}return function(){var t,r=(0,f.Z)(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.off("readyStateChange",e,i)}}catch(o){r.e(o)}finally{r.f()}}}),[n]),(0,e.useEffect)((function(){var e=W.find((function(e){return e.adapter.name===p}));_(e?{wallet:e,adapter:e.adapter,connected:e.adapter.connected,publicKey:e.adapter.publicKey}:K)}),[p,W]),(0,e.useEffect)((function(){B.current||C||S||!a||!k||A!==o.Installed&&A!==o.Loadable||(0,h.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B.current=!0,T(!0),e.prev=2,e.next=5,k.connect();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),v(null);case 10:return e.prev=10,T(!1),B.current=!1,e.finish(10);case 14:case"end":return e.stop()}}),e,null,[[2,7,10,14]])})))()}),[B,C,S,a,k,A]),(0,e.useEffect)((function(){function e(){Z.current=!0}return window.addEventListener("beforeunload",e),function(){return window.removeEventListener("beforeunload",e)}}),[Z]);var Y=(0,e.useCallback)((function(){k&&_((function(e){return(0,q.Z)((0,q.Z)({},e),{},{connected:k.connected,publicKey:k.publicKey})}))}),[k]),Q=(0,e.useCallback)((function(){Z.current||v(null)}),[Z]),G=(0,e.useCallback)((function(e){return Z.current||(s||console.error)(e),e}),[Z,s]);(0,e.useEffect)((function(){if(k)return k.on("connect",Y),k.on("disconnect",Q),k.on("error",G),function(){k.off("connect",Y),k.off("disconnect",Q),k.off("error",G)}}),[k,Y,Q,G]),(0,e.useEffect)((function(){return function(){null===k||void 0===k||k.disconnect()}}),[k]);var J=(0,e.useCallback)((0,h.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(B.current||C||L||S)){e.next=2;break}return e.abrupt("return");case 2:if(k){e.next=4;break}throw G(new D);case 4:if(A===o.Installed||A===o.Loadable){e.next=8;break}throw v(null),"undefined"!==typeof window&&window.open(k.url,"_blank"),G(new m);case 8:return B.current=!0,T(!0),e.prev=10,e.next=13,k.connect();case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(10),v(null),e.t0;case 19:return e.prev=19,T(!1),B.current=!1,e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[10,15,19,23]])}))),[B,C,L,S,k,A,G]),X=(0,e.useCallback)((0,h.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!z.current&&!L){e.next=2;break}return e.abrupt("return");case 2:if(k){e.next=4;break}return e.abrupt("return",v(null));case 4:return z.current=!0,R(!0),e.prev=6,e.next=9,k.disconnect();case 9:e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(6),v(null),e.t0;case 15:return e.prev=15,R(!1),z.current=!1,e.finish(15);case 19:case"end":return e.stop()}}),e,null,[[6,11,15,19]])}))),[z,L,k]),$=(0,e.useCallback)(function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k){e.next=2;break}throw G(new D);case 2:if(S){e.next=4;break}throw G(new M);case 4:return e.next=6,k.sendTransaction(t,r,n);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),[k,G,S]),ee=(0,e.useMemo)((function(){return k&&"signTransaction"in k?function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S){e.next=2;break}throw G(new M);case 2:return e.next=4,k.signTransaction(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():void 0}),[k,G,S]),te=(0,e.useMemo)((function(){return k&&"signAllTransactions"in k?function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S){e.next=2;break}throw G(new M);case 2:return e.next=4,k.signAllTransactions(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():void 0}),[k,G,S]),re=(0,e.useMemo)((function(){return k&&"signMessage"in k?function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S){e.next=2;break}throw G(new M);case 2:return e.next=4,k.signMessage(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():void 0}),[k,G,S]);return e.createElement(F.Provider,{value:{autoConnect:a,wallets:W,wallet:w,publicKey:x,connected:S,connecting:C,disconnecting:L,select:v,connect:J,disconnect:X,sendTransaction:$,signTransaction:ee,signAllTransactions:te,signMessage:re}},r)},Y=(r(6315),["signers"]),Q="Coinbase",G=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this)).name=Q,e.url="https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",e.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSI1MTIiIHI9IjUxMiIgZmlsbD0iIzAwNTJGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1MiA1MTJDMTUyIDcxMC44MjMgMzEzLjE3NyA4NzIgNTEyIDg3MkM3MTAuODIzIDg3MiA4NzIgNzEwLjgyMyA4NzIgNTEyQzg3MiAzMTMuMTc3IDcxMC44MjMgMTUyIDUxMiAxNTJDMzEzLjE3NyAxNTIgMTUyIDMxMy4xNzcgMTUyIDUxMlpNNDIwIDM5NkM0MDYuNzQ1IDM5NiAzOTYgNDA2Ljc0NSAzOTYgNDIwVjYwNEMzOTYgNjE3LjI1NSA0MDYuNzQ1IDYyOCA0MjAgNjI4S
2DYwNEM2MTcuMjU1IDYyOCA2MjggNjE3LjI1NSA2MjggNjA0VjQyMEM2MjggNDA2Ljc0NSA2MTcuMjU1IDM5NiA2MDQgMzk2SDQyMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",e._readyState="undefined"===typeof window||"undefined"===typeof document?o.Unsupported:o.NotDetected,e._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._wallet=null,e._publicKey=null,e.emit("error",new k),e.emit("disconnect"))},e._connecting=!1,e._wallet=null,e._publicKey=null,e._readyState!==o.Unsupported&&N((function(){return!!(null===window||void 0===window?void 0:window.coinbaseSolana)&&(e._readyState=o.Installed,e.emit("readyStateChange",e._readyState),!0)})),e}return(0,s.Z)(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){return!!this._publicKey}},{key:"readyState",get:function(){return this._readyState}},{key:"connect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.connected&&!this.connecting){e.next=3;break}return e.abrupt("return");case 3:if(this._readyState===o.Installed){e.next=5;break}throw new m;case 5:return this._connecting=!0,t=window.coinbaseSolana,e.prev=7,e.next=10,t.connect();case 10:e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(7),new w(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:if(t.publicKey){e.next=17;break}throw new S;case 17:e.prev=17,r=new n.nh(t.publicKey.toBytes()),e.next=24;break;case 21:throw e.prev=21,e.t1=e.catch(17),new _(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 24:t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=r,this.emit("connect",r),e.next=34;break;case 30:throw e.prev=30,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 34:return e.prev=34,this._connecting=!1,e.finish(34);case 37:case"end":return e.stop()}}),e,this,[[0,30,34,37],[7,12],[17,21]])})));return function(){return e.apply(this,arguments)}}()},{key:"disconnect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._wallet)){e.next=13;break}return t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,e.prev=5,e.next=8,t.disconnect();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this.emit("error",new x(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0));
2case 13:this.emit("disconnect");case 14:case"end":return e.stop()}}),e,this,[[5,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"sendTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r){var n,i,o,a,s,u,c,l=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>2&&void 0!==l[2]?l[2]:{},e.prev=1,i=this._wallet){e.next=5;break}throw new M;case 5:return e.prev=5,e.next=8,this.prepareTransaction(t,r);case 8:return t=e.sent,a=n.signers,s=(0,L.Z)(n,Y),(null===a||void 0===a?void 0:a.length)&&(o=t).partialSign.apply(o,(0,P.Z)(a)),e.next=13,i.signAndSendTransaction(t,s);case 13:return u=e.sent,c=u.signature,e.abrupt("return",c);case 18:if(e.prev=18,e.t0=e.catch(5),!(e.t0 instanceof b)){e.next=22;break}throw e.t0;case 22:throw new A(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 23:e.next=29;break;case 25:throw e.prev=25,e.t1=e.catch(1),this.emit("error",e.t1),e.t1;case 29:case"end":return e.stop()}}),e,this,[[1,25],[5,18]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signAllTransactions",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signMessage",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r,n,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return n=e.sent,i=n.signature,e.abrupt("return",i);case 12:throw e.prev=12,e.t0=e.catch(4),new I(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:e.next=21;break;case 17:throw e.prev=17,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 21:case"end":return e.stop()}}),e,this,[[0,17],[4,12]])})));return function(t){return e.apply(this,arguments)}}()}]),r}(z),J=r(9778);"undefined"!==typeof window&&void 0===window.Buffer&&(window.Buffer=J.Buffer);r(670),r(9778).Buffer;var X=["signers"],$="Phantom",ee=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this)).name=$,e.url="https://phantom.app",e.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjM0IiB3aWR0aD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iLjUiIHgyPSIuNSIgeTE9IjAiIHkyPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM1MzRiYjEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM1NTFiZjkiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9Ii41IiB4Mj0iLjUiIHkxPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii44MiIvPjwvbGluZWFyR3JhZGllbnQ+PGNpcmNsZSBjeD0iMTciIGN5PSIxNyIgZmlsbD0idXJsKCNhKSIgcj0iMTciLz48cGF0aCBkPSJtMjkuMTcwMiAxNy4yMDcxaC0yLjk5NjljMC02LjEwNzQtNC45NjgzLTExLjA1ODE3LTExLjA5NzUtMTEuMDU4MTctNi4wNTMyNSAwLTEwLjk3NDYzIDQuODI5NTctMTEuMDk1MDggMTAuODMyMzctLjEyNDYxIDYuMjA1IDUuNzE3NTIgMTEuNTkzMiAxMS45NDUzOCAxMS41OTMyaC43ODM0YzUuNDkwNiAwIDEyLjg0OTctNC4yODI5IDEzLjk5OTUtOS41MDEzLjIxMjMtLjk2MTktLjU1MDItMS44NjYxLTEuNTM4OC0xLjg2NjF6bS0xOC41NDc5LjI3MjFjMCAuODE2Ny0uNjcwMzggMS40ODQ3LTEuNDkwMDEgMS40ODQ3LS44MTk2NCAwLTEuNDg5OTgtLjY2ODMtMS40ODk5OC0xLjQ4NDd2LTIuNDAxOWMwLS44MTY3LjY3MDM0LTEuNDg0NyAxLjQ4OTk4LTEuNDg0Ny44MTk2MyAwIDEuNDkwMDEuNjY4IDEuNDkwMDEgMS40ODQ3em01LjE3MzggMGMwIC44MTY3LS42NzAzIDEuNDg0Ny0xLjQ4OTkgMS40ODQ3LS44MTk3IDAtMS40OS0uNjY4My0xLjQ5LTEuNDg0N3YtMi40MDE5YzAtLjgxNjcuNjcwNi0xLjQ4NDcgMS40OS0xLjQ4NDcuODE5NiAwIDEuNDg5OS42NjggMS40ODk5IDEuNDg0N3oiIGZpbGw9InVybCgjYikiLz48L3N2Zz4K",e._readyState="undefined"===typeof window||"undefined"===typeof document?o.Unsupported:o.NotDetected,e._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._wallet=null,e._publicKey=null,e.emit("error",new k),e.emit("disconnect"))},e._connecting=!1,e._wallet=null,e._publicKey=null,e._readyState!==o.Unsupported&&N((function(){var t;return!!(null===(t=window.solana)||void 0===t?void 0:t.isPhantom)&&(e._readyState=o.Installed,e.emit("readyStateChange",e._readyState),!0)})),e}return(0,s.Z)(r,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var e;return!!(null===(e=this._wallet)||void 0===e?void 0:e.isConnected)}},{key:"readyState",get:function(){return this._readyState}},{key:"connect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,r,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.connected&&!this.connecting){e.next=3;break}return e.abrupt("return");case 3:if(this._readyState===o.Installed){e.next=5;break}throw new m;case 5:if(this._connecting=!0,(t=window.solana).isConnected){e.next=22;break}return r=t._handleDisconnect,e.prev=9,e.next=12,new Promise((function(e,n){var i=function r(){t.off("connect",r),e()};t._handleDisconnect=function(){t.off("connect",i),n(new C);for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return r.apply(t,o)},t.on("connect",i),t.connect().catch((function(e){t.off("connect",i),n(e)}))}));case 12:e.next=19;break;case 14:if(e.prev=14,e.t0=e.catch(9),!(e.t0 instanceof b)){e.next=18;break}throw e.t0;case 18:throw new w(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 19:return e.prev=19,t._handleDisconnect=r,e.finish(19);case 22:if(t.publicKey){e.next=24;break}throw new S;case 24:e.prev=24,i=new n.nh(t.publicKey.toBytes()),e.next=31;break;case 28:throw e.prev=28,e.t1=e.catch(24),new _(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 31:t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=i,this.emit
2("connect",i),e.next=41;break;case 37:throw e.prev=37,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 41:return e.prev=41,this._connecting=!1,e.finish(41);case 44:case"end":return e.stop()}}),e,this,[[0,37,41,44],[9,14,19,22],[24,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"disconnect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._wallet)){e.next=13;break}return t.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,e.prev=5,e.next=8,t.disconnect();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),this.emit("error",new x(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0));case 13:this.emit("disconnect");case 14:case"end":return e.stop()}}),e,this,[[5,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"sendTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t,r){var n,i,o,a,s,u,c,l=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>2&&void 0!==l[2]?l[2]:{},e.prev=1,i=this._wallet){e.next=5;break}throw new M;case 5:return e.prev=5,e.next=8,this.prepareTransaction(t,r);case 8:return t=e.sent,a=n.signers,s=(0,L.Z)(n,X),(null===a||void 0===a?void 0:a.length)&&(o=t).partialSign.apply(o,(0,P.Z)(a)),e.next=13,i.signAndSendTransaction(t,s);case 13:return u=e.sent,c=u.signature,e.abrupt("return",c);case 18:if(e.prev=18,e.t0=e.catch(5),!(e.t0 instanceof b)){e.next=22;break}throw e.t0;case 22:throw new A(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 23:e.next=29;break;case 25:throw e.prev=25,e.t1=e.catch(1),this.emit("error",e.t1),e.t1;case 29:case"end":return e.stop()}}),e,this,[[1,25],[5,18]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signAllTransactions",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signMessage",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r,n,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return n=e.sent,i=n.signature,e.abrupt("return",i);case 12:throw e.prev=12,e.t0=e.catch(4),new E(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:e.next=21;break;case 17:throw e.prev=17,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 21:case"end":return e.stop()}}),e,this,[[0,17],[4,12]])})));return function(t){return e.apply(this,arguments)}}()}]),r}(z),te="Solflare",re=function(e){(0,c.Z)(i,e);var t=(0,l.Z)(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.Z)(this,i),(e=t.call(this)).name=te,e.url="https://solflare.com",e.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjUwIiB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmMxMGIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmYjNmMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2LjQ3ODM1IiB4Mj0iMzQuOTEwNyIgeGxpbms6aHJlZj0iI2EiIHkxPSI3LjkyIiB5Mj0iMzMuNjU5MyIvPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQuOTkyMTg4MzIgMTIuMDYzODc5NjMgLTEyLjE4MTEzNjU1IDUuMDQwNzEwNzQgMjIuNTIwMiAyMC42MTgzKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHI9IjEiIHhsaW5rOmhyZWY9IiNhIi8+PHBhdGggZD0ibTI1LjE3MDggNDcuOTEwNGMuNTI1IDAgLjk1MDcuNDIxLjk1MDcuOTQwM3MtLjQyNTcuOTQwMi0uOTUwNy45NDAyLS45NTA3LS40MjA5LS45NTA3LS45NDAyLjQyNTctLjk0MDMuOTUwNy0uOTQwM3ptLTEuMDMyOC00NC45MTU2NWMuNDY0Ni4wMzgzNi44Mzk4LjM5MDQuOTAyNy44NDY4MWwxLjEzMDcgOC4yMTU3NGMuMzc5OCAyLjcxNDMgMy42NTM1IDMuODkwNCA1LjY3NDMgMi4wNDU5bDExLjMyOTEtMTAuMzExNThjLjI3MzMtLjI0ODczLjY5ODktLjIzMTQ5Ljk1MDcuMDM4NTEuMjMwOS4yNDc3Mi4yMzc5LjYyNjk3LjAxNjEuODgyNzdsLTkuODc5MSAxMS4zOTU4Yy0xLjgxODcgMi4wOTQyLS40NzY4IDUuMzY0MyAyLjI5NTYgNS41OTc4bDguNzE2OC44NDAzYy40MzQxLjA0MTguNzUxNy40MjM0LjcwOTMuODUyNC0uMDM0OS4zNTM3
2LS4zMDc0LjYzOTUtLjY2MjguNjk0OWwtOS4xNTk0IDEuNDMwMmMtMi42NTkzLjM2MjUtMy44NjM2IDMuNTExNy0yLjEzMzkgNS41NTc2bDMuMjIgMy43OTYxYy4yNTk0LjMwNTguMjE4OC43NjE1LS4wOTA4IDEuMDE3OC0uMjYyMi4yMTcyLS42NDE5LjIyNTYtLjkxMzguMDIwM2wtMy45Njk0LTIuOTk3OGMtMi4xNDIxLTEuNjEwOS01LjIyOTctLjI0MTctNS40NTYxIDIuNDI0M2wtLjg3NDcgMTAuMzk3NmMtLjAzNjIuNDI5NS0uNDE3OC43NDg3LS44NTI1LjcxMy0uMzY5LS4wMzAzLS42NjcxLS4zMDk3LS43MTcxLS42NzIxbC0xLjM4NzEtMTAuMDQzN2MtLjM3MTctMi43MTQ0LTMuNjQ1NC0zLjg5MDQtNS42NzQzLTIuMDQ1OWwtMTIuMDUxOTUgMTAuOTc0Yy0uMjQ5NDcuMjI3MS0uNjM4MDkuMjExNC0uODY4LS4wMzUtLjIxMDk0LS4yMjYyLS4yMTczNS0uNTcyNC0uMDE0OTMtLjgwNmwxMC41MTgxOC0xMi4xMzg1YzEuODE4Ny0yLjA5NDIuNDg0OS01LjM2NDQtMi4yODc2LTUuNTk3OGwtOC43MTg3Mi0uODQwNWMtLjQzNDEzLS4wNDE4LS43NTE3Mi0uNDIzNS0uNzA5MzYtLjg1MjQuMDM0OTMtLjM1MzcuMzA3MzktLjYzOTQuNjYyNy0uNjk1bDkuMTUzMzgtMS40Mjk5YzIuNjU5NC0uMzYyNSAzLjg3MTgtMy41MTE3IDIuMTQyMS01LjU1NzZsLTIuMTkyLTIuNTg0MWMtLjMyMTctLjM3OTItLjI3MTMtLjk0NDMuMTEyNi0xLjI2MjEuMzI1My0uMjY5NC43OTYzLS4yNzk3IDEuMTMzNC0uMDI0OWwyLjY5MTggMi4wMzQ3YzIuMTQyMSAxLjYxMDkgNS4yMjk3LjI0MTcgNS40NTYxLTIuNDI0M2wuNzI0MS04LjU1OTk4Yy4wNDU3LS41NDA4LjUyNjUtLjk0MjU3IDEuMDczOS0uODk3Mzd6bS0yMy4xODczMyAyMC40Mzk2NWMuNTI1MDQgMCAuOTUwNjcuNDIxLjk1MDY3Ljk0MDNzLS40MjU2My45NDAzLS45NTA2Ny45NDAzYy0uNTI1MDQxIDAtLjk1MDY3LS40MjEtLjk1MDY3LS45NDAzcy40MjU2MjktLjk0MDMuOTUwNjctLjk0MDN6bTQ3LjY3OTczLS45NTQ3Yy41MjUgMCAuOTUwNy40MjEuOTUwNy45NDAzcy0uNDI1Ny45NDAyLS45NTA3Ljk0MDItLjk1MDctLjQyMDktLjk1MDctLjk0MDIuNDI1Ny0uOTQwMy45NTA3LS45NDAzem0tMjQuNjI5Ni0yMi40Nzk3Yy41MjUgMCAuOTUwNi40MjA5NzMuOTUwNi45NDAyNyAwIC41MTkzLS40MjU2Ljk0MDI3LS45NTA2Ljk0MDI3LS41MjUxIDAtLjk1MDctLjQyMDk3LS45NTA3LS45NDAyNyAwLS41MTkyOTcuNDI1Ni0uOTQwMjcuOTUwNy0uOTQwMjd6IiBmaWxsPSJ1cmwoI2IpIi8+PHBhdGggZD0ibTI0LjU3MSAzMi43NzkyYzQuOTU5NiAwIDguOTgwMi0zLjk3NjUgOC45ODAyLTguODgxOSAwLTQuOTA1My00LjAyMDYtOC44ODE5LTguOTgwMi04Ljg4MTlzLTguOTgwMiAzLjk3NjYtOC45ODAyIDguODgxOWMwIDQuOTA1NCA0LjAyMDYgOC44ODE5IDguOTgwMiA4Ljg4MTl6IiBmaWxsPSJ1cmwoI2MpIi8+PC9zdmc+",e._readyState="undefined"===typeof window?o.Unsupported:o.Loadable,e._disconnected=function(){var t=e._wallet;t&&(t.off("disconnect",e._disconnected),e._publicKey=null,e.emit("error",new k),e.emit("disconnect"))},e._connecting=!1,e._publicKey=null,e._wallet=null,e._config=r,e._readyState!==o.Unsupported&&N((function(){var t;return!(!(null===(t=window.solflare)||void 0===t?void 0:t.isSolflare)&&!window.SolflareApp)&&(e._readyState=o.Installed,e.emit("readyStateChange",e._readyState),!0)})),e}return(0,s.Z)(i,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var e;return!!(null===(e=this._wallet)||void 0===e?void 0:e.connected)}},{key:"readyState",get:function(){return this._readyState}},{key:"connect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,i,a,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.connected&&!this.connecting){e.next=3;break}return e.abrupt("return");case 3:if(this._readyState===o.Loadable||this._readyState===o.Installed){e.next=5;break}throw new m;case 5:return e.prev=5,e.next=8,r.e(489).then(r.bind(r,489));case 8:i=e.sent,t=i.default,e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(5),new g(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 15:e.prev=15,a=new t({network:this._config.network}),e.next=22;break;case 19:throw e.prev=19,e.t1=e.catch(15),new y(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 22:if(this._connecting=!0,a.connected){e.next=32;break}return e.prev=24,e.next=27,a.connect();case 27:e.next=32;break;case 29:throw e.prev=29,e.t2=e.catch(24),new w(null===e.t2||void 0===e.t2?void 0:e.t2.message,e.t2);case 32:if(a.publicKey){e.next=34;break}throw new w;case 34:e.prev=34,s=new n.nh(a.publicKey.toBytes()),e.next=41;break;case 38:throw e.prev=38,e.t3=e.catch(34),new _(null===e.t3||void 0===e.t3?void 0:e.t3.message,e.t3);case 41:a.on("disconnect",this._disconnected),this._wallet=a,this._publicKey=s,this.emit("connect",s),e.next=51;break;case 47:throw e.prev=47,e.t4=e.catch(0),this.emit("error",e.t4),e.t4;case 51:return e.prev=51,this._connecting=!1,e.finish(51);case 54:case"end":return e.stop()}}),e,this,[[0,47,51,54],[5,12],[15,19],[24,29],[34,38]])}
2)));return function(){return e.apply(this,arguments)}}()},{key:"disconnect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._wallet)){e.next=12;break}return t.off("disconnect",this._disconnected),this._publicKey=null,e.prev=4,e.next=7,t.disconnect();case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),this.emit("error",new x(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0));case 12:this.emit("disconnect");case 13:case"end":return e.stop()}}),e,this,[[4,9]])})));return function(){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signAllTransactions",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signMessage",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signMessage(t,"utf8");case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new E(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})));return function(t){return e.apply(this,arguments)}}()}]),i}(z),ne="Torus",ie=function(e){(0,c.Z)(i,e);var t=(0,l.Z)(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.params,a=void 0===n?{showTorusButton:!1}:n;return(0,u.Z)(this,i),(e=t.call(this)).name=ne,e.url="https://tor.us",e.icon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYuNSIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzAzNjRGRiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjIxODYgOS40OTIxOUMxMC40NTM5IDkuNDkyMTkgOS44MzM5OCAxMC4xMTIxIDkuODMzOTggMTAuODc2OFYxMi40ODk4QzkuODMzOTggMTMuMjU0NSAxMC40NTM5IDEzLjg3NDQgMTEuMjE4NiAxMy44NzQ0SDEzLjY2ODRWMjIuODk3NkMxMy42Njg0IDIzLjY2MjMgMTQuMjg4MyAyNC4yODIyIDE1LjA1MyAyNC4yODIySDE2LjY2NkMxNy40MzA3IDI0LjI4MjIgMTguMDUwNiAyMy42NjIzIDE4LjA1MDYgMjIuODk3NlYxMi41MDE1QzE4LjA1MDYgMTIuNDk3NiAxOC4wNTA2IDEyLjQ5MzcgMTguMDUwNiAxMi40ODk4VjEwLjg3NjhDMTguMDUwNiAxMC4xMTIxIDE3LjQzMDcgOS40OTIxOSAxNi42NjYgOS40OTIxOUgxNS4wNTNIMTEuMjE4NloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMS4zMzc2IDEzLjg3NDRDMjIuNTQ3NyAxMy44NzQ0IDIzLjUyODcgMTIuODkzNCAyMy41Mjg3IDExLjY4MzNDMjMuNTI4NyAxMC40NzMyIDIyLjU0NzcgOS40OTIxOSAyMS4zMzc2IDkuNDkyMTlDMjAuMTI3NSA5LjQ5MjE5IDE5LjE0NjUgMTAuNDczMiAxOS4xNDY1IDExLjY4MzNDMTkuMTQ2NSAxMi44OTM0IDIwLjEyNzUgMTMuODc0NCAyMS4zMzc2IDEzLjg3NDRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K",e._readyState="undefined"===typeof window?o.Unsupported:o.Loadable,e._connecting=!1,e._wallet=null,e._publicKey=null,e._params=a,e}return(0,s.Z)(i,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connecting",get:function(){return this._connecting}},{key:"connected",get:function(){var e;return!!(null===(e=this._wallet)||void 0===e?void 0:e.isLoggedIn)}},{key:"readyState",get:function(){return this._readyState}},{key:"connect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,i,a,s,u;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.connected&&!this.connecting){e.next=3;break}return e.abrupt("return");case 3:if(this._readyState===o.Loadable){e.next=5;break}throw new m;case 5:return this._connecting=!0,e.prev=6,e.next=9,Promise.all([r.e(220),r.e(507)]).then(r.bind(r,1220));case 9:i=e.sent,t=i.default,e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(6),new g(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 16:e.prev=16,a=window.torus||new t,e.next=23;break;case 20:throw e.prev=20,e.t1=e.catch(16),new y(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 23:if(a.isInitialized){e.next=32;break}return e.prev=24,e.next=27,a.init(this._params);case 27:e.next=32;break;case 29:throw e.prev=29,e.t2=e.catch(24),new w(null===e.t2||void 0===e.t2?void 0:e.t2.message,e.t2);case 32:return e.prev=32,e.next=35,a.login();case 35:s=e.sent,e.next=41;break;case 38:throw e.prev=38,e.t3=e.catch(32),new S(null===e.t3||void 0===e.t3?void 0:e.t3.message,e.t3);case 41:e.prev=41,u=new n.nh(s[0]),e.next=48;break;case 45:throw e.prev=45,e.t4=e.catch(41),new _(null===e.t4||void 0===e.t4?void 0:e.t4.message,e.t4);
2case 48:this._wallet=a,this._publicKey=u,this.emit("connect",u),e.next=57;break;case 53:throw e.prev=53,e.t5=e.catch(0),this.emit("error",e.t5),e.t5;case 57:return e.prev=57,this._connecting=!1,e.finish(57);case 60:case"end":return e.stop()}}),e,this,[[0,53,57,60],[6,13],[16,20],[24,29],[32,38],[41,45]])})));return function(){return e.apply(this,arguments)}}()},{key:"disconnect",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._wallet)){e.next=13;break}if(this._wallet=null,this._publicKey=null,e.prev=4,!t.isLoggedIn){e.next=8;break}return e.next=8,t.cleanUp();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),this.emit("error",new x(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0));case 13:this.emit("disconnect");case 14:case"end":return e.stop()}}),e,this,[[4,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"signTransaction",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signTransaction(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signAllTransactions",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signAllTransactions(t);case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0=t;case 10:return e.abrupt("return",e.t0);case 13:throw e.prev=13,e.t1=e.catch(4),new I(null===e.t1||void 0===e.t1?void 0:e.t1.message,e.t1);case 16:e.next=22;break;case 18:throw e.prev=18,e.t2=e.catch(0),this.emit("error",e.t2),e.t2;case 22:case"end":return e.stop()}}),e,this,[[0,18],[4,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"signMessage",value:function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=this._wallet){e.next=4;break}throw new M;case 4:return e.prev=4,e.next=7,r.signMessage(t);case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(4),new E(null===e.t0||void 0===e.t0?void 0:e.t0.message,e.t0);case 13:e.next=19;break;case 15:throw e.prev=15,e.t1=e.catch(0),this.emit("error",e.t1),e.t1;case 19:case"end":return e.stop()}}),e,this,[[0,15],[4,10]])})));return function(t){return e.apply(this,arguments)}}()}]),i}(z),oe={setVisible:function(e){console.error(ae("call","setVisible"))},visible:!1};function ae(e,t){return"You have tried to "+" ".concat(e,' "').concat(t,'"')+" on a WalletModalContext without providing one. Make sure to render a WalletModalProvider as an ancestor of the component that uses WalletModalContext"}Object.defineProperty(oe,"visible",{get:function(){return console.error(ae("read","visible")),!1}});var se=(0,e.createContext)(oe);function ue(){return(0,e.useContext)(se)}var ce=function(t){return e.createElement("button",{className:"wallet-adapter-button ".concat(t.className||""),disabled:t.disabled,onClick:t.onClick,tabIndex:t.tabIndex||0,type:"button"},t.startIcon&&e.createElement("i",{className:"wallet-adapter-button-start-icon"},t.startIcon),t.children,t.endIcon&&e.createElement("i",{className:"wallet-adapter-button-end-icon"},t.endIcon))},le=["wallet"],fe=function(t){var r=t.wallet,n=(0,L.Z)(t,le);return r&&e.createElement("img",(0,q.Z)({src:r.adapter.icon,alt:"".concat(r.adapter.name," icon")},n))},de=["children","disabled","onClick"],he=function(t){var r=t.children,n=t.disabled,i=t.onClick,o=(0,L.Z)(t,de),a=W(),s=a.wallet,u=a.connect,c=a.connecting,l=a.connected,f=(0,e.useCallback)((function(e){i&&i(e),e.defaultPrevented||u().catch((function(){}))}),[i,u]),d=(0,e.useMemo)((function(){return r||(c?"Connecting ...":l?"Connected":s?"Connect":"Connect Wallet")}),[r,c,l,s]);return e.createElement(ce,(0,q.Z)({className:"wallet-adapter-button-trigger",disabled:n||!s||c||l,startIcon:s?e.createElement(fe,{wallet:s}):void 0,onClick:f},o),d)}
2,pe=r(4164),ve=function(t){var r=t.id,n=t.children,i=t.expanded,o=void 0!==i&&i,a=(0,e.useRef)(null),s=(0,e.useRef)(!0);return(0,e.useLayoutEffect)((function(){o?function(){var e=a.current;e&&requestAnimationFrame((function(){e.style.height=e.scrollHeight+"px"}))}():function(){var e=a.current;e&&requestAnimationFrame((function(){e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",requestAnimationFrame((function(){e.style.height="0"}))}))}()}),[o]),(0,e.useLayoutEffect)((function(){var e=a.current;if(e)return s.current&&(t(),s.current=!1),e.addEventListener("transitionend",r),function(){return e.removeEventListener("transitionend",r)};function t(){e&&(e.style.overflow=o?"initial":"hidden",o&&(e.style.height="auto"))}function r(r){e&&r.target===e&&"height"===r.propertyName&&t()}}),[o]),e.createElement("div",{children:n,className:"wallet-adapter-collapse",id:r,ref:a,role:"region",style:{height:0,transition:s.current?void 0:"height 250ms ease-out"}})},be=function(t){var r=t.handleClick,n=t.tabIndex,i=t.wallet;return e.createElement("li",null,e.createElement(ce,{onClick:r,startIcon:e.createElement(fe,{wallet:i}),tabIndex:n},i.adapter.name,i.readyState===o.Installed&&e.createElement("span",null,"Detected")))},me=function(){return e.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}),e.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),e.createElement("g",{clipPath:"url(#clip0_880_5115)"},e.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),e.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9945FF"}),e.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9945FF"}),e.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9945FF"}),e.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9945FF"}),e.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),e.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),e.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),e.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),e.createElement("stop",{offset:"1",stopColor:"#00D18C"})),e.createElement("clipPath",{id:"clip0_880_5115"},e.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
2))))},ge=function(t){var r=t.className,n=void 0===r?"":r,i=t.container,a=void 0===i?"body":i,s=(0,e.useRef)(null),u=W(),c=u.wallets,l=u.select,d=ue().setVisible,h=(0,e.useState)(!1),p=(0,H.Z)(h,2),v=p[0],b=p[1],m=(0,e.useState)(!1),g=(0,H.Z)(m,2),y=g[0],w=g[1],k=(0,e.useState)(null),x=(0,H.Z)(k,2),S=x[0],_=x[1],M=(0,e.useMemo)((function(){var e,t=[],r=[],n=[],i=(0,f.Z)(c);try{for(i.s();!(e=i.n()).done;){var a=e.value;a.readyState===o.NotDetected?r.push(a):a.readyState===o.Loadable?n.push(a):a.readyState===o.Installed&&t.push(a)}}catch(s){i.e(s)}finally{i.f()}return[t,[].concat(n,r)]}),[c]),A=(0,H.Z)(M,2),E=A[0],I=A[1],C=(0,e.useMemo)((function(){return E.length?E[0]:c.find((function(e){return"Torus"===e.adapter.name}))||c.find((function(e){return"Phantom"===e.adapter.name}))||c.find((function(e){return e.readyState===o.Loadable}))||I[0]}),[E,c,I]),T=(0,e.useCallback)((function(){w(!1),setTimeout((function(){return d(!1)}),150)}),[]),N=(0,e.useCallback)((function(e){e.preventDefault(),T()}),[T]),O=(0,e.useCallback)((function(e,t){l(t),N(e)}),[l,N]),P=(0,e.useCallback)((function(){return b(!v)}),[v]),L=(0,e.useCallback)((function(e){var t=s.current;if(t){var r=t.querySelectorAll("button"),n=r[0],i=r[r.length-1];e.shiftKey?document.activeElement===n&&(i.focus(),e.preventDefault()):document.activeElement===i&&(n.focus(),e.preventDefault())}}),[s]);return(0,e.useLayoutEffect)((function(){var e=function(e){"Escape"===e.key?T():"Tab"===e.key&&L(e)},t=window.getComputedStyle(document.body).overflow;return setTimeout((function(){return w(!0)}),0),document.body.style.overflow="hidden",window.addEventListener("keydown",e,!1),function(){document.body.style.overflow=t,window.removeEventListener("keydown",e,!1)}}),[T,L]),(0,e.useLayoutEffect)((function(){return _(document.querySelector(a))}),[a]),S&&(0,pe.createPortal)(e.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:"wallet-adapter-modal ".concat(y&&"wallet-adapter-modal-fade-in"," ").concat(n),ref:s,role:"dialog"},e.createElement("div",{className:"wallet-adapter-modal-container"},e.createElement("div",{className:"wallet-adapter-modal-wrapper"},e.createElement("button",{onClick:N,className:"wallet-adapter-modal-button-close"},e.createElement("svg",{width:"14",height:"14"},e.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),E.length?e.createElement(e.Fragment,null,e.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),e.createElement("ul",{className:"wallet-adapter-modal-list"},E.map((function(t){return e.createElement(be,{key:t.adapter.name,handleClick:function(e){return O(e,t.adapter.name)},wallet:t})})),I.length?e.createElement(ve,{expanded:v,id:"wallet-adapter-modal-collapse"},I.map((function(t){return e.createElement(be,{key:t.adapter.name,handleClick:function(e){return O(e,t.adapter.name)},tabIndex:v?0:-1,wallet:t})}))):null),I.length?e.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:P,tabIndex:0},e.createElement("span",null,v?"Less ":"More ","options"),e.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:"".concat(v?"wallet-adapter-modal-list-more-icon-rotate":"")},e.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):e.createElement(e.Fragment,null,e.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),e.createElement("div",{className:"wallet-adapter-modal-middle"},e.createElement(me,null),e.createElement("button",{type:"button",className:"wallet-adapter-modal-middle-button",onClick:function(e){return O(e,C.adapter.name)}},"Get started")),I.length?e.createElement(e.Fragment,null,e.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:P,tabIndex:0},e.createElement("span",null,v?"Hide ":"Already have a wallet? View ","options"),e.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:"".concat(v?"wallet-adapter-modal-list-more-icon-rotate":"")},e.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),e.createElement(ve,{expanded:v,id:"wallet-adapter-modal-collapse"},e.createElement("ul",{className:"wallet-adapter-modal-list"},I.map((function(t){return e.createElement(be,{key:t.adapter.name,handleClick:function(e){return O(e,t.adapter.name)},tabIndex:v?0:-1,wallet:t})}))))):null))),e.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:N})),S)},ye=["children","onClick"],we=function(t){var r=t.children,n=void 0===r?"Select Wallet":r,i=t.onClick,o=(0,L.Z)(t,ye),a=ue(),s=a.visible,u=a.setVisible,c=(0,e.useCallback)((function(e){i&&i(e),e.defaultPrevented||u(!s)}),[i,s]);return e.createElement(ce,(0,q.Z)({className:"wallet-adapter-button-trigger",onClick:c},o),n)},ke=["children"],xe=function(t){var r=t.children,n=(0,L.Z)(t,ke),i=(0,e.useState)(!1),o=(0,H.Z)(i,2),a=o[0],s=o[1];return e.createElement(se.Provider,{value:{visible:a,setVisible:s}},r,a&&e.createElement(ge,(0,q.Z)({},n)))},Se=["children","disabled","onClick"],_e=function(t){var r=t.children,n=t.disabled,i=t.onClick,o=(0,L.Z)(t,Se),a=W(),s=a.wallet,u=a.disconnect,c=a.disconnecting,l=(0,e.useCallback)((function(e){i&&i(e),e.defaultPrevented||u().catch((function(){}))}),[i,u]),f=(0,e.useMemo)((function(){return r||(c?"Disconnecting ...":s?"Disconnect":"Disconnect Wallet")}),[r,c,s]);return e.createElement(ce,(0,q.Z)({className:"wallet-adapter-button-trigger",disabled:n||!s,startIcon:s?e.createElement(fe,{wallet:s}):void 0,onClick:l},o),f)},Me=["children"],Ae=function(t){var r=t.children,n=(0,L.Z)(t,Me),i=W(),o=i.publicKey,a=i.wallet,s=i.disconnect,u=ue().setVisible,c=(0,e.useState)(!1),l=(0,H.Z)(c,2),f=l[0],p=l[1],v=(0,e.useState)(!1),b=(0,H.Z)(v,2),m=b[0],g=b[1],y=(0,e.useRef)(null),w=(0,e.useMemo)((function(){return null===o||void 0===o?void 0:o.toBase58()}),[o]),k=(0,e.useMemo)((function(){return r||(a&&w?w.slice(0,4)+".."+w.slice(-4):null)}),[r,a,w]),x=(0,e.useCallback)((0,h.Z)((0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w){e.next=5;break}return e.next=3,navigator.clipboard.writeText(w);case 3:p(!0),setTimeout((function(){return p(!1)}),400);case 5:case"end":return e.stop()}}),e)}))),[w]),S=(0,e.useCallback)((function(){g(!0)}),[]),_=(0,e.useCallback)((function(){g(!1)}),[]),M=(0,e.useCallback)((function(){u(!0),_()}),[_]);return(0,e.useEffect)((function(){var e=function(e){var t=y.current;t&&!t.contains(e.target)&&_()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[y,_]),a?w?e.createElement("div",{className:"wallet-adapter-dropdown"},e.createElement(ce,(0,q.Z)({"aria-expanded":m,className:"wallet-adapter-button-trigger",style:(0,q.Z)({pointerEvents:m?"none":"auto"},n.style),onClick:S,startIcon:e.createElement(fe,{wallet:a})},n),k),e.createElement("ul",{"aria-label":"dropdown-list",className:"wallet-adapter-dropdown-list ".concat(m&&"wallet-adapter-dropdown-list-active"),ref:y,role:"menu"},e.createElement("li",{onClick:x,className:"wallet-adapter-dropdown-list-item",role:"menuitem"},f?"Copied":"Copy address"),e.createElement("li",{onClick:M,className:"wallet-adapter-dropdown-list-item",role:"menuitem"},"Change wallet"),e.createElement("li",{onClick:s,className:"wallet-adapter-dropdown-list-item",role:"menuitem"},"Disconnect"))):e.createElement(he,(0,q.Z)({},n),r):e.createElement(we,(0,q.Z)({},n),r)},Ee=r(9778).Buffer,Ie=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this,"The mobile wallet adapter protocol must be used in a secure context (`https`).")).name="SolanaMobileWalletAdapterSecureContextRequiredError",e}return(0,s.Z)(r)}((0,v.Z)(Error)),Ce=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this,"Base URLs supplied by wallets must be valid `https` URLs")).name="SolanaMobileWalletAdapterForbiddenWalletBaseURLError",e}return(0,s.Z)(r)}((0,v.Z)(Error)),Te=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this,"Found no installed wallet that supports the mobile wallet protocol.")).name="SolanaMobileWalletAdapterWalletNotInstalledError",e}return(0,s.Z)(r)}((0,v.Z)(Error)),Ne=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,u.Z)(this,r),(n=t.call(this,"Failed to connect to the wallet websocket on port ".concat(e,"."))).name="SolanaMobileWalletAdapterProtocolSessionEstablishmentError",n}return(0,s.Z)(r)}((0,v.Z)(Error)),Oe=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,u.Z)(this,r),(n=t.call(this,"Association port number must be between 49152 and 65535. ".concat(e," given."))).name="SolanaMobileWalletAdapterProtocolAssociationPortOutOfRangeError",n}return(0,s.Z)(r)}((0,v.Z)(Error)),Pe=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e,n){var i;return(0,u.Z)(this,r),(i=t.call(this,"The wallet session dropped unexpectedly (".concat(e,": ").concat(n,")."))).name="SolanaMobileWalletAdapterProtocolSessionClosedError",i}return(0,s.Z)(r)}((0,v.Z)(Error)),Le=(Error,function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;(0,u.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],c=i[2],l=i[3];return(e=t.call(this,c)).code=s,e.data=l,e.jsonRpcMessageId=a,e.name="SolanaNativeWalletAdapterJsonRpcError",e}return(0,s.Z)(r)}((0,v.Z)(Error)));function Re(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function Be(e,t){return Re(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,crypto.subtle.exportKey("raw",e);case 2:return n=r.sent,r.next=5,crypto.subtle.sign({hash:"SHA-256",
2name:"ECDSA"},t,n);case 5:return i=r.sent,(o=new Uint8Array(n.byteLength+i.byteLength)).set(new Uint8Array(n),0),o.set(new Uint8Array(i),n.byteLength),r.abrupt("return",o);case 10:case"end":return r.stop()}}),r)})))}function ze(){return Re(this,void 0,void 0,(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}function De(){return Re(this,void 0,void 0,(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))}var Ze;function je(e,t){return Re(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=JSON.stringify(e),i=new Uint8Array(12),crypto.getRandomValues(i),r.next=5,crypto.subtle.encrypt(Fe(i),t,Ee.from(n));case 5:return o=r.sent,(a=new Uint8Array(i.byteLength+o.byteLength)).set(new Uint8Array(i),0),a.set(new Uint8Array(o),i.byteLength),r.abrupt("return",a);case 10:case"end":return r.stop()}}),r)})))}function Ue(e,t){return Re(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a,s;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.slice(0,12),i=e.slice(12),r.next=4,crypto.subtle.decrypt(Fe(n),t,i);case 4:if(o=r.sent,a=We().decode(o),s=JSON.parse(a),!Object.hasOwnProperty.call(s,"error")){r.next=9;break}throw new Le(s.id,s.error.code,s.error.message);case 9:return r.abrupt("return",s);case 10:case"end":return r.stop()}}),r)})))}function Fe(e){return{iv:e,name:"AES-GCM",tagLength:128}}function We(){return void 0===Ze&&(Ze=new TextDecoder("utf-8")),Ze}function qe(e,t,r){return Re(this,void 0,void 0,(0,d.Z)().mark((function n(){var i,o,a,s,u,c,l;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e,{name:"ECDH",namedCurve:"P-256"},!1,[])]);case 2:return i=n.sent,o=(0,H.Z)(i,2),a=o[0],s=o[1],n.next=8,crypto.subtle.deriveBits({name:"ECDH",public:s},r,256);case 8:return u=n.sent,n.next=11,crypto.subtle.importKey("raw",u,"HKDF",!1,["deriveKey"]);case 11:return c=n.sent,n.next=14,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(a),info:new Uint8Array},c,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);case 14:return l=n.sent,n.abrupt("return",l);case 16:case"end":return n.stop()}}),n)})))}function He(e){if(e<49152||e>65535)throw new Oe(e);return e}function Ke(e){for(var t="",r=new Uint8Array(e),n=r.byteLength,i=0;i<n;i++)t+=String.fromCharCode(r[i]);return window.btoa(t)}function Ve(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function Ye(e,t){var r=null;if(t){try{r=new URL(t)}catch(i){}if("https:"!==(null===r||void 0===r?void 0:r.protocol))throw new Ce}r||(r=new URL("".concat("solana-wallet",":/")));var n=e.startsWith("/")?e:[].concat((0,P.Z)(Ve(r.pathname)),(0,P.Z)(Ve(e))).join("/");return new URL(n,r)}function Qe(e,t,r){return Re(this,void 0,void 0,(0,d.Z)().mark((function n(){var i,o,a,s;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=He(t),n.next=3,crypto.subtle.exportKey("raw",e);case 3:return o=n.sent,a=Ke(o),(s=Ye("v1/associate/local",r)).searchParams.set("association",a.replace(/[/+=]/g,(function(e){return{"/":"_","+":"-","=":"."}[e]}))),s.searchParams.set("port","".concat(i)),n.abrupt("return",s);case 9:case"end":return n.stop()}}),n)})))}var Ge=0,Je=1;var Xe=null;function $e(e,t){return Re(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=He(49152+Math.floor(16384*Math.random())),r.next=3,Qe(e,n,t);case 3:if("https:"!==(i=r.sent).protocol){r.next=8;break}window.location.assign(i),r.next=26;break;case 8:r.prev=8,o=-1!==navigator.userAgent.indexOf("Firefox/")?Ge:Je,r.t0=o,r.next=r.t0===Ge?13:r.t0===Je?15:20;break;case 13:return s=i,null==Xe&&((Xe=document.createElement("iframe")).style.display="none",document.body.appendChild(Xe)),Xe.contentWindow.location.href=s.toString(),r.abrupt("break",21);case 15:return a=new Promise((function(e,t){function r(){clearTimeout(i),window.removeEventListener("blur",n)}function n(){r(),e()}window.addEventListener("blur",n);var i=setTimeout((function(){r(),t()}),2e3)})),window.location.assign(i),r.next=19,a;case 19:return r.abrupt("break",21);case 20:case 21:r.next=26;break;case 23:throw r.prev=23,r.t1=r.catch(8),new Te;case 26:return r.abrupt("return",n);case 27:case"end":return r.stop()}var s}),r,null,[[8,23]])})))}var et=34,tt=150;function rt(){if("undefined"===typeof window||!0!==window.isSecureContext)throw new Ie}function nt(e,t){return Re(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a,s,u=this;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return rt(),r.next=3,ze();case 3:return n=r.sent,r.next=6,$e(n.publicKey,null===t||void 0===t?void 0:t.baseUri);case 6:return i=r.sent,o="ws://localhost:".concat(i,"/solana-wallet"),a=1,s={__type:"disconnected"},r.abrupt("return",new Promise((function(t,r){var c,l,f,h=0,p={},v=function e(){return Re(u,void 0,void 0,(0,d.Z)().mark((function t(){var r,n;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("connecting"===s.__type){t.next=3;break}return console.warn("Expected adapter state to be `connecting` at the moment the websocket opens. "+"Got `".concat(s.__type,"`.")),t.abrupt("return");case 3:return r=s.associationKeypair,c.removeEventListener("open",e),t.next=7,De();case 7:return n=t.sent,t.t0=c,t.next=11,Be(n.publicKey,r.privateKey);case 11:t.t1=t.sent,t.t0.send.call(t.t0,t.t1),s={__type:"hello_req_sent",associationPublicKey:r.publicKey,ecdhPrivateKey:n.privateKey};case 14:case"end":return t.stop()}}),t)})))},b=function(e){e.wasClean?s={__type:"disconnected"}:r(new Pe(e.code,e.reason)),l()},m=function(e){return Re(u,void 0,void 0,(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l(),!(++h>=et)){e.next=5;break}r(new Ne(i)),e.next=8;break;case 5:return e.next=7,new Promise((function(e){f=window.setTimeout(e,tt)}));case 7:y();case 8:case"end":return e.stop()}}),e)})))},g=function(n){return Re(u,void 0,void 0,(0,d.Z)().mark((function i(){var o,u,f,h,v,b;return(0,d.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.data.arrayBuffer();case 2:o=i.sent,i.t0=s.__type,i.next="connected"===i.t0?6:"hello_req_sent"===i.t0?25:46;break;case 6:return i.prev=6,i.next=9,Ue(o,s.sharedSecret);case 9:u=i.sent,f=p[u.id],delete p[u.id],f.resolve(u.result),i.next=24;break;case 15:if(i.prev=15,i.t1=i.catch(6),!(i.t1 instanceof Le)){i.next=23;break}h=p[i.t1.jsonRpcMessageId],delete p[i.t1.jsonRpcMessageId],h.reject(i.t1),i.next=24;break;case 23:throw i.t1;case 24:return i.abrupt("break",46);case 25:return i.next=27,qe(o,s.associationPublicKey,s.ecdhPrivateKey);case 27:return v=i.sent,s={__type:"connected",sharedSecret:v},b=new Proxy({},{get:function(e,t){if(null==e[t]){var r=t.toString().replace(/[A-Z]/g,(function(e){return"_".concat(e.toLowerCase())})).toLowerCase();e[t]=function(e){return Re(this,void 0,void 0,(0,d.Z)().mark((function t(){var n;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a++,t.t0=c,t.next=4,je({id:n,jsonrpc:"2.0",method:r,params:e},v);case 4:return t.t1=t.sent,t.t0.send.call(t.t0,t.t1),t.abrupt("return",new Promise((function(e,t){p[n]={resolve:e,reject:t}})));case 7:case"end":return t.stop()}}),t)})))}}return e[t]},defineProperty:function(){return!1},deleteProperty:function(){return!1}}),i.prev=30,i.t2=t,i.next=34,e(b);case 34:i.t3=i.sent,(0,i.t2)(i.t3),i.next=41;break;case 38:i.prev=38,i.t4=i.catch(30),r(i.t4);case 41:return i.prev=41,l(),c.close(),i.finish(41);case 45:return i.abrupt("break",46);case 46:case"end":return i.stop()}}),i,null,[[6,15],[30,38,41,45]])})))},y=function(){l&&l(),s={__type:"connecting",associationKeypair:n},(c=new WebSocket(o,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",v),c.addEventListener("close",b),c.addEventListener("error",m),c.addEventListener("message",g),l=function(){window.clearTimeout(f),c.removeEventListener("open",v),c.removeEventListener("close",b),c.removeEventListener("error",m),c.removeEventListener("message",g)}};y()})));case 11:case"end":return r.stop()}}),r)})))}function it(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function ot(e){var t;return window.btoa((t=String.fromCharCode).call.apply(t,[null].concat((0,P.Z)(e))))}function at(e){return new Uint8Array(window.atob(e).split("").map((function(e){return e.charCodeAt(0)})))}function st(e,t){return it(this,void 0,void 0,(0,d.Z)().mark((function r(){var i;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=function(t){var r=new Proxy({},{get:function(e,r){if(null==e[r])switch(r){case"signAndSendTransaction":e[r]=function(e){return it(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a,s,u,c=this;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=function(e){return it(this,void 0,void 0,(0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null==n&&(n=e.getLatestBlockhash({commitment:e.commitment})),t.next=3,n;case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))},r.next=3,Promise.all(e.transactions.map((function(t){return it(c,void 0,void 0,(0,d.Z)().mark((function r(){var n,o,a;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(null==t.feePayer&&(t.feePayer=e.fee_payer),null!=t.recentBlockhash){r.next=7;break}return r.next=4,i(e.connection);case 4:n=r.sent,o=n.blockhash,t.recentBlockhash=o;case 7:return a=t.serialize({requireAllSignatures:!1,verifySignatures:!1}),r.abrupt("return",a.toString("base64"));case 9:case"end":return r.stop()}}),r)})))}
2)));case 3:o=r.sent,r.t0=e.connection.commitment,r.next="confirmed"===r.t0||"finalized"===r.t0||"processed"===r.t0?7:9;break;case 7:return a=e.connection.commitment,r.abrupt("break",10);case 9:a="finalized";case 10:return r.next=12,t.signAndSendTransaction({auth_token:e.auth_token,commitment:a,payloads:o});case 12:return s=r.sent,u=s.signatures,r.abrupt("return",u);case 15:case"end":return r.stop()}}),r)})))};break;case"signMessage":e[r]=function(e){return it(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i,o,a;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.payloads.map(ot),r.next=3,t.signMessage({auth_token:e.auth_token,payloads:n});case 3:return i=r.sent,o=i.signed_payloads,a=o.map(at),r.abrupt("return",a);case 7:case"end":return r.stop()}}),r)})))};break;case"signTransaction":e[r]=function(e){return it(this,void 0,void 0,(0,d.Z)().mark((function r(){var i,o,a,s,u,c;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e.transactions.map((function(e){return e.serialize({requireAllSignatures:!1,verifySignatures:!1})})),o=i.map((function(e){return e.toString("base64")})),r.next=4,t.signTransaction({auth_token:e.auth_token,payloads:o});case 4:return a=r.sent,s=a.signed_payloads,u=s.map(at),c=u.map(n.YW.from),r.abrupt("return",c);case 9:case"end":return r.stop()}}),r)})))};break;default:e[r]=t[r]}return e[r]},defineProperty:function(){return!1},deleteProperty:function(){return!1}});return e(r)},r.next=3,nt(i,t);case 3:return r.abrupt("return",r.sent);case 4:case"end":return r.stop()}}),r)})))}function ut(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}var ct=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){var n;return(0,u.Z)(this,r),(n=t.call(this)).name="Default wallet app",n.url="https://solanamobile.com",n.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI4IiB3aWR0aD0iMjgiIHZpZXdCb3g9Ii0zIDAgMjggMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0RDQjhGRiI+PHBhdGggZD0iTTE3LjQgMTcuNEgxNXYyLjRoMi40di0yLjRabTEuMi05LjZoLTIuNHYyLjRoMi40VjcuOFoiLz48cGF0aCBkPSJNMjEuNiAzVjBoLTIuNHYzaC0zLjZWMGgtMi40djNoLTIuNHY2LjZINC41YTIuMSAyLjEgMCAxIDEgMC00LjJoMi43VjNINC41QTQuNSA0LjUgMCAwIDAgMCA3LjVWMjRoMjEuNnYtNi42aC0yLjR2NC4ySDIuNFYxMS41Yy41LjMgMS4yLjQgMS44LjVoNy41QTYuNiA2LjYgMCAwIDAgMjQgOVYzaC0yLjRabTAgNS43YTQuMiA0LjIgMCAxIDEtOC40IDBWNS40aDguNHYzLjNaIi8+PC9nPjwvc3ZnPg==",n._connecting=!1,n._readyState="undefined"!==typeof window&&window.isSecureContext&&"undefined"!==typeof document&&/android/i.test(navigator.userAgent)?o.Loadable:o.Unsupported,n._authorizationResultCache=e.authorizationResultCache,n._appIdentity=e.appIdentity,n._readyState!==o.Unsupported&&n._authorizationResultCache.get().then((function(e){e&&n.emit("readyStateChange",n._readyState=o.Installed)})),n}return(0,s.Z)(r,[{key:"publicKey",get:function(){return null==this._publicKey&&null!=this._authorizationResult&&(this._publicKey=new n.nh(this._authorizationResult.pub_key)),this._publicKey?this._publicKey:null}},{key:"connected",get:function(){return!!this._authorizationResult}},{key:"connecting",get:function(){return this._connecting}},{key:"readyState",get:function(){return this._readyState}},{key:"connect",value:function(){return ut(this,void 0,void 0,(0,d.Z)().mark((function e(){var t,r,i=this;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._readyState===o.Installed||this._readyState===o.Loadable){e.next=4;break}throw t=new m,this.emit("error",t),t;case 4:return this._connecting=!0,e.next=7,this._authorizationResultCache.get();case 7:if(!(r=e.sent)){e.next=14;break}return this._authorizationResult=r,this._connecting=!1,this._readyState!==o.Installed&&this.emit("readyStateChange",this._readyState=o.Installed),this.emit("connect",this.publicKey),e.abrupt("return");case 14:return e.prev=14,e.next=17,this.transact((function(e){return ut(i,void 0,void 0,(0,d.Z)().mark((function t(){var r,i,o,a;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.authorize({identity:this._appIdentity});case 2:r=t.sent,i=r.auth_token,o=r.pub_key,a=r.wallet_uri_base,t.prev=6,this._publicKey=new n.nh(o),t.next=13;break;case 10:throw t.prev=10,t.t0=t.catch(6),new _(t.t0 instanceof Error&&(null===t.t0||void 0===t.t0?void 0:t.t0.message)||"Unknown error",t.t0);case 13:this.handleAuthorizationResult({auth_token:i,pub_key:o,wallet_uri_base:a}
2),this.emit("connect",this.publicKey);case 15:case"end":return t.stop()}}),t,this,[[6,10]])})))}));case 17:e.next=22;break;case 19:throw e.prev=19,e.t0=e.catch(14),new w(e.t0 instanceof Error&&e.t0.message||"Unknown error",e.t0);case 22:return e.prev=22,this._connecting=!1,e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[14,19,22,25]])})))}},{key:"handleAuthorizationResult",value:function(e){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._authorizationResult=e,t.next=3,this._authorizationResultCache.set(e);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"performReauthorization",value:function(e,t){return ut(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.reauthorize({auth_token:t.auth_token});case 3:return n=r.sent,i=n.auth_token,t.auth_token!==i&&this.handleAuthorizationResult(Object.assign(Object.assign({},t),{auth_token:i})),r.abrupt("return",i);case 9:throw r.prev=9,r.t0=r.catch(0),this.disconnect(),new k(r.t0 instanceof Error&&(null===r.t0||void 0===r.t0?void 0:r.t0.message)||"Unknown error",r.t0);case 13:case"end":return r.stop()}}),r,this,[[0,9]])})))}},{key:"disconnect",value:function(){return ut(this,void 0,void 0,(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._authorizationResultCache.clear(),delete this._authorizationResult,delete this._publicKey,this.emit("disconnect");case 4:case"end":return e.stop()}}),e,this)})))}},{key:"transact",value:function(e){var t;return ut(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=null===(t=this._authorizationResult)||void 0===t?void 0:t.wallet_uri_base,i=n?{baseUri:n}:void 0,r.next=4,st(e,i);case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r,this)})))}},{key:"assertIsAuthorized",value:function(){var e=this._authorizationResult;if(!e)throw new M;return e}},{key:"performSignTransactions",value:function(e){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){var r,n=this;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=this.assertIsAuthorized(),t.prev=2,t.next=5,this.transact((function(t){return ut(n,void 0,void 0,(0,d.Z)().mark((function n(){var i,o;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.performReauthorization(t,r);case 2:return i=n.sent,n.next=5,t.signTransaction({auth_token:i,transactions:e});case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}}),n,this)})))}));case 5:return t.abrupt("return",t.sent);case 8:throw t.prev=8,t.t0=t.catch(2),new I(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 11:t.next=17;break;case 13:throw t.prev=13,t.t1=t.catch(0),this.emit("error",t.t1),t.t1;case 17:case"end":return t.stop()}}),t,this,[[0,13],[2,8]])})))}},{key:"sendTransaction",value:function(e,t,r){return ut(this,void 0,void 0,(0,d.Z)().mark((function r(){var n,i=this;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=this.assertIsAuthorized(),r.prev=2,r.next=5,this.transact((function(r){return ut(i,void 0,void 0,(0,d.Z)().mark((function i(){var o,a;return(0,d.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.performReauthorization(r,n);case 2:return o=i.sent,i.next=5,r.signAndSendTransaction({auth_token:o,fee_payer:this.publicKey||void 0,connection:t,transactions:[e]});case 5:return a=i.sent,i.abrupt("return",a[0]);case 7:case"end":return i.stop()}}),i,this)})))}));case 5:return r.abrupt("return",r.sent);case 8:throw r.prev=8,r.t0=r.catch(2),new A(null===r.t0||void 0===r.t0?void 0:r.t0.message,r.t0);case 11:r.next=17;break;case 13:throw r.prev=13,r.t1=r.catch(0),this.emit("error",r.t1),r.t1;case 17:case"end":return r.stop()}}),r,this,[[0,13],[2,8]])})))}},{key:"signTransaction",value:function(e){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){var r,n,i;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.performSignTransactions([e]);case 2:return r=t.sent,n=(0,H.Z)(r,1),i=n[0],t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"signAllTransactions",value:function(e){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){var r;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.performSignTransactions(e);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"signMessage",value:function(e){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){var r,n=this;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=this.assertIsAuthorized(),t.prev=2,t.next=5,this.transact((function(t){return ut(n,void 0,void 0,(0,d.Z)().mark((function n(){var i,o,a,s,u;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.performReauthorization(t,r);case 2:return i=n.sent,n.next=5,t.signMessage({auth_token:i,payloads:[e]});case 5:return o=n.sent,a=(0,H.Z)(o,1),s=a[0],u=s.slice(-64),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n,this)})))}));case 5:return t.abrupt("return",t.sent);case 8:throw t.prev=8,t.t0=t.catch(2),new E(null===t.t0||void 0===t.t0?void 0:t.t0.message,t.t0);case 11:t.next=17;break;
2case 13:throw t.prev=13,t.t1=t.catch(0),this.emit("error",t.t1),t.t1;case 17:case"end":return t.stop()}}),t,this,[[0,13],[2,8]])})))}}]),r}(z),lt="SolanaMobileWalletAdapterDefaultAuthorizationCache";function ft(){var e;try{e=window.localStorage}catch(t){}return{clear:function(){return ut(this,void 0,void 0,(0,d.Z)().mark((function r(){return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:try{e.removeItem(lt)}catch(t){}case 3:case"end":return r.stop()}}),r)})))},get:function(){return ut(this,void 0,void 0,(0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.abrupt("return",JSON.parse(e.getItem(lt))||void 0);case 6:t.prev=6,t.t0=t.catch(2);case 8:case"end":return t.stop()}}),t,null,[[2,6]])})))},set:function(r){return ut(this,void 0,void 0,(0,d.Z)().mark((function n(){return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:try{e.setItem(lt,JSON.stringify(r))}catch(t){}case 3:case"end":return n.stop()}}),n)})))}}}function dt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ht=r.p+"static/media/air-host.eb7a9bc931cca8dcff6b.png",pt=r(7441),vt=r(9613),bt=r.n(vt);var mt=function(e){function t(e,n,u,c,d){for(var h,p,v,b,w,x=0,S=0,_=0,M=0,A=0,O=0,L=v=h=0,B=0,z=0,D=0,Z=0,j=u.length,U=j-1,F="",W="",q="",H="";B<j;){if(p=u.charCodeAt(B),B===U&&0!==S+M+_+x&&(0!==S&&(p=47===S?10:47),M=_=x=0,j++,U++),0===S+M+_+x){if(B===U&&(0<z&&(F=F.replace(f,"")),0<F.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:F+=u.charAt(B)}p=59}switch(p){case 123:for(h=(F=F.trim()).charCodeAt(0),v=1,Z=++B;B<j;){switch(p=u.charCodeAt(B)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(B+1)){case 42:case 47:e:{for(L=B+1;L<U;++L)switch(u.charCodeAt(L)){case 47:if(42===p&&42===u.charCodeAt(L-1)&&B+2!==L){B=L+1;break e}break;case 10:if(47===p){B=L+1;break e}}B=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;B++<U&&u.charCodeAt(B)!==p;);}if(0===v)break;B++}if(v=u.substring(Z,B),0===h&&(h=(F=F.replace(l,"").trim()).charCodeAt(0)),64===h){switch(0<z&&(F=F.replace(f,"")),p=F.charCodeAt(1)){case 100:case 109:case 115:case 45:z=n;break;default:z=N}if(Z=(v=t(n,z,v,p,d+1)).length,0<P&&(w=s(3,v,z=r(N,F,D),n,I,E,Z,p,d,c),F=z.join(""),void 0!==w&&0===(Z=(v=w.trim()).length)&&(p=0,v="")),0<Z)switch(p){case 115:F=F.replace(k,a);case 100:case 109:case 45:v=F+"{"+v+"}";break;case 107:v=(F=F.replace(m,"$1 $2"))+"{"+v+"}",v=1===T||2===T&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=F+v,112===c&&(W+=v,v="")}else v=""}else v=t(n,r(n,F,D),v,c,d+1);q+=v,v=D=z=L=h=0,F="",p=u.charCodeAt(++B);break;case 125:case 59:if(1<(Z=(F=(0<z?F.replace(f,""):F).trim()).length))switch(0===L&&(h=F.charCo
vendor: 4,105 bytes, line 2
2deAt(0),45===h||96<h&&123>h)&&(Z=(F=F.replace(" ",":")).length),0<P&&void 0!==(w=s(1,F,n,e,I,E,W.length,c,d,c))&&0===(Z=(F=w.trim()).length)&&(F="\0\0"),h=F.charCodeAt(0),p=F.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){H+=F+u.charAt(B);break}default:58!==F.charCodeAt(Z-1)&&(W+=i(F,h,p,F.charCodeAt(2)))}D=z=L=h=0,F="",p=u.charCodeAt(++B)}}switch(p){case 13:case 10:47===S?S=0:0===1+h&&107!==c&&0<F.length&&(z=1,F+="\0"),0<P*R&&s(0,F,n,e,I,E,W.length,c,d,c),E=1,I++;break;case 59:case 125:if(0===S+M+_+x){E++;break}default:switch(E++,b=u.charAt(B),p){case 9:case 32:if(0===M+x+S)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===M+S+x&&(z=D=1,b="\f"+b);break;case 108:if(0===M+S+x+C&&0<L)switch(B-L){case 2:112===A&&58===u.charCodeAt(B-3)&&(C=A);case 8:111===O&&(C=O)}break;case 58:0===M+S+x&&(L=B);break;case 44:0===S+_+M+x&&(z=1,b+="\r");break;case 34:case 39:0===S&&(M=M===p?0:0===M?p:M);break;case 91:0===M+S+_&&x++;break;case 93:0===M+S+_&&x--;break;case 41:0===M+S+x&&_--;break;case 40:if(0===M+S+x){if(0===h)if(2*A+3*O===533);else h=1;_++}break;case 64:0===S+_+M+x+L+v&&(v=1);break;case 42:case 47:if(!(0<M+x+_))switch(S){case 0:switch(2*p+3*u.charCodeAt(B+1)){case 235:S=47;break;case 220:Z=B,S=42}break;case 42:47===p&&42===A&&Z+2!==B&&(33===u.charCodeAt(Z+2)&&(W+=u.substring(Z,B+1)),b="",S=0)}}0===S&&(F+=b)}O=A,A=p,B++}if(0<(Z=W.length)){if(z=n,0<P&&(void 0!==(w=s(2,W,z,e,I,E,Z,c,d,c))&&0===(W=w).length))return H+W+q;if(W=z.join(",")+"{"+W+"}",0!==T*C){switch(2!==T||o(W,2)||(C=0),C){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(g,"::-webkit-input-$1")+W.replace(g,"::-moz-$1")+W.replace(g,":-ms-input-$1")+W}C=0}}return H+W+q}function r(e,t,r){var i=t.trim().split(v);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===T||2===T&&o(u,1)?"-webkit-"+u+u:u}if(0===T||2===T&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(A,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return h.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCo
2deAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),L(2!==t?n:n.replace(_,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,l){for(var f,d=0,h=t;d<P;++d)switch(f=O[d].call(c,e,h,r,n,i,o,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!==typeof e?T=1:(T=2,L=e):T=0),u}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<P){var i=s(-1,r,n,n,I,E,0,0,0,0);void 0!==i&&"string"===typeof i&&(r=i)}var o=t(N,n,r,0,0);return 0<P&&(void 0!==(i=s(-2,o,n,n,I,E,o.length,0,0,0))&&(o=i)),"",C=0,E=I=1,o}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,v=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,E=1,I=1,C=0,T=1,N=[],O=[],P=0,L=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:P=O.length=0;break;default:if("function"===typeof t)O[P++]=t;else if("object"===typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=u,void 0!==e&&u(e),c},gt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var yt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
2ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wt=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return yt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),kt=r(2110),xt=r.n(kt),St=r(1426);function _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Mt=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},At=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,pt.typeOf)(e)},Et=Object.freeze([]),It=Object.freeze({});function Ct(e){return"function"==typeof e}function Tt(e){return e.displayName||e.name||"Component"}function Nt(e){return e&&"string"==typeof e.styledComponentId}var Ot="undefined"!=typeof St&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.SC_ATTR)||"data-styled",Pt="undefined"!=typeof window&&"HTMLElement"in window,Lt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof St&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof St&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ALCHEMY_KEY:"m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"}.SC_DISABLE_SPEEDY));function Rt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Bt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)(i<<=1)<0&&Rt(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),zt=new Map,Dt=new Map,Zt=1,jt=function(e){if(zt.has(e))return zt.get(e);for(;Dt.has(Zt);)Zt++;var t=Zt++;return zt.set(e,t),Dt.set(t,e),t},Ut=function(e){return Dt.get(e)},Ft=function(e,t){t>=Zt&&(Zt=t+1),zt.set(e,t),Dt.set(t,e)},Wt="style["+Ot+'][data-styled-version="5.3.5"]',qt=new RegExp("^"+Ot+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ht=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},Kt=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],i=0,o=r.length;i<o;i++){var a=r[i].trim();if(a){var s=a.match(qt);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ft(c,u),Ht(e,c,s[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(a)}}},Vt=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Yt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];
vendor: 5,290 bytes, line 2
2if(n&&1===n.nodeType&&n.hasAttribute(Ot))return n}}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(Ot,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Vt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},Qt=function(){function e(e){var t=this.element=Yt(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}Rt(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Gt=function(){function e(e){var t=this.element=Yt(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Jt=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Xt=Pt,$t={isServer:!Pt,useCSSOMInjection:!Lt},er=function(){function e(e,t,r){void 0===e&&(e=It),void 0===t&&(t={}),this.options=_t({},$t,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Pt&&Xt&&(Xt=!1,function(e){for(var t=document.querySelectorAll(Wt),r=0,n=t.length;r<n;r++){var i=t[r];i&&"active"!==i.getAttribute(Ot)&&(Kt(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return jt(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(_t({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,i=t.target,e=r?new Jt(i):n?new Qt(i):new Gt(i),new Bt(e)));var e,t,r,n,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(jt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(jt(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(jt(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++){var o=Ut(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=Ot+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),tr=/(a)(d)/gi,rr=function(e){return String.fromCharCode(e+(e>25?39:97))};function nr(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=rr(t%52)+r;return(rr(t%52)+r).replace(tr,"$1-$2")}var ir=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},or=function(e){return ir(5381,e)};function ar(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ct(r)&&!Nt(r))return!1}return!0}var sr=or("5.3.5"),ur=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ar(e),this.componentId=t,this.baseHash=ir(sr,t),this.baseStyle=r,er.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))i.push(this.staticRulesId);else{var o=Ar(this.rules,e,t,r).join(""),a=nr(ir(this.baseHash,o)>>>0);if(!t.hasNameForId(n,a)){var s=r(o,"."+a,void 0,n);t.insertRules(n,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=ir(this.baseHash,r.hash),l="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var h=Ar(d,e,t,r),p=Array.isArray(h)?h.join(""):h;c=ir(c,p+f),l+=p}}if(l){var v=nr(c>>>0);if(!t.hasNameForId(n,v)){var b=r(l,"."+v,void 0,n);t.insertRules(n,v,b)}i.push(v)}}return i.join(" ")},e}(),cr=/^\s*\/\/.*$/gm,lr=[":","[",".","#"];function fr(e){var t,r,n,i,o=void 0===e?It:e,a=o.options,s=void 0===a?It:a,u=o.plugins,c=void 0===u?Et:u,l=new mt(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,i,o,a,s,u,c,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,n,o){return 0===n&&-1!==lr.indexOf(o[r.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(cr,""),c=o&&a?a+" "+o+" { "+u+" }":u;
vendor: 8,622 bytes, line 2
2return t=s,r=o,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),l(a||!o?"":o,c)}return l.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(r)>0&&(i[0]=i[0].replace(n,h))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),p.hash=c.length?c.reduce((function(e,t){return t.name||Rt(15),ir(e,t.name)}),5381).toString():"",p}var dr=e.createContext(),hr=(dr.Consumer,e.createContext()),pr=(hr.Consumer,new er),vr=fr();function br(){return(0,e.useContext)(dr)||pr}function mr(){return(0,e.useContext)(hr)||vr}function gr(t){var r=(0,e.useState)(t.stylisPlugins),n=r[0],i=r[1],o=br(),a=(0,e.useMemo)((function(){var e=o;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),s=(0,e.useMemo)((function(){return fr({options:{prefix:!t.disableVendorPrefixes},plugins:n})}),[t.disableVendorPrefixes,n]);return(0,e.useEffect)((function(){bt()(n,t.stylisPlugins)||i(t.stylisPlugins)}),[t.stylisPlugins]),e.createElement(dr.Provider,{value:a},e.createElement(hr.Provider,{value:s},t.children))}var yr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=vr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Rt(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=vr),this.name+e.hash},e}(),wr=/([A-Z])/,kr=/([A-Z])/g,xr=/^ms-/,Sr=function(e){return"-"+e.toLowerCase()};function _r(e){return wr.test(e)?e.replace(kr,Sr).replace(xr,"-ms-"):e}var Mr=function(e){return null==e||!1===e||""===e};function Ar(e,t,r,n){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=Ar(e[a],t,r,n))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return Mr(e)?"":Nt(e)?"."+e.styledComponentId:Ct(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:Ar(e(t),t,r,n):e instanceof yr?r?(e.inject(r,n),e.getName(n)):e:At(e)?function e(t,r){var n,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!Mr(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Ct(t[a])?o.push(_r(a)+":",t[a],";"):At(t[a])?o.push.apply(o,e(t[a],a)):o.push(_r(a)+": "+(n=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in gt?String(i).trim():i+"px")+";")));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString();var u}var Er=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ir(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Ct(e)||At(e)?Er(Ar(Mt(Et,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Er(Ar(Mt(e,r)))}new Set;var Cr=function(e,t,r){return void 0===r&&(r=It),e.theme!==r.theme&&e.theme||t||r.theme},Tr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Nr=/(^-|-$)/g;function Or(e){return e.replace(Tr,"-").replace(Nr,"")}var Pr=function(e){return nr(or(e)>>>0)};function Lr(e){return"string"==typeof e&&!0}var Rr=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Br=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function zr(e,t,r){var n=e[r];Rr(t)&&Rr(n)?Dr(n,t):e[r]=t}function Dr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];if(Rr(a))for(var s in a)Br(s)&&zr(e,a[s],s)}return e}var Zr=e.createContext();Zr.Consumer;function jr(t){var r=(0,e.useContext)(Zr),n=(0,e.useMemo)((function(){return function(e,t){return e?Ct(e)?e(t):Array.isArray(e)||"object"!=typeof e?Rt(8):t?_t({},t,{},e):e:Rt(14)}(t.theme,r)}),[t.theme,r]);return t.children?e.createElement(Zr.Provider,{value:n},t.children):null}var Ur={};function Fr(t,r,n){var i=Nt(t),o=!Lr(t),a=r.attrs,s=void 0===a?Et:a,u=r.componentId,c=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Or(e);Ur[r]=(Ur[r]||0)+1;var n=r+"-"+Pr("5.3.5"+r+Ur[r]);return t?t+"-"+n:n}(r.displayName,r.parentComponentId):u,l=r.displayName,f=void 0===l?function(e){return Lr(e)?"styled."+e:"Styled("+Tt(e)+")"}(t):l,d=r.displayName&&r.componentId?Or(r.displayName)+"-"+r.componentId:r.componentId||c,h=i&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,p=r.shouldForwardProp;i&&t.shouldForwardProp&&(p=r.shouldForwardProp?function(e,n,i){return t.shouldForwardProp(e,n,i)&&r.shouldForwardProp(e,n,i)}:t.shouldForwardProp);var v,b=new ur(n,d,i?t.componentStyle:void 0),m=b.isStatic&&0===s.length,g=function(t,r){return function(t,r,n,i){var o=t.attrs,a=t.componentStyle,s=t.defaultProps,u=t.foldedComponentIds,c=t.shouldForwardProp,l=t.styledComponentId,f=t.target,d=function(e,t,r){void 0===e&&(e=It);var n=_t({},t,{theme:e}),i={};return r.forEach((function(e){var t,r,o,a=e;for(t in Ct(a)&&(a=a(n)),a)n[t]=i[t]="className"===t?(r=i[t],o=a[t],r&&o?r+" "+o:r||o):a[t]})),[n,i]}(Cr(r,(0,e.useContext)(Zr),s)||It,r,o),h=d[0],p=d[1],v=function(e,t,r,n){var i=br(),o=mr();return t?e.generateAndInjectStyles(It,i,o):e.generateAndInjectStyles(r,i,o)}(a,i,h),b=n,m=p.$as||r.$as||p.as||r.as||f,g=Lr(m),y=p!==r?_t({},r,{},p):r,w={};for(var k in y)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?w.as=y[k]:(c?c(k,wt,m):!g||wt(k))&&(w[k]=y[k]));return r.style&&p.style!==r.style&&(w.style=_t({},r.style,{},p.style)),w.className=Array.prototype.concat(u,l,v!==l?v:null,r.className,p.className).filter(Boolean).join(" "),w.ref=b,(0,e.createElement)(m,w)}(v,t,r,m)};return g.displayName=f,(v=e.forwardRef(g)).attrs=h,v.componentStyle=b,v.displayName=f,v.shouldForwardProp=p,v.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Et,v.styledComponentId=d,v.target=i?t.target:t,v.withComponent=function(e){var t=r.componentId,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(r,["componentId"]),o=t&&t+"-"+(Lr(e)?e:Or(Tt(e)));return Fr(e,_t({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Dr({},t.defaultProps,e):e}}),v.toString=function(){return"."+v.styledComponentId},o&&xt()(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Wr=function(e){return function e(t,r,n){if(void 0===n&&(n=It),!(0,pt.isValidElementType)(r))return Rt(1,String(r));var i=function(){return t(r,n,Ir.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,_t({},n,{},i))},i.attrs=function(i){return e(t,r,_t({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}(Fr,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Wr[e]=Wr(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ar(e),er.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,r,n){var i=n(Ar(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&er.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();function qr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Ir.apply(void 0,[e].concat(r)).join(""),o=Pr(i);return new yr(o,i)}!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var r=Vt();return"<style "+[r&&'nonce="'+r+'"',Ot+'="true"','data-styled-version="5.3.5"'].filter(
2Boolean).join(" ")+">"+e+"</style>"},this.getStyleTags=function(){return t.sealed?Rt(2):t._emitSheetCSS()},this.getStyleElement=function(){var r;if(t.sealed)return Rt(2);var n=((r={})[Ot]="",r["data-styled-version"]="5.3.5",r.dangerouslySetInnerHTML={__html:t.instance.toString()},r),i=Vt();return i&&(n.nonce=i),[e.createElement("style",_t({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new er({isServer:!0}),this.sealed=!1}var r=t.prototype;r.collectStyles=function(t){return this.sealed?Rt(2):e.createElement(gr,{sheet:this.instance},t)},r.interleaveWithNodeStream=function(e){return Rt(3)}}();var Hr,Kr,Vr,Yr,Qr=Wr,Gr=r(184);var Jr=Qr.div(Hr||(Hr=dt(["\n display: flex;\n flex-wrap: wrap;\n padding: 20px;\n align-items: flex-end;\n justify-content: space-between;\n gap: 10px;\n background-image: url(",");\n"])),ht),Xr=Qr.div(Kr||(Kr=dt(["\n display: flex;\n flex-wrap: wrap;\n gap: 20px;\n"]))),$r=Qr.div(Vr||(Vr=dt(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"]))),en=Qr.h1(Yr||(Yr=dt(["\n margin-bottom: 0;\n"]))),tn=function(){var t=(0,e.useContext)(i).connection,r=W().publicKey,o=(0,e.useState)(!1),a=(0,H.Z)(o,2),s=a[0],u=a[1],c=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(r){var i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=["GBGLvZDqRGMviomCvvrq2eyMQX49XrA6WXEB6qmqQF36","4GyqVhY2fEWSFmHxkUDwVbacWcAYYqpuHqMDBQLcjJ5R","HCPECyL9rySiNHaFNeBermwv9WhDedaChtvEFn2BHFvf"].map((function(e){return{mint:new n.nh(e)}})),e.next=4,Promise.all(i.map((function(e){return t.getTokenAccountsByOwner(r,e)})));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){r&&c(r).then((function(e){return u(e.some((function(e){return e.value.length>0})))}))}),[r]),(0,Gr.jsxs)(Jr,{children:[(0,Gr.jsxs)($r,{children:[(0,Gr.jsx)(en,{children:"Corporation Plaza e-business lounge"}),r?s?(0,Gr.jsx)("div",{children:"Were in business"}):(0,Gr.jsx)("div",{children:"Were not in business"}):(0,Gr.jsx)("div",{children:"Welcome, please connect wallet to enable business"})]}),(0,Gr.jsxs)(Xr,{children:[(0,Gr.jsx)(Ae,{style:{backgroundColor:"blue"}}),(0,Gr.jsx)(_e,{})]})]})},rn=e.createContext(null);function nn(t){var r=t.children,n=(0,e.useState)(),i=(0,H.Z)(n,2),o=i[0],a=i[1],s=(0,e.useState)(),u=(0,H.Z)(s,2),c=u[0],l=u[1],f=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(){var t,r,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"5rcTDpRnmQrnRmCQbNdCRF1SGAfjRLkwGuG6zUgALDjS",e.next=3,fetch("https://api.ninaprotocol.com/v1/accounts/".concat("5rcTDpRnmQrnRmCQbNdCRF1SGAfjRLkwGuG6zUgALDjS","/published"));case 3:return t=e.sent,e.next=6,t.json();case 6:return r=e.sent,(n=r.published).sort((function(e,t){return new Date(t.datetime).getTime()-new Date(e.datetime).getTime()})),a(n),e.abrupt("return",n);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r,n;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.ninaprotocol.com/v1/releases/".concat(t,"/collectors"));case 2:return r=e.sent,e.next=5,r.json();case 5:if(null!==(n=e.sent)&&void 0!==n&&n.collectors){e.next=9;break}return console.error("something broke"),e.abrupt("return");case 9:return e.abrupt("return",{trackId:t,collectors:n.collectors.map((function(e){return e.publicKey}))});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=(0,h.Z)((0,d.Z)().mark((function e(t){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map((function(e){return p(e.publicKey)})));case 2:r=e.sent,l(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,e.useEffect)((function(){o?v(o):f()}),[o]);for(var b=null===c||void 0===c?void 0:c.reduce((function(e,t){return(0,P.Z)(new Set([].concat((0,P.Z)(t.collectors),(0,P.Z)(e))))}),[]),m=null===b||void 0===b?void 0:b.reduce((function(e,t){var r=c.map((function(e){return e.collectors.includes(t)})).reduce((function(e,t){return t?e+1:e}),0);return[{collector:t,numberOwned:r}].concat((0,P.Z)(e))}),[]),g=null===o||void 0===o?void 0:o.length,y={},w=function(e){y[e]=null===m||void 0===m?void 0:m.filter((function(t){return t.numberOwned===e})).map((function(e){return e.collector}))},k=1;k<=g;k++)w(k);var x={tracks:o,ownerMap:m,bucketedOwners:y,investorMap:c};return(0,Gr.jsx)(rn.Provider,{value:x,children:r})}function on(){var t=e.useContext(rn);if(void 0===t)throw new Error("useNina must be used within a NinaProvi
2der");return t}var an=r(9778).Buffer,sn="4px 4px 10px 0 rgba(0, 0, 0, 0.35)",un="inset 2px 2px 3px rgba(0,0,0,0.2)",cn=function(){return Ir(["-webkit-text-fill-color:",";color:",";text-shadow:1px 1px ",";"],(function(e){return e.theme.materialTextDisabled}),(function(e){return e.theme.materialTextDisabled}),(function(e){return e.theme.materialTextDisabledShadow}))},ln=function(){return Ir(["box-sizing:border-box;display:inline-block;background:",";color:",";"],(function(e){return e.theme.material}),(function(e){return e.theme.materialText}))},fn=function(e){var t=e.mainColor,r=void 0===t?"black":t,n=e.secondaryColor,i=void 0===n?"transparent":n,o=e.pixelSize,a=void 0===o?2:o;return Ir(["background-image:",";background-color:",";background-size:",";background-position:0 0,",";"],["linear-gradient(\n 45deg,\n ".concat(r," 25%,\n transparent 25%,\n transparent 75%,\n ").concat(r," 75%\n )"),"linear-gradient(\n 45deg,\n ".concat(r," 25%,\n transparent 25%,\n transparent 75%,\n ").concat(r," 75%\n )")].join(","),i,"".concat(2*a,"px ").concat(2*a,"px"),"".concat(a,"px ").concat(a,"px"))},dn=function(){return Ir(["position:relative;box-sizing:border-box;display:inline-block;color:",";background:",";border:2px solid ",";outline:2px solid ",";outline-offset:-4px;"],(function(e){return e.theme.materialText}),(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas}),(function(e){return e.theme.canvas}),(function(e){return e.theme.flatDark}))},hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.invert,r=void 0!==t&&t,n=e.windowBorders,i=void 0!==n&&n;return r?Ir(["border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";box-shadow:"," inset 1px 1px 0px 1px ",",inset -1px -1px 0 1px ",";"],(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest}),(function(e){return e.shadow&&"".concat(sn,", ")}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderLight})):Ir(["border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";box-shadow:"," inset 1px 1px 0px 1px ",",inset -1px -1px 0 1px ",";"],(function(e){var t=e.theme;return i?t.borderLight:t.borderLightest}),(function(e){var t=e.theme;return i?t.borderLight:t.borderLightest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.shadow&&"".concat(sn,", ")}),(function(e){var t=e.theme;return i?t.borderLightest:t.borderLight}),(function(e){return e.theme.borderDark}))},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?Ir(["border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";"],(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest})):Ir(["border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";"],(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}))},vn=function(){return Ir(["outline:2px dotted ",";"],(function(e){return e.theme.materialText}))},bn="undefined"!==typeof btoa?btoa:function(e){return an.from(e).toString("base64")},mn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r='<svg height="26" width="26" viewBox="0 0 26 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g transform="rotate('.concat(t,' 13 13)">\n <polygon fill="').concat(e,'" points="6,10 20,10 13,17"/>\n </g>\n </svg>'),n=bn(r);return"url(data:image/svg+xml;base64,".concat(n,")")},gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Ir(["::-webkit-scrollbar{width:26px;height:26px;}::-webkit-scrollbar-track{","}::-webkit-scrollbar-thumb{"," "," outline-offset:-2px;}::-webkit-scrollbar-corner{background-color:",";}::-webkit-scrollbar-button{"," "," display:block;outline-offset:-2px;height:26px;width:26px;background-repeat:no-repeat;background-size:100%;background-position:0 0;}::-webkit-scrollbar-button:active,::-webkit-scrollbar-button:active{background-position:0 1px;","}::-webkit-scrollbar-button:horizontal:increment:start,::-webkit-scrollbar-button:horizontal:decrement:end,::-webkit-scrollbar-button:vertical:increment:start,::-webkit-scrollbar-button:vertical:decrement:end{display:none;}::-webkit-scrollbar-button:horizontal:decrement{background-image:",";}::-webkit-scrollbar-button:horizontal:increment{background-image:",";}::-webkit-scrollbar-button:vertical:decrement{background-image:",";}::-webkit-scrollbar-button:vertical:increment{background-image:",";}"],(function(t){var r=t.theme;return fn({mainColor:"flat"===e?r.flatLight:r.material,secondaryColor:"flat"===e?r.canvas:r.borderLightest})}),ln(),"flat"===e?dn():hn({windowBorders:!0}),(function(e){return e.theme.material}),ln(),"flat"===e?dn():hn({windowBorders:!0}),"default"===e?hn({windowBorders:!0,invert:!0}):"",(function(e){var t=e.theme;return mn(t.materialText,90)}),(function(e){var t=e.theme;return mn(t.materialText,270)}),(function(e){var t=e.theme;return mn(t.materialText,180)}),(function(e){var t=e.theme;return mn(t.materialText,0)}))};
2function yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wn(e,t){return e(t={exports:{}},t.exports),t.exports}var kn=wn((function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),xn=yn(kn),Sn=wn((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Sn);var _n=yn(wn((function(e){e.exports=function(e,t){if(null==e)return{};var r,n,i=Sn(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports})));function Mn(){}function An(){}An.resetWarningCache=Mn;var En=wn((function(e){e.exports=function(){function e(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:An,resetWarningCache:Mn};return r.PropTypes=r,r}()})),In=["children"],Cn=Qr.a.withConfig({displayName:"Anchor__StyledAnchor",componentId:"sc-l0phqd-0"})(["color:",";font-size:inherit;text-decoration:underline;&:visited{color:",";}"],(function(e){return e.theme.anchor}),(function(e){return e.theme.anchorVisited})),Tn=e.forwardRef((function(t,r){var n=t.children,i=_n(t,In);return e.createElement(Cn,xn({ref:r},i),n)}));Tn.defaultProps={},Tn.propTypes={children:En.node.isRequired};var Nn=["children"],On=Qr.header.withConfig({displayName:"AppBar__StyledAppBar",componentId:"sc-5xnw8i-0"})(["",";",";position:",";top:0;right:0;left:auto;display:flex;flex-direction:column;width:100%;"],hn(),ln(),(function(e){return e.fixed?"fixed":"absolute"})),Pn=e.forwardRef((function(t,r){var n=t.children,i=_n(t,Nn);return e.createElement(On,xn({ref:r},i),n)}));Pn.defaultProps={children:null,fixed:!0},Pn.propTypes={children:En.node,fixed:En.bool};var Ln=["alt","children","noBorder","size","square","src"],Rn=Qr.div.withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-8242ij-0"})(["display:inline-block;box-sizing:border-box;object-fit:contain;"," border-radius:",";overflow:hidden;"," ",""],(function(e){var t=e.size;return"\n height: ".concat(t,";\n width: ").concat(t,";\n ")}),(function(e){return e.square?0:"50%"}),(function(e){var t=e.noBorder,r=e.theme;return!t&&"\n border-top: 2px solid ".concat(r.borderDark,";\n border-left: 2px solid ").concat(r.borderDark,";\n border-bottom: 2px solid ").concat(r.borderLightest,";\n border-right: 2px solid ").concat(r.borderLightest,";\n background: ").concat(r.material,";\n ")}),(function(e){return!e.src&&"\n display: flex;\n align-items: center;\n justify-content: space-around;\n font-weight: bold;\n font-size: 1rem;\n "})),Bn=Qr.img.withConfig({displayName:"Avatar__SlyledAvatarIMG",componentId:"sc-8242ij-1"})(["display:block;object-fit:contain;width:100%;height:100%;"]),zn=e.forwardRef((function(t,r){var n=t.alt,i=t.children,o=t.noBorder,a=t.size,s=t.square,u=t.src,c=_n(t,Ln),l="number"===typeof a?"".concat(a,"px"):a;return e.createElement(Rn,xn({noBorder:o,ref:r,size:l,square:s},c),u?e.createElement(Bn,{src:u,alt:n}):i)}));zn.defaultProps={alt:"",children:null,noBorder:!1,size:35,square:!1,src:void 0},zn.propTypes={alt:En.string,children:En.node,noBorder:En.bool,size:En.oneOfType([En.string,En.number]),square:En.bool,src:En.string};var Dn=["size"],Zn=Qr.div.withConfig({displayName:"Bar__StyledBar",componentId:"sc-go90h-0"})(["display:inline-block;box-sizing:border-box;height:",";width:5px;border-top:2px solid ",";border-left:2px solid ",";border-bottom:2px solid ",";border-right:2px solid ",";background:",";"],(function(e){return e.size}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.material})),jn=e.forwardRef((function(t,r){var n=t.size,i=_n(t,Dn),o="number"===typeof n?"".concat(n,"px"):n;return e.createElement(Zn,xn({size:o,ref:r},i))}));jn.defaultProps={size:"100%"},jn.propTypes={size:En.oneOfType([En.string,En.number])};var Un=function(){};function Fn(e,t,r){return null!==r&&e>r?r:null!==t&&e<t?t:e}function Wn(e,t,r){var n=Math.round((e-r)/t)*t+r;
2return Number(n.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}var n=e.toString().split(".")[1];return n?n.length:0}(t)))}var qn={sm:"28px",md:"36px",lg:"44px"},Hn=["onClick","disabled","children"],Kn=Ir(["position:relative;display:inline-flex;align-items:center;justify-content:center;height:",";width:",";padding:",";font-size:1rem;user-select:none;&:active{padding-top:",";}padding-top:",";&:after{content:'';position:absolute;display:block;top:0;left:0;height:100%;width:100%;}&:not(:disabled){cursor:pointer;}font-family:inherit;"],(function(e){var t=e.size;return qn[t]}),(function(e){var t=e.fullWidth,r=e.square,n=e.size;return t?"100%":r?qn[n]:"auto"}),(function(e){return e.square?0:"0 10px"}),(function(e){return!e.isDisabled&&"2px"}),(function(e){var t=e.active,r=e.isDisabled;return t&&!r&&"2px"})),Vn=Qr.button.withConfig({displayName:"Button__StyledButton",componentId:"sc-gojigu-0"})([""," ",""],(function(e){var t=e.variant,r=e.theme,n=e.active,i=e.isDisabled,o=e.primary;return"flat"===t?Ir([""," "," &:focus:after,&:active:after{"," outline-offset:-4px;}"],dn(),o?"\n border: 2px solid ".concat(r.checkmark,";\n outline: 2px solid ").concat(r.flatDark,";\n outline-offset: -4px;\n "):"\n border: 2px solid ".concat(r.flatDark,";\n outline: 2px solid transparent;\n outline-offset: -4px;\n "),!n&&!i&&vn):"menu"===t?Ir(["",";border:2px solid transparent;&:hover,&:focus{","}&:active{","}"," ",""],ln(),!i&&!n&&pn(!1),!i&&pn(!0),n&&pn(!0),i&&cn()):Ir(["",";border:none;"," "," &:before{box-sizing:border-box;content:'';position:absolute;"," ","}&:active:before{","}&:focus:after,&:active:after{"," outline-offset:-8px;}&:active:focus:after,&:active:after{top:",";}"],ln(),i&&cn(),n?fn({mainColor:r.material,secondaryColor:r.borderLightest}):"",o?Ir(["left:2px;top:2px;width:calc(100% - 4px);height:calc(100% - 4px);outline:2px solid ",";"],r.borderDarkest):Ir(["left:0;top:0;width:100%;height:100%;"]),hn(n?{invert:!0}:{invert:!1}),!i&&hn({invert:!0}),!n&&!i&&vn,n?"0":"1px")}),Kn),Yn=e.forwardRef((function(t,r){var n=t.onClick,i=t.disabled,o=t.children,a=_n(t,Hn);return e.createElement(Vn,xn({onClick:i?void 0:n,disabled:i,isDisabled:i,ref:r},a),o)}));Yn.defaultProps={type:"button",onClick:null,disabled:!1,fullWidth:!1,size:"md",square:!1,active:!1,onTouchStart:Un,primary:!1,variant:"default"},Yn.propTypes={type:En.string,onClick:En.func,disabled:En.bool,fullWidth:En.bool,size:En.oneOf(["sm","md","lg"]),square:En.bool,active:En.bool,onTouchStart:En.func,primary:En.bool,variant:En.oneOf(["default","menu","flat"]),children:En.node};var Qn=wn((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Qn);var Gn=wn((function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Gn);var Jn=wn((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Jn);var Xn=wn((function(e){e.exports=function(e,t){if(e){if("string"===typeof e)return Jn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jn(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Xn);var $n=wn((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));yn($n);var ei=yn(wn((function(e){e.exports=function(e,t){return Qn(e)||Gn(e,t)||Xn(e,t)||$n()},e.exports.__esModule=!0,e.exports.default=e.exports}))),ti=function(t){var r=t.value,n=t.defaultValue,i=void 0!==r,o=(0,e.useState)(n),a=ei(o,2),s=a[0],u=a[1],c=(0,e.useCallback)((function(e){i||u(e)}
2),[]);return[i?r:s,c]},ri=["children"],ni=Qr.div.withConfig({displayName:"Cutout__StyledCutout",componentId:"sc-izl2tb-0"})(["position:relative;box-sizing:border-box;padding:2px;font-size:1rem;border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";line-height:1.5;&:before{position:absolute;left:0;top:0;content:'';width:calc(100% - 4px);height:calc(100% - 4px);border-style:solid;border-width:2px;border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";pointer-events:none;","}"],(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderLight}),(function(e){return e.theme.borderLight}),(function(e){return e.shadow&&"box-shadow:".concat(un,";")})),ii=Qr.div.withConfig({displayName:"Cutout__Content",componentId:"sc-izl2tb-1"})(["box-sizing:border-box;width:100%;height:100%;padding:4px;overflow:auto;",""],gn()),oi=e.forwardRef((function(t,r){var n=t.children,i=_n(t,ri);return e.createElement(ni,xn({ref:r},i),e.createElement(ii,null,n))}));oi.defaultProps={children:null,shadow:!0},oi.propTypes={children:En.node,shadow:En.bool};var ai=["size","disabled","square","children","onClick","primary"],si=Qr.li.withConfig({displayName:"ListItem__StyledListItem",componentId:"sc-ql5wg1-0"})(["box-sizing:border-box;display:flex;align-items:center;position:relative;height:",";width:",";padding:0 8px;font-size:1rem;white-space:nowrap;justify-content:",";text-align:center;line-height:",";color:",";pointer-events:",";font-weight:",";&:hover{"," cursor:default;}",""],(function(e){return qn[e.size]}),(function(e){return e.square?qn[e.size]:"auto"}),(function(e){return e.square?"space-around":"space-between"}),(function(e){return qn[e.size]}),(function(e){return e.theme.materialText}),(function(e){return e.isDisabled?"none":"auto"}),(function(e){return e.primary?"bold":"normal"}),(function(e){var t=e.theme;return!e.isDisabled&&"\n color: ".concat(t.materialTextInvert,";\n background: ").concat(t.hoverBackground,";\n ")}),(function(e){return e.isDisabled&&cn()})),ui=e.forwardRef((function(t,r){var n=t.size,i=t.disabled,o=t.square,a=t.children,s=t.onClick,u=t.primary,c=_n(t,ai);return e.createElement(si,xn({size:n,isDisabled:i,square:o,onClick:i?void 0:s,primary:u,role:"menuitem",ref:r,"aria-disabled":i.toString()},c),a)}));ui.defaultProps={disabled:!1,size:"lg",square:!1,onClick:null,children:null,primary:!1},ui.propTypes={size:En.oneOf(["sm","md","lg"]),disabled:En.bool,square:En.bool,children:En.node,onClick:En.func,primary:En.bool};var ci=20,li=Qr.input.withConfig({displayName:"SwitchBase__StyledInput",componentId:"sc-4eyclw-0"})(["position:absolute;left:0;margin:0;width:","px;height:","px;opacity:0;z-index:-1;"],ci,ci),fi=Qr.label.withConfig({displayName:"SwitchBase__StyledLabel",componentId:"sc-4eyclw-1"})(["display:inline-flex;align-items:center;position:relative;margin:8px 0;cursor:",";user-select:none;font-size:1rem;color:",";"," "," &{margin:0;height:100%;}",":hover &{",";}"],(function(e){return e.isDisabled?"auto":"pointer"}),(function(e){return e.theme.materialText}),(function(e){return e.isDisabled&&cn()}),si,si,(function(e){var t=e.theme;return!e.isDisabled&&Ir(["color:",";"],t.materialTextInvert)})),di=Qr.span.withConfig({displayName:"SwitchBase__LabelText",componentId:"sc-4eyclw-2"})(["display:inline-block;line-height:1;padding:2px;",":focus ~ &{","}",":not(:disabled) ~ &:active{","}"],li,vn,li,vn),hi=["onChange","label","disabled","variant","value","checked","defaultChecked","indeterminate","name","className","style"],pi=Ir(["width:","px;height:","px;display:flex;align-items:center;justify-content:space-around;margin-right:0.5rem;"],ci,ci),vi=Qr(ni).withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-2r2boa-0"})([""," width:","px;height:","px;background:",";&:before{box-shadow:none;}"],pi,ci,ci,(function(e){var t=e.theme;return e.isDisabled?t.material:t.canvas})),bi=Qr.div.withConfig({displayName:"Checkbox__StyledFlatCheckbox",componentId:"sc-2r2boa-1"})(["position:relative;box-sizing:border-box;display:inline-block;background:",";"," width:","px;height:","px;outline:none;border:2px solid ",";background:",";"],(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas}),pi,16,16,(function(e){return e.theme.flatDark}),(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas})),mi=Qr.div.withConfig({displayName:"Checkbox__StyledMenuCheckbox",componentId:"sc-2r2boa-2"})(["position:relative;box-sizing:border-box;display:inline-block;background:",";"," width:","px;height:","px;background:none;border:none;outline:none;"],(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas}),pi,16,16),gi=Qr.span.attrs((function(){return{"data-testid":"checkmarkIcon"}})).withConfig({displayName:"Checkbox__CheckmarkIcon",componentId:"sc-2r2boa-3"})(["display:inline-block;position:relative;width:100%;height:100%;&:after{content:'';display:block;position:absolute;
2left:50%;top:calc(50% - 1px);width:3px;height:7px;border:solid ",";border-width:0 3px 3px 0;transform:translate(-50%,-50%) rotate(45deg);"," ",":hover &{",";}"],(function(e){var t=e.theme;return e.isDisabled?t.checkmarkDisabled:t.checkmark}),(function(e){var t=e.variant,r=e.theme,n=e.isDisabled;return"menu"===t?Ir(["border-color:",";filter:drop-shadow( 1px 1px 0px "," );"],n?r.materialTextDisabled:r.materialText,n?r.materialTextDisabledShadow:"transparent"):Ir(["border-color:",";"],n?r.checkmarkDisabled:r.checkmark)}),si,(function(e){var t=e.theme,r=e.isDisabled,n=e.variant;return!r&&"menu"===n&&Ir(["border-color:",";"],t.materialTextInvert)})),yi=Qr.span.attrs((function(){return{"data-testid":"indeterminateIcon"}})).withConfig({displayName:"Checkbox__IndeterminateIcon",componentId:"sc-2r2boa-4"})(["display:inline-block;position:relative;"," &:after{content:'';display:block;width:100%;height:100%;"," background-position:0px 0px,2px 2px;",";}"],(function(e){return Ir("menu"===e.variant?["height:calc(100% - 4px);width:calc(100% - 4px);"]:["width:100%;height:100%;"])}),(function(e){var t=e.theme,r=e.isDisabled;return fn({mainColor:r?t.checkmarkDisabled:t.checkmark})}),(function(e){var t=e.variant,r=e.isDisabled,n=e.theme;return"menu"===t&&Ir(["",":hover &{","}filter:drop-shadow( 1px 1px 0px "," );"],si,fn({mainColor:n.materialTextInvert}),r?n.materialTextDisabledShadow:"transparent")})),wi={flat:bi,default:vi,menu:mi},ki=e.forwardRef((function(t,r){var n=t.onChange,i=t.label,o=t.disabled,a=t.variant,s=t.value,u=t.checked,c=t.defaultChecked,l=t.indeterminate,f=t.name,d=t.className,h=t.style,p=_n(t,hi),v=ti({value:u,defaultValue:c}),b=ei(v,2),m=b[0],g=b[1],y=wi[a],w=null;return l?w=yi:m&&(w=gi),e.createElement(fi,{isDisabled:o,className:d,style:h},e.createElement(li,xn({disabled:o,onChange:o?void 0:function(e){var t=e.target.checked;g(t),n&&n(e)},readOnly:o,type:"checkbox",value:s,checked:m,name:f,"data-indeterminate":l,ref:r},p)),e.createElement(y,{checked:m,indeterminate:l,isDisabled:o,role:"presentation"},w&&e.createElement(w,{isDisabled:o,variant:a})),i&&e.createElement(di,null,i))}));ki.defaultProps={label:"",disabled:!1,variant:"default",onChange:function(){},checked:void 0,style:{},defaultChecked:!1,className:"",indeterminate:!1,value:void 0,name:null},ki.propTypes={onChange:En.func,name:En.string,value:En.oneOfType([En.string,En.number,En.bool]),label:En.oneOfType([En.string,En.number]),checked:En.bool,disabled:En.bool,variant:En.oneOf(["default","flat","menu"]),style:En.object,defaultChecked:En.bool,indeterminate:En.bool,className:En.string};var xi=["size"],Si=Qr.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-let3iz-0"})(["",""],(function(e){var t=e.orientation,r=e.theme,n=e.size;return"vertical"===t?"\n height: ".concat(n,";\n border-left: 2px solid ").concat(r.borderDark,";\n border-right: 2px solid ").concat(r.borderLightest,";\n margin: 0;\n "):"\n width: ".concat(n,";\n border-bottom: 2px solid ").concat(r.borderLightest,";\n border-top: 2px solid ").concat(r.borderDark,";\n margin: 0;\n ")})),_i=e.forwardRef((function(t,r){var n=t.size,i=_n(t,xi),o="number"===typeof n?"".concat(n,"px"):n;return e.createElement(Si,xn({ref:r,size:o},i))}));_i.defaultProps={size:"100%",orientation:"horizontal"},_i.propTypes={size:En.oneOfType([En.string,En.number]),orientation:En.oneOf(["horizontal","vertical"])};var Mi=["value","defaultValue","onChange","disabled","variant"],Ai=Qr(Vn).withConfig({displayName:"ColorInput__Trigger",componentId:"sc-1wp44cu-0"})(["padding-left:8px;"]),Ei=Qr(_i).withConfig({displayName:"ColorInput__StyledDivider",componentId:"sc-1wp44cu-1"}
2)(["height:21px;position:relative;top:0;"]),Ii=Qr.input.withConfig({displayName:"ColorInput__StyledColorInput",componentId:"sc-1wp44cu-2"})(["box-sizing:border-box;width:100%;height:100%;position:absolute;left:0;top:0;opacity:0;z-index:1;cursor:pointer;&:disabled{cursor:default;}"]),Ci=Qr.div.withConfig({displayName:"ColorInput__ColorPreview",componentId:"sc-1wp44cu-3"})(["box-sizing:border-box;height:19px;display:inline-block;width:35px;margin-right:5px;background:",";"," ",":focus:not(:active) + &:after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;"," outline-offset:-8px;}"],(function(e){return e.color}),(function(e){return e.isDisabled?Ir(["border:2px solid ",";filter:drop-shadow( 1px 1px 0px "," );"],(function(e){return e.theme.materialTextDisabled}),(function(e){return e.theme.materialTextDisabledShadow})):Ir(["border:2px solid ",";"],(function(e){return e.theme.materialText}))}),Ii,vn),Ti=Qr.span.withConfig({displayName:"ColorInput__ChevronIcon",componentId:"sc-1wp44cu-4"})(["width:0px;height:0px;border-left:6px solid transparent;border-right:6px solid transparent;display:inline-block;margin-left:6px;"," &:after{content:'';box-sizing:border-box;position:absolute;top:",";right:8px;width:16px;height:19px;}"],(function(e){return e.isDisabled?Ir(["border-top:6px solid ",";filter:drop-shadow( 1px 1px 0px "," );"],(function(e){return e.theme.materialTextDisabled}),(function(e){return e.theme.materialTextDisabledShadow})):Ir(["border-top:6px solid ",";"],(function(e){return e.theme.materialText}))}),(function(e){return"flat"===e.variant?"6px":"8px"})),Ni=e.forwardRef((function(t,r){var n=t.value,i=t.defaultValue,o=t.onChange,a=t.disabled,s=t.variant,u=_n(t,Mi),c=ti({value:n,defaultValue:i}),l=ei(c,2),f=l[0],d=l[1];return e.createElement(Ai,{isDisabled:a,as:"div",type:null,variant:s,size:"md"},e.createElement(Ii,xn({onChange:function(e){var t=e.target.value;d(t),o&&o(e)},readOnly:a,disabled:a,value:f||"#008080",type:"color",ref:r},u)),e.createElement(Ci,{color:f,isDisabled:a,role:"presentation"}),"default"===s&&e.createElement(Ei,{orientation:"vertical"}),e.createElement(Ti,{isDisabled:a,variant:s}))}));Ni.defaultProps={value:void 0,defaultValue:void 0,disabled:!1,variant:"default",onChange:function(){}},Ni.propTypes={value:En.string,defaultValue:En.string,onChange:En.func,disabled:En.bool,variant:En.oneOf(["default","flat"])};var Oi=["digit","pixelSize"],Pi=Qr.div.withConfig({displayName:"Digit__DigitWrapper",componentId:"sc-1q7hg3r-0"})(["position:relative;--react95-digit-primary-color:#ff0102;--react95-digit-secondary-color:#740201;--react95-digit-bg-color:#000000;",""],(function(e){var t=e.pixelSize;return Ir(["width:","px;height:","px;margin:","px;span,span:before,span:after{box-sizing:border-box;display:inline-block;position:absolute;}span.active,span.active:before,span.active:after{background:var(--react95-digit-primary-color);}span:not(.active),span:not(.active):before,span:not(.active):after{","}span.horizontal,span.horizontal:before,span.horizontal:after{height:","px;border-left:","px solid var(--react95-digit-bg-color);border-right:","px solid var(--react95-digit-bg-color);}span.horizontal.active,span.horizontal.active:before,span.horizontal.active:after{height:","px;border-left:","px solid var(--react95-digit-primary-color);border-right:","px solid var(--react95-digit-primary-color);}span.horizontal{left:","px;width:","px;}span.horizontal:before{content:'';width:100%;top:","px;left:","px;}span.horizontal:after{content:'';width:calc(100% - ","px);top:","px;left:","px;}span.horizontal.top{top:0;}span.horizontal.bottom{bottom:0;transform:rotateX(180deg);}span.center,span.center:before,span.center:after{height:","px;border-left:","px solid var(--react95-digit-bg-color);border-right:","px solid var(--react95-digit-bg-color);}span.center.active,span.center.active:before,span.center.active:after{border-left:","px solid var(--react95-digit-primary-color);border-right:","px solid var(--react95-digit-primary-color);}span.center{top:50%;transform:translateY(-50%);left:","px;width:","px;}span.center:before,span.center:after{content:'';width:100%;}span.center:before{top:","px;}span.center:after{bottom:","px;}span.vertical,span.vertical:before,span.vertical:after{width:","px;border-top:","px solid var(--react95-digit-bg-color);border-bottom:","px solid var(--react95-digit-bg-color);}span.vertical{height:","px;}span.vertical.left{left:0;}span.vertical.right{right:0;transform:rotateY(180deg);}span.vertical.top{top:0px;}span.vertical.bottom{bottom:0px;}span.vertical:before{content:'';height:100%;top:","px;left:","px;}span.vertical:after{content:'';height:calc(100% - ","px);top:","px;left:","px;}"],11*t,21*t,t,fn({mainColor:"var(--react95-digit-bg-color)",secondaryColor:"var(--react95-digit-secondary-color)",pixelSize:t}),t,t,t,t,t,t,t,9*t,t,0,2*t,2*t,t,t,t,t,t,t,t,9*t,t,t,t,t,t,11*t,0,t,2*t,t,2*t)})),Li=["horizontal top","center","horizontal bottom","vertical top left","vertical top right","vertical bottom left","vertical bottom right"],Ri=[[1,0,1,1,1,1,1],[0,0,0,0,1,0,1],[1,1,1,0,1,1,0],[1,1,1,0,1,0,1],[0,1,0,1,1,0,1],[1,1,1,1,0,0,1],[1,1,1,1,0,1,1],[1,0,0,0,1,0,1],[1,1,1,1,1,1,1],[1,1,1,1,1,0,1]];function Bi(t){var r=t.digit,n=t.pixelSize,i=_n(t,Oi),o=Ri[r].map((function(e,t){return e?"".concat(Li[t]," active"):Li[t]}));return e.createElement(Pi,xn({pixelSize:n},i),o.map((function(t,r){return e.createElement("span",{className:t,key:r})})))}Bi.defaultProps={pixelSize:2,digit:0},Bi.propTypes={pixelSize:En.number,digit:En.oneOfType([En.number,En.string])};var zi=["value","minLength","size"],Di=Qr.div.withConfig({displayName:"Counter__CounterWrapper",componentId:"sc-t6e02n-0"})([""," display:inline-flex;background:#000000;"],pn(!0)),Zi={sm:1,md:2,lg:3,xl:4},ji=e.forwardRef((function(t,r){var n=t.value,i=t.minLength,o=t.size,a=_n(t,zi),s=n.toString();return i&&i>s.length&&(s=Array(i-s.length).fill("0").join("")+s),e.createElement(Di,xn({ref:r},a),s.split("").map((function(t,r){return e.createElement(Bi,{digit:t,pixelSize:Zi[o],key:r})})))}));ji.defaultProps={minLength:3,size:"md",value:0},ji.propTypes={minLength:En.number,size:En.oneOf(["sm","md","lg"]),value:En.number};var Ui=["backgroundStyles","children"],Fi=Qr.div.withConfig({displayName:"Desktop__Wrapper",componentId:"sc-5ry0db-0"})(["position:relative;display:inline-block;padding-bottom:26px;"]),Wi=Qr.div.withConfig({displayName:"Desktop__Inner",componentId:"sc-5ry0db-1"})(["position:relative;"]),qi=Qr.div.withConfig({displayName:"Desktop__Monitor",componentId:"sc-5ry0db-2"})(["position:relative;z-index:1;box-sizing:border-box;width:195px;height:155px;padding:12px;background:",";border-top:4px solid ",";border-left:4px solid ",";border-bottom:4px solid ",";border-right:4px solid ",";outline:1px dotted ",";outline-offset:-3px;&:before{content:'';position:absolute;
2left:0;top:0;width:100%;height:100%;outline:1px dotted ",";}box-shadow:1px 1px 0 1px ",";&:after{content:'';display:inline-block;position:absolute;bottom:4px;right:12px;width:10px;border-top:2px solid #4d9046;border-bottom:2px solid #07ff00;}"],(function(e){return e.theme.material}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.material}),(function(e){return e.theme.material}),(function(e){return e.theme.borderDarkest})),Hi=Qr(ni).attrs((function(){return{"data-testid":"background"}})).withConfig({displayName:"Desktop__Background",componentId:"sc-5ry0db-3"})(["width:100%;height:100%;"]),Ki=Qr.div.withConfig({displayName:"Desktop__Stand",componentId:"sc-5ry0db-4"})(["box-sizing:border-box;position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);height:10px;width:50%;background:",";border-left:2px solid ",";border-bottom:2px solid ",";border-right:2px solid ",";box-shadow:inset 0px 0px 0px 2px ",";&:before{content:'';position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);width:80%;height:8px;background:",";border-left:2px solid ",";border-right:2px solid ",";box-shadow:inset 0px 0px 0px 2px ",";}&:after{content:'';position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:150%;height:4px;background:",";border:2px solid ",";border-bottom:none;box-shadow:inset 1px 1px 0px 1px ",",1px 1px 0 1px ",";}"],(function(e){return e.theme.material}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.material}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.material}),(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDarkest})),Vi=e.forwardRef((function(t,r){var n=t.backgroundStyles,i=t.children,o=_n(t,Ui);return e.createElement(Fi,xn({ref:r},o),e.createElement(Wi,null,e.createElement(qi,null,e.createElement(Hi,{style:n},i)),e.createElement(Ki,null)))}));Vi.defaultProps={backgroundStyles:null},Vi.propTypes={backgroundStyles:En.object,children:En.node};var Yi=["label","disabled","variant","children"],Qi=Qr.fieldset.withConfig({displayName:"Fieldset__StyledFieldset",componentId:"sc-1r5whqt-0"})(["position:relative;border:2px solid ",";padding:16px;margin-top:8px;font-size:1rem;color:",";"," ",""],(function(e){var t=e.theme;return"flat"===e.variant?t.flatDark:t.borderLightest}),(function(e){return e.theme.materialText}),(function(e){return"flat"!==e.variant&&Ir(["box-shadow:-1px -1px 0 1px ",",inset -1px -1px 0 1px ",";"],(function(e){return e.theme.borderDark}),(function(e){return e.theme.borderDark}))}),(function(e){return e.isDisabled&&cn()})),Gi=Qr.legend.withConfig({displayName:"Fieldset__StyledLegend",componentId:"sc-1r5whqt-1"})(["display:flex;position:absolute;top:0;left:8px;transform:translateY(calc(-50% - 2px));padding:0 8px;font-size:1rem;background:",";"],(function(e){var t=e.theme;return"flat"===e.variant?t.canvas:t.material})),Ji=e.forwardRef((function(t,r){var n=t.label,i=t.disabled,o=t.variant,a=t.children,s=_n(t,Yi);return e.createElement(Qi,xn({"aria-disabled":i,isDisabled:i,variant:o,ref:r},s),n&&e.createElement(Gi,{variant:o},n),a)}));Ji.defaultProps={disabled:!1,variant:"default",label:null,children:null},Ji.propTypes={label:En.node,children:En.node,disabled:En.bool,variant:En.oneOf(["default","flat"])};var Xi=yn(wn((function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}))),$i=["size","style"];function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?eo(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ro=Qr.span.withConfig({displayName:"Hourglass__StyledContainer",componentId:"sc-1qr6ka6-0"})(["display:inline-block;"]),no=Qr.span.withConfig({displayName:"Hourglass__StyledHourglass",componentId:"sc-1qr6ka6-1"})(["display:block;background:",";background-size:cover;width:100%;height:100%;"],"url('data:image/gif;base64,R0lGODlhPAA8APQAADc3N6+vr4+Pj05OTvn5+V1dXZ+fn29vby8vLw8PD/X19d/f37S0tJSUlLq6und3d39/f9XV1c/Pz+bm5qamphkZGWZmZsbGxr+/v+rq6tra2u/v7yIiIv///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAAfACH+I1Jlc2l6ZWQgb24gaHR0cHM6Ly9lemdpZi5jb20vcmVzaXplACwAAAAAPAA8AAAF/+AnjmRpnmiqrmzrvnAsz3Rt37jr7Xzv/8BebhQsGn1D0XFZTH6YUGQySvU4fYKAdsvtdi1Cp3In6ZjP6HTawBMTyWbFYk6v18/snXvsKXciUApmeVZ7PH6ATIIdhHtPcB0TDQ1gQBCTBINthpBnAUEaa5tuh2mfQKFojZx9aRMSEhA7FLAbonqsfmoUOxFqmriknWm8Hr6/q8IeCAAAx2cTERG2aBTNHMGOj8a/v8WF2m/c3cSj4SQ8C92n4Ocm6evm7ui9CosdBPbs8yo8E2YO5PE74Q+gwIElCnYImA3hux3/Fh50yCciw3YUt2GQtiiDtGQO4f3al1GkGpIDeXlg0KDhXpoMLBtMVPaMnJlv/HjUtIkzHA8HEya4tLkhqICGV4bZVAMyaaul3ZpOUQoVz8wbpaoyvWojq1ZVXGt4/QoM49SnZMs6GktW6hC2X93mgKtVbtceWbzo9VIJKdYqUJwCPiJ4cJOzhg+/TWwko+PHkCNLdhgCACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBYADAAQAA0AAAVFYCeOZPmVaKqimeO+MPxFXv3d+F17Cm3nuJ1ic7lAdroapUjABZCfnQb4ef6k1OHGULtsNk3qjVKLiIFkj/mMIygU4VwIACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBkAIwAKAAcAAAUp4CdehrGI6Ed5XpSKa4teguBoGlVPAXuJBpam5/l9gh7NZrFQiDJMRQgAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsFgAPABAAIQAABVBgJ45kaZ5oakZB67bZ+M10bd94ru987//AoHBILNYYAsGlR/F4IkwnlLeZTBQ9UlaWwzweERHjuzAKFZkMYYZWm4mOw0ETfdanO8Vms7aFAAAh+QQFBAAfACwAAAAAAQABAAAFA+AXAgAh+QQFBAAfACwZABIACgAeAAAFUGAnjmRpnij5rerqtu4Hx3Rt33iu758iZrUZa1TDCASLGsXjiSiZzmFnM5n4TNJSdmREElfL5lO8cgwGACbgrAkwPat3+x1naggKRS+f/4QAACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCACH5BAUEAB8ALBYAIwAQAA0AAAVE4CeOXdmNaGqeabu27SUIC5xSnifZKK7zl8djkCsIaylGziNaakaEzcbH/Cwl0k9kuWxyPYptzrZULA7otFpNIK1eoxAAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkEBQQAHwAsAAAAAAEAAQAABQPgFwIAIfkECQQAHwAsDgAEACAANAAABTHgJ45kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyKRyyWw6n9CodEqtWq/Y7CoEACH5BAUEAB8ALAAAAAA8ADwAAAX/4CeOZGmeaKqubFt6biy3Xj3fuFjveU/vPJ/wBAQOj6RiEClUGpk9IMAJxQEdmQK1Grt2OhutkvurOb7f8JaM8qLT4iKbuDu/0erxfOS+4+NPex9mfn55coIfCAuFhoBLbDUAjI1vh4FkOxSVd5eQXB4GnI5rXAAbo6R6VTUFqKmWjzasNaKwsaVIHhAEt3cLTjBQA6++XwoHuUM1vMYdyMorwoN8wkC2t9A8s102204Wxana3DNAAQO1FjUCEDXhvuTT5nUdEwOiGxa8BBDwXxKaLTiAKoMFRvJy9CmmoFcHAgrQSEiwKwICDwU0pAMQIdmnboR8TfwWrJyMPrAiz1DkNs2aSRbe6hnr99LEvDJ9IB5DQ8Dhm36glNh5COGBAmQNHrbz+WXBFChOTqFx5+GBxwYCmL1ZcPHmMiWuvkTgECzBBUvrvH4tErbDWCcYDB2IBPbV2yJJ72SZ46TtXSB5v2RIp1ZXXbFkgWxCc68mk752E3tY/OZeIsiIaxi9o+BBokGH3SZ+4FPbZ8yiPQxNeDl0hNUeHWcKjYb1Zx20bd/GzRaV7t28gRSYELvw7pIfgVcLplwF8+bOo0Ffjmm6zerWrxvPzoe79w8hAAAh+QQJBAAfACwBAAEAOgA6AAAFRuAnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/D4MgQAIfkEBQQAHwAsAAAAADwAPAAABf/gJ45kaZ5oqq5s675wLM90bd94ru987//AoHBILBqPyJxnyTQym6nn0ilVSa9XGHY7jXKx2m/WK36Gy1CUVCBpu9+OtNqDeNslgip5Gej4/4ATcidLAICHHQF6c0x9iH+CXV6Gj36KZnsejgsREQSACp0Yg0ydEZWWi4RPjgdLG48apEuogJeDJVKtr7GzHrV/t5KrjX6uHhQMF4cKCwujTxHOwKmYjHzGTw+VEVIK1MGqJrrZTNuP3U/f4IniuazlSwMUFMugE/j47NW4JOQdx9bsoybMgxV4ALEIGAis4MFiCZkUaLPgUAYHGDF+Yucw0y5z3Lzt63hNUzwP5xCRpWOyDhxJYtgiStBQEVCGAAEM6MLp0p0/hMdgIZI17AOTntZgmowo9BBRgz9/EfQ54h8BBS39bKDXwBc9CrVejkNYKRLUSWGpivhXtt9PSpXEvmNiwYDdu3jzFB3LAa9fAxbUGkXjtmSZh4TPJM4kRgbhvVEL9xhTEongJJgza97MubPnz6BDix5NurTp0yJCAAAh+QQJBAAfACwEAA4ANAAgAAAFMeAnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9jsKgQAIfkEBQQAHwAsAAAAADwAPAAABf/gJ45kaZ5oqq5s6bVwLHu0bN8uXeM8rP+9YOoHFBpHRN1xmSwue02A82lrFjaOKbVl3XQ6WeWWm7x+v+HdeFj2ntHaNbL9jUAI5/RLTurWOR53eXFbfh0RgB4PCm9hfCKGiDSLb18Bjx+RiR4HjG8TA3trmkSdZxuhalSkRA2VBqpPrD+ulR0Go3SHmz8CeG8bFqJMupJNHr5nCsKxQccTg4oUNA0YCYG/HQQQYsSlnmCUFLUXgm8EAsPeP6Zf2baV2+rEmTrt8PDyzS7O9uD4b5YV2VGjGw52/wB+CaY
2jlQcpNBAQioHwy4QMCxe4i3BKGIQN3K7AArBATz8anUDADcgQDMGCbQkknDKAh4ABNxQ0gpnoQ8eDVAUO0ADAzUNMhbZMQiG4R4mOo0gb8eTCQgeEqJVM7juCDWvWJnI4ev2aZIwHl2PfZIBIZBXKtAsLgC1kJu0GuWXNaoB7d67ZlWP75jVLw4JXwW35PNSJFPFUrmIb402smFNCW44N5kJ5+dTkx+vuAfus+VHF0X4xzeHsObXq1ZY7ZN76mt0C0rRf1zuWW/du175PHAu+YjhxFcCPm6CsHHnv5kig6w4BACH5BAkEAB8ALAEAAQA6ADoAAAVG4CeOZGmeaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8PgyBAAh+QQFBAAfACwAAAAAPAA8AAAF/+AnjmRpnmiqrmzrvnAsz3Rt37jr7Xzv/8BebhQsGn1D0XFZTH6YUGQySvU4fYKAdsvtdi1Cp3In6ZjP6HTawBMTyWbFYk6v18/snXvsKXciUApmeVZ7PH6ATIIdhHtPcB0TDQ1gQBCTBINthpBnAUEaa5tuh2mfQKFojZx9aRMSEhA7FLAbonqsfmoUOxFqmriknWm8Hr6/q8IeCAAAx2cTERG2aBTNHMGOj8a/v8WF2m/c3cSj4SQ8C92n4Ocm6evm7ui9CosdBPbs8yo8E2YO5PE74Q+gwIElCnYImA3hux3/Fh50yCciw3YUt2GQtiiDtGQO4f3al1GkGpIDeXlg0KDhXpoMLBtMVPaMnJlv/HjUtIkzHA8HEya4tLkhqICGV4bZVAMyaaul3ZpOUQoVz8wbpaoyvWojq1ZVXGt4/QoM49SnZMs6GktW6hC2X93mgKtVbtceWbzo9VIJKdYqUJwCPiJ4cJOzhg+/TWwko+PHkCNLdhgCACH5BAUEAB8ALAAAAAABAAEAAAUD4BcCADs=')"),io=e.forwardRef((function(t,r){var n=t.size,i=t.style,o=_n(t,$i);return e.createElement(ro,xn({style:to(to({},i),{},{width:n,height:n}),ref:r},o),e.createElement(no,null))}));io.defaultProps={size:"30px",style:{}},io.propTypes={size:En.oneOfType([En.string,En.number]),style:En.object};var oo=["children"],ao=Qr.ul.withConfig({displayName:"List__StyledList",componentId:"sc-cmdc79-0"})(["box-sizing:border-box;width:",";padding:4px;"," "," "," list-style:none;position:relative;"],(function(e){return e.fullWidth?"100%":"auto"}),hn({windowBorders:!0}),ln(),(function(e){return e.inline&&"\n display: inline-flex;\n align-items: center;\n "})),so=e.forwardRef((function(t,r){var n=t.children,i=_n(t,oo);return e.createElement(ao,xn({role:"menu",ref:r},i),n)}));so.defaultProps={fullWidth:!1,shadow:!0,inline:!1,children:null},so.propTypes={fullWidth:En.bool,inline:En.bool,shadow:En.bool,children:En.node};var uo=["isLoading","shadow"],co=Qr.div.withConfig({displayName:"LoadingIndicator__Wrapper",componentId:"sc-hm1plb-0"})(["display:inline-block;height:15px;width:100%;"]),lo=Qr(ni).withConfig({displayName:"LoadingIndicator__ProgressCutout",componentId:"sc-hm1plb-1"})(["width:100%;height:100%;width:100%;position:relative;padding:0;overflow:hidden;"]),fo=qr(["0%{transform:translateX(0);}20%{animation-timing-function:cubic-bezier(0.5,0,0.701732,0.495819);transform:translateX(0);}59.15%{animation-timing-function:cubic-bezier(0.302435,0.381352,0.55,0.956352);transform:translateX(83.67142%);}100%{transform:translateX(200.611057%);}"]),ho=qr(["0%{transform:scaleX(0.08);}36.65%{animation-timing-function:cubic-bezier(0.334731,0.12482,0.785844,1);transform:scaleX(0.08);}69.15%{animation-timing-function:cubic-bezier(0.06,0.11,0.6,1);transform:scaleX(0.661479);}100%{transform:scaleX(0.08);}"]),po=qr(["0%{animation-timing-function:cubic-bezier(0.15,0,0.515058,0.409685);transform:translateX(0);}25%{animation-timing-function:cubic-bezier(0.31033,0.284058,0.8,0.733712);transform:translateX(37.651913%);}48.35%{animation-timing-function:cubic-bezier(0.4,0.627035,0.6,0.902026);transform:translateX(84.386165%);}100%{transform:translateX(160.277782%);}"]),vo=qr(["0%{animation-timing-function:cubic-bezier(0.205028,0.057051,0.57661,0.453971);transform:scaleX(0.08);}19.15%{animation-timing-function:cubic-bezier(0.152313,0.196432,0.648374,1.004315);transform:scaleX(0.457104);}44.15%{animation-timing-function:cubic-bezier(0.257759,-0.003163,0.211762,1.38179);transform:scaleX(0.72796);}100%{transform:scaleX(0.08);}"]),bo=Ir(["height:100%;width:100%;position:absolute;transform-origin:top left;transform:scaleX(0);"]),mo=Ir(["height:100%;width:100%;display:inline-block;background:",";position:absolute;"],(function(e){return e.theme.progress})),go=Qr.div.withConfig({displayName:"LoadingIndicator__IndeterminateWrapper",componentId:"sc-hm1plb-2"})(["position:relative;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);overflow:hidden;"]),yo=Qr.div.withConfig({displayName:"LoadingIndicator__IndeterminatePrimary",componentId:"sc-hm1plb-3"})([""," left:-145.166611%;animation:"," 2s infinite linear;"],bo,fo),wo=Qr.span.withConfig({displayName:"LoadingIndicator__IndeterminatePrimaryInner",componentId:"sc-hm1plb-4"})([""," animation:"," 2s infinite linear;"],mo,ho),ko=Qr.div.withConfig({displayName:"LoadingIndicator__IndeterminateSecondary",componentId:"sc-hm1plb-5"})([""," left:-54.888891%;animation:"," 2s infinite linear;"],bo,po),xo=Qr.span.withConfig({displayName:"LoadingIndicator__IndeterminateSecondaryInner",componentId:"sc-hm1plb-6"})([""," animation:"," 2s infinite linear;"],mo,vo),So=(0,e.forwardRef)((function(t,r){var n=t.isLoading,i=t.shadow,o=_n(t,uo);return e.createElement(co,xn({ref:r,role:"progressbar"},o),e.createElement(lo,{shadow:i},n&&e.createElement(go,{"data-testid":"loading-wrapper"},e.createElement(yo,null,e.createElement(wo,null)),e.createElement(ko,null,e.createElement(xo,null)))))}));So.defaultProps={shadow:!1,isLoading:!0},So.propTypes={shadow:En.bool,isLoading:En.bool};var _o=["className","disabled","fullWidth","multiline","onChange","shadow","style","type","variant"],Mo=Ir(["display:flex;align-items:center;width:",";min-height:",";"],(function(e){return e.fullWidth?"100%":"auto"}),qn.md),Ao=Qr(ni).attrs({"data-testid":"variant-default"}).withConfig({displayName:"TextField__Wrapper",componentId:"sc-1gsped5-0"})([""," background:",";"],Mo,(function(e){var t=e.theme;return e.isDisabled?t.material:t.canvas})),Eo=Qr.div.attrs({"data-testid":"variant-flat"}).withConfig({displayName:"TextField__FlatWrapper",componentId:"sc-1gsped5-1"})([""," "," position:relative;"],dn(),Mo),Io=Ir(["display:block;box-sizing:border-box;width:100%;height:100%;outline:none;border:none;background:none;font-size:1rem;min-height:27px;font-family:inherit;color:",";",""],(function(e){return e.theme.canvasText}),(function(e){var t=e.disabled;return"flat"!==e.variant&&t&&cn()})),Co=Qr.input.withConfig({displayName:"TextField__StyledTextInput",componentId:"sc-1gsped5-2"})([""," padding:0 8px;"],Io),To=Qr.textarea.withConfig({displayName:"TextField__StyledTextArea",componentId:"sc-1gsped5-3"})([""," padding:8px;resize:none;",""],Io,(function(e){var t=e.variant;return gn(t)})),No=e.forwardRef((function(t,r){var n=t.className,i=t.disabled,o=t.fullWidth,a=t.multiline,s=t.onChange,u=t.shadow,c=t.style,l=t.type,f=t.variant,d=_n(t,_o),h="flat"===f?Eo:Ao,p=a?To:Co;return e.createElement(h,{className:n,fullWidth:o,isDisabled:i,shadow:u,style:c},e.createElement(p,xn({disabled:i,onChange:i?void 0:s,readOnly:i,ref:r,type:l,variant:f},d)))}));function Oo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Oo(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}No.defaultProps={className:"",disabled:!1,fullWidth:null,multiline:!1,onChange:function(){},shadow:!0,style:{},type:"text",variant:"default"},No.propTypes={className:En.string,disabled:En.bool,fullWidth:En.bool,multiline:En.bool,onChange:En.func,shadow:En.bool,style:En.object,type:En.string,variant:En.oneOf(["default","flat"])};var Lo=Qr.div.withConfig({displayName:"NumberField__StyledNumberFieldWrapper",componentId:"sc-17o0qtz-0"})(["display:inline-flex;align-items:center;"]),Ro=Qr(Yn).withConfig({displayName:"NumberField__StyledButton",componentId:"sc-17o0qtz-1"})(["width:30px;padding:0;flex-shrink:0;",""],(function(e){return e.isFlat?Ir(["height:calc(50% - 1px);"]):Ir(["height:50%;&:before{border-left-color:",";border-top-color:",";box-shadow:inset 1px 1px 0px 1px ",",inset -1px -1px 0 1px ",";}"],(function(e){return e.theme.borderLight}),(function(e){return e.theme.borderLight}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDark}))})),Bo=Qr.div.withConfig({displayName:"NumberField__StyledButtonWrapper",componentId:"sc-17o0qtz-2"})(["display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:space-between;",""],(function(e){return Ir(e.isFlat?["height:calc("," - 4px);"]:["height:",";margin-left:2px;"],qn.md)})),zo=Qr.span.withConfig({displayName:"NumberField__StyledButtonIcon",componentId:"sc-17o0qtz-3"})(["width:0px;height:0px;display:inline-block;"," ",":disabled &{filter:drop-shadow( 1px 1px 0px "," );","}"],(function(e){return e.invert?Ir(["border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid ",";"],(function(e){return e.theme.materialText})):Ir(["border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid ",";"],(function(e){return e.theme.materialText}))}),Ro,(function(e){return e.theme.materialTextDisabledShadow}),(function(e){return e.invert?Ir(["border-bottom-color:",";"],(function(e){return e.theme.materialTextDisabled})):Ir(["border-top-color:",";"],(function(e){return e.theme.materialTextDisabled}))})),Do=e.forwardRef((function(t,r){var n=t.value,i=t.defaultValue,o=t.disabled,a=t.className,s=t.variant,u=t.step,c=t.width,l=t.min,f=t.max,d=t.onChange,h=t.style,p=ti({value:n,defaultValue:i}),v=ei(p,2),b=v[0],m=v[1],g=function(e){var t=parseFloat(b),r=Fn(+parseFloat(t+e).toFixed(2),l,f).toString();m(r),d&&d(r)};return e.createElement(Lo,{className:a,style:Po(Po({},h),{},{width:c||"auto"})},e.createElement(No,{value:b,variant:s,onChange:function(e){var t=e.target.value;m(t)},disabled:o,type:"number",ref:r,fullWidth:!0,onBlur:function(){d&&d(b)}}),e.createElement(Bo,{isFlat:"flat"===s},e.createElement(Ro,{"data-testid":"increment",isFlat:"flat"===s,variant:s,disabled:o,onClick:function(){return g(u)}},e.createElement(zo,{invert:!0})),e.createElement(Ro,{"data-testid":"decrement",isFlat:"flat"===s,variant:s,disabled:o,onClick:function(){return g(-u)}},e.createElement(zo,null))))}));Do.defaultProps={className:"",defaultValue:void 0,disabled:!1,max:null,min:null,step:1,onChange:null,style:{},value:void 0,variant:"default",width:null},Do.propTypes={className:En.string,defaultValue:En.number,disabled:En.bool,max:En.number,min:En.number,step:En.number,onChange:En.func,style:En.object,value:En.number,variant:En.oneOf(["default","flat"]),width:En.oneOfType([En.string,En.number])};var Zo=["children","variant"],jo=Qr.div.withConfig({displayName:"Panel__StyledPanel",componentId:"sc-1eq3hd9-0"})(["position:relative;font-size:1rem;"," ",""],(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"){case"well":return Ir(["",""],pn(!0));case"outside":return Ir(["",""],hn({windowBorders:!0}));default:return Ir(["",""],hn())}}(e.variant)}),ln()),Uo=e.forwardRef((function(t,r){var n=t.children,i=t.variant,o=_n(t,Zo);return e.createElement(jo,xn({ref:r,variant:i},o),n)}));Uo.defaultProps={children:null,shadow:!1,variant:"outside"},Uo.propTypes={variant:En.oneOf(["outside","inside","well"]),children:En.node,shadow:En.bool};var Fo=["value","variant","shadow","hideValue"],Wo=Qr.div.withConfig({displayName:"Progress__Wrapper",componentId:"sc-gxr1og-0"})(["display:inline-block;height:",";width:100%;"],qn.md),qo=Qr(ni).withConfig({displayName:"Progress__ProgressCutout",componentId:"sc-gxr1og-1"})(["width:100%;height:100%;width:100%;position:relative;text-align:center;padding:0;overflow:hidden;&:before{z-index:1;}"]),Ho=Ir(["width:calc(100% - 4px);height:calc(100% - 4px);display:flex;align-items:center;justify-content:space-around;"]),Ko=Qr.div.withConfig({displayName:"Progress__WhiteBar",componentId:"sc-gxr1og-2"})(["position:relative;top:4px;"," background:",";color:#000;margin-left:2px;margin-top:-2px;color:",";"],Ho,(function(e){return e.theme.canvas}),(function(e){return e.theme.materialText})),Vo=Qr.div.withConfig({displayName:"Progress__BlueBar",componentId:"sc-gxr1og-3"})(["position:absolute;top:2px;left:2px;"," color:",";background:",";clip-path:polygon( 0 0,","% 0,","% 100%,0 100% );transition:0.4s linear clip-path;"],Ho,(function(e){return e.theme.materialTextInvert}),(function(e){return e.theme.progress}),(function(e){return e.value}),(function(e){return e.value})),Yo=Qr.div.withConfig({displayName:"Progress__TilesWrapper",componentId:"sc-gxr1og-4"})(["width:calc(100% - 6px);height:calc(100% - 8px);position:absolute;
2left:3px;top:4px;box-sizing:border-box;display:inline-flex;"]),Qo=Qr.span.withConfig({displayName:"Progress__Tile",componentId:"sc-gxr1og-5"})(["display:inline-block;width:","px;box-sizing:border-box;height:100%;background:",";border-color:",";border-width:0px 1px;border-style:solid;"],17,(function(e){return e.theme.progress}),(function(e){return e.theme.material})),Go=(0,e.forwardRef)((function(t,r){var n=t.value,i=t.variant,o=t.shadow,a=t.hideValue,s=_n(t,Fo),u=a?null:"".concat(n,"%"),c={};void 0!==n&&(c["aria-valuenow"]=Math.round(n));var l=(0,e.useRef)(),f=(0,e.useRef)(),d=(0,e.useState)(0),h=ei(d,2),p=h[0],v=h[1];function b(){if(l.current){var e=l.current.getBoundingClientRect().width,t=Math.round(n/100*e/17);v(t)}}return(0,e.useEffect)((function(){f.current=b})),(0,e.useEffect)((function(){function e(){f.current()}return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,e.useEffect)((function(){f.current()}),[n]),e.createElement(Wo,xn({ref:r,role:"progressbar"},c,s),e.createElement(qo,{shadow:o},"default"===i?e.createElement(e.Fragment,null,e.createElement(Ko,{"data-testid":"defaultProgress1"},u),e.createElement(Vo,{"data-testid":"defaultProgress2",value:n},u)):e.createElement(Yo,{ref:l,"data-testid":"tileProgress"},Array(p).fill(null).map((function(t,r){return e.createElement(Qo,{key:r})})))))}));Go.defaultProps={value:0,shadow:!0,variant:"default",hideValue:!1},Go.propTypes={value:En.number,shadow:En.bool,variant:En.oneOf(["default","tile"]),hideValue:En.bool};var Jo=["onChange","label","disabled","variant","checked","className","style"],Xo=Ir(["width:","px;height:","px;border-radius:50%;display:flex;align-items:center;justify-content:space-around;margin-right:0.5rem;"],ci,ci),$o=Qr(ni).withConfig({displayName:"Radio__StyledCheckbox",componentId:"sc-1ai9pgh-0"})([""," background:",";&:before{content:'';position:absolute;left:0px;top:0px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:50%;box-shadow:none;}"],Xo,(function(e){var t=e.theme;return e.isDisabled?t.material:t.canvas})),ea=Qr.div.withConfig({displayName:"Radio__StyledFlatCheckbox",componentId:"sc-1ai9pgh-1"})([""," "," outline:none;background:",";&:before{content:'';display:inline-block;position:absolute;top:0;left:0;width:calc(100% - 4px);height:calc(100% - 4px);border:2px solid ",";border-radius:50%;}"],dn(),Xo,(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas}),(function(e){return e.theme.flatDark})),ta=Qr.div.withConfig({displayName:"Radio__StyledMenuCheckbox",componentId:"sc-1ai9pgh-2"})([""," position:relative;display:inline-block;box-sizing:border-box;border:none;outline:none;background:none;"],Xo),ra=Qr.span.attrs((function(){return{"data-testid":"checkmarkIcon"}})).withConfig({displayName:"Radio__Icon",componentId:"sc-1ai9pgh-3"})(["position:absolute;content:'';display:inline-block;top:50%;left:50%;width:6px;height:6px;transform:translate(-50%,-50%);border-radius:50%;"," ",":hover &{",";}"],(function(e){var t=e.variant,r=e.theme,n=e.isDisabled;return"menu"===t?Ir(["background:",";filter:drop-shadow( 1px 1px 0px "," );"],n?r.materialTextDisabled:r.materialText,n?r.materialTextDisabledShadow:"transparent"):Ir(["background:",";"],n?r.checkmarkDisabled:r.checkmark)}),si,(function(e){var t=e.theme,r=e.isDisabled,n=e.variant;return!r&&"menu"===n&&Ir(["background:",";"],t.materialTextInvert)})),na={flat:ea,default:$o,menu:ta},ia=e.forwardRef((function(t,r){var n=t.onChange,i=t.label,o=t.disabled,a=t.variant,s=t.checked,u=t.className,c=t.style,l=_n(t,Jo),f=na[a];return e.createElement(fi,{isDisabled:o,className:u,style:c},e.createElement(f,{checked:s,isDisabled:o,role:"presentation"},s&&e.createElement(ra,{isDisabled:o,variant:a})),e.createElement(li,xn({disabled:o,onChange:o?void 0:n,readOnly:o,type:"radio",checked:s,ref:r},l)),i&&e.createElement(di,null,i))}));ia.defaultProps={onChange:void 0,name:null,value:void 0,checked:void 0,label:"",disabled:!1,variant:"default",className:"",style:{}},ia.propTypes={onChange:En.func,name:En.string,value:En.oneOfType([En.string,En.number,En.bool]),label:En.oneOfType([En.string,En.number]),checked:En.bool,disabled:En.bool,variant:En.oneOf(["default","flat","menu"]),style:En.any,className:En.string};var oa=wn((function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),aa=yn(oa);function sa(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function ua(t,r){return e.useMemo((function(){return null==t&&null==r?null:function(e){sa(t,e),sa(r,e)}}),[t,r])}var ca=Ir(["box-sizing:border-box;padding-left:4px;overflow:hidden;white-space:nowrap;user-select:none;line-height:100%;"]),la=Ir(["background:",";color:",";
2"],(function(e){return e.theme.hoverBackground}),(function(e){return e.theme.canvasTextInvert})),fa=Qr.div.withConfig({displayName:"Selectstyles__StyledInner",componentId:"sc-13pr954-0"})(["display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;&:focus{outline:none;}"]),da=Qr.div.withConfig({displayName:"Selectstyles__StyledSelectContent",componentId:"sc-13pr954-1"})([""," padding-right:8px;align-items:center;display:flex;height:calc(100% - 4px);width:calc(100% - 4px);margin:0 2px;border:2px solid transparent;",":focus &{"," border:2px dotted ",";}"],ca,fa,la,(function(e){return e.theme.focusSecondary})),ha=Ir(["height:",";display:inline-block;color:",";font-size:1rem;cursor:",";"],qn.md,(function(e){var t=e.theme;return e.isDisabled?cn():t.canvasText}),(function(e){return e.isDisabled?"default":"pointer"})),pa=Qr(ni).withConfig({displayName:"Selectstyles__StyledSelectWrapper",componentId:"sc-13pr954-2"})([""," background:",";&:focus{outline:0;}"],ha,(function(e){var t=e.theme;return e.isDisabled?t.material:t.canvas})),va=Qr.div.withConfig({displayName:"Selectstyles__StyledFlatSelectWrapper",componentId:"sc-13pr954-3"})([""," "," background:",";"],dn(),ha,(function(e){var t=e.theme;return e.isDisabled?t.flatLight:t.canvas})),ba=Qr.select.withConfig({displayName:"Selectstyles__StyledNativeSelect",componentId:"sc-13pr954-4"})(["-moz-appearance:none;-webkit-appearance:none;display:block;width:100%;height:100%;color:inherit;font-size:1rem;border:0;margin:0;background:none;-webkit-tap-highlight-color:transparent;border-radius:0;padding-right:30px;"," cursor:pointer;&:disabled{",";background:",";cursor:default;}"],ca,cn(),(function(e){return e.theme.material})),ma=Qr(Vn).withConfig({displayName:"Selectstyles__StyledDropdownButton",componentId:"sc-13pr954-5"})(["width:30px;padding:0;flex-shrink:0;"," "," pointer-events:",""],(function(e){return"flat"===e.variant?Ir(["height:100%;margin-right:0;"]):Ir(["height:100%;&:before{border-left-color:",";border-top-color:",";box-shadow:inset 1px 1px 0px 1px ",",inset -1px -1px 0 1px ",";}"],(function(e){return e.theme.borderLight}),(function(e){return e.theme.borderLight}),(function(e){return e.theme.borderLightest}),(function(e){return e.theme.borderDark}))}),(function(e){var t=e.native,r=e.variant;return t&&("flat"===r?"\n position: absolute;\n right: 0;\n height: 100%;\n ":"\n position: absolute;\n top: 2px;\n right: 2px;\n height: calc(100% - 4px);\n ")}),(function(e){var t=e.isDisabled,r=e.native;return t||r?"none":"auto"})),ga=Qr.span.withConfig({displayName:"Selectstyles__StyledDropdownIcon",componentId:"sc-13pr954-6"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;display:inline-block;border-top:6px solid ",";"," ",":active &{margin-top:2px;}"],(function(e){var t=e.theme;return e.isDisabled?t.materialTextDisabled:t.materialText}),(function(e){var t=e.theme;return e.isDisabled&&"\n filter: drop-shadow(1px 1px 0px ".concat(t.materialTextDisabledShadow,");\n border-top-color: ").concat(t.materialTextDisabled,";\n ")}),ma),ya=Qr.ul.withConfig({displayName:"Selectstyles__StyledDropdownMenu",componentId:"sc-13pr954-7"})(["box-sizing:border-box;font-size:1rem;position:absolute;transform:translateY(100%);left:0;background:",";padding:2px;border-top:none;cursor:default;z-index:1;cursor:pointer;box-shadow:",";"," ",""],(function(e){return e.theme.canvas}),sn,(function(e){return"flat"===e.variant?Ir(["bottom:2px;width:100%;border:2px solid ",";"],(function(e){return e.theme.flatDark})):Ir(["bottom:-2px;width:calc(100% - 2px);border:2px solid ",";"],(function(e){return e.theme.borderDarkest}))}),(function(e){var t=e.variant;return gn(t)})),wa=Qr.li.withConfig({displayName:"Selectstyles__StyledDropdownMenuItem",componentId:"sc-13pr954-8"})(["box-sizing:border-box;width:100%;padding-left:8px;height:calc("," - 4px);line-height:calc("," - 4px);font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:",";&:hover,&:focus{"," outline:0;}user-select:none;"],qn.md,qn.md,(function(e){return e.theme.canvasText}),la),ka=Qr.option.withConfig({displayName:"Selectstyles__StyledNativeOption",componentId:"sc-13pr954-9"})([""]),xa=["aria-label","className","defaultValue","disabled","formatDisplay","inputRef","labelId","menuMaxHeight","name","native","onBlur","onChange","onClose","onFocus","onOpen","open","options","readOnly","SelectDisplayProps","shadow","style","value","variant","width"];function Sa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Sa(Object(r),!0).forEach((function(t){Xi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ma="ArrowDown",Aa="ArrowUp",Ea="Enter",Ia=" ",Ca="Tab";var Ta=function(e,t){return e||(t&&t[0]?t[0].value:void 0)},Na=e.forwardRef((function(t,r){var n=t["aria-label"],i=t.className,o=t.defaultValue,a=t.disabled,s=t.formatDisplay,u=t.inputRef,c=t.labelId,l=t.menuMaxHeight,f=t.name,d=t.native,h=t.onBlur,p=t.onChange,v=t.onClose,b=t.onFocus,m=t.onOpen,g=t.open,y=t.options,w=t.readOnly,k=t.SelectDisplayProps,x=t.shadow,S=t.style,_=t.value,M=t.variant,A=t.width,E=_n(t,xa),I=e.useRef(),C=e.useRef(),T=e.useRef(),N=e.useRef(),O=y.filter(Boolean),P=ti({value:_,defaultValue:Ta(o,O)}),L=ei(P,2),R=L[0],B=L[1],z=e.useRef(null!=g).current,D=e.useState(!1),Z=ei(D,2),j=Z[0],U=Z[1],F=null!==C&&(z?g:j),W=ua(r,u);e.useImperativeHandle(W,(function(){return{focus:function(){C.current.focus()},node:T.current,value:R}}),[C,R]);var q=function(e){return O.find((function(t){return e?t.value===e||t.value===parseInt(e,10):t.value===R}))},H=function(e,t){e?m&&m(t):v&&v(t),z||U(e)},K=function(e){H(!0,e)},V=function(e){H(!1,e)},Y=function(e){H(!F,e)};e.useEffect((function(){var e=function(e){j&&(I.current.contains(e.target)||(e.preventDefault(),V(e),C.current.focus()))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}));var Q=function(e){return function(t){var r=e.value;B(r),p&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:r,name:f}}),p(t,e)),V(t),C.current.focus()}},G=function(e){var t=e.key,r=Ma,n=Aa,i=Ea,o=Ia;if(t===Ca)F&&(e.preventDefault(),Y(e),C.current.focus());else if(e.preventDefault(),t===o)Y(e),C.current.focus();else if([r,n,i].includes(t)){F||K(e);var a=function(){var e=-1;return N&&N.current&&(e=Array.from(N.current.childNodes).findIndex((function(e){return e===document.activeElement}))),e}();if([n,r].includes(t)){var s=Fn(a+(t===n?-1:1),0,O.length-1);if(N.current)N.current.childNodes[s].focus()}else if(t===i&&a>-1&&N.current&&(B(O[a].value),V(e),C.current.focus(),p)){var u=O[a];e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:u.value,name:f}}),p(e,u)}}},J=function(e){e.key===Ia&&e.preventDefault()},X=!(a||w),$=function(e,t){return e?t?t(e):e.label:""}(q(),s),ee=X?"1":void 0,te=function(e){return"flat"===e?va:pa}(M),re=d?ka:wa,ne=O.map((function(t,r){var n={"data-value":d?void 0:t.value,key:"".concat(R,"-").concat(r),onClick:d?void 0:Q(t),onKeyUp:d?void 0:J,role:d?null:"option",tabIndex:d?void 0:"0"},i=function(e,t){return"object"===aa(t)&&null!==t?e===t:String(e)===String(t)}(t.value,R);return d?n.value=t.value:n["aria-selected"]=i?"true":void 0,e.createElement(re,xn({ref:function(e){e&&t.value===R&&e.focus()}},n),t.label)})),ie={className:i,style:_a(_a({},S),{},{width:A})},oe=e.createElement(ma,{as:"div","data-testid":"select-button",isDisabled:a,native:d,tabIndex:-1,variant:M},e.createElement(ga,{"data-testid":"select-icon",isDisabled:a}));if(d)return e.createElement(te,ie,e.createElement(fa,null,e.createElement(ba,xn({},E,{onBlur:h,onFocus:b,onClose:v,disabled:a,onChange:X?function(e,t){e.stopPropagation();var r=t||q(e.target.value);p&&p(e,r),B(r.value),C.current&&C.current.focus()}:void 0,ref:C,value:R}),ne),oe));var ae=k.id||(f?"react95-component-select-".concat(f):void 0);return e.createElement(te,xn({},ie,{isDisabled:a,ref:I,shadow:x,style:_a(_a({},S),{},{width:A})}),e.createElement("input",xn({name:f,ref:T,type:"hidden",value:R},E)),e.createElement(fa,xn({"aria-disabled":a,"aria-expanded":F?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[c,ae].filter(Boolean).join(" ")||void 0,id:ae,onBlur:function(e){!F&&h&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:f}}),h(e))},onFocus:b,onKeyDown:G,onMouseDown:X?function(e){0===e.button&&(e.preventDefault(),C.current.focus(),F?V(e):K(e))}:null,ref:C,role:"button",tabIndex:ee},k),e.createElement(da,null,$),oe),X&&F&&e.createElement(ya,{"aria-labelledby":c,onKeyDown:G,ref:N,role:"listbox",style:l&&{overflow:"auto",maxHeight:l},tabIndex:0,variant:M},ne))}));Na.defaultProps={"aria-label":void 0,className:void 0,defaultValue:void 0,disabled:void 0,formatDisplay:void 0,inputRef:void 0,labelId:void 0,menuMaxHeight:void 0,name:void 0,native:!1,onBlur:void 0,onChange:void 0,onClose:void 0,onFocus:void 0,onOpen:void 0,open:void 0,options:[],readOnly:void 0,SelectDisplayProps:{},shadow:!0,style:{},value:void 0,variant:"default",width:"auto"},Na.propTypes={"aria-label":En.string,className:En.string,defaultValue:En.any,disabled:En.bool,formatDisplay:En.func,inputRef:En.any,menuMaxHeight:En.oneOfType([En.string,En.number]),name:En.string,native:En.bool,onBlur:En.func,onChange:En.func,onClose:En.func,onFocus:En.func,onOpen:En.func,labelId:En.string,open:En.bool,options:En.arrayOf(En.shape({label:En.string,value:En.any})),readOnly:En.bool,SelectDisplayProps:En.object,shadow:En.bool,style:En.object,value:En.any,variant:En.oneOf(["default","flat"]),width:En.oneOfType([En.string,En.number])};var Oa=wn((function(e){e.exports=function(e){if(Array.isArray(e))return Jn(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Oa);var Pa=wn((function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(Pa);var La=wn((function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));yn(La);var Ra=yn(wn((function(e){e.exports=function(e){return Oa(e)||Pa(e)||Xn(e)||La()},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ba=!0,za=!1,Da=null,Za={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ja(e){e.metaKey||e.altKey||e.ctrlKey||(Ba=!0)}function Ua(){Ba=!1}function Fa(){"hidden"===this.visibilityState&&za&&(Ba=!0)}function Wa(e){var t=e.target;try{return t.matches(":focus-visible")}catch(r){}return Ba||function(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!Za[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function qa(){za=!0,window.clearTimeout(Da),Da=window.setTimeout((function(){za=!1}),100)}function Ha(){return{isFocusVisible:Wa,onBlurVisible:qa,ref:e.useCallback((function(e){var t,r=pe.findDOMNode(e);null!=r&&((t=r.ownerDocument).addEventListener("keydown",ja,!0),t.addEventListener("mousedown",Ua,!0),t.addEventListener("pointerdown",Ua,!0),t.addEventListener("touchstart",Ua,!0),t.addEventListener("visibilitychange",Fa,!0))}),[])}}var Ka=["value","defaultValue","step","min","max","size","marks","onChange","onChangeCommitted","onMouseDown","name","orientation","variant","disabled"];function Va(e,t){if(void 0!==t.current&&e.changedTouches){for(var r=0;r<e.changedTouches.length;r+=1){var n=e.changedTouches[r];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}var Ya="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;function Qa(t){var r=e.useRef(t);return Ya((function(){r.current=t})),e.useCallback((function(){return r.current.apply(void 0,arguments)}),[])}function Ga(e){return e&&e.ownerDocument||document}function Ja(e){e.current.contains(document.activeElement)||e.current.querySelector("#swag").focus()}var Xa=Qr.div.withConfig({displayName:"Slider__Wrapper",componentId:"sc-zo4bng-0"})(["display:inline-block;position:relative;touch-action:none;&:before{content:'';display:inline-block;position:absolute;top:-2px;left:-15px;width:calc(100% + 30px);height:",";","}"," pointer-events:",";"],(function(e){return e.hasMarks?"41px":"39px"}),(function(e){var t=e.isFocused,r=e.theme;return t&&"\n outline: 2px dotted ".concat(r.materialText,";\n ")}),(function(e){var t=e.vertical,r=e.size;return t?Ir(["height:",";margin-right:1.5rem;&:before{left:-6px;top:-15px;height:calc(100% + 30px);width:",";}"],r,(function(e){return e.hasMarks?"41px":"39px"})):Ir(["width:",";margin-bottom:1.5rem;&:before{top:-2px;left:-15px;width:calc(100% + 30px);height:",";}"],r,(function(e){return e.hasMarks?"41px":"39px"}))}),(function(e){return e.isDisabled?"none":"auto"})),$a=function(){return Ir(["position:absolute;",""],(function(e){return Ir(e.vertical?["bottom:0;left:50%;transform:translateX(-50%);height:100%;width:8px;"]:["left:0;top:50%;transform:translateY(-50%);height:8px;width:100%;"])}))},es=Qr(ni).withConfig({displayName:"Slider__StyledGroove",componentId:"sc-zo4bng-1"}
2)(["",""],$a()),ts=Qr(ni).withConfig({displayName:"Slider__StyledFlatGroove",componentId:"sc-zo4bng-2"})([""," border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";&:before{border-left-color:",";border-top-color:",";border-right-color:",";border-bottom-color:",";}"],$a(),(function(e){return e.theme.flatLight}),(function(e){return e.theme.flatLight}),(function(e){return e.theme.canvas}),(function(e){return e.theme.canvas}),(function(e){return e.theme.flatDark}),(function(e){return e.theme.flatDark}),(function(e){return e.theme.flatLight}),(function(e){return e.theme.flatLight})),rs=Qr.span.withConfig({displayName:"Slider__Thumb",componentId:"sc-zo4bng-3"})(["position:relative;"," "," ",""],(function(e){return Ir(e.vertical?["width:32px;height:18px;right:2px;transform:translateY(-50%);"]:["height:32px;width:18px;top:2px;transform:translateX(-50%);"])}),(function(e){return"flat"===e.variant?Ir([""," outline:2px solid ",";background:",";"],dn(),(function(e){return e.theme.flatDark}),(function(e){return e.theme.flatLight})):Ir([""," ",""],ln(),hn())}),(function(e){var t=e.isDisabled,r=e.theme;return t&&fn({mainColor:r.material,secondaryColor:r.borderLightest})})),ns=Qr.span.withConfig({displayName:"Slider__Tick",componentId:"sc-zo4bng-4"})(["display:inline-block;position:absolute;"," color:",";",""],(function(e){return e.vertical?Ir(["right:","px;bottom:0px;transform:translateY(1px);width:","px;border-bottom:2px solid ",";"],-8,6,(function(e){return e.theme.materialText})):Ir(["bottom:","px;height:","px;transform:translateX(-1px);border-left:1px solid ",";border-right:1px solid ",";"],-6,6,(function(e){return e.theme.materialText}),(function(e){return e.theme.materialText}))}),(function(e){return e.theme.materialText}),(function(e){var t=e.isDisabled,r=e.theme;return t&&Ir([""," box-shadow:1px 1px 0px ",";border-color:",";"],cn(),r.materialTextDisabledShadow,r.materialTextDisabled)})),is=Qr.div.withConfig({displayName:"Slider__Mark",componentId:"sc-zo4bng-5"})(["position:absolute;bottom:0;left:0;line-height:1;font-size:0.875rem;",""],(function(e){return e.vertical?Ir(["transform:translate(","px,","px);"],8,7):Ir(["transform:translate(-0.5ch,calc(100% + 2px));"])})),os=e.forwardRef((function(t,r){var n=t.value,i=t.defaultValue,o=t.step,a=t.min,s=t.max,u=t.size,c=t.marks,l=t.onChange,f=t.onChangeCommitted,d=t.onMouseDown,h=t.name,p=t.orientation,v=t.variant,b=t.disabled,m=_n(t,Ka),g="flat"===v?ts:es,y="vertical"===p,w=ti({value:n,defaultValue:i}),k=ei(w,2),x=k[0],S=k[1],_=Ha(),M=_.isFocusVisible,A=_.onBlurVisible,E=_.ref,I=e.useState(!1),C=ei(I,2),T=C[0],N=C[1],O=(0,e.useRef)(),P=ua(E,O),L=ua(r,P),R=Qa((function(e){M(e)&&N(!0)})),B=Qa((function(){!1!==T&&(N(!1),A())})),z=e.useRef(),D=!0===c&&null!==o?Ra(Array(Math.round((s-a)/o)+1)).map((function(e,t){return{value:a+o*t}})):c||[],Z=Qa((function(e){var t,r=(s-a)/10,n=D.map((function(e){return e.value})),i=n.indexOf(x);switch(e.key){case"Home":t=a;break;case"End":t=s;break;case"PageUp":o&&(t=x+r);break;case"PageDown":o&&(t=x-r);break;case"ArrowRight":case"ArrowUp":t=o?x+o:n[i+1]||n[n.length-1];break;case"ArrowLeft":case"ArrowDown":t=o?x-o:n[i-1]||n[0];break;default:return}e.preventDefault(),o&&(t=Wn(t,o,a)),t=Fn(t,a,s),S(t),N(!0),l&&l(e,t),f&&f(e,t)})),j=e.useCallback((function(e){var t,r,n=O.current.getBoundingClientRect();if(t=function(e,t,r){return(r-t)*e+t}(y?(n.bottom-e.y)/n.height:(e.x-n.left)/n.width,a,s),o)t=Wn(t,o,a);else{var i=D.map((function(e){return e.value})),u=(r=t,i.reduce((function(e,t,n){var i=Math.abs(r-t);return null===e||i<e.distance||i===e.distance?{distance:i,index:n}:e}),null).index);t=i[u]}return t=Fn(t,a,s)}),[s,a,o]),U=Qa((function(e){var t=Va(e,z);if(t){var r=j(t);Ja(O),S(r),N(!0),l&&l(e,r)}})),F=Qa((function(e){var t=Va(e,z);if(t){var r=j(t);f&&f(e,r),z.current=void 0;var n=Ga(O.current);n.removeEventListener("mousemove",U),n.removeEventListener("mouseup",F),n.removeEventListener("touchmove",U),n.removeEventListener("touchend",F)}})),W=Qa((function(e){d&&d(e),e.preventDefault();var t=Va(e,z),r=j(t);Ja(O),S(r),N(!0),l&&l(e,r);var n=Ga(O.current);n.addEventListener("mousemove",U),n.addEventListener("mouseup",F)})),q=Qa((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(z.current=t.identifier);var r=Va(e,z),n=j(r);Ja(O),S(n),N(!0),l&&l(e,n);var i=Ga(O.current);i.addEventListener("touchmove",U),i.addEventListener("touchend",F)}));e.useEffect((function(){var e=O.current;e.addEventListener("touchstart",q);var t=Ga(e);return function(){e.removeEventListener("touchstart",q),t.removeEventListener("mousemove",U),t.removeEventListener("mouseup",F),t.removeEventListener("touchmove",U),t.removeEventListener("touchend",F)}}),[F,U,q]);var H="number"===typeof u?"".concat(u,"px"):u;return e.createElement(Xa,xn({isDisabled:b,vertical:y,size:H,onMouseDown:W,ref:L,isFocused:T,hasMarks:D.length},m),e.createElement("input",{type:"hidden",value:x||0,name:h,disabled:b}),D&&D.map((function(t){return e.createElement(ns,{isDisabled:b,vertical:y,style:Xi({},y?"bottom":"left","".concat((t.value-a)/(s-a)*100,"%")),key:t.value/(s-a)*100,"data-testid":"tick"},t.label&&e.createElement(is,{vertical:y,"aria-hidden":!0,"data-testid":"mark"},t.label))})),e.createElement(g,{vertical:y,variant:v}),e.createElement(rs,{role:"slider",id:"swag",style:Xi({},y?"bottom":"left","".concat((y?-100:0)+100*(x-a)/(s-a),"%")),tabIndex:b?null:0,vertical:y,variant:v,isDisabled:b,"aria-disabled":b.toString(),"aria-orientation":p,"aria-valuemax":s,"aria-valuemin":a,"aria-valuenow":x,onKeyDown:Z,onFocus:R,onBlur:B}))}));os.defaultProps={defaultValue:void 0,value:void 0,step:1,min:0,max:100,size:"100%",onChange:null,onChangeCommitted:null,onMouseDown:null,name:null,marks:!1,variant:"default",orientation:"horizontal",disabled:!1},os.propTypes={value:En.number,defaultValue:En.number,step:En.number,min:En.number,max:En.number,size:En.oneOfType([En.string,En.number]),onChange:En.func,onChangeCommitted:En.func,onMouseDown:En.func,name:En.string,marks:En.oneOfType([En.bool,En.array]),variant:En.oneOf(["default","flat"]),orientation:En.oneOf(["horizontal","vertical"]),disabled:En.bool};var as=["value","onClick","selected","children"],ss=Qr.button.withConfig({displayName:"Tab__StyledTab",componentId:"sc-1tpsjkt-0"})([""," "," position:relative;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;height:",";line-height:",";padding:0 8px;border-bottom:none;border-top-left-radius:5px;border-top-right-radius:5px;margin:0 0 -2px 0;cursor:default;color:",";user-select:none;font-family:inherit;&:focus:after,&:active:after{content:'';position:absolute;
2left:0;top:0;width:100%;height:100%;"," outline-offset:-6px;}"," &:before{content:'';position:absolute;width:calc(100% - 4px);height:6px;background:",";bottom:-4px;left:2px;}"],ln(),hn(),qn.md,qn.md,(function(e){return e.theme.materialText}),vn,(function(e){return e.selected&&"\n z-index: 1;\n height: calc(".concat(qn.md," + 4px);\n top: -4px;\n margin-bottom: -6px;\n padding: 0 16px;\n margin-left: -8px;\n &:not(:last-child) {\n margin-right: -8px;\n }\n ")}),(function(e){return e.theme.material})),us=e.forwardRef((function(t,r){var n=t.value,i=t.onClick,o=t.selected,a=t.children,s=_n(t,as);return e.createElement(ss,xn({selected:o,"aria-selected":o,onClick:function(e){return i(e,n)},role:"tab",ref:r},s),a)}));us.defaultProps={onClick:function(){},selected:!1,children:null},us.propTypes={value:En.any,onClick:En.func,selected:En.bool,children:En.node};var cs=["children"],ls=Qr.div.withConfig({displayName:"TabBody__StyledTabBody",componentId:"sc-9qfo90-0"})([""," "," position:relative;display:block;height:100%;padding:16px;font-size:1rem;"],ln(),hn()),fs=e.forwardRef((function(t,r){var n=t.children,i=_n(t,cs);return e.createElement(ls,xn({ref:r},i),n)}));fs.defaultProps={children:null},fs.propTypes={children:En.node};var ds=["children"],hs=Qr.table.withConfig({displayName:"Table__StyledTable",componentId:"sc-1ah2eks-0"})(["display:table;width:100%;border-collapse:collapse;border-spacing:0;font-size:1rem;"]),ps=Qr(ni).withConfig({displayName:"Table__Wrapper",componentId:"sc-1ah2eks-1"})(["&:before{box-shadow:none;}"]),vs=e.forwardRef((function(t,r){var n=t.children,i=_n(t,ds);return e.createElement(ps,null,e.createElement(hs,xn({ref:r},i),n))}));vs.defaultProps={children:null},vs.propTypes={children:En.node};var bs=["children"],ms=Qr.tbody.withConfig({displayName:"TableBody__StyledTableBody",componentId:"sc-1trmb9j-0"})(["background:",";display:table-row-group;box-shadow:",";overflow-y:auto;"],(function(e){return e.theme.canvas}),un),gs=e.forwardRef((function(t,r){var n=t.children,i=_n(t,bs);return e.createElement(ms,xn({ref:r},i),n)}));gs.defaultProps={children:null},gs.propTypes={children:En.node};var ys=["children"],ws=Qr.td.withConfig({displayName:"TableDataCell__StyledTd",componentId:"sc-1iek7dq-0"})(["padding:0 8px;"]),ks=e.forwardRef((function(t,r){var n=t.children,i=_n(t,ys);return e.createElement(ws,xn({ref:r},i),n)}));ks.defaultProps={children:null},ks.propTypes={children:En.node};var xs=["children"],Ss=Qr.thead.withConfig({displayName:"TableHead__StyledTableHead",componentId:"sc-17979bs-0"})(["display:table-header-group;"]),_s=e.forwardRef((function(t,r){var n=t.children,i=_n(t,xs);return e.createElement(Ss,xn({ref:r},i),n)}));_s.defaultProps={children:null},_s.propTypes={children:En.node};var Ms=["disabled","children","onClick","sort"],As=Qr.th.withConfig({displayName:"TableHeadCell__StyledHeadCell",componentId:"sc-fppejv-0"})(["position:relative;padding:0 8px;display:table-cell;vertical-align:inherit;background:",";cursor:default;user-select:none;&:before{box-sizing:border-box;content:'';position:absolute;left:0;top:0;width:100%;height:100%;"," border-left:none;border-top:none;}"," color:",";"," &:hover{color:",";","}"],(function(e){return e.theme.material}),hn(),(function(e){return!e.isDisabled&&Ir(["&:active{&:before{"," border-left:none;border-top:none;padding-top:2px;}& > div{position:relative;top:2px;}}"],hn({invert:!0,windowBorders:!0}))}),(function(e){return e.theme.materialText}),(function(e){return e.isDisabled&&cn()}),(function(e){return e.theme.materialText}),(function(e){return e.isDisabled&&cn()})),Es=e.forwardRef((function(t,r){var n=t.disabled,i=t.children,o=t.onClick,a=t.sort,s=_n(t,Ms),u=null;return a&&(u="asc"===a?"ascending":"descending"),e.createElement(As,xn({ref:r,isDisabled:n,"aria-disabled":n,onClick:n?void 0:o,"aria-sort":u},s),e.createElement("div",null,i))}));Es.defaultProps={children:null,disabled:!1,onClick:null,onTouchStart:Un,sort:null},Es.propTypes={children:En.node,disabled:En.bool,onClick:En.func,onTouchStart:En.func,sort:En.oneOf(["asc","desc",null])};var Is=["children"],Cs=Qr.tr.withConfig({displayName:"TableRow__StyledTr",componentId:"sc-s2y43y-0"})(["color:inherit;display:table-row;height:calc("," - 2px);line-height:calc("," - 2px);vertical-align:middle;outline:none;color:",";&:hover{background:",";color:",";}"],qn.md,qn.md,(function(e){return e.theme.canvasText}
2),(function(e){return e.theme.hoverBackground}),(function(e){return e.theme.canvasTextInvert})),Ts=e.forwardRef((function(t,r){var n=t.children,i=_n(t,Is);return e.createElement(Cs,xn({ref:r},i),n)}));Ts.defaultProps={children:null},Ts.propTypes={children:En.node};var Ns=["value","onChange","children","rows"],Os=Qr.div.withConfig({displayName:"Tabs__StyledTabs",componentId:"sc-1guzhym-0"})(["position:relative;",""],(function(e){var t=e.isMultiRow,r=e.theme;return t&&"\n button {\n flex-grow: 1;\n }\n button:last-child:before {\n border-right: 2px solid ".concat(r.borderDark,";\n }\n ")})),Ps=Qr.div.attrs((function(){return{"data-testid":"tab-row"}})).withConfig({displayName:"Tabs__Row",componentId:"sc-1guzhym-1"})(["position:relative;display:flex;flex-wrap:no-wrap;text-align:left;left:8px;width:calc(100% - 8px);&:not(:first-child):before{content:'';position:absolute;right:0;left:0;height:100%;border-right:2px solid ",";border-left:2px solid ",";}"],(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.borderLightest}));var Ls=e.forwardRef((function(t,r){var n=t.value,i=t.onChange,o=t.children,a=t.rows,s=_n(t,Ns),u=function(e,t){for(var r=[],n=t;n>0;n-=1)r.push(e.splice(0,Math.ceil(e.length/n)));return r}(e.Children.map(o,(function(t){if(!e.isValidElement(t))return null;var r={selected:t.props.value===n,onClick:i};return e.cloneElement(t,r)})),a).map((function(e,t){return{key:t,tabs:e}})),c=u.findIndex((function(e){return e.tabs.some((function(e){return e.props.selected}))}));return u.push(u.splice(c,1)[0]),e.createElement(Os,xn({},s,{isMultiRow:a>1,role:"tablist",ref:r}),u.map((function(t){return e.createElement(Ps,{key:t.key},t.tabs)})))}));Ls.defaultProps={onChange:function(){},children:null,rows:1},Ls.propTypes={value:En.any,onChange:En.func,children:En.node,rows:En.number};var Rs=["children","noPadding"],Bs=Qr.div.withConfig({displayName:"Toolbar__StyledToolbar",componentId:"sc-5ihpan-0"})(["position:relative;display:flex;align-items:center;padding:",";"],(function(e){return e.noPadding?"0":"4px"})),zs=e.forwardRef((function(t,r){var n=t.children,i=t.noPadding,o=_n(t,Rs);return e.createElement(Bs,xn({noPadding:i,ref:r},o),n)}));zs.defaultProps={children:null,noPadding:!1},zs.propTypes={children:En.node,noPadding:En.bool};var Ds=["children","className","disableFocusListener","disableMouseListener","enterDelay","leaveDelay","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","onOpen","style","text"],Zs={top:"top: -4px;\n left: 50%;\n transform: translate(-50%, -100%);",bottom:"bottom: -4px;\n left: 50%;\n transform: translate(-50%, 100%);",left:"left: -4px;\n top: 50%;\n transform: translate(-100%, -50%);",right:"right: -4px;\n top: 50%;\n transform: translate(100%, -50%);"},js=Qr.span.withConfig({displayName:"Tooltip__Tip",componentId:"sc-ycmn7j-0"})(["position:absolute;z-index:1;display:",";padding:4px;border:2px solid ",";background:",";box-shadow:",";text-align:center;font-size:1rem;",""],(function(e){return e.show?"block":"none"}),(function(e){return e.theme.borderDarkest}),(function(e){return e.theme.tooltip}),sn,(function(e){return Zs[e.position]})),Us=Qr.div.withConfig({displayName:"Tooltip__Wrapper",componentId:"sc-ycmn7j-1"})(["position:relative;display:inline-block;white-space:nowrap;"]),Fs=e.forwardRef((function(t,r){var n=t.children,i=t.className,o=t.disableFocusListener,a=t.disableMouseListener,s=t.enterDelay,u=t.leaveDelay,c=t.onBlur,l=t.onClose,f=t.onFocus,d=t.onMouseEnter,h=t.onMouseLeave,p=t.onOpen,v=t.style,b=t.text,m=_n(t,Ds),g=(0,e.useState)(!1),y=ei(g,2),w=y[0],k=y[1],x=(0,e.useState)(null),S=ei(x,2),_=S[0],M=S[1],A=(0,e.useState)(null),E=ei(A,2),I=E[0],C=E[1],T=!o,N=!a,O=function(e){e.persist(),"focus"===e.type&&f?f(e):"mouseenter"===e.type&&d&&d(e),function(e){clearTimeout(_),clearTimeout(I);var t=setTimeout((function(){k(!0),p&&p(e)}),s);M(t)}(e)},P=function(e){e.persist(),"blur"===e.type&&c?c(e):"mouseleave"===e.type&&h&&h(e),function(e){clearTimeout(_),clearTimeout(I);var t=setTimeout((function(){k(!1),l&&l(e)}
2),u);C(t)}(e)},L=T?P:void 0,R=T?O:void 0,B=N?O:void 0,z=N?P:void 0,D=T?"0":void 0;return e.createElement(Us,{"data-testid":"tooltip-wrapper",onBlur:L,onFocus:R,onMouseEnter:B,onMouseLeave:z,tabIndex:D},e.createElement(js,xn({className:i,"data-testid":"tooltip",show:w,style:v,ref:r},m),b),n)}));Fs.defaultProps={className:"",disableFocusListener:!1,disableMouseListener:!1,enterDelay:1e3,leaveDelay:0,onBlur:void 0,onClose:void 0,onFocus:void 0,onMouseEnter:void 0,onMouseLeave:void 0,onOpen:void 0,style:{},position:"top"},Fs.propTypes={children:En.node.isRequired,className:En.string,disableFocusListener:En.bool,disableMouseListener:En.bool,enterDelay:En.number,leaveDelay:En.number,onBlur:En.func,onClose:En.func,onFocus:En.func,onMouseEnter:En.func,onMouseLeave:En.func,onOpen:En.func,style:En.shape({}),text:En.string.isRequired,position:En.oneOf(["top","bottom","left","right"])};var Ws=Qr(di).withConfig({displayName:"Tree__Text",componentId:"sc-nk0spr-0"})(["white-space:nowrap;"]),qs=Ir([":focus{outline:none;}&:not([disabled]){cursor:pointer;:focus{","{background:",";color:",";outline:2px dotted ",";}}}"],Ws,(function(e){return e.theme.hoverBackground}),(function(e){return e.theme.materialTextInvert}),(function(e){return e.theme.focusSecondary})),Hs=Qr.ul.withConfig({displayName:"Tree__TreeView",componentId:"sc-nk0spr-1"})(["position:relative;isolation:isolate;"," ul{padding-left:19.5px;}li{position:relative;&:before{content:'';position:absolute;top:17.5px;left:5.5px;width:22px;border-top:2px dashed ",";font-size:12px;}}"],(function(e){return e.isRootLevel&&Ir(["&:before{content:'';position:absolute;top:20px;bottom:0;left:5.5px;width:1px;border-left:2px dashed ",";}"],(function(e){return e.theme.borderDark}))}),(function(e){return e.theme.borderDark})),Ks=Qr.li.withConfig({displayName:"Tree__TreeItem",componentId:"sc-nk0spr-2"})(["position:relative;padding-left:",";"," & > details > ul{&:after{content:'';position:absolute;top:-18px;bottom:0;left:25px;border-left:2px dashed ",";}}"],(function(e){return e.hasItems?"0":"13px"}),(function(e){return e.isRootLevel?Ir(["&:last-child{&:after{content:'';position:absolute;top:19.5px;left:1px;bottom:0;width:10px;background:",";}}"],(function(e){return e.theme.material})):Ir(["&:last-child{&:after{content:'';position:absolute;z-index:1;top:19.5px;bottom:0;left:1.5px;width:10px;background:",";}}"],(function(e){return e.theme.material}))}),(function(e){return e.theme.borderDark})),Vs=Qr.details.withConfig({displayName:"Tree__Details",componentId:"sc-nk0spr-3"})(["position:relative;z-index:2;&[open] > summary:before{content:'-';}"]),Ys=Qr.summary.withConfig({displayName:"Tree__Summary",componentId:"sc-nk0spr-4"})(["position:relative;z-index:1;display:inline-flex;align-items:center;color:",";user-select:none;padding-left:18px;",";&::-webkit-details-marker{display:none;}&:before{content:'+';position:absolute;left:0;display:block;width:8px;height:9px;border:2px solid #808080;padding-left:1px;background-color:#fff;line-height:8px;text-align:center;}"],(function(e){return e.theme.materialText}),qs),Qs=Qr(fi).withConfig({displayName:"Tree__TitleWithIcon",componentId:"sc-nk0spr-5"})(["position:relative;z-index:1;background:none;border:0;font-family:inherit;padding-top:8px;padding-bottom:8px;margin:0;",";"],qs),Gs=Qr.span.withConfig({displayName:"Tree__Icon",componentId:"sc-nk0spr-6"})(["display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:6px;"]);function Js(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(Ra(e),[t])}var Xs=e.forwardRef((function(t,r){var n=t.disabled,i=t.className,o=t.style,a=t.tree,s=t.defaultSelected,u=t.defaultExpanded,c=t.selected,l=t.expanded,f=t.onNodeSelect,d=t.onNodeToggle,h=ti({value:l,defaultValue:u}),p=ei(h,2),v=p[0],b=p[1],m=ti({value:c,defaultValue:s}),g=ei(m,2),y=g[0],w=g[1];function k(e,t){w(t),f&&f(e,t)}function x(e,t){e.preventDefault(),k(e,t)}function S(e,t){e.preventDefault(),k(e,t),function(e,t){if(d){var r=Js(v,t);d(e,r)}b((function(e){return Js(e,t)}))}(e,t)}return function t(a){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=0===s;return e.createElement(Hs,{className:u?i:void 0,style:u?o:void 0,ref:u?r:void 0,role:u?"tree":"group",isRootLevel:u},a.map((function(r){var i=r.items&&r.items.length>0,o=v.includes(r.id),a=n||r.disabled,c=a?void 0:function(e){return S(e,r.id)},l=a?void 0:function(e){return x(e,r.id)},f=y===r.id,d=e.createElement(Gs,{"aria-hidden":!0},r.icon);return e.createElement(Ks,{key:r.label,isRootLevel:u,role:"treeitem","aria-expanded":o,"aria-selected":f,hasItems:i},i?e.createElement(Vs,{open:o},e.createElement(Ys,{onClick:c,disabled:a},e.createElement(Qs,{isDisabled:a},d,e.createElement(Ws,null,r.label))),o&&t(r.items,s+1)):e.createElement(Qs,{as:"button",isDisabled:a,onClick:l},d,e.createElement(Ws,null,r.label)))})))}(a)}));Xs.defaultProps={disabled:!1,style:{},className:"",tree:[],defaultSelected:void 0,defaultExpanded:[],selected:void 0,expanded:void 0,onNodeToggle:void 0,onNodeSelect:void 0};var $s=En.oneOfType([En.string,En.number]),eu={id:$s.isRequired,label:En.string.isRequired,icon:En.object.isRequired,disabled:En.bool};eu.items=En.arrayOf(En.shape(eu)),Xs.propTypes={style:En.object,className:En.string,tree:En.arrayOf(En.shape(eu)),defaultSelected:$s,defaultExpanded:En.arrayOf($s),selected:$s,expanded:En.arrayOf($s),onNodeSelect:En.func,onNodeToggle:En.func,disabled:En.bool};var tu=["resizable","children"],ru=Qr.div.withConfig({displayName:"Window__StyledWindow",componentId:"sc-1yyigjt-0"})(["position:relative;padding:4px;font-size:1rem;"," ",""],hn({windowBorders:!0}),ln()),nu=Qr.span.withConfig({displayName:"Window__ResizeHandle",componentId:"sc-1yyigjt-1"})(["",""],(function(e){var t=e.theme;return Ir(["display:inline-block;position:absolute;bottom:10px;right:10px;width:25px;height:25px;background-image:linear-gradient( 135deg,"," 16.67%,"," 16.67%,"," 33.33%,"," 33.33%,"," 50%,"," 50%,"," 66.67%,"," 66.67%,"," 83.33%,"," 83.33%,"," 100% );background-size:8.49px 8.49px;clip-path:polygon(100% 0px,0px 100%,100% 100%);cursor:nwse-resize;"],t.borderLightest,t.material,t.material,t.borderDark,t.borderDark,t.borderLightest,t.borderLightest,t.material,t.material,t.borderDark,t.borderDark)})),iu=e.forwardRef((function(t,r){var n=t.resizable,i=t.children,o=_n(t,tu);return e.createElement(ru,xn({ref:r},o),i,n&&e.createElement(nu,{"data-testid":"resizeHandle"}))}));iu.defaultProps={resizable:!1,shadow:!0,children:null}
2,iu.propTypes={shadow:En.bool,resizable:En.bool,children:En.node};var ou=["children"],au=Qr.div.withConfig({displayName:"WindowContent__StyledWindowContent",componentId:"sc-1vmqxt7-0"})(["padding:16px;"]),su=e.forwardRef((function(t,r){var n=t.children,i=_n(t,ou);return e.createElement(au,xn({ref:r},i),n)}));su.defaultProps={children:null},su.propTypes={children:En.node};var uu,cu,lu,fu,du,hu,pu=["active","children"],vu=Qr.div.withConfig({displayName:"WindowHeader__SlyledWindowHeader",componentId:"sc-11dbkf7-0"})(["height:33px;line-height:33px;padding-left:0.25rem;padding-right:3px;font-weight:bold;border:2px solid ",";&[data-active='false']{background:",";color:",";}&[data-active='true']{background:",";color:",";}","{padding-left:0;padding-right:0;height:27px;width:31px;}"],(function(e){return e.theme.material}),(function(e){return e.theme.headerNotActiveBackground}),(function(e){return e.theme.headerNotActiveText}),(function(e){return e.theme.headerBackground}),(function(e){return e.theme.headerText}),Vn),bu=e.forwardRef((function(t,r){var n=t.active,i=t.children,o=_n(t,pu);return e.createElement(vu,xn({"data-active":n.toString(),ref:r},o),i)}));bu.defaultProps={children:null,active:!0},bu.propTypes={children:En.node,active:En.bool};var mu,gu,yu,wu,ku=Qr.div(uu||(uu=dt(["\n padding: 20px;\n background-image: url(",");\n"])),ht),xu=Qr(iu)(cu||(cu=dt(["\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n flex-wrap: wrap-reverse;\n padding: 20px;\n gap: 20px;\n"]))),Su=Qr(Ji)(lu||(lu=dt(["\n flex-grow: 1;\n min-width: 250px;\n"]))),_u=Qr(iu)(fu||(fu=dt(["\n position: fixed;\n top: 30%;\n left: 0;\n right: 0;\n width: 200px;\n margin: auto;\n z-index: 2;\n"]))),Mu=Qr(bu)(du||(du=dt(["\n display: flex;\n justify-content: space-between;\n align-items: center;
2\n"]))),Au=Qr.div(hu||(hu=dt(["\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n color: blue;\n }\n"]))),Eu=function(){var t=on(),r=t.bucketedOwners,n=t.tracks,i=t.investorMap,o=W().publicKey,a=(0,e.useState)([]),s=(0,H.Z)(a,2),u=s[0],c=s[1],l=function(e){switch(e-(null===n||void 0===n?void 0:n.length)){case 0:return"Board of Directors";case-1:return"Executive Board";case-2:return"Advisory Board";default:return"Retail Investors (Tier ".concat(e,")")}};return(0,Gr.jsxs)(Gr.Fragment,{children:[(0,Gr.jsxs)(ku,{children:[(0,Gr.jsx)("h1",{children:"Investors"}),(0,Gr.jsx)(xu,{children:Object.keys(r).map((function(e){var t=r[e];return null!==t&&void 0!==t&&t.length?(0,Gr.jsx)(Su,{label:l(e),children:(0,Gr.jsx)("ul",{children:t.map((function(e){var t,r=(null===o||void 0===o?void 0:o.toString())===e,a=null===i||void 0===i||null===(t=i.filter((function(t){return t.collectors.includes(e)})))||void 0===t?void 0:t.map((function(e){return e.trackId})),s=n.filter((function(e){return a.includes(e.publicKey)})).map((function(e){return e.metadata.properties.title}));return(0,Gr.jsxs)(Au,{onClick:function(){return c(s)},children:[r&&"\u2b50","".concat(e.slice(0,4),"...").concat(e.slice(e.length-4,e.length)),r&&"\u2b50"]},e)}))})},e):null}))})]}),u&&u.length>0&&(0,Gr.jsxs)(_u,{children:[(0,Gr.jsxs)(Mu,{children:[(0,Gr.jsx)("span",{children:"Shares owned"}),(0,Gr.jsx)(Yn,{onClick:function(){return c([])},children:"X"})]}),(0,Gr.jsx)(su,{children:u.map((function(e){return(0,Gr.jsx)("div",{children:e},e)}))})]})]})},Iu=e.createContext(null);function Cu(t){var r,n,i,o,a=t.children,s=(0,e.useState)(),u=(0,H.Z)(s,2),c=u[0],l=u[1],f=(0,e.useState)(!1),d=(0,H.Z)(f,2),h=d[0],p=d[1],v=(0,e.useState)(0),b=(0,H.Z)(v,2),m=b[0],g=b[1],y=(0,e.useState)(0),w=(0,H.Z)(y,2),k=w[0],x=w[1],S=(0,e.useRef)(null),_=(0,e.useRef)();(0,e.useEffect)((function(){c&&(g(0),S.current.play(),p(!0),M())}),[c]);var M=function(){clearInterval(_.current),_.current=setInterval((function(){g(S.current.currentTime),x(S.current.duration)}),30)},A={currentTrack:c,setCurrentTrack:l,playing:h};return(0,Gr.jsxs)(Iu.Provider,{value:A,children:[a,c&&(0,Gr.jsx)("audio",{src:null===c||void 0===c||null===(r=c.metadata)||void 0===r?void 0:r.animation_url,ref:S}),(0,Gr.jsxs)(Du,{children:[(0,Gr.jsx)(Uu,{src:null===c||void 0===c||null===(n=c.metadata)||void 0===n?void 0:n.image}),(0,Gr.jsx)(Zu,{children:null===c||void 0===c||null===(i=c.metadata)||void 0===i||null===(o=i.properties)||void 0===o?void 0:o.title}),(0,Gr.jsx)(Yn,{onClick:function(){var e=m-10;S.current.currentTime=e,g(e)},children:"\u23ea"}),(0,Gr.jsx)(Yn,{onClick:function(){var e,t;h?null===S||void 0===S||null===(e=S.current)||void 0===e||e.pause():null===S||void 0===S||null===(t=S.current)||void 0===t||t.play();p(!h)},children:h?"\u23f8\ufe0f":"\u25b6\ufe0f"}),(0,Gr.jsx)(Yn,{onClick:function(){var e=m+10;S.current.currentTime=e,g(e)},children:"\u23e9"}),(0,Gr.jsx)(ju,{value:k?(m/k*100).toFixed(1):0})]})]})}var Tu,Nu,Ou,Pu,Lu,Ru,Bu,zu,Du=Qr(Pn)(mu||(mu=dt(["\n display: flex;\n flex-direction: row;\n gap: 20px;\n align-items: center;\n position: fixed;\n padding: 10px;\n bottom: 0;\n top: unset;\n"]))),Zu=Qr.h3(gu||(gu=dt(["\n margin: 0;\n width: 300px;\n"]))),ju=Qr(Go)(yu||(yu=dt(["\n max-width: 50%;\n"]))),Uu=Qr.img(wu||(wu=dt(["\n width: 30px;\n height: 30px;\n"])));var Fu,Wu,qu=Qr.div(Tu||(Tu=dt(["\n padding: 20px;\n background-image: url(",");\n"])),ht),Hu=Qr.div(Nu||(Nu=dt(["\n display: flex;\n gap: 30px;\n flex-wrap: wrap;\n align-items: flex-end;\n"]))),Ku=Qr.img(Ou||(Ou=dt(["\n max-width: 100%;\n"]))),Vu=Qr(iu)(Pu||(Pu=dt(["\n width: 300px;\n"]))),Yu=Qr.h2(Lu||(Lu=dt(["\n margin-top: 0px;\n margin-bottom: 0.5em;\n"]))),Qu=Qr.p(Ru||(Ru=dt(["\n margin-top: 0px;\n"]))),Gu=Qr.div(Bu||(Bu=dt(["\n display: flex;\n justify-content: space-between;\n"]))),Ju=Qr.a(zu||(zu=dt(["\n text-decoration: none;\n"]))),Xu=function(){var t,r=on(),n=r.tracks,i=r.investorMap,o=function(){var t=e.useContext(Iu);if(void 0===t)throw new Error("usePlayer must be used within a PlayerProvider");return t}(),a=o.currentTrack,s=o.setCurrentTrack,u=o.playing,c=W().publicKey,l=null!==(t=null===c||void 0===c?void 0:c.toString())&&void 0!==t?t:"";return(0,Gr.jsxs)(qu,{children:[(0,Gr.jsx)("h1",{children:"Releases"}),(0,Gr.jsx)(Hu,{children:null===n||void 0===n?void 0:n.map((function(e){var t,r=null===i||void 0===i||null===(t=i.find((function(t){return t.trackId===e.publicKey})))||void 0===t?void 0:t.collectors,n=null===r||void 0===r?void 0:r.includes(l);return(0,Gr.jsxs)(Vu,{children:[(0,Gr.jsx)(bu,{children:(0,Gr.jsx)("span",{children:e.metadata.symbol})}),(0,Gr.jsx)(Ku,{src:e.metadata.image}),(0,Gr.jsxs)(su,{children:[(0,Gr.jsx)(Yu,{children:e.metadata.properties.title}),(0,Gr.jsx)(Qu,{children:e.metadata.description}),(0,Gr.jsxs)(Gu,{children:[(0,Gr.jsx)(Yn,{onClick:function(){return(null===a||void 0===a?void 0:a.metadata.symbol)===e.metadata.symbol&&u?s(null):s(e)},children:(null===a||void 0===a?void 0:a.metadata.symbol)===e.metadata.symbol&&u?"\u23f8\ufe0f":"\u25b6\ufe0f"}),(0,Gr.jsx)(Fs,{text:n?"You Own This!":"Buy on Nina",enterDelay:500,leaveDelay:100,children:(0,Gr.jsx)(Ju,{href:e.metadata.external_url,target:"_blank",children:(0,Gr.jsx)(Yn,{children:n?"\u2705":"\ud83d\uded2"})})})]})]})]},e.metadata.symbol)}))})]})};var $u=Qr.div(Fu||(Fu=dt(["\n padding: 20px;\n background-image: url(",");\n padding-bottom: 100px;\n"])),ht),ec=Qr(ui)(Wu||(Wu=dt(["\n cursor: pointer;\n &:hover {\n cursor: pointer;\n }\n"]))),tc=function(){return(0,Gr.jsxs)($u,{children:[(0,Gr.jsx)("h1",{children:"Weblinks"}),(0,Gr.jsxs)(so,{inline:!0,children:[(0,Gr.jsx)("a",{href:"https://hubs.ninaprotocol.com/corporationplaza",target:"_blank",rel:"noreferrer",children:(0,Gr.jsx)(ec,{children:"Nina Hub"})}),(0,Gr.jsx)("a",{href:"https://twitter.com/CorpPlaz",target:"_blank",rel:"noreferrer",children:(0,Gr.jsx)(ec,{children:"Twitter"})}),(0,Gr.jsx)("a",{href:"https://corporationplaza.bandcamp.com/music",target:"_blank",rel:"noreferrer",children:(0,Gr.jsx)(ec,{children:"Web 2.0"})})]}),(0,Gr.jsx)("div",{children:(0,Gr.jsx)("a",{href:"https://react95.io/",target:"_blank",rel:"noreferrer",children:"made with react95"})})]})};r(9752);var rc=function(){var t=O.Devnet,r="https://solana-mainnet.g.alchemy.com/v2/".concat("m5-dE3iB2I6Ko4WcxoPYzHJtzSaROouj"),n=(0,e.useMemo)((function(){return[new ct({appIdentity:{name:"Solana Wallet Adapter App"},authorizationResultCache:ft()}),new G,new ee,new re({network:t}),new ie]}),[t]);return(0,Gr.jsx)(a,{endpoint:r,children:(0,Gr.jsx)(V,{wallets:n,autoConnect:!0,children:(0,Gr.jsx)(xe,{children:(0,Gr.jsx)(nn,{children:(0,Gr.jsxs)(Cu,{children:[(0,Gr.jsx)(tn,{}),(0,Gr.jsx)(Xu,{}),(0,Gr.jsx)(Eu,{}),(0,Gr.jsx)(tc,{})]})})})})})},nc=r(9118),ic=r.n(nc);var oc=function(){return(0,Gr.jsx)(jr,{theme:ic(),children:(0,Gr.jsx)("div",{children:(0,Gr.jsx)(rc,{})})})},ac=function(e){e&&e instanceof Function&&r.e(787).then(r.bind(r,787)).then((function(t){var r=t.getCLS,n=t.getFID,i=t.getFCP,o=t.getLCP,a=t.getTTFB;r(e),n(e),i(e),o(e),a(e)}))};t.createRoot(document.getElementById("root")).render((0,Gr.jsx)(e.
2StrictMode,{children:(0,Gr.jsx)(oc,{})})),ac()}()}(); 3//# sourceMappingURL=main.2d1d18c4.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.