@imtbl/checkout-widgets 2.12.4-alpha.11 → 2.12.4-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/browser/{AddTokensWidget-BTw-MgKV.js → AddTokensWidget-IIhpFq9J.js} +3 -3
  2. package/dist/browser/{BridgeWidget-BmyB7kkc.js → BridgeWidget-1dufZuyI.js} +6 -6
  3. package/dist/browser/{CommerceWidget-B5CCY-bN.js → CommerceWidget-iim0-_g4.js} +13 -13
  4. package/dist/browser/{FeesBreakdown-CL3s12kS.js → FeesBreakdown-BXo8kyzl.js} +1 -1
  5. package/dist/browser/{OnRampWidget-B6fkShR5.js → OnRampWidget-CSjMTokD.js} +3 -3
  6. package/dist/browser/{SaleWidget-BKXfv2e4.js → SaleWidget-Cnp-M1OT.js} +10 -10
  7. package/dist/browser/{SpendingCapHero-BHMIS0M-.js → SpendingCapHero-CAA9_jvv.js} +1 -1
  8. package/dist/browser/{SwapWidget-BDieDJgN.js → SwapWidget-BJOj5FR7.js} +6 -6
  9. package/dist/browser/{TokenImage-CEHZUMAi.js → TokenImage-D_Wr02lv.js} +1 -1
  10. package/dist/browser/{TopUpView-MEoVPj0U.js → TopUpView-CTXr7nLI.js} +1 -1
  11. package/dist/browser/{WalletApproveHero-DRQOdbT0.js → WalletApproveHero-DNt7anUb.js} +2 -2
  12. package/dist/browser/{WalletWidget-gAXq6I8a.js → WalletWidget-Ksbzq25A.js} +3 -3
  13. package/dist/browser/{auto-track-CsORzcYV.js → auto-track-ySzxNDM2.js} +1 -1
  14. package/dist/browser/{index-B3cybAj0.js → index-B4ADsNff.js} +1 -1
  15. package/dist/browser/{index-DdNwyx7W.js → index-BcRQ91Gw.js} +1 -1
  16. package/dist/browser/{index-CB-lrum4.js → index-BwWbdUw5.js} +1 -1
  17. package/dist/browser/{index-DPa3dq0S.js → index-CAt_0XpZ.js} +2 -2
  18. package/dist/browser/{index-llKYBGLg.js → index-CeA7BcPD.js} +1 -1
  19. package/dist/browser/{index-BTKL8wRG.js → index-CepXwf2Y.js} +19 -19
  20. package/dist/browser/{index-CD7LN6wV.js → index-DCTqRmbL.js} +1 -1
  21. package/dist/browser/{index-DVSRrHsp.js → index-X2OiM-uo.js} +1 -1
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-Dzb5hrP5.js → index.umd-DnUqwRR5.js} +1 -1
  24. package/dist/browser/{useInterval-tF-XfHTt.js → useInterval-CjQ-8Lvj.js} +1 -1
  25. package/package.json +7 -7
@@ -1,6 +1,6 @@
1
- import { b as reactExports, ac as hFlex, ad as _defineProperty, ae as _objectWithoutProperties, af as useForwardLocalDomRef, ag as _slicedToArray, ah as useResizeObserver, Q as useTheme, ai as usePrevious, aj as useGetMotionProfile, ak as useBrowserEffect, al as merge, am as getHeadingTextStyles, an as getMotionProfileSx, ao as useConvertSxToEmotionStyles, ap as DUMMY_WIDTH_PUSHER_TEXT, x as jsxs, w as jsx, B as Box, aq as useGetSubcomponentChild, ar as flattenChildren, as as vFlex, at as centerFlexChildren, au as SmartClone, av as FormControlLabel, aw as FormControlValidation, ax as FormControlCaption, r as ro, R as Ro, ay as getDefaultExportFromCjs, az as commonjsGlobal, k as useTranslation, aA as Drawer, aB as Divider, H as Heading, y as Button, aC as useProvidersContext, F as useAnalytics, aD as WalletDrawer, aE as UnableToConnectDrawer, aF as Fragment, aG as Gt, U as UserJourney, aH as removeSpace, aI as getProviderSlugFromRdns, aJ as D, aK as isPassportProvider, aL as connectEIP6963Provider, aM as identifyUser, aN as ConnectEIP6963ProviderError, aO as ProvidersContextActions, aP as MenuItem, aQ as J, aR as SQUID_NATIVE_TOKEN, aS as commonjsRequire, X as getRemoteImage, aT as OnboardingPagination, aU as ViewContext, aV as useHandover, G as EventTargetContext, aW as HandoverTarget, V as ViewActions, t as getRemoteRive, aX as APPROVE_TXN_ANIMATION, aY as RiveStateMachineInput, aZ as HandoverContent, a_ as keyframes, j as ie, a$ as isNativeToken, b0 as getTokenImageByAddress, b1 as FramedImage, b2 as FramedIcon, b3 as ButtCon, b4 as TextInput, b5 as VerticalMenu, K as getDefaultTokenImage, b6 as TOKEN_PRIORITY_ORDER, D as Body, b7 as EllipsizedText, b8 as Tooltip, b9 as Sticker, ba as getDurationFormatted, bb as getTotalRouteFees, bc as getRouteAndTokenBalances, S as Stack, bd as Icon, be as Badge, bf as getFormattedAmounts, bg as getRemoteVideo, bh as FramedVideo, bi as listVariants, bj as motion, bk as listItemVariants, bl as Banner, bm as useRoutes, bn as useInjectedProviders, bo as hn, bp as RouteError, z as SimpleLayout, bq as dist, O as orchestrationEvents, c as parseUnits, a5 as SharedViews, br as SquidFooter, bs as TOOLKIT_SQUID_URL, bt as merge$1, bu as SvgIcon, bv as WalletWarningHero, bw as getFormattedNumber, bx as FIXED_HANDOVER_DURATION, by as EXECUTE_TXN_ANIMATION, L as Link, bz as Trans, bA as useExecute, bB as getRouteChains, bC as t, bD as convertToNetworkChangeableProvider, bE as verifyAndSwitchChain, bF as PriceDisplay, a0 as LoadingView, bG as getFromAmountData, bH as viewReducer, bI as initialViewState, bJ as useSquid, bK as useTokens, bL as v4, bM as K, bN as isValidAddress, P as amountInputValidation, bO as fetchChains, bP as fetchBalances, W as CloudImage, a6 as ErrorView, bQ as ServiceUnavailableErrorView } from './index-BTKL8wRG.js';
2
- import { T as TokenImage } from './TokenImage-CEHZUMAi.js';
3
- import { f as fetchRiskAssessmentV2, r as resultHasSanctionedWallets, F as FeesBreakdown } from './FeesBreakdown-CL3s12kS.js';
1
+ import { b as reactExports, ac as hFlex, ad as _defineProperty, ae as _objectWithoutProperties, af as useForwardLocalDomRef, ag as _slicedToArray, ah as useResizeObserver, Q as useTheme, ai as usePrevious, aj as useGetMotionProfile, ak as useBrowserEffect, al as merge, am as getHeadingTextStyles, an as getMotionProfileSx, ao as useConvertSxToEmotionStyles, ap as DUMMY_WIDTH_PUSHER_TEXT, x as jsxs, w as jsx, B as Box, aq as useGetSubcomponentChild, ar as flattenChildren, as as vFlex, at as centerFlexChildren, au as SmartClone, av as FormControlLabel, aw as FormControlValidation, ax as FormControlCaption, r as ro, R as Ro, ay as getDefaultExportFromCjs, az as commonjsGlobal, k as useTranslation, aA as Drawer, aB as Divider, H as Heading, y as Button, aC as useProvidersContext, F as useAnalytics, aD as WalletDrawer, aE as UnableToConnectDrawer, aF as Fragment, aG as Gt, U as UserJourney, aH as removeSpace, aI as getProviderSlugFromRdns, aJ as D, aK as isPassportProvider, aL as connectEIP6963Provider, aM as identifyUser, aN as ConnectEIP6963ProviderError, aO as ProvidersContextActions, aP as MenuItem, aQ as J, aR as SQUID_NATIVE_TOKEN, aS as commonjsRequire, X as getRemoteImage, aT as OnboardingPagination, aU as ViewContext, aV as useHandover, G as EventTargetContext, aW as HandoverTarget, V as ViewActions, t as getRemoteRive, aX as APPROVE_TXN_ANIMATION, aY as RiveStateMachineInput, aZ as HandoverContent, a_ as keyframes, j as ie, a$ as isNativeToken, b0 as getTokenImageByAddress, b1 as FramedImage, b2 as FramedIcon, b3 as ButtCon, b4 as TextInput, b5 as VerticalMenu, K as getDefaultTokenImage, b6 as TOKEN_PRIORITY_ORDER, D as Body, b7 as EllipsizedText, b8 as Tooltip, b9 as Sticker, ba as getDurationFormatted, bb as getTotalRouteFees, bc as getRouteAndTokenBalances, S as Stack, bd as Icon, be as Badge, bf as getFormattedAmounts, bg as getRemoteVideo, bh as FramedVideo, bi as listVariants, bj as motion, bk as listItemVariants, bl as Banner, bm as useRoutes, bn as useInjectedProviders, bo as hn, bp as RouteError, z as SimpleLayout, bq as dist, O as orchestrationEvents, c as parseUnits, a5 as SharedViews, br as SquidFooter, bs as TOOLKIT_SQUID_URL, bt as merge$1, bu as SvgIcon, bv as WalletWarningHero, bw as getFormattedNumber, bx as FIXED_HANDOVER_DURATION, by as EXECUTE_TXN_ANIMATION, L as Link, bz as Trans, bA as useExecute, bB as getRouteChains, bC as t, bD as convertToNetworkChangeableProvider, bE as verifyAndSwitchChain, bF as PriceDisplay, a0 as LoadingView, bG as getFromAmountData, bH as viewReducer, bI as initialViewState, bJ as useSquid, bK as useTokens, bL as v4, bM as K, bN as isValidAddress, P as amountInputValidation, bO as fetchChains, bP as fetchBalances, W as CloudImage, a6 as ErrorView, bQ as ServiceUnavailableErrorView } from './index-CepXwf2Y.js';
2
+ import { T as TokenImage } from './TokenImage-D_Wr02lv.js';
3
+ import { f as fetchRiskAssessmentV2, r as resultHasSanctionedWallets, F as FeesBreakdown } from './FeesBreakdown-BXo8kyzl.js';
4
4
 
5
5
  /**
6
6
  * The function `useInterval` sets up an interval that repeatedly calls a given callback function with
@@ -1,9 +1,9 @@
1
- import { cp as toQuantity, cq as toBeHex, cr as getAddress, cs as keccak256, ct as AbiCoder, cu as concat, cv as axios, cw as ZeroAddress, h as Contract, _ as isAddress, bM as K$1, aQ as J$1, cx as nt$1, cy as S, b as reactExports, r as ro, l as lo, x as jsxs, w as jsx, cz as ShimmerBox, aP as MenuItem, S as Stack, k as useTranslation, D as Body, y as Button, B as Box, cA as PASSPORT_URL, L as Link, cB as getChainImage, b1 as FramedImage, b7 as EllipsizedText, bd as Icon, cC as getChainIdBySlug, aU as ViewContext, F as useAnalytics, aF as Fragment, aB as Divider, U as UserJourney, V as ViewActions, cD as useWalletConnect, cE as Logo, cF as RawImage, cG as isWalletConnectProvider, I as CryptoFiatContext, a$ as isNativeToken, b0 as getTokenImageByAddress, cH as getNativeSymbolByChainSlug, cb as formatUnits, e as calculateCryptoToFiat, G as EventTargetContext, j as ie$1, cI as JsonRpcProvider, a1 as CryptoFiatActions, aJ as D$1, bn as useInjectedProviders, cJ as retry, M as HeaderNavigation, c5 as FooterLogo, aD as WalletDrawer, z as SimpleLayout, cK as getChainSlugById, aK as isPassportProvider, cL as DEFAULT_TRANSACTIONS_RETRY_POLICY, aG as Gt, a0 as LoadingView, Q as useTheme, H as Heading, cM as getChainNameById, cN as getWalletProviderNameByProvider, cO as isMetaMaskProvider, cP as fe$1, aA as Drawer, b3 as ButtCon, cQ as ButtonNavigationStyles, O as orchestrationEvents, J as tokenValueFormat, d as formatZeroAmount, cR as NATIVE, bU as mn, c as parseUnits, P as amountInputValidation, W as CloudImage, cS as ETH_TOKEN_SYMBOL, X as getRemoteImage, bF as PriceDisplay, cT as st, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, cV as addChainChangedListener, cW as removeChainChangedListener, cX as xt, cY as IMX_TOKEN_SYMBOL, a5 as SharedViews, cZ as DEFAULT_TOKEN_DECIMALS, q as dist, c_ as CHECKOUT_CDN_BASE_URL, c$ as heroBackGroundStyles, d0 as heroImageStyles, be as Badge, d1 as SimpleTextBody, d2 as FooterButton, d3 as getEthTokenImage, d4 as WITHDRAWAL_CLAIM_GAS_LIMIT, d5 as Ct, bH as viewReducer, bI as initialViewState, d6 as r, d7 as StatusView, c6 as StatusType, a6 as ErrorView, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider, K as getDefaultTokenImage } from './index-BTKL8wRG.js';
2
- import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-MEoVPj0U.js';
3
- import { T as TokenImage } from './TokenImage-CEHZUMAi.js';
4
- import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, b as gasAmountAccordionStyles, c as gasAmountHeadingStyles, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-DRQOdbT0.js';
5
- import { f as fetchRiskAssessmentV2, r as resultHasSanctionedWallets, F as FeesBreakdown } from './FeesBreakdown-CL3s12kS.js';
6
- import { u as useInterval } from './useInterval-tF-XfHTt.js';
1
+ import { cp as toQuantity, cq as toBeHex, cr as getAddress, cs as keccak256, ct as AbiCoder, cu as concat, cv as axios, cw as ZeroAddress, h as Contract, _ as isAddress, bM as K$1, aQ as J$1, cx as nt$1, cy as S, b as reactExports, r as ro, l as lo, x as jsxs, w as jsx, cz as ShimmerBox, aP as MenuItem, S as Stack, k as useTranslation, D as Body, y as Button, B as Box, cA as PASSPORT_URL, L as Link, cB as getChainImage, b1 as FramedImage, b7 as EllipsizedText, bd as Icon, cC as getChainIdBySlug, aU as ViewContext, F as useAnalytics, aF as Fragment, aB as Divider, U as UserJourney, V as ViewActions, cD as useWalletConnect, cE as Logo, cF as RawImage, cG as isWalletConnectProvider, I as CryptoFiatContext, a$ as isNativeToken, b0 as getTokenImageByAddress, cH as getNativeSymbolByChainSlug, cb as formatUnits, e as calculateCryptoToFiat, G as EventTargetContext, j as ie$1, cI as JsonRpcProvider, a1 as CryptoFiatActions, aJ as D$1, bn as useInjectedProviders, cJ as retry, M as HeaderNavigation, c5 as FooterLogo, aD as WalletDrawer, z as SimpleLayout, cK as getChainSlugById, aK as isPassportProvider, cL as DEFAULT_TRANSACTIONS_RETRY_POLICY, aG as Gt, a0 as LoadingView, Q as useTheme, H as Heading, cM as getChainNameById, cN as getWalletProviderNameByProvider, cO as isMetaMaskProvider, cP as fe$1, aA as Drawer, b3 as ButtCon, cQ as ButtonNavigationStyles, O as orchestrationEvents, J as tokenValueFormat, d as formatZeroAmount, cR as NATIVE, bU as mn, c as parseUnits, P as amountInputValidation, W as CloudImage, cS as ETH_TOKEN_SYMBOL, X as getRemoteImage, bF as PriceDisplay, cT as st, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, cV as addChainChangedListener, cW as removeChainChangedListener, cX as xt, cY as IMX_TOKEN_SYMBOL, a5 as SharedViews, cZ as DEFAULT_TOKEN_DECIMALS, q as dist, c_ as CHECKOUT_CDN_BASE_URL, c$ as heroBackGroundStyles, d0 as heroImageStyles, be as Badge, d1 as SimpleTextBody, d2 as FooterButton, d3 as getEthTokenImage, d4 as WITHDRAWAL_CLAIM_GAS_LIMIT, d5 as Ct, bH as viewReducer, bI as initialViewState, d6 as r, d7 as StatusView, c6 as StatusType, a6 as ErrorView, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider, K as getDefaultTokenImage } from './index-CepXwf2Y.js';
2
+ import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-CTXr7nLI.js';
3
+ import { T as TokenImage } from './TokenImage-D_Wr02lv.js';
4
+ import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, b as gasAmountAccordionStyles, c as gasAmountHeadingStyles, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-DNt7anUb.js';
5
+ import { f as fetchRiskAssessmentV2, r as resultHasSanctionedWallets, F as FeesBreakdown } from './FeesBreakdown-BXo8kyzl.js';
6
+ import { u as useInterval } from './useInterval-CjQ-8Lvj.js';
7
7
 
8
8
  var ae=[{inputs:[{internalType:"address",name:"_gateway",type:"address"},{internalType:"address",name:"_initializerAddress",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"CallerNotBridge",type:"error"},{inputs:[],name:"InvalidAddress",type:"error"},{inputs:[],name:"InvalidChildBridgeAdaptor",type:"error"},{inputs:[],name:"InvalidChildChain",type:"error"},{inputs:[],name:"InvalidSourceAddress",type:"error"},{inputs:[],name:"InvalidSourceChain",type:"error"},{inputs:[],name:"NoGas",type:"error"},{inputs:[],name:"NotApprovedByGateway",type:"error"},{inputs:[],name:"UnauthorizedInitializer",type:"error"},{inputs:[],name:"UnsupportedOperation",type:"error"},{inputs:[],name:"ZeroAddresses",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"sourceChain",type:"string"},{indexed:!1,internalType:"string",name:"sourceAddress_",type:"string"},{indexed:!1,internalType:"bytes",name:"payload_",type:"bytes"}],name:"AdaptorExecute",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"childChain",type:"string"},{indexed:!0,internalType:"string",name:"childBridgeAdaptor",type:"string"},{indexed:!0,internalType:"bytes",name:"payload",type:"bytes"}],name:"AxelarMessageSent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"oldChildBridgeAdaptor",type:"string"},{indexed:!1,internalType:"string",name:"newChildBridgeAdaptor",type:"string"}],name:"ChildBridgeAdaptorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"oldChildChain",type:"string"},{indexed:!0,internalType:"string",name:"newChildChain",type:"string"}],name:"ChildChainUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldGasService",type:"address"},{indexed:!0,internalType:"address",name:"newGasService",type:"address"}],name:"GasServiceUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldRootBridge",type:"address"},{indexed:!0,internalType:"address",name:"newRootBridge",type:"address"}],name:"RootBridgeUpdated",type:"event"},{inputs:[],name:"BRIDGE_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"GAS_SERVICE_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TARGET_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"childBridgeAdaptor",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"childChainId",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"commandId",type:"bytes32"},{internalType:"string",name:"sourceChain",type:"string"},{internalType:"string",name:"sourceAddress",type:"string"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"execute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"commandId",type:"bytes32"},{internalType:"string",name:"sourceChain",type:"string"},{internalType:"string",name:"sourceAddress",type:"string"},{internalType:"bytes",name:"payload",type:"bytes"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"executeWithToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"gasService",outputs:[{internalType:"contract IAxelarGasService",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"gateway",outputs:[{internalType:"contract IAxelarGateway",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantBridgeManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantGasServiceManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantTargetManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"bridgeManager",type:"address"},{internalType:"address",name:"gasServiceManager",type:"address"},{internalType:"address",name:"targetManager",type:"address"}],internalType:"struct IRootAxelarBridgeAdaptor.InitializationRoles",name:"_adaptorRoles",type:"tuple"},{internalType:"address",name:"_rootBridge",type:"address"},{internalType:"string",name:"_childChainId",type:"string"},{internalType:"string",name:"_childBridgeAdaptor",type:"string"},{internalType:"address",name:"_gasService",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initializerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeBridgeManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeGasServiceManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeTargetManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rootBridge",outputs:[{internalType:"contract IRootERC20Bridge",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"payload",type:"bytes"},{internalType:"address",name:"refundRecipient",type:"address"}],name:"sendMessage",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"newChildBridgeAdaptor",type:"string"}],name:"updateChildBridgeAdaptor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newChildChain",type:"string"}],name:"updateChildChain",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newGasService",type:"address"}],name:"updateGasService",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRootBridge",type:"address"}],name:"updateRootBridge",outputs:[],stateMutability:"nonpayable",type:"function"}];var ie=(i=>(i.SUCCESS="SUCCESS",i.PENDING="PENDING",i.FAILED="FAILED",i))(ie||{}),W=(i=>(i.DEPOSIT="DEPOSIT",i.WITHDRAW="WITHDRAW",i.FINALISE_WITHDRAWAL="FINALISE_WITHDRAWAL",i))(W||{}),G=(d=>(d[d.DEPOSIT_SOURCE=15e4]="DEPOSIT_SOURCE",d[d.DEPOSIT_DESTINATION=25e4]="DEPOSIT_DESTINATION",d[d.WITHDRAW_SOURCE=25e4]="WITHDRAW_SOURCE",d[d.WITHDRAW_DESTINATION=25e4]="WITHDRAW_DESTINATION",d[d.MAP_TOKEN_SOURCE=2e5]="MAP_TOKEN_SOURCE",d[d.MAP_TOKEN_DESTINATION=2e5]="MAP_TOKEN_DESTINATION",d[d.FINALISE_WITHDRAWAL=2e5]="FINALISE_WITHDRAWAL",d[d.APPROVE_TOKEN=55e3]="APPROVE_TOKEN",d))(G||{}),U=(s=>(s.PENDING="PENDING",s.PROCESSING="PROCESSING",s.COMPLETE="COMPLETE",s.RETRY="RETRY",s.ERROR="ERROR",s.NOT_ENOUGH_GAS="NOT_ENOUGH_GAS",s.FLOW_RATE_CONTROLLED="FLOW_RATE_CONTROLLED",s))(U||{});var R="NATIVE",re="11155111",Ze="1",H="15003",V="13473",X="13371",se="0x0000000000000000000000000000000000000eee",oe="0x7a8dc26796a1e50e6e190b70259f58f6a4edd5b22280ceecc82b687b8e982869",de="0x07b0d4304f82012bd3b70b1d531c160e326067c90829e2a3d386722ad10b89c3",pe="0x0000000000000000000000000000000000000000000000000000000000000004",ue={mainnet:"0x3a0c2ba54d6cbd3121f01b96dfd20e99d1696c9d",testnet:"0x1CcCa691501174B4A623CeDA58cC8f1a76dc3439",devnet:""},le={mainnet:"0xf57e7e7c23978c3caec3c3548e3d615c346e79ff",testnet:"0xe2629e08f4125d14e446660028bD98ee60EE69F2",devnet:""},ye={mainnet:"0x52a6c53869ce09a731cd772f245b97a4401d3348",testnet:"0xe9E96d1aad82562b7588F03f49aD34186f996478",devnet:""},ce={mainnet:"0x4f49b53928a71e553bb1b0f66a5bcb54fd4e8932",testnet:"0x6328Ac88ba8D466a0F551FC7C42C61d1aC7f92ab",devnet:""},me={mainnet:"0x4f49b53928a71e553bb1b0f66a5bcb54fd4e8932",testnet:"0x6328Ac88ba8D466a0F551FC7C42C61d1aC7f92ab",devnet:""},Te={mainnet:"immutable",testnet:"immutable",devnet:""},ge={mainnet:"0x4F4495243837681061C4743b74B3eEdf548D56A5",testnet:"0xe432150cce91c13a887f7D836923d5597adD8E31",devnet:""},$={rootChainID:re,childChainID:H},O={rootChainID:re,childChainID:V},P={rootChainID:Ze,childChainID:X},fe={mainnet:"https://api.gmp.axelarscan.io",testnet:"https://testnet.api.gmp.axelarscan.io",devnet:"https://stagenet.api.gmp.axelarscan.io"},he={mainnet:"https://bridge-api.immutable.com/v1/tenderly/estimate",testnet:"https://bridge-api.sandbox.immutable.com/v1/tenderly/estimate",devnet:"https://bridge-api.dev.immutable.com/v1/tenderly/estimate"},K={11155111:{id:"ethereum-sepolia",symbol:"ETH"},1:{id:"ethereum",symbol:"ETH"},15003:{id:"immutable",symbol:"IMX"},13473:{id:"immutable",symbol:"IMX"},13371:{id:"immutable",symbol:"IMX"}},Q={deposit:{token:"deposit",tokenTo:"depositTo",native:"depositETH",nativeTo:"depositToETH"},withdraw:{token:"withdraw",tokenTo:"withdrawTo",native:"withdrawIMX",nativeTo:"withdrawIMXTo"}};var _=(T=>(T.UNSUPPORTED_ERROR="UNSUPPORTED_ERROR",T.INVALID_ADDRESS="INVALID_ADDRESS",T.INVALID_AMOUNT="INVALID_AMOUNT",T.INTERNAL_ERROR="INTERNAL_ERROR",T.PROVIDER_ERROR="PROVIDER_ERROR",T.ROOT_PROVIDER_ERROR="ROOT_PROVIDER_ERROR",T.CHILD_PROVIDER_ERROR="CHILD_PROVIDER_ERROR",T.TRANSACTION_REVERTED="TRANSACTION_REVERTED",T.INVALID_TOKEN="INVALID_TOKEN",T.INVALID_TRANSACTION="INVALID_TRANSACTION",T.INVALID_SOURCE_CHAIN_ID="INVALID_SOURCE_CHAIN_ID",T.INVALID_DESTINATION_CHAIN_ID="INVALID_DESTINATION_CHAIN_ID",T.INVALID_SOURCE_OR_DESTINATION_CHAIN="INVALID_SOURCE_OR_DESTINATION_CHAIN",T.CHAIN_IDS_MATCH="CHAIN_IDS_MATCH",T.AXELAR_CHAIN_NOT_FOUND="AXELAR_CHAIN_NOT_FOUND",T.AXELAR_GAS_ESTIMATE_FAILED="AXELAR_GAS_ESTIMATE_FAILED",T.TENDERLY_GAS_ESTIMATE_FAILED="TENDERLY_GAS_ESTIMATE_FAILED",T.INVALID_RECIPIENT="INVALID_RECIPIENT",T.FLOW_RATE_ERROR="FLOW_RATE_ERROR",T.INVALID_FLOWRATE_INDEX="INVALID_FLOWRATE_INDEX",T))(_||{}),y=class extends Error{type;constructor(e,t){super(e),this.type=t;}},E=async(n,e,t)=>{try{return await n()}catch(i){let a=`${e}: ${i.message}`||"UnknownError";throw new y(a,e)}};async function I(n,e,t){return await E(async()=>new Contract(n,e,t),"PROVIDER_ERROR")}function C(n,e){let t;return n===P.rootChainID||n===P.childChainID?t=e.mainnet:n===O.rootChainID||n===O.childChainID?t=e.testnet:t=e.devnet,t}function je(n){return C(n,ye)}function be(n,e){return n.toUpperCase()===je(e).toUpperCase()}function z(n){return C(n,le)}function Re(n,e){return n.toUpperCase()===z(e).toUpperCase()}function Ie(n){return C(n,ce)}function Ae(n){return C(n,me)}function Ee(n){return C(n,Te)}function we(n){return C(n,ge)}function Z(n){return C(n,fe)}function xe(n){return C(n,he)}function qe(n){return C(n,ue)}function B(n,e){return n.toUpperCase()===qe(e).toUpperCase()}function v(n,e){return n.sourceChainId===e.rootChainID&&n.destinationChainId===e.childChainID&&n.action==="DEPOSIT"}function Ce(n,e){return n===e.rootChainID}function D(n,e){return n.sourceChainId===e.childChainID&&n.destinationChainId===e.rootChainID&&n.action==="WITHDRAW"}function ve(n,e,t){return D(e,t)&&!B(n,e.sourceChainId)}function _e(n){return !("token"in n)||n.token.toUpperCase()===R}function De(n,e,t){return D(e,t)&&B(n,e.sourceChainId)}async function Me(n){let e="Please upgrade to the latest version of the Bridge SDK or provide valid configuration",t=await E(async()=>n.rootProvider.getNetwork(),"ROOT_PROVIDER_ERROR");if(t.chainId.toString()!==n.bridgeInstance.rootChainID)throw new y(`Rootchain provider chainID ${t.chainId} does not match expected chainID ${n.bridgeInstance.rootChainID}. ${e}`,"UNSUPPORTED_ERROR");let i=await E(async()=>n.childProvider.getNetwork(),"CHILD_PROVIDER_ERROR");if(i.chainId.toString()!==n.bridgeInstance.childChainID)throw new y(`Childchain provider chainID ${i.chainId} does not match expected chainID ${n.bridgeInstance.childChainID}. ${e} `,"UNSUPPORTED_ERROR")}async function Ne(n,e,t,i){let a;if(e===i.bridgeInstance.rootChainID){if(!be(n,e))return;a=i.rootProvider;}else {if(!Re(n,e))return;a=i.childProvider;}if((await a.getCode(t)).length<=2)return;let s=await I(t,["function receive()"],a);try{await s.receive.estimateGas();}catch{try{await a.estimateGas({to:t});}catch{throw new y(`address ${t} is not a valid receipient`,"INVALID_RECIPIENT")}}}async function j(n,e,t){if(!(n===t.bridgeInstance.rootChainID||n===t.bridgeInstance.childChainID))throw new y(`the sourceChainId ${n} is not a valid`,"INVALID_SOURCE_CHAIN_ID");if(!(e===t.bridgeInstance.rootChainID||e===t.bridgeInstance.childChainID))throw new y(`the destinationChainId ${e} is not a valid`,"INVALID_DESTINATION_CHAIN_ID");if(n===e)throw new y(`the sourceChainId ${n} cannot be the same as the destinationChainId ${e}`,"CHAIN_IDS_MATCH")}async function Oe(n,e){if(await j(n.sourceChainId,n.destinationChainId,e),!isAddress(n.senderAddress)||!isAddress(n.recipientAddress))throw new y(`address ${n.senderAddress} or ${n.recipientAddress} is not a valid address`,"INVALID_ADDRESS");if(n.amount<=0n)throw new y(`deposit amount ${n.amount.toString()} is invalid`,"INVALID_AMOUNT");if(n.token.toUpperCase()!==R&&!isAddress(n.token))throw new y(`token address ${n.token} is not a valid address`,"INVALID_ADDRESS")}function Pe(n,e){if(n.action==="FINALISE_WITHDRAWAL"&&n.sourceChainId!==e.bridgeInstance.rootChainID)throw new y(`Finalised withdrawals must be on the root chain (${e.bridgeInstance.rootChainID})`,"INVALID_SOURCE_CHAIN_ID");if(!("destinationChainId"in n))throw new y("DEPOSIT or WITHDRAW used without destinationChainId","INVALID_DESTINATION_CHAIN_ID");let t={sourceChainId:n.sourceChainId,destinationChainId:n.destinationChainId,action:n.action};if(!v(t,e.bridgeInstance)&&!D(t,e.bridgeInstance))throw new y("This request is neither a valid deposit nor a valid withdrawal","INVALID_SOURCE_OR_DESTINATION_CHAIN")}var Je=n=>!!n.maxFeePerGas&&!!n.maxPriorityFeePerGas,et=n=>{if(Je(n)){let{maxFeePerGas:e,maxPriorityFeePerGas:t}=n;if(e===null||t===null)return null;let i=(e-t)/BigInt(2);return t+i}return n.gasPrice?n.gasPrice:null};function w(n,e){let t=et(n);return t?t*BigInt(e):BigInt(0)}var Be=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"userAddress",type:"address"},{indexed:!1,internalType:"address",name:"relayerAddress",type:"address"},{indexed:!1,internalType:"bytes",name:"functionSignature",type:"bytes"}],name:"MetaTransactionExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"bridge",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"userAddress",type:"address"},{internalType:"bytes",name:"functionSignature",type:"bytes"},{internalType:"bytes32",name:"sigR",type:"bytes32"},{internalType:"bytes32",name:"sigS",type:"bytes32"},{internalType:"uint8",name:"sigV",type:"uint8"}],name:"executeMetaTransaction",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"rootToken_",type:"address"},{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint8",name:"decimals_",type:"uint8"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"}],name:"invalidateNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"rootToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];function Fe(n){return keccak256(AbiCoder.defaultAbiCoder().encode(["bytes","uint256"],[n,new Date().getTime()]))}function We(n,e,t,i){return AbiCoder.defaultAbiCoder().encode(["bytes32","address","address","address","uint256"],[oe,n,e,t,i])}async function nt(n,e){return I(n,Be,e)}async function ke(n,e,t){if(n.toUpperCase()===R||B(n,e))return z(e);let i=await nt(n,t);return E(()=>i.rootToken(),"PROVIDER_ERROR")}var it="0x84a3291a0";function rt(n){let e={};return n.forEach(t=>{let{contractAddress:i,stateDiff:a}=t,{storageSlot:r,value:o}=a;e[i]===void 0&&(e[i]={stateDiff:{}}),e[i].stateDiff[r]=o;}),e}async function q(n,e,t){let i,a=xe(n),r=t?rt(t):void 0;try{i=await axios.post(a,{jsonrpc:"2.0",id:0,method:"tenderly_simulateBundle",params:[e,"latest",r]},{headers:{"Content-Type":"application/json"}});}catch(g){i=g.response;}if(i.data.error)throw new y(`Estimating gas failed with the reason: ${i.data.error.message}`,"TENDERLY_GAS_ESTIMATE_FAILED");let o=i.data.result;if(o.length!==e.length)throw new y("Estimating gas failed with mismatched responses","TENDERLY_GAS_ESTIMATE_FAILED");let s=[],d=!1,p=!1,u=!1,l=0,m=!1,f=e.find(g=>g.data?.startsWith(it))!==void 0;for(let g=0;g<o.length;g++){if(o[g].error)throw new y(`Estimating deposit gas failed with the reason: ${o[g].error.message}`,"TENDERLY_GAS_ESTIMATE_FAILED");if(o[g].gasUsed===void 0)throw new y("Estimating gas did not return simulation results","TENDERLY_GAS_ESTIMATE_FAILED");if(f&&o[g].logs!==void 0){let c=o[g].logs.find(A=>A.name==="QueuedWithdrawal");if(c!==void 0){let A=new Map(c.inputs.map(x=>[x.name,x.value]));d=A.get("delayWithdrawalLargeAmount")||!1,p=A.get("delayWithdrawalUnknownToken")||!1,u=A.get("withdrawalQueueActivated")||!1;}}if(f&&o[g].trace!==void 0){let c=o[g].trace.find(A=>A.method==="largeTransferThresholds");c!==void 0&&(l=c.output,m=!0);}m||s.push(o[g].gasUsed);}return {gas:s,delayWithdrawalLargeAmount:d,delayWithdrawalUnknownToken:p,withdrawalQueueActivated:u,largeTransferThresholds:l}}var Le="0x0000000000000000000000000000000000000000000000000000000000000001";async function Ge(n,e,t,i,a,r){let o,s;if(i.toUpperCase()===R)n===e?(o=a.native,s=[t]):(o=a.nativeTo,s=[e,t]);else {let d=getAddress(i);n===e?(o=a.token,s=[d,t]):(o=a.tokenTo,s=[d,e,t]);}return await E(async()=>r.interface.encodeFunctionData(o,s),"INTERNAL_ERROR")}var M=[{inputs:[{internalType:"address",name:"_initializerAddress",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadyMapped",type:"error"},{inputs:[{internalType:"uint256",name:"actualBalance",type:"uint256"},{internalType:"uint256",name:"expectedBalance",type:"uint256"}],name:"BalanceInvariantCheckFailed",type:"error"},{inputs:[],name:"CantMapETH",type:"error"},{inputs:[],name:"CantMapIMX",type:"error"},{inputs:[],name:"CantMapWETH",type:"error"},{inputs:[],name:"ImxDepositLimitExceeded",type:"error"},{inputs:[],name:"ImxDepositLimitTooLow",type:"error"},{inputs:[{internalType:"uint256",name:"lengthOfQueue",type:"uint256"},{internalType:"uint256",name:"requestedIndex",type:"uint256"}],name:"IndexOutsideWithdrawalQueue",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidCapacity",type:"error"},{inputs:[],name:"InvalidChildChain",type:"error"},{inputs:[{internalType:"string",name:"reason",type:"string"}],name:"InvalidData",type:"error"},{inputs:[],name:"InvalidRefillRate",type:"error"},{inputs:[],name:"InvalidToken",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"actualToken",type:"address"}],name:"MixedTokens",type:"error"},{inputs:[],name:"NoGas",type:"error"},{inputs:[],name:"NonWrappedNativeTransfer",type:"error"},{inputs:[],name:"NotBridgeAdaptor",type:"error"},{inputs:[],name:"NotMapped",type:"error"},{inputs:[],name:"ProvideAtLeastOneIndex",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"TokenIsZero",type:"error"},{inputs:[],name:"TokenNotSupported",type:"error"},{inputs:[],name:"UnauthorizedInitializer",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"WithdrawalAlreadyProcessed",type:"error"},{inputs:[{internalType:"uint256",name:"timeNow",type:"uint256"},{internalType:"uint256",name:"currentWithdrawalTime",type:"uint256"}],name:"WithdrawalRequestTooEarly",type:"error"},{inputs:[],name:"WrongInitializer",type:"error"},{inputs:[],name:"ZeroAddress",type:"error"},{inputs:[],name:"ZeroAmount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"who",type:"address"}],name:"ActivatedWithdrawalQueue",type:"event"},{anonymous:!1,inputs:[],name:"AutoActivatedWithdrawalQueue",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainERC20Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"who",type:"address"}],name:"DeactivatedWithdrawalQueue",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"withdrawer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"EnQueuedWithdrawal",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"IMXDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"}],name:"L1TokenMapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"NativeEthDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldImxDepositLimit",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newImxDepositLimit",type:"uint256"}],name:"NewImxDepositLimit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"withdrawer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"ProcessedWithdrawal",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"withdrawer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"bool",name:"delayWithdrawalLargeAmount",type:"bool"},{indexed:!1,internalType:"bool",name:"delayWithdrawalUnknownToken",type:"bool"},{indexed:!1,internalType:"bool",name:"withdrawalQueueActivated",type:"bool"}],name:"QueuedWithdrawal",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"capacity",type:"uint256"},{indexed:!1,internalType:"uint256",name:"refillRate",type:"uint256"},{indexed:!1,internalType:"uint256",name:"largeTransferThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"previousCapacity",type:"uint256"},{indexed:!1,internalType:"uint256",name:"previousRefillRate",type:"uint256"},{indexed:!1,internalType:"uint256",name:"previousLargeTransferThreshold",type:"uint256"}],name:"RateControlThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldRootBridgeAdaptor",type:"address"},{indexed:!1,internalType:"address",name:"newRootBridgeAdaptor",type:"address"}],name:"RootBridgeAdaptorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"withdrawer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RootChainERC20Withdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"withdrawer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RootChainETHWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WETHDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"delay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"previousDelay",type:"uint256"}],name:"WithdrawalDelayUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"WithdrawalForNonFlowRatedToken",type:"event"},{inputs:[],name:"ADAPTOR_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEPOSIT_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAP_TOKEN_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"NATIVE_ETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"NATIVE_IMX",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNLIMITED_DEPOSIT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNPAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VARIABLE_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WITHDRAW_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"activateWithdrawalQueue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"childERC20Bridge",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"childETHToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"childTokenTemplate",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deactivateWithdrawalQueue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Metadata",name:"rootToken",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"depositETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20Metadata",name:"rootToken",type:"address"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"depositToETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"finaliseQueuedWithdrawal",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256[]",name:"indices",type:"uint256[]"}],name:"finaliseQueuedWithdrawalsAggregated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"startIndex",type:"uint256"},{internalType:"uint256",name:"stopIndex",type:"uint256"},{internalType:"uint256",name:"maxFind",type:"uint256"}],name:"findPendingWithdrawals",outputs:[{components:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct FlowRateWithdrawalQueue.FindPendingWithdrawal[]",name:"found",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"flowRateBuckets",outputs:[{internalType:"uint256",name:"capacity",type:"uint256"},{internalType:"uint256",name:"depth",type:"uint256"},{internalType:"uint256",name:"refillTime",type:"uint256"},{internalType:"uint256",name:"refillRate",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256[]",name:"indices",type:"uint256[]"}],name:"getPendingWithdrawals",outputs:[{components:[{internalType:"address",name:"withdrawer",type:"address"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"timestamp",type:"uint256"}],internalType:"struct FlowRateWithdrawalQueue.PendingWithdrawal[]",name:"pending",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"getPendingWithdrawalsLength",outputs:[{internalType:"uint256",name:"length",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantAdaptorManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantPauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantUnpauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantVariableManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"imxCumulativeDepositLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"pauser",type:"address"},{internalType:"address",name:"unpauser",type:"address"},{internalType:"address",name:"variableManager",type:"address"},{internalType:"address",name:"adaptorManager",type:"address"}],internalType:"struct IRootERC20Bridge.InitializationRoles",name:"newRoles",type:"tuple"},{internalType:"address",name:"newRootBridgeAdaptor",type:"address"},{internalType:"address",name:"newChildERC20Bridge",type:"address"},{internalType:"address",name:"newChildTokenTemplate",type:"address"},{internalType:"address",name:"newRootIMXToken",type:"address"},{internalType:"address",name:"newRootWETHToken",type:"address"},{internalType:"uint256",name:"newImxCumulativeDepositLimit",type:"uint256"},{internalType:"address",name:"rateAdmin",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"pauser",type:"address"},{internalType:"address",name:"unpauser",type:"address"},{internalType:"address",name:"variableManager",type:"address"},{internalType:"address",name:"adaptorManager",type:"address"}],internalType:"struct IRootERC20Bridge.InitializationRoles",name:"",type:"tuple"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"pure",type:"function"},{inputs:[],name:"initializerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"largeTransferThresholds",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Metadata",name:"rootToken",type:"address"}],name:"mapToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"onMessageReceive",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeAdaptorManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokePauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeUnpauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeVariableManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rootBridgeAdaptor",outputs:[{internalType:"contract IRootBridgeAdaptor",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"rootIMXToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"rootTokenToChildToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"rootWETHToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"capacity",type:"uint256"},{internalType:"uint256",name:"refillRate",type:"uint256"},{internalType:"uint256",name:"largeTransferThreshold",type:"uint256"}],name:"setRateControlThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"delay",type:"uint256"}],name:"setWithdrawalDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newImxCumulativeDepositLimit",type:"uint256"}],name:"updateImxCumulativeDepositLimit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRootBridgeAdaptor",type:"address"}],name:"updateRootBridgeAdaptor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"withdrawalDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"withdrawalQueueActivated",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}];var k=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var J=[{inputs:[{internalType:"address",name:"_initializerAddress",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadyMapped",type:"error"},{inputs:[{internalType:"uint256",name:"actualBalance",type:"uint256"},{internalType:"uint256",name:"expectedBalance",type:"uint256"}],name:"BalanceInvariantCheckFailed",type:"error"},{inputs:[],name:"BridgeNotSet",type:"error"},{inputs:[],name:"BurnFailed",type:"error"},{inputs:[],name:"CantMapETH",type:"error"},{inputs:[],name:"CantMapIMX",type:"error"},{inputs:[],name:"EmptyTokenContract",type:"error"},{inputs:[],name:"IncorrectBridgeAddress",type:"error"},{inputs:[],name:"InsufficientIMX",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[{internalType:"string",name:"reason",type:"string"}],name:"InvalidData",type:"error"},{inputs:[],name:"MintFailed",type:"error"},{inputs:[],name:"NoGas",type:"error"},{inputs:[],name:"NonWrappedNativeTransfer",type:"error"},{inputs:[],name:"NotBridgeAdaptor",type:"error"},{inputs:[],name:"NotMapped",type:"error"},{inputs:[],name:"TransferWIMXFailed",type:"error"},{inputs:[],name:"UnauthorizedInitializer",type:"error"},{inputs:[],name:"ZeroAddress",type:"error"},{inputs:[],name:"ZeroAddressRootToken",type:"error"},{inputs:[],name:"ZeroAmount",type:"error"},{inputs:[],name:"ZeroValue",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldChildBridgeAdaptor",type:"address"},{indexed:!1,internalType:"address",name:"newChildBridgeAdaptor",type:"address"}],name:"ChildBridgeAdaptorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainERC20Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainERC20Withdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainEthWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainNativeIMXWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ChildChainWrappedIMXWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"IMXDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"rootToken",type:"address"},{indexed:!1,internalType:"address",name:"childToken",type:"address"}],name:"L2TokenMapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"rootToken",type:"address"},{indexed:!0,internalType:"address",name:"childToken",type:"address"},{indexed:!1,internalType:"address",name:"depositor",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"NativeEthDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"depositor",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PrivilegedDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"ADAPTOR_MANAGER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DEPOSIT_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAP_TOKEN_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"NATIVE_ETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"NATIVE_IMX",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PRIVILEGED_DEPOSITOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNPAUSER_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"WITHDRAW_SIG",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"childBridgeAdaptor",outputs:[{internalType:"contract IChildBridgeAdaptor",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"childETHToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"childTokenTemplate",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantAdaptorManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantPauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"grantUnpauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"defaultAdmin",type:"address"},{internalType:"address",name:"pauser",type:"address"},{internalType:"address",name:"unpauser",type:"address"},{internalType:"address",name:"adaptorManager",type:"address"},{internalType:"address",name:"initialDepositor",type:"address"},{internalType:"address",name:"treasuryManager",type:"address"}],internalType:"struct IChildERC20Bridge.InitializationRoles",name:"newRoles",type:"tuple"},{internalType:"address",name:"newBridgeAdaptor",type:"address"},{internalType:"address",name:"newChildTokenTemplate",type:"address"},{internalType:"address",name:"newRootIMXToken",type:"address"},{internalType:"address",name:"newWIMXToken",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initializerAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"onMessageReceive",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"privilegedDeposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeAdaptorManagerRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokePauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"revokeUnpauserRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rootIMXToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"rootTokenToChildToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newBridgeAdaptor",type:"address"}],name:"updateChildBridgeAdaptor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wIMXToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IChildERC20",name:"childToken",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawETHTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawIMX",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawIMXTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IChildERC20",name:"childToken",type:"address"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawWIMX",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdrawWIMXTo",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}];var ee=(c=>(c.SRC_GATEWAY_CALLED="source_gateway_called",c.DEST_GATEWAY_APPROVED="destination_gateway_approved",c.DEST_EXECUTED="destination_executed",c.EXPRESS_EXECUTED="express_executed",c.DEST_EXECUTE_ERROR="error",c.DEST_EXECUTING="executing",c.APPROVING="approving",c.FORECALLED="forecalled",c.FORECALLED_WITHOUT_GAS_PAID="forecalled_without_gas_paid",c.NOT_EXECUTED="not_executed",c.NOT_EXECUTED_WITHOUT_GAS_PAID="not_executed_without_gas_paid",c.INSUFFICIENT_FEE="insufficient_fee",c.UNKNOWN_ERROR="unknown_error",c.CANNOT_FETCH_STATUS="cannot_fetch_status",c.SRC_GATEWAY_CONFIRMED="confirmed",c))(ee||{}),Ue=(a=>(a.GAS_UNPAID="gas_unpaid",a.GAS_PAID="gas_paid",a.GAS_PAID_NOT_ENOUGH_GAS="gas_paid_not_enough_gas",a.GAS_PAID_ENOUGH_GAS="gas_paid_enough_gas",a))(Ue||{});var ot=n=>{let{error:e,status:t}=n;return t==="error"&&e?"error":t==="executed"?"destination_executed":t==="approved"?"destination_gateway_approved":t==="called"?"source_gateway_called":t==="executing"?"executing":t},dt=n=>{if(n.error)return {message:n.error.error.message,txHash:n.error.error.transactionHash,chain:n.error.chain};if(n.is_insufficient_fee)return {message:"Insufficient fee",txHash:n.call.transaction.hash,chain:n.call.chain}},pt=async(n,e)=>fetch(`${n}?${new URLSearchParams(e).toString()}`,{method:"GET",headers:{"Content-Type":"application/json"},cache:"no-store"}).then(t=>t.json()).then(t=>t.data),ut=async(n,e,t)=>pt(n,{method:"searchGMP",txHash:e,txLogIndex:t}).then(i=>i.find(a=>a.id.indexOf(e)>-1||a.call.transactionHash.indexOf(e)>-1)).catch(()=>{}),He=async(n,e,t)=>{let i=await ut(n,e,t);if(!i)return {status:"cannot_fetch_status"};let{call:a,gas_status:r,gas_paid:o,executed:s,express_executed:d,approved:p,callback:u}=i,l={status:r,details:o},m=i.time_spent;return m&&(m.total=m.total||Object.values(m).reduce((f,g)=>f+g,0)),{status:ot(i),error:dt(i),timeSpent:m,gasPaidInfo:l,callTx:a,executed:s,expressExecuted:d,approved:p,callback:u}};var Xe=class{config;initialised;constructor(e){this.config=e,this.initialised=!1;}async initialise(){this.initialised||(await Me(this.config),this.initialised=!0);}async getFee(e){let[,,t]=await Promise.all([this.initialise(),async()=>{e.action!=="FINALISE_WITHDRAWAL"&&await j(e.sourceChainId,e.destinationChainId,this.config);},this.getFeePrivate(e)]);return t}async getFinaliseWithdrawFee(){let e=await this.config.rootProvider.getFeeData();return w(e,2e5)}async getDepositOrWithdrawFee(e){let t;e.sourceChainId===this.config.bridgeInstance.rootChainID?t=await this.config.rootProvider.getFeeData():t=await this.config.childProvider.getFeeData();let i=BigInt(0),a=BigInt(0),r=BigInt(0),o;if(e.action==="DEPOSIT")o={sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,action:"DEPOSIT"};else if(e.action==="WITHDRAW")o={sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,action:"WITHDRAW"};else throw new y("Invalid action","INTERNAL_ERROR");if(!(v(o,this.config.bridgeInstance)||D(o,this.config.bridgeInstance)))throw new y("Invalid direction","INTERNAL_ERROR");_e(e)||(v(o,this.config.bridgeInstance)?a=w(t,55e3):"token"in e&&De(e.token,o,this.config.bridgeInstance)&&(a=w(t,55e3)));let s;return e.action==="DEPOSIT"?(i=w(t,15e4),s=25e4):(i=w(t,25e4),s=25e4),r=await this.getAxelarFee(e.sourceChainId,e.destinationChainId,s,e.gasMultiplier),{sourceChainFee:i,approvalFee:a,bridgeFee:r}}async getFeePrivate(e){Pe(e,this.config);let t=BigInt(0),i=BigInt(0),a=BigInt(0);if(e.action==="FINALISE_WITHDRAWAL")t=await this.getFinaliseWithdrawFee();else {let s=await this.getDepositOrWithdrawFee(e);t=s.sourceChainFee,i=s.approvalFee,a=s.bridgeFee;}let r=t+i+a,o=BigInt("0");return {sourceChainGas:t,approvalFee:i,bridgeFee:a,imtblFee:o,totalFees:r}}async getUnsignedApproveBridgeTx(e){let t=await this.getUnsignedBridgeBundledTx({senderAddress:e.senderAddress,recipientAddress:e.senderAddress,token:e.token,amount:e.amount,sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,gasMultiplier:1.1});return {contractToApprove:t.contractToApprove,unsignedTx:t.unsignedApprovalTx}}async getBridgeMethods(e){let t;return v(e,this.config.bridgeInstance)?t=Q.deposit:t=Q.withdraw,t}async getBridgeContract(e){if(v(e,this.config.bridgeInstance)){let i=this.config.bridgeContracts.rootERC20BridgeFlowRate;return await I(i,M,this.config.rootProvider)}let t=this.config.bridgeContracts.childERC20Bridge;return await I(t,J,this.config.childProvider)}async getConfigAndBridgeTxCalldata(e,t,i,a,r){let o=await this.getBridgeMethods(r),s=await this.getBridgeContract(r);return Ge(e,t,i,a,o,s)}async getUnsignedBridgeTx(e){let t=await this.getUnsignedBridgeBundledTx({senderAddress:e.senderAddress,recipientAddress:e.senderAddress,token:e.token,amount:e.amount,sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,gasMultiplier:e.gasMultiplier});return {feeData:t.feeData,unsignedTx:t.unsignedBridgeTx}}async getUnsignedBridgeBundledTx(e){let[,,,t]=await Promise.all([this.initialise(),Oe(e,this.config),Ne(e.token,e.destinationChainId,e.recipientAddress,this.config),this.getUnsignedBridgeBundledTxPrivate(e)]);return t}async getUnsignedBridgeBundledTxPrivate(e){let t;if(Ce(e.sourceChainId,this.config.bridgeInstance)?t={sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,action:"DEPOSIT"}:t={sourceChainId:e.sourceChainId,destinationChainId:e.destinationChainId,action:"WITHDRAW"},v(t,this.config.bridgeInstance))return this.getUnsignedBridgeDepositBundledTxPrivate(t,e.senderAddress,e.recipientAddress,e.token,e.amount,e.gasMultiplier);if(D(t,this.config.bridgeInstance))return this.getUnsignedBridgeWithdrawBundledTxPrivate(t,e.senderAddress,e.recipientAddress,e.token,e.amount,e.gasMultiplier);throw new y("Invalid Bridge Bundled TX","INVALID_TRANSACTION")}async getUnsignedBridgeDepositBundledTxPrivate(e,t,i,a,r,o){let[s,d,p,u]=await Promise.all([this.getAllowance(e,a,t),this.config.rootProvider.getFeeData(),this.getDynamicDepositGas(this.config.bridgeInstance.rootChainID,t,i,a,r),this.getAxelarFee(this.config.bridgeInstance.rootChainID,this.config.bridgeInstance.childChainID,25e4,o)]),l,m,f=BigInt(0),g=BigInt(0),c=u,A=BigInt(0);if(a.toUpperCase()!==R&&s<r){l=a.startsWith("0x")?a:`0x${a}`;let F=await I(l,k,this.config.rootProvider);m={data:await E(async()=>F.interface.encodeFunctionData("approve",[this.config.bridgeContracts.rootERC20BridgeFlowRate,r]),"INTERNAL_ERROR"),to:l,value:0,from:t,chainId:parseInt(this.config.bridgeInstance.rootChainID,10)},g=w(d,p.approvalGas);}else l=null,m=null;let x=await this.getConfigAndBridgeTxCalldata(t,i,r,a,e),S=a.toUpperCase()===R?(r+c).toString():c.toString(),N={data:x,to:this.config.bridgeContracts.rootERC20BridgeFlowRate,value:S,from:t,chainId:parseInt(this.config.bridgeInstance.rootChainID,10)};f=w(d,p.sourceChainGas);let T=f+g+c+A;return {feeData:{sourceChainGas:f,approvalFee:g,bridgeFee:c,imtblFee:A,totalFees:T},contractToApprove:l,unsignedApprovalTx:m,unsignedBridgeTx:N,delayWithdrawalLargeAmount:null,delayWithdrawalUnknownToken:null,withdrawalQueueActivated:null,largeTransferThresholds:null}}async getUnsignedBridgeWithdrawBundledTxPrivate(e,t,i,a,r,o){let[s,d,p]=await Promise.all([this.getAllowance(e,a,t),this.config.childProvider.getFeeData(),await this.getDynamicWithdrawGasRootChain(e.destinationChainId,t,i,a,r)]),u=p.gas[0],l=await this.getAxelarFee(this.config.bridgeInstance.childChainID,this.config.bridgeInstance.rootChainID,u,o),m,f,g=BigInt(0),c=BigInt(0),A=l,x=BigInt(0);if(B(a,this.config.bridgeInstance.childChainID)&&s<r){m=a;let L=await I(a,k,this.config.childProvider);f={data:await E(async()=>L.interface.encodeFunctionData("approve",[this.config.bridgeContracts.childERC20Bridge,r]),"INTERNAL_ERROR"),to:a,value:0,from:t,chainId:parseInt(this.config.bridgeInstance.childChainID,10)},c=w(d,55e3);}else m=null,f=null;let S=await this.getConfigAndBridgeTxCalldata(t,i,r,a,e),N=a.toUpperCase()===R?(r+A).toString():A.toString(),T={data:S,to:this.config.bridgeContracts.rootERC20BridgeFlowRate,value:N,from:t,chainId:parseInt(this.config.bridgeInstance.rootChainID,10)};g=w(d,25e4);let F=g+c+A+x;return {feeData:{sourceChainGas:g,approvalFee:c,bridgeFee:A,imtblFee:x,totalFees:F},contractToApprove:m,unsignedApprovalTx:f,unsignedBridgeTx:T,delayWithdrawalLargeAmount:p.delayWithdrawalLargeAmount,delayWithdrawalUnknownToken:p.delayWithdrawalUnknownToken,withdrawalQueueActivated:p.withdrawalQueueActivated,largeTransferThresholds:p.largeTransferThresholds}}async getDynamicDepositGas(e,t,i,a,r){let o=[];if(a.toUpperCase()!==R){let m=await I(a,k,this.config.rootProvider),f=await E(async()=>m.interface.encodeFunctionData("approve",[this.config.bridgeContracts.rootERC20BridgeFlowRate,r]),"INTERNAL_ERROR");o.push({from:t,to:a,data:f});}let s={action:"DEPOSIT",sourceChainId:e,destinationChainId:this.config.bridgeInstance.childChainID},d=await this.getConfigAndBridgeTxCalldata(t,i,r,a,s),p=a.toUpperCase()!==R?"0x1":toQuantity(toBeHex(r+BigInt(1)));o.push({from:t,to:this.config.bridgeContracts.rootERC20BridgeFlowRate,data:d,value:p});let{gas:u}=await q(e,o),l={};return u.length===1?(l.approvalGas=0,[l.sourceChainGas]=u):[l.approvalGas,l.sourceChainGas]=u,l}async getDynamicWithdrawGasRootChain(e,t,i,a,r){let o=await ke(a,e,this.config.childProvider),s=We(o,t,i,r.toString()),d=Fe(s),p=Ee(e),u=getAddress(Ie(e)).toString(),l=Ae(e),m=keccak256(s),f=AbiCoder.defaultAbiCoder().encode(["bytes32","bytes32","string","string","address","bytes32"],[de,d,p,u,l,m]),g=keccak256(f),c=keccak256(concat([g,pe])),A=await I(l,ae,this.config.rootProvider),x=await E(async()=>A.interface.encodeFunctionData("execute",[d,p,u,s]),"INTERNAL_ERROR"),S=we(e),N=[{from:t,to:l,data:x}],T=this.config.bridgeContracts.rootERC20BridgeFlowRate,F=await I(T,M,this.config.rootProvider),L=await E(async()=>F.interface.encodeFunctionData("largeTransferThresholds",[o]),"INTERNAL_ERROR");return N.push({from:t,to:T,data:L}),await q(e,N,[{contractAddress:S,stateDiff:{storageSlot:c,value:Le}}])}async getAllowance(e,t,i){if(t.toUpperCase()===R||ve(t,e,this.config.bridgeInstance))return BigInt(0);let a,r;v(e,this.config.bridgeInstance)?(a=this.config.rootProvider,r=this.config.bridgeContracts.rootERC20BridgeFlowRate):(a=this.config.childProvider,r=this.config.bridgeContracts.childERC20Bridge);let o=await I(t,k,a);return await E(()=>o.allowance(i,r),"PROVIDER_ERROR")}async getAxelarFee(e,t,i,a="auto"){let r=K[e],o=K[t];if(!r)throw new y(`Source chainID ${e} can not be matched to an Axelar chain.`,"AXELAR_CHAIN_NOT_FOUND");if(!o)throw new y(`Destination chainID ${t} can not be matched to an Axelar chain.`,"AXELAR_CHAIN_NOT_FOUND");let s=Z(e),d={method:"estimateGasFee",sourceChain:r.id,destinationChain:o.id,symbol:r.symbol,gasLimit:i,gasMultiplier:a,minGasPrice:1e9},p;try{p=await axios.post(s,d);}catch(u){p=u.response;}if(p.data.error)throw new y(`Estimating Axelar Gas failed with the reason: ${p.data.message}`,"AXELAR_GAS_ESTIMATE_FAILED");try{return BigInt(`${p.data}`)}catch(u){throw new y(`Estimating Axelar Gas failed with the reason: ${u}`,"AXELAR_GAS_ESTIMATE_FAILED")}}async getTransactionStatus(e){let t={transactions:[]},i=await this.getAxelarStatus(e.transactions,e.sourceChainId),a=await this.getUniqueReceivers(i,e.sourceChainId),r=[];for(let s of a)r.push(this.getPendingWithdrawals({recipient:s}));let o=[];try{o=await Promise.all(r);}catch(s){throw new y(`Failed to fetch the pending withdrawals with: ${s}`,"FLOW_RATE_ERROR")}t.transactions=i;for(let s of t.transactions)s.status==="COMPLETE"&&(()=>{for(let d of o){let p=d.pending.findIndex(u=>u.amount.toString()===s.amount.toString()&&u.token===s.token&&u.withdrawer===s.sender&&u.recipient===s.recipient);if(p!==-1){s.status="FLOW_RATE_CONTROLLED",s.data={canWithdraw:d.pending[p].canWithdraw,timeoutStart:d.pending[p].timeoutStart,timeoutEnd:d.pending[p].timeoutEnd},d.pending.splice(p,1);return}}})();return t}async getUniqueReceivers(e,t){let i=[],a=[H,V,X].includes(t);for(let r=0,o=e.length;r<o;r++)e[r].status==="COMPLETE"&&a&&e[r].recipient&&i.findIndex(d=>d===e[r].recipient)===-1&&i.push(e[r].recipient);return i}async getAxelarStatus(e,t){let i=[],a=[],r=Z(t),o=["gas_unpaid","gas_paid_not_enough_gas"],s=new AbiCoder;for(let p of e)a.push(He(r,p.txHash));let d;try{d=await Promise.all(a);}catch(p){throw new y(`Failed to fetch the Axelar Status with the reason: ${p}`,"AXELAR_GAS_ESTIMATE_FAILED")}for(let p=0,u=d.length;p<u;p++){let l;switch(d[p].status){case"cannot_fetch_status":l="PENDING";break;case"source_gateway_called":case"destination_gateway_approved":case"executing":case"confirmed":case"approving":l="PROCESSING";break;case"not_executed":l="RETRY";break;case"not_executed_without_gas_paid":case"insufficient_fee":l="NOT_ENOUGH_GAS";break;case"destination_executed":l="COMPLETE";break;default:l="ERROR";}d[p].gasPaidInfo&&o.includes(d[p].gasPaidInfo.status)&&(l="NOT_ENOUGH_GAS");let m={txHash:e[p].txHash,status:l,data:{gmpResponse:d[p].status}},f;d[p]?.callTx?.returnValues?.payload&&(f=s.decode(["bytes32","address","address","address","uint256"],d[p].callTx.returnValues.payload),m={...m,token:f[1],sender:f[2],recipient:f[3],amount:f[4]}),i.push(m);}return i}async getFlowRateInfo(e){if(!e.tokens||e.tokens.length===0)throw new y(`invalid tokens array ${e.tokens}`,"INVALID_TOKEN");let t=this.config.bridgeContracts.rootERC20BridgeFlowRate,i=await I(t,M,this.config.rootProvider),a=[];a.push(i.withdrawalQueueActivated()),a.push(i.withdrawalDelay());for(let p of e.tokens)p.toUpperCase()===R&&(p=se),a.push(i.flowRateBuckets(p)),a.push(i.largeTransferThresholds(p));let r;try{r=await Promise.all(a);}catch{throw new y("unable to query contract for flowrate info","INTERNAL_ERROR")}let o={},s=r[0],d=Number(r[1]);r.splice(0,2);for(let p=0,u=e.tokens.length;p<u;p++){let l=p*2;o[e.tokens[p]]={capacity:r[l].capacity,depth:r[l].depth,refillTime:Number(r[l].refillTime),refillRate:r[l].refillRate,largeTransferThreshold:r[l+1]};}return {withdrawalQueueActivated:s,withdrawalDelay:d,tokens:o}}async getPendingWithdrawals(e){if(!e.recipient)throw new y(`invalid recipient ${e.recipient}`,"INVALID_RECIPIENT");let t=this.config.bridgeContracts.rootERC20BridgeFlowRate,i=await I(t,M,this.config.rootProvider),a=await i.getPendingWithdrawalsLength(e.recipient),r={pending:[]};if(Number(a)===0)return r;let o=[];for(let u=0;u<Number(a);u++)o.push(u);let s=await i.getPendingWithdrawals(e.recipient,o),d=Math.floor(Date.now()/1e3),p=await i.withdrawalDelay();for(let u=0,l=s.length;u<l;u++){let m=Number(s[u].timestamp+p);m>d?r.pending[u]={canWithdraw:!1}:r.pending[u]={canWithdraw:!0},r.pending[u].recipient=e.recipient,r.pending[u].withdrawer=s[u].withdrawer,r.pending[u].token=s[u].token,r.pending[u].amount=s[u].amount,r.pending[u].timeoutStart=Number(s[u].timestamp),r.pending[u].timeoutEnd=m;}return r}async getFlowRateWithdrawTx(e){if(!e.recipient)throw new y(`invalid recipient ${e.recipient}`,"INVALID_RECIPIENT");if(e.index<0)throw new y(`invalid index ${e.index}`,"INVALID_FLOWRATE_INDEX");let t=this.config.bridgeContracts.rootERC20BridgeFlowRate,i=await I(t,M,this.config.rootProvider),a=await i.getPendingWithdrawals(e.recipient,[e.index]);if(a[0].withdrawer===ZeroAddress||a[0].token===ZeroAddress||a[0].amount===BigInt(0)||a[0].timestamp===BigInt(0))throw new y(`pending withdrawal not found for ${e.recipient} at index ${e.index}`,"FLOW_RATE_ERROR");let r=await i.withdrawalDelay(),o=Number(a[0].timestamp+r),s=Math.floor(Date.now()/1e3);if(o>s)return {pendingWithdrawal:{canWithdraw:!1,withdrawer:a[0].withdrawer,recipient:e.recipient,token:a[0].token,amount:a[0].amount,timeoutStart:Number(a[0].timestamp),timeoutEnd:o},unsignedTx:null};let d=await E(async()=>i.interface.encodeFunctionData("finaliseQueuedWithdrawal",[e.recipient,e.index]),"INTERNAL_ERROR");return {pendingWithdrawal:{canWithdraw:!0,withdrawer:a[0].withdrawer,recipient:e.recipient,token:a[0].token,amount:a[0].amount,timeoutStart:Number(a[0].timestamp),timeoutEnd:o},unsignedTx:{data:d,to:this.config.bridgeContracts.rootERC20BridgeFlowRate,value:0,chainId:parseInt(this.config.bridgeInstance.rootChainID,10)}}}async getTokenMapping(e){if(e.rootToken.toUpperCase()===R||e.rootToken===this.config.bridgeContracts.rootChainWrappedETH){let r=this.config.bridgeContracts.childERC20Bridge,s=await(await I(r,J,this.config.childProvider)).childETHToken();return {rootToken:e.rootToken,childToken:s}}let t=this.config.bridgeContracts.rootERC20BridgeFlowRate,a=await(await I(t,M,this.config.rootProvider)).rootTokenToChildToken(e.rootToken);return a===ZeroAddress?{rootToken:e.rootToken,childToken:null}:a===e.rootToken?{rootToken:e.rootToken,childToken:R}:{rootToken:e.rootToken,childToken:a}}};var gt=[$,O],ft=[P],ht={[K$1.SANDBOX]:gt,[K$1.PRODUCTION]:ft},Ke=new Map().set($,{rootERC20BridgeFlowRate:"0x0",childERC20Bridge:"0x0",rootChainIMX:"0x0",rootChainWrappedETH:"0x0",childChainWrappedETH:"0x0",childChainWrappedIMX:"0x0"}).set(O,{rootERC20BridgeFlowRate:"0x0D3C59c779Fd552C27b23F723E80246c840100F5",childERC20Bridge:"0x0D3C59c779Fd552C27b23F723E80246c840100F5",rootChainIMX:"0xe2629e08f4125d14e446660028bD98ee60EE69F2",rootChainWrappedETH:"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",childChainWrappedETH:"0xe9E96d1aad82562b7588F03f49aD34186f996478",childChainWrappedIMX:"0x1CcCa691501174B4A623CeDA58cC8f1a76dc3439"}).set(P,{rootERC20BridgeFlowRate:"0xBa5E35E26Ae59c7aea6F029B68c6460De2d13eB6",childERC20Bridge:"0xBa5E35E26Ae59c7aea6F029B68c6460De2d13eB6",rootChainIMX:"0xF57e7e7C23978C3cAEC3C3548E3D615c346e79fF",rootChainWrappedETH:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",childChainWrappedETH:"0x52a6c53869ce09a731cd772f245b97a4401d3348",childChainWrappedIMX:"0x3a0c2ba54d6cbd3121f01b96dfd20e99d1696c9d"}),Qe=class{baseConfig;bridgeInstance;bridgeContracts;rootProvider;childProvider;constructor({bridgeInstance:e,rootProvider:t,childProvider:i,baseConfig:a,overrides:r}){if(this.baseConfig=a,this.bridgeInstance=e,this.rootProvider=t,this.childProvider=i,r){this.bridgeContracts=r.bridgeContracts;return}if(!ht[a.environment].includes(e))throw new Error(`Bridge instance with rootchain ${e.rootChainID} and childchain ${e.childChainID} is not supported in environment ${a.environment}`);if(!Ke.has(e))throw new Error(`Bridge instance with rootchain ${e.rootChainID} and childchain ${e.childChainID} is not supported in environment ${a.environment}`);let s=Ke.get(e);if(!s)throw new Error(`Bridge instance with rootchain ${e.rootChainID} and childchain ${e.childChainID} is not supported in environment ${a.environment}`);this.bridgeContracts=s;}};
9
9
 
@@ -1,16 +1,16 @@
1
- import { r as ro, A as Ao, o as oo, m as mo, n as no, f as fo, g as go, a as ao, E as Eo, i as io, R as Ro, l as lo, u as uo, s as so, C as Co, T as To, p as po, b as reactExports, V as ViewActions, c as parseUnits, d as formatZeroAmount, e as calculateCryptoToFiat, h as Contract, j as ie, k as useTranslation, q as dist, t as getRemoteRive, v as tt, w as jsx, x as jsxs, B as Box, H as Heading, L as Link, y as Button, S as Stack, z as SimpleLayout, D as Body, F as useAnalytics, G as EventTargetContext, I as CryptoFiatContext, J as tokenValueFormat, K as getDefaultTokenImage, U as UserJourney, M as HeaderNavigation, N as sendCloseWidgetEvent, O as orchestrationEvents$1, P as amountInputValidation, Q as useTheme, W as CloudImage, X as getRemoteImage, Y as CryptoFiatProvider, Z as ConnectLoaderContext, _ as isAddress, $ as isError, a0 as LoadingView, a1 as CryptoFiatActions, a2 as useViewState, a3 as useEventTargetState, a4 as commerceFlows, a5 as SharedViews, a6 as ErrorView, a7 as ConnectWidget, a8 as ProvidersContextProvider, a9 as PurchaseWidget, aa as ConnectLoader, ab as ViewContextProvider } from './index-BTKL8wRG.js';
2
- import { S as SelectInput, a as SwapWidget } from './SwapWidget-BDieDJgN.js';
3
- import { B as BridgeWidget } from './BridgeWidget-BmyB7kkc.js';
4
- import OnRampWidget from './OnRampWidget-B6fkShR5.js';
5
- import WalletWidget from './WalletWidget-gAXq6I8a.js';
6
- import SaleWidget from './SaleWidget-BKXfv2e4.js';
7
- import AddTokensWidget from './AddTokensWidget-BTw-MgKV.js';
8
- import { g as getAllowedBalances, T as TextInputForm } from './WalletApproveHero-DRQOdbT0.js';
9
- import './useInterval-tF-XfHTt.js';
10
- import './TopUpView-MEoVPj0U.js';
11
- import './FeesBreakdown-CL3s12kS.js';
12
- import './SpendingCapHero-BHMIS0M-.js';
13
- import './TokenImage-CEHZUMAi.js';
1
+ import { r as ro, A as Ao, o as oo, m as mo, n as no, f as fo, g as go, a as ao, E as Eo, i as io, R as Ro, l as lo, u as uo, s as so, C as Co, T as To, p as po, b as reactExports, V as ViewActions, c as parseUnits, d as formatZeroAmount, e as calculateCryptoToFiat, h as Contract, j as ie, k as useTranslation, q as dist, t as getRemoteRive, v as tt, w as jsx, x as jsxs, B as Box, H as Heading, L as Link, y as Button, S as Stack, z as SimpleLayout, D as Body, F as useAnalytics, G as EventTargetContext, I as CryptoFiatContext, J as tokenValueFormat, K as getDefaultTokenImage, U as UserJourney, M as HeaderNavigation, N as sendCloseWidgetEvent, O as orchestrationEvents$1, P as amountInputValidation, Q as useTheme, W as CloudImage, X as getRemoteImage, Y as CryptoFiatProvider, Z as ConnectLoaderContext, _ as isAddress, $ as isError, a0 as LoadingView, a1 as CryptoFiatActions, a2 as useViewState, a3 as useEventTargetState, a4 as commerceFlows, a5 as SharedViews, a6 as ErrorView, a7 as ConnectWidget, a8 as ProvidersContextProvider, a9 as PurchaseWidget, aa as ConnectLoader, ab as ViewContextProvider } from './index-CepXwf2Y.js';
2
+ import { S as SelectInput, a as SwapWidget } from './SwapWidget-BJOj5FR7.js';
3
+ import { B as BridgeWidget } from './BridgeWidget-1dufZuyI.js';
4
+ import OnRampWidget from './OnRampWidget-CSjMTokD.js';
5
+ import WalletWidget from './WalletWidget-Ksbzq25A.js';
6
+ import SaleWidget from './SaleWidget-Cnp-M1OT.js';
7
+ import AddTokensWidget from './AddTokensWidget-IIhpFq9J.js';
8
+ import { g as getAllowedBalances, T as TextInputForm } from './WalletApproveHero-DNt7anUb.js';
9
+ import './useInterval-CjQ-8Lvj.js';
10
+ import './TopUpView-CTXr7nLI.js';
11
+ import './FeesBreakdown-BXo8kyzl.js';
12
+ import './SpendingCapHero-CAA9_jvv.js';
13
+ import './TokenImage-D_Wr02lv.js';
14
14
 
15
15
  const sendCheckoutEvent = (eventTarget, detail) => {
16
16
  const event = new CustomEvent(ro.IMTBL_COMMERCE_WIDGET_EVENT, { detail });
@@ -1,4 +1,4 @@
1
- import { cv as axios, dG as q, x as jsxs, w as jsx, D as Body, bF as PriceDisplay, B as Box, k as useTranslation, aA as Drawer, aP as MenuItem, aF as Fragment, aB as Divider, J as tokenValueFormat, d as formatZeroAmount, c5 as FooterLogo } from './index-BTKL8wRG.js';
1
+ import { cv as axios, dG as q, x as jsxs, w as jsx, D as Body, bF as PriceDisplay, B as Box, k as useTranslation, aA as Drawer, aP as MenuItem, aF as Fragment, aB as Divider, J as tokenValueFormat, d as formatZeroAmount, c5 as FooterLogo } from './index-CepXwf2Y.js';
2
2
 
3
3
  const fetchRiskAssessmentV2 = async (assessmentData, config) => {
4
4
  const result = Object.fromEntries(assessmentData.map((data) => [data.address.toLowerCase(), { sanctioned: false }]));
@@ -1,6 +1,6 @@
1
- import { b as reactExports, Z as ConnectLoaderContext, G as EventTargetContext, k as useTranslation, aU as ViewContext, a5 as SharedViews, F as useAnalytics, U as UserJourney, V as ViewActions, w as jsx, z as SimpleLayout, M as HeaderNavigation, d8 as sendOnRampWidgetCloseEvent, O as orchestrationEvents, r as ro, B as Box, aK as isPassportProvider, d9 as url, da as TRANSAK_ORIGIN, db as jt, c5 as FooterLogo, x as jsxs, d1 as SimpleTextBody, bH as viewReducer, bI as initialViewState, cR as NATIVE, a0 as LoadingView, dc as sendOnRampSuccessEvent, c6 as StatusType, d7 as StatusView, dd as sendOnRampFailedEvent, bQ as ServiceUnavailableErrorView } from './index-BTKL8wRG.js';
2
- import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-MEoVPj0U.js';
3
- import { S as SpendingCapHero } from './SpendingCapHero-BHMIS0M-.js';
1
+ import { b as reactExports, Z as ConnectLoaderContext, G as EventTargetContext, k as useTranslation, aU as ViewContext, a5 as SharedViews, F as useAnalytics, U as UserJourney, V as ViewActions, w as jsx, z as SimpleLayout, M as HeaderNavigation, d8 as sendOnRampWidgetCloseEvent, O as orchestrationEvents, r as ro, B as Box, aK as isPassportProvider, d9 as url, da as TRANSAK_ORIGIN, db as jt, c5 as FooterLogo, x as jsxs, d1 as SimpleTextBody, bH as viewReducer, bI as initialViewState, cR as NATIVE, a0 as LoadingView, dc as sendOnRampSuccessEvent, c6 as StatusType, d7 as StatusView, dd as sendOnRampFailedEvent, bQ as ServiceUnavailableErrorView } from './index-CepXwf2Y.js';
2
+ import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-CTXr7nLI.js';
3
+ import { S as SpendingCapHero } from './SpendingCapHero-CAA9_jvv.js';
4
4
 
5
5
  const containerStyle = (showIframe) => ({
6
6
  position: 'relative',
@@ -1,13 +1,13 @@
1
- import { bM as K, h as Contract, b as reactExports, bR as errorToString, bS as hexToText, bT as compareStr, aU as ViewContext, V as ViewActions, bU as mn, w as jsx, bV as co, k as useTranslation, bW as TransakIframe, e as calculateCryptoToFiat, F as useAnalytics, G as EventTargetContext, bX as toPascalCase, bY as sendSaleWidgetCloseEvent, bZ as toStringifyTransactions, b_ as sendSaleSuccessEvent, b$ as sendSaleFailedEvent, c0 as sendSaleTransactionSuccessEvent, c1 as sendSalePaymentMethodEvent, c2 as sendSalePaymentTokenEvent, U as UserJourney, M as HeaderNavigation, x as jsxs, c3 as LoadingOverlay, B as Box, aF as Fragment, z as SimpleLayout, aV as useHandover, aW as HandoverTarget, t as getRemoteRive, H as Heading, c4 as HandoverDuration, aK as isPassportProvider, aZ as HandoverContent, aP as MenuItem, bj as motion, bi as listVariants, bk as listItemVariants, a5 as SharedViews, c5 as FooterLogo, c6 as StatusType, c7 as prettyFormatNumber, J as tokenValueFormat, c8 as ShimmerCircle, y as Button, S as Stack, c9 as Te, ca as abbreviateWalletAddress, cb as formatUnits, aA as Drawer, cc as Caption, aB as Divider, cd as tokenSymbolNameOverrides, ce as Re, cf as Ce, cg as M, ch as ct, a$ as isNativeToken, b0 as getTokenImageByAddress, ci as isGasFree, I as CryptoFiatContext, Z as ConnectLoaderContext, cj as eventTargetReducer, ck as initialEventTargetState, r as ro, cl as EventTargetActions, a0 as LoadingView, aQ as J, cm as ConnectWidgetViews, a7 as ConnectWidget, u as uo, i as io, l as lo, n as no, cn as ConnectLoaderActions, c as parseUnits, a1 as CryptoFiatActions, b3 as ButtCon, D as Body, co as widgetTheme, bH as viewReducer, bI as initialViewState, v as tt, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider } from './index-BTKL8wRG.js';
2
- import { u as useMount, T as TopUpView } from './TopUpView-MEoVPj0U.js';
3
- import { T as TokenImage } from './TokenImage-CEHZUMAi.js';
4
- import { F as Fees, B as BridgeWidget } from './BridgeWidget-BmyB7kkc.js';
5
- import OnRampWidget from './OnRampWidget-B6fkShR5.js';
6
- import { a as SwapWidget } from './SwapWidget-BDieDJgN.js';
7
- import { f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-CL3s12kS.js';
8
- import './WalletApproveHero-DRQOdbT0.js';
9
- import './useInterval-tF-XfHTt.js';
10
- import './SpendingCapHero-BHMIS0M-.js';
1
+ import { bM as K, h as Contract, b as reactExports, bR as errorToString, bS as hexToText, bT as compareStr, aU as ViewContext, V as ViewActions, bU as mn, w as jsx, bV as co, k as useTranslation, bW as TransakIframe, e as calculateCryptoToFiat, F as useAnalytics, G as EventTargetContext, bX as toPascalCase, bY as sendSaleWidgetCloseEvent, bZ as toStringifyTransactions, b_ as sendSaleSuccessEvent, b$ as sendSaleFailedEvent, c0 as sendSaleTransactionSuccessEvent, c1 as sendSalePaymentMethodEvent, c2 as sendSalePaymentTokenEvent, U as UserJourney, M as HeaderNavigation, x as jsxs, c3 as LoadingOverlay, B as Box, aF as Fragment, z as SimpleLayout, aV as useHandover, aW as HandoverTarget, t as getRemoteRive, H as Heading, c4 as HandoverDuration, aK as isPassportProvider, aZ as HandoverContent, aP as MenuItem, bj as motion, bi as listVariants, bk as listItemVariants, a5 as SharedViews, c5 as FooterLogo, c6 as StatusType, c7 as prettyFormatNumber, J as tokenValueFormat, c8 as ShimmerCircle, y as Button, S as Stack, c9 as Te, ca as abbreviateWalletAddress, cb as formatUnits, aA as Drawer, cc as Caption, aB as Divider, cd as tokenSymbolNameOverrides, ce as Re, cf as Ce, cg as M, ch as ct, a$ as isNativeToken, b0 as getTokenImageByAddress, ci as isGasFree, I as CryptoFiatContext, Z as ConnectLoaderContext, cj as eventTargetReducer, ck as initialEventTargetState, r as ro, cl as EventTargetActions, a0 as LoadingView, aQ as J, cm as ConnectWidgetViews, a7 as ConnectWidget, u as uo, i as io, l as lo, n as no, cn as ConnectLoaderActions, c as parseUnits, a1 as CryptoFiatActions, b3 as ButtCon, D as Body, co as widgetTheme, bH as viewReducer, bI as initialViewState, v as tt, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider } from './index-CepXwf2Y.js';
2
+ import { u as useMount, T as TopUpView } from './TopUpView-CTXr7nLI.js';
3
+ import { T as TokenImage } from './TokenImage-D_Wr02lv.js';
4
+ import { F as Fees, B as BridgeWidget } from './BridgeWidget-1dufZuyI.js';
5
+ import OnRampWidget from './OnRampWidget-CSjMTokD.js';
6
+ import { a as SwapWidget } from './SwapWidget-BJOj5FR7.js';
7
+ import { f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-BXo8kyzl.js';
8
+ import './WalletApproveHero-DNt7anUb.js';
9
+ import './useInterval-CjQ-8Lvj.js';
10
+ import './SpendingCapHero-CAA9_jvv.js';
11
11
 
12
12
  var SaleWidgetViews;
13
13
  (function (SaleWidgetViews) {
@@ -1,4 +1,4 @@
1
- import { w as jsx, c$ as heroBackGroundStyles, B as Box, d0 as heroImageStyles, dF as heroImageBottomAlign, x as jsxs } from './index-BTKL8wRG.js';
1
+ import { w as jsx, c$ as heroBackGroundStyles, B as Box, d0 as heroImageStyles, dF as heroImageBottomAlign, x as jsxs } from './index-CepXwf2Y.js';
2
2
 
3
3
  function SpendingCapHero() {
4
4
  return (jsx(Box, { sx: { ...heroBackGroundStyles, background: 'base.color.translucent.emphasis.100' }, children: jsx(Box, { sx: { ...heroImageStyles, ...heroImageBottomAlign }, children: jsxs("svg", { width: "430", height: "305", viewBox: "0 0 430 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M94.0614 105.632L93.6321 104L92 104.429L92.4292 106.061L94.0614 105.632Z", fill: "white" }), jsx("path", { d: "M63.6531 193.101L63.1006 191L60.9996 191.553L61.5521 193.654L63.6531 193.101Z", fill: "white" }), jsx("path", { d: "M344.489 224.345L342.345 224L342 226.145L344.144 226.49L344.489 224.345Z", fill: "white" }), jsx("path", { d: "M372.286 139.905L372.905 138.619L371.619 138L371 139.286L372.286 139.905Z", fill: "white" }), jsx("path", { d: "M341.653 78.101L341.101 76L339 76.5525L339.552 78.6535L341.653 78.101Z", fill: "white" }), jsx("path", { d: "M359.286 242.905L359.905 241.619L358.619 241L358 242.286L359.286 242.905Z", fill: "white" }), jsx("path", { d: "M87.0123 112.087L86.0869 111L85.0002 111.925L85.9256 113.012L87.0123 112.087Z", fill: "white" }), jsx("path", { d: "M84.2862 248.905L84.9053 247.619L83.6192 247L83.0001 248.286L84.2862 248.905Z", fill: "white" }), jsx("path", { d: "M215.496 262.992C268.237 262.992 310.993 220.237 310.993 167.496C310.993 114.755 268.237 72 215.496 72C162.755 72 120 114.755 120 167.496C120 220.237 162.755 262.992 215.496 262.992Z", fill: "white", fillOpacity: "0.24", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M159.82 95.1695C179.975 79.6536 204.651 73.1506 227.89 77.0665C261.089 82.6606 253.281 101.028 199.197 121.314C151.934 139.037 123.49 136.348 143.823 110.95C148.422 105.208 153.721 99.8623 159.82 95.1695Z", fill: "white", fillOpacity: "0.08" }), jsx("path", { d: "M215.497 227.183C171.451 227.183 135.159 219.871 130.194 210.462H130.187C145.912 241.626 178.21 263.001 215.497 263.001C252.705 263.001 284.942 241.719 300.706 210.664C295.33 219.98 259.232 227.183 215.505 227.183H215.497Z", fill: "#36E0F8", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M284.219 219.607L283.978 219.84C281.275 222.482 256.583 215.986 253.172 218.418C222.389 240.36 182.779 269.061 146.099 219.397C146.099 219.397 140.761 217.641 138.609 216.686C139.425 217.96 140.279 219.226 141.165 220.469C170.425 261.516 227.423 271.073 268.47 241.813C276.97 235.752 284.118 228.503 289.852 220.454L292.424 216.841L288.252 218.302C287.086 218.713 285.851 219.11 284.553 219.498L284.227 219.599L284.219 219.607Z", fill: "black" }), jsx("path", { d: "M215.496 241.4C262.183 241.4 300.03 226.557 300.03 208.248C300.03 189.938 262.183 175.095 215.496 175.095C168.81 175.095 130.963 189.938 130.963 208.248C130.963 226.557 168.81 241.4 215.496 241.4Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.659C300.705 210.659 300.705 210.65 300.705 210.641C300.705 210.641 300.705 210.65 300.705 210.659Z", fill: "#EBE9E9", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.952 204.511 221.377 199.638 221.377 193.626C221.377 187.614 208.952 182.741 193.624 182.741C178.297 182.741 165.871 187.614 165.871 193.626C165.871 199.638 178.297 204.511 193.624 204.511Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 204.41C199.49 204.294 201.573 204.084 203.546 203.789V211.512C201.573 211.807 199.49 212.017 197.33 212.133V204.41Z", fill: "#D0F500" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901V206.624C215.255 208.497 211.246 210.027 206.398 211.014V203.291Z", fill: "black" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 211.015C211.246 210.028 215.255 208.497 217.905 206.625", stroke: "#A66CFF", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.952 196.788 221.377 191.914 221.377 185.903C221.377 179.891 208.952 175.017 193.624 175.017C178.297 175.017 165.871 179.891 165.871 185.903C165.871 191.914 178.297 196.788 193.624 196.788Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 196.687C199.49 196.57 201.573 196.361 203.546 196.065V203.788C201.573 204.084 199.49 204.293 197.33 204.41V196.687Z", fill: "#36E0F8" }), jsx("path", { d: "M206.398 195.568C211.246 194.581 215.255 193.051 217.905 191.178V198.901C215.255 200.774 211.246 202.304 206.398 203.291V195.568Z", fill: "black" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.952 189.065 221.377 184.192 221.377 178.18C221.377 172.168 208.952 167.294 193.624 167.294C178.297 167.294 165.871 172.168 165.871 178.18C165.871 184.192 178.297 189.065 193.624 189.065Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 188.965C199.49 188.849 201.573 188.639 203.546 188.343V196.067C201.573 196.362 199.49 196.571 197.33 196.688V188.965Z", fill: "#F191FA" }), jsx("path", { d: "M206.398 187.845C211.246 186.858 215.255 185.327 217.905 183.455V191.178C215.255 193.05 211.246 194.581 206.398 195.568V187.845Z", fill: "black" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 195.569C211.246 194.582 215.255 193.052 217.905 191.179", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.934C253.929 212.934 266.354 208.06 266.354 202.049C266.354 196.037 253.929 191.164 238.601 191.164C223.274 191.164 210.848 196.037 210.848 202.049C210.848 208.06 223.274 212.934 238.601 212.934Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 212.833C244.467 212.717 246.55 212.507 248.523 212.212V219.935C246.55 220.23 244.467 220.44 242.307 220.556V212.833Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 211.713C256.223 210.727 260.232 209.196 262.882 207.324V215.047C260.232 216.919 256.223 218.45 251.375 219.436V211.713Z", fill: "black" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 219.437C256.223 218.45 260.232 216.919 262.882 215.047", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.929 205.21 266.354 200.336 266.354 194.324C266.354 188.313 253.929 183.439 238.601 183.439C223.274 183.439 210.848 188.313 210.848 194.324C210.848 200.336 223.274 205.21 238.601 205.21Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 205.109C244.467 204.993 246.55 204.783 248.523 204.488V212.211C246.55 212.506 244.467 212.716 242.307 212.832V205.109Z", fill: "#36E0F8" }), jsx("path", { d: "M251.375 203.989C256.223 203.003 260.232 201.472 262.882 199.6V207.323C260.232 209.195 256.223 210.726 251.375 211.712V203.989Z", fill: "black" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 211.713C256.223 210.726 260.232 209.195 262.882 207.323", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.929 197.487 266.354 192.613 266.354 186.602C266.354 180.59 253.929 175.716 238.601 175.716C223.274 175.716 210.848 180.59 210.848 186.602C210.848 192.613 223.274 197.487 238.601 197.487Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 197.386C244.467 197.27 246.55 197.06 248.523 196.765V204.488C246.55 204.783 244.467 204.992 242.307 205.109V197.386Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 196.267C256.223 195.28 260.232 193.75 262.882 191.877V199.6C260.232 201.473 256.223 203.003 251.375 203.99V196.267Z", fill: "#9AEFFB" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 203.99C256.223 203.004 260.232 201.473 262.882 199.601", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.979 189.678 260.405 184.804 260.405 178.793C260.405 172.781 247.979 167.908 232.652 167.908C217.324 167.908 204.899 172.781 204.899 178.793C204.899 184.804 217.324 189.678 232.652 189.678Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M236.358 189.578C238.518 189.461 240.6 189.251 242.574 188.956V196.679C240.6 196.974 238.518 197.184 236.358 197.301V189.578Z", fill: "#F191FA" }), jsx("path", { d: "M245.426 188.458C250.274 187.471 254.283 185.94 256.932 184.067V191.791C254.283 193.663 250.274 195.194 245.426 196.18V188.458Z", fill: "black" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M245.426 196.182C250.274 195.195 254.283 193.664 256.932 191.792", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.317 180.021 268.743 175.148 268.743 169.136C268.743 163.124 256.317 158.25 240.99 158.25C225.662 158.25 213.237 163.124 213.237 169.136C213.237 175.148 225.662 180.021 240.99 180.021Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M244.696 179.92C246.856 179.804 248.938 179.594 250.911 179.299V187.022C248.938 187.317 246.856 187.527 244.696 187.643V179.92Z", fill: "#9AEFFB" }), jsx("path", { d: "M253.763 178.801C258.612 177.815 262.621 176.284 265.27 174.412V182.135C262.621 184.007 258.612 185.538 253.763 186.524V178.801Z", fill: "black" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M253.763 186.525C258.612 185.538 262.621 184.007 265.27 182.135", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.238 223.803 217.664 218.929 217.664 212.918C217.664 206.906 205.238 202.032 189.911 202.032C174.583 202.032 162.158 206.906 162.158 212.918C162.158 218.929 174.583 223.803 189.911 223.803Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.625 223.71C195.785 223.593 197.867 223.384 199.84 223.088V230.811C197.867 231.107 195.785 231.316 193.625 231.433V223.71Z", fill: "#F191FA" }), jsx("path", { d: "M202.685 222.583C207.533 221.596 211.542 220.066 214.191 218.193V225.916C211.542 227.789 207.533 229.319 202.685 230.306V222.583Z", fill: "#9AEFFB" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M202.685 230.306C207.533 229.32 211.542 227.789 214.191 225.917", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.658C300.705 210.658 300.705 210.649 300.705 210.641C300.705 210.641 300.705 210.649 300.705 210.658Z", fill: "#A66CFF", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" })] }) }) }));
@@ -1,9 +1,9 @@
1
- import { k as useTranslation, x as jsxs, de as quickswapFooterStyles, B as Box, df as quickswapFooterLogoStyles, w as jsx, D as Body, dg as quickswapFooterDisclaimerTextStyles, dh as wo, X as getRemoteImage, b as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cE as Logo, di as getImxTokenImage, cb as formatUnits, e as calculateCryptoToFiat, J as tokenValueFormat, ci as isGasFree, c as parseUnits, d as formatZeroAmount, cz as ShimmerBox, bF as PriceDisplay, aF as Fragment, dj as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cR as NATIVE, aU as ViewContext, F as useAnalytics, dk as calculateFeesFiat, U as UserJourney, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dl as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bM as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dm as ESTIMATE_DEBOUNCE, dn as DEFAULT_TOKEN_VALIDATION_DECIMALS, cZ as DEFAULT_TOKEN_DECIMALS, G as EventTargetContext, a0 as LoadingView, z as SimpleLayout, dp as sendSwapWidgetCloseEvent, O as orchestrationEvents, r as ro, M as HeaderNavigation, cY as IMX_TOKEN_SYMBOL, cy as S, d1 as SimpleTextBody, d2 as FooterButton, dq as m, c$ as heroBackGroundStyles, d0 as heroImageStyles, bz as Trans, L as Link, aV as useHandover, bH as viewReducer, bI as initialViewState, dr as DEFAULT_BALANCE_RETRY_POLICY, ds as yo, d7 as StatusView, dt as sendSwapSuccessEvent, c6 as StatusType, du as sendSwapFailedEvent, dv as sendSwapRejectedEvent, a6 as ErrorView, bQ as ServiceUnavailableErrorView, j as ie, cP as fe } from './index-BTKL8wRG.js';
2
- import { S as SelectForm, T as TextInputForm, A as Accordion, b as gasAmountAccordionStyles, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-DRQOdbT0.js';
3
- import { u as useInterval } from './useInterval-tF-XfHTt.js';
4
- import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-MEoVPj0U.js';
5
- import { F as FeesBreakdown, f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-CL3s12kS.js';
6
- import { S as SpendingCapHero } from './SpendingCapHero-BHMIS0M-.js';
1
+ import { k as useTranslation, x as jsxs, de as quickswapFooterStyles, B as Box, df as quickswapFooterLogoStyles, w as jsx, D as Body, dg as quickswapFooterDisclaimerTextStyles, dh as wo, X as getRemoteImage, b as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cE as Logo, di as getImxTokenImage, cb as formatUnits, e as calculateCryptoToFiat, J as tokenValueFormat, ci as isGasFree, c as parseUnits, d as formatZeroAmount, cz as ShimmerBox, bF as PriceDisplay, aF as Fragment, dj as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cR as NATIVE, aU as ViewContext, F as useAnalytics, dk as calculateFeesFiat, U as UserJourney, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dl as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bM as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dm as ESTIMATE_DEBOUNCE, dn as DEFAULT_TOKEN_VALIDATION_DECIMALS, cZ as DEFAULT_TOKEN_DECIMALS, G as EventTargetContext, a0 as LoadingView, z as SimpleLayout, dp as sendSwapWidgetCloseEvent, O as orchestrationEvents, r as ro, M as HeaderNavigation, cY as IMX_TOKEN_SYMBOL, cy as S, d1 as SimpleTextBody, d2 as FooterButton, dq as m, c$ as heroBackGroundStyles, d0 as heroImageStyles, bz as Trans, L as Link, aV as useHandover, bH as viewReducer, bI as initialViewState, dr as DEFAULT_BALANCE_RETRY_POLICY, ds as yo, d7 as StatusView, dt as sendSwapSuccessEvent, c6 as StatusType, du as sendSwapFailedEvent, dv as sendSwapRejectedEvent, a6 as ErrorView, bQ as ServiceUnavailableErrorView, j as ie, cP as fe } from './index-CepXwf2Y.js';
2
+ import { S as SelectForm, T as TextInputForm, A as Accordion, b as gasAmountAccordionStyles, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-DNt7anUb.js';
3
+ import { u as useInterval } from './useInterval-CjQ-8Lvj.js';
4
+ import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-CTXr7nLI.js';
5
+ import { F as FeesBreakdown, f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-BXo8kyzl.js';
6
+ import { S as SpendingCapHero } from './SpendingCapHero-CAA9_jvv.js';
7
7
 
8
8
  function QuickswapFooter({ theme, environment }) {
9
9
  const { t } = useTranslation();
@@ -1,4 +1,4 @@
1
- import { b as reactExports, K as getDefaultTokenImage, w as jsx } from './index-BTKL8wRG.js';
1
+ import { b as reactExports, K as getDefaultTokenImage, w as jsx } from './index-CepXwf2Y.js';
2
2
 
3
3
  function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
4
4
  const [error, setError] = reactExports.useState(false);
@@ -1,4 +1,4 @@
1
- import { b as reactExports, cb as formatUnits, w as jsx, x as jsxs, dH as isDualVariantIcon, aP as MenuItem, B as Box, k as useTranslation, aU as ViewContext, I as CryptoFiatContext, G as EventTargetContext, F as useAnalytics, a1 as CryptoFiatActions, dI as DEFAULT_TOKEN_SYMBOLS, cT as st, M as HeaderNavigation, H as Heading, D as Body, z as SimpleLayout, r as ro, V as ViewActions, O as orchestrationEvents, bM as K } from './index-BTKL8wRG.js';
1
+ import { b as reactExports, cb as formatUnits, w as jsx, x as jsxs, dH as isDualVariantIcon, aP as MenuItem, B as Box, k as useTranslation, aU as ViewContext, I as CryptoFiatContext, G as EventTargetContext, F as useAnalytics, a1 as CryptoFiatActions, dI as DEFAULT_TOKEN_SYMBOLS, cT as st, M as HeaderNavigation, H as Heading, D as Body, z as SimpleLayout, r as ro, V as ViewActions, O as orchestrationEvents, bM as K } from './index-CepXwf2Y.js';
2
2
 
3
3
  var BridgeWidgetViews;
4
4
  (function (BridgeWidgetViews) {
@@ -1,5 +1,5 @@
1
- import { ac as hFlex, w as jsx, dw as motion, ae as _objectWithoutProperties, Q as useTheme, b as reactExports, ag as _slicedToArray, aq as useGetSubcomponentChild, al as merge, x as jsxs, dx as BaseClickable, b3 as ButtCon, au as SmartClone, dy as AnimatePresence, B as Box, S as Stack, dz as ClassNames, ad as _defineProperty, dA as getTertiaryButtonStyles, ar as flattenChildren, dB as isChildSubcomponent, aB as Divider, b4 as TextInput, dC as FormControlWrapper, k as useTranslation, aP as MenuItem, aA as Drawer, D as Body, aF as Fragment, F as useAnalytics, dD as Select, bM as K, dE as DuoCon, H as Heading, y as Button, cJ as retry, cR as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dr as DEFAULT_BALANCE_RETRY_POLICY, cO as isMetaMaskProvider, W as CloudImage, c5 as FooterLogo, X as getRemoteImage, cM as getChainNameById, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign } from './index-BTKL8wRG.js';
2
- import { T as TokenImage } from './TokenImage-CEHZUMAi.js';
1
+ import { ac as hFlex, w as jsx, dw as motion, ae as _objectWithoutProperties, Q as useTheme, b as reactExports, ag as _slicedToArray, aq as useGetSubcomponentChild, al as merge, x as jsxs, dx as BaseClickable, b3 as ButtCon, au as SmartClone, dy as AnimatePresence, B as Box, S as Stack, dz as ClassNames, ad as _defineProperty, dA as getTertiaryButtonStyles, ar as flattenChildren, dB as isChildSubcomponent, aB as Divider, b4 as TextInput, dC as FormControlWrapper, k as useTranslation, aP as MenuItem, aA as Drawer, D as Body, aF as Fragment, F as useAnalytics, dD as Select, bM as K, dE as DuoCon, H as Heading, y as Button, cJ as retry, cR as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dr as DEFAULT_BALANCE_RETRY_POLICY, cO as isMetaMaskProvider, W as CloudImage, c5 as FooterLogo, X as getRemoteImage, cM as getChainNameById, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign } from './index-CepXwf2Y.js';
2
+ import { T as TokenImage } from './TokenImage-D_Wr02lv.js';
3
3
 
4
4
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1,6 +1,6 @@
1
- import { ae as _objectWithoutProperties, Q as useTheme, dJ as getStartingSize, dK as DEFAULT_BUTTON_SIZE, al as merge, b as reactExports, ar as flattenChildren, w as jsx, dB as isChildSubcomponent, au as SmartClone, B as Box, dL as getResponsiveSx, dM as BUTTON_SIZES, dN as setDefaultSxBackgroundColor, b3 as ButtCon, dz as ClassNames, y as Button, ad as _defineProperty, j as ie, k as useTranslation, aU as ViewContext, x as jsxs, D as Body, V as ViewActions, Z as ConnectLoaderContext, F as useAnalytics, G as EventTargetContext, bM as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, r as ro, d as formatZeroAmount, aK as isPassportProvider, dO as ZERO_BALANCE_STRING, a$ as isNativeToken, dP as sendNetworkSwitchEvent, cy as S, a5 as SharedViews, dQ as ge, dR as sortNetworksCompareFn, cB as getChainImage, cJ as retry, dr as DEFAULT_BALANCE_RETRY_POLICY, dS as sortTokensByAmount, b0 as getTokenImageByAddress, e as calculateCryptoToFiat, I as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cQ as ButtonNavigationStyles, dT as sendWalletWidgetCloseEvent, c5 as FooterLogo, z as SimpleLayout, cP as fe, cN as getWalletProviderNameByProvider, dH as isDualVariantIcon, ca as abbreviateWalletAddress, H as Heading, aA as Drawer, cD as useWalletConnect, dU as sendDisconnectWalletEvent, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign, d1 as SimpleTextBody, dV as FAQS_LINK, L as Link, bH as viewReducer, bI as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-BTKL8wRG.js';
2
- import { T as TokenImage } from './TokenImage-CEHZUMAi.js';
3
- import { u as useInterval } from './useInterval-tF-XfHTt.js';
1
+ import { ae as _objectWithoutProperties, Q as useTheme, dJ as getStartingSize, dK as DEFAULT_BUTTON_SIZE, al as merge, b as reactExports, ar as flattenChildren, w as jsx, dB as isChildSubcomponent, au as SmartClone, B as Box, dL as getResponsiveSx, dM as BUTTON_SIZES, dN as setDefaultSxBackgroundColor, b3 as ButtCon, dz as ClassNames, y as Button, ad as _defineProperty, j as ie, k as useTranslation, aU as ViewContext, x as jsxs, D as Body, V as ViewActions, Z as ConnectLoaderContext, F as useAnalytics, G as EventTargetContext, bM as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, r as ro, d as formatZeroAmount, aK as isPassportProvider, dO as ZERO_BALANCE_STRING, a$ as isNativeToken, dP as sendNetworkSwitchEvent, cy as S, a5 as SharedViews, dQ as ge, dR as sortNetworksCompareFn, cB as getChainImage, cJ as retry, dr as DEFAULT_BALANCE_RETRY_POLICY, dS as sortTokensByAmount, b0 as getTokenImageByAddress, e as calculateCryptoToFiat, I as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cQ as ButtonNavigationStyles, dT as sendWalletWidgetCloseEvent, c5 as FooterLogo, z as SimpleLayout, cP as fe, cN as getWalletProviderNameByProvider, dH as isDualVariantIcon, ca as abbreviateWalletAddress, H as Heading, aA as Drawer, cD as useWalletConnect, dU as sendDisconnectWalletEvent, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign, d1 as SimpleTextBody, dV as FAQS_LINK, L as Link, bH as viewReducer, bI as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-CepXwf2Y.js';
2
+ import { T as TokenImage } from './TokenImage-D_Wr02lv.js';
3
+ import { u as useInterval } from './useInterval-CjQ-8Lvj.js';
4
4
 
5
5
  var horizontalMenuSxProps = {
6
6
  justifyContent: "stretch",
@@ -1,4 +1,4 @@
1
- import { ep as pTimeout } from './index-BTKL8wRG.js';
1
+ import { ep as pTimeout } from './index-CepXwf2Y.js';
2
2
 
3
3
  // Check if a user is opening the link in a new tab
4
4
  function userNewTab(event) {
@@ -1,4 +1,4 @@
1
- import { eq as gracefulDecodeURIComponent, ei as isPlainObject } from './index-BTKL8wRG.js';
1
+ import { eq as gracefulDecodeURIComponent, ei as isPlainObject } from './index-CepXwf2Y.js';
2
2
 
3
3
  /**
4
4
  * Returns an object containing only the properties prefixed by the input
@@ -1,4 +1,4 @@
1
- import { dX as se$1, dY as T$2, dZ as oe$1, d_ as R$1, d$ as a$2, e0 as te$1, e1 as p$1, e2 as ne$1, e3 as y$1 } from './index-BTKL8wRG.js';
1
+ import { dX as se$1, dY as T$2, dZ as oe$1, d_ as R$1, d$ as a$2, e0 as te$1, e1 as p$1, e2 as ne$1, e3 as y$1 } from './index-CepXwf2Y.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { e4 as getAugmentedNamespace, az as commonjsGlobal } from './index-BTKL8wRG.js';
1
+ import { e4 as getAugmentedNamespace, az as commonjsGlobal } from './index-CepXwf2Y.js';
2
2
 
3
3
  var dist$1 = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator } from './index-BTKL8wRG.js';
1
+ import { e5 as __awaiter, e6 as __generator } from './index-CepXwf2Y.js';
2
2
 
3
3
  function loadLegacyVideoPlugins(analytics) {
4
4
  return __awaiter(this, void 0, void 0, function () {
@@ -7,7 +7,7 @@ function loadLegacyVideoPlugins(analytics) {
7
7
  switch (_a.label) {
8
8
  case 0: return [4 /*yield*/, import(
9
9
  // @ts-expect-error
10
- './index.umd-Dzb5hrP5.js').then(function (n) { return n.i; })
10
+ './index.umd-DnUqwRR5.js').then(function (n) { return n.i; })
11
11
  // This is super gross, but we need to support the `window.analytics.plugins` namespace
12
12
  // that is linked in the segment docs in order to be backwards compatible with ajs-classic
13
13
  // @ts-expect-error
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator, eg as isServer, e8 as getNextIntegrationsURL, e7 as loadScript } from './index-BTKL8wRG.js';
1
+ import { e5 as __awaiter, e6 as __generator, eg as isServer, e8 as getNextIntegrationsURL, e7 as loadScript } from './index-CepXwf2Y.js';
2
2
 
3
3
  function remoteMiddlewares(ctx, settings, obfuscate) {
4
4
  var _a;
@@ -375,7 +375,7 @@ const clearGlobalNamespace = (namespace) => {
375
375
  };
376
376
  lib$4.clearGlobalNamespace = clearGlobalNamespace;
377
377
 
378
- var Ut$2=Object.defineProperty;var St$1=(s,c)=>{for(var p in c)Ut$2(s,p,{get:c[p],enumerable:!0});};function Br$1(s){throw new Error("Node.js process "+s+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,H$3,cr$2=-1;function kt$2(){!tr$1||!H$3||(tr$1=!1,H$3.length?G$3=H$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var s=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(H$3=G$3,G$3=[];++cr$2<c;)H$3&&H$3[cr$2].run();cr$2=-1,c=G$3.length;}H$3=null,tr$1=!1,clearTimeout(s);}}function _t$1(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(s,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(s,c){this.fun=s,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(s,c){console.warn((c?c+": ":"")+s);},$t$2=function(s){Br$1("binding");},Ft$2=function(s){return 0},Ot$2=function(){return "/"},Vt$1=function(s){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function jt$3(s){Br$1("_linkedBinding");}var Ht$2={},Wt$2=!1,qt$2={};function Xt$3(s){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$5=M$7,ie$5=M$7,oe$4={};function se$3(s,c){if(!s)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$2=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(s){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,h=Math.floor(p%1*1e9);return s&&(l=l-s[0],h=h-s[1],h<0&&(l--,h+=Er$1)),[l,h]}Ir$2.bigint=function(s){var c=Ir$2(s);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function j$7(){return T$6}var be$3=j$7,Ne$1=j$7,ve$2=j$7,Me$1=j$7,Ce$3=j$7,Le$1=M$7,De$3=j$7,$e$3=j$7;function Fe$3(s){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:jt$3,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:j$7,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Ht$2,_exiting:Wt$2,config:qt$2,dlopen:Xt$3,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$4,assert:se$3,features:ue$2,_fatalExceptions:ae$2,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$1,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var s=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,w=l.length;h<w;++h)s[h]=l[h],c[l.charCodeAt(h)]=h;c[45]=62,c[95]=63;function o(f){var d=f.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=d);var A=g===d?0:4-g%4;return [g,A]}function E(f){var d=o(f),g=d[0],A=d[1];return (g+A)*3/4-A}function b(f,d,g){return (d+g)*3/4-g}function C(f){var d,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)d=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=d>>16&255,P[D++]=d>>8&255,P[D++]=d&255;return v===2&&(d=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=d&255),v===1&&(d=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=d>>8&255,P[D++]=d&255),P}function B(f){return s[f>>18&63]+s[f>>12&63]+s[f>>6&63]+s[f&63]}function k(f,d,g){for(var A,v=[],P=d;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var d,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(d=f[g-1],v.push(s[d>>2]+s[d<<4&63]+"==")):A===2&&(d=(f[g-2]<<8)+f[g-1],v.push(s[d>>10]+s[d>>4&63]+s[d<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(s,c,p,l,h){var w,o,E=h*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?h-1:0,_=p?-1:1,f=s[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+s[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+s[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(s,c,p,l,h,w){var o,E,b,C=w*8-h-1,B=(1<<C)-1,k=B>>1,_=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,d=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,h),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,h),o=0));h>=8;s[p+f]=E&255,f+=d,E/=256,h-=8);for(o=o<<h|E,C+=h;C>0;s[p+f]=o&255,f+=d,o/=256,C-=8);s[p+f-d]|=g*128;},pr$1}var W$3={},jr$1=!1;function Ge$2(){if(jr$1)return W$3;jr$1=!0;let s=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W$3.Buffer=o,W$3.SlowBuffer=v,W$3.INSPECT_MAX_BYTES=50;let l=2147483647;W$3.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=h(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function h(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return d(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")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 C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return d(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function d(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,a=Math.min(n,i);u<a;++u)if(r[u]!==t[u]){n=r[u],i=t[u];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).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}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),u=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))u+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,u)):Uint8Array.prototype.set.call(i,a,u);else if(o.isBuffer(a))a.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=W$3.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,u){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let a=u-i,m=n-t,x=Math.min(a,m),I=this.slice(i,u),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],m=U[y];break}return a<m?-1:m<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let u=1,a=e.length,m=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;u=2,a/=2,m/=2,t/=2;}function x(U,y){return u===1?U[y]:U.readUInt16BE(y*u)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===m)return U*u}else U!==-1&&(I-=I-U),U=-1;}else for(t+m>a&&(t=a-m),I=t;I>=0;I--){let U=!0;for(let y=0;y<m;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let u=r.length;n>u/2&&(n=u/2);let a;for(a=0;a<n;++a){let m=parseInt(r.substr(a*2,2),16);if(gr(m))return a;e[t+a]=m;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let u=e[i],a=null,m=u>239?4:u>223?3:u>191?2:1;if(i+m<=t){let x,I,U,y;switch(m){case 1:u<128&&(a=u);break;case 2:x=e[i+1],(x&192)===128&&(y=(u&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(u&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(u&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,m=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=m;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let u=r;u<t;++u)i+=At[e[u]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,u=1,a=this[r+--i];for(;i>0&&(u*=256);)a+=this[r+--i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=1,a=0;for(this[t]=r&255;++a<n&&(u*=256);)this[t+a]=r/u&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=n-1,a=1;for(this[t+u]=r&255;--u>=0&&(a*=256);)this[t+u]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=0,a=1,m=0;for(this[t]=r&255;++u<n&&(a*=256);)r<0&&m===0&&this[t+u-1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=n-1,a=1,m=0;for(this[t+u]=r&255;--u>=0&&(a*=256);)r<0&&m===0&&this[t+u+1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let u=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),u},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),m=a.length;if(m===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=a[u%m];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,u){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",m;throw r===0||r===BigInt(0)?m=`>= 0${a} and < 2${a} ** ${(u+1)*8}${a}`:m=`>= -(2${a} ** ${(u+1)*8-1}${a}) and < 2 ** ${(u+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",m,e)}yt(n,i,u);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,u=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t);}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return u}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,u=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function Or(e){return s.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return W$3}var q$6=Ge$2();var S$8=q$6.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>He$2,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=s=>{if(s!==null)try{return JSON.parse(s)}catch{return s}},je$2=s=>typeof s=="string"?s:JSON.stringify(s),xr$2=s=>`${Ye$2}${s}`;function fr$1(s){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(s)))}var or$2=(s,c)=>Ar$2()?(window.localStorage.setItem(xr$2(s),je$2(c)),!0):!1,He$2=s=>Ar$2()?(window.localStorage.removeItem(xr$2(s)),!0):!1;var Sr$2=0,Hr$1=s=>{let c=parseInt(s,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},Wr=()=>{let s=new Date().getTime()+Sr$2;return new Date(s).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var We$5="https://api.immutable.com",qe$1=s=>{if(typeof S$8<"u")return S$8.from(s,"utf-8").toString("base64");if(typeof btoa=="function")return btoa(unescape(encodeURIComponent(s)));throw new Error("Base64 encoding not supported in this environment")};async function hr$2(s,c){let p=JSON.stringify(c),l={payload:qe$1(p)},h=await fetch(`${We$5}${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!h.ok){let w=await h.text().catch(()=>"");throw new Error(`Request failed (${h.status}): ${w||h.statusText}`)}return h.json()}var X$4,J$4,Xe$4=()=>{X$4=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};Xe$4();var V$5=(s,c)=>{J$4={...J$4,[s]:c},or$2("metrics-runtime",J$4);},ur$1=s=>{if(J$4[s]!==void 0)return J$4[s]},qr$1=()=>J$4,Xr=()=>X$4,Jr$1=s=>{X$4.push(s),or$2("metrics-events",X$4);},zr$2=s=>{X$4=X$4.slice(s),or$2("metrics-events",X$4);},dr$1=s=>{let c=[];return Object.entries(s).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.12.4-alpha.11",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let s;try{window.self!==window.top&&(s=Je$3());}catch{}return s||(s=window.location.hostname),s},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let s=ze$2();return s&&V$5("domain",s),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:s,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let s=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),h=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:s,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=h;V$5("rid",w),Hr$1(o);}catch{_r$2=!1;}};function R$3(s,c){return (...p)=>{try{let l=s(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(s,c)=>getGlobalisedValue_1(et$1,s,c),nt$2=(s,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,s,p)};var nn=5e3,on=(s,c,p)=>{let l={event:`${s}.${c}`,time:Wr(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let s=Xr();if(s.length===0)return;let c=s.length,p=qr$1();await hr$2("/v1/sdk/metrics",{version:1,data:{events:s,details:p}})instanceof Error||zr$2(c);},un=R$3(sn),ot$1=async()=>{await un(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(s,c,p,l)=>Q$6(s,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let s=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${s()}${s()}-${s()}-${s()}-${s()}-${s()}${s()}${s()}`};var cn=(...s)=>{if(!s.some(l=>!!l))return {};let p={};return s.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=s=>s.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(s,c)=>`${s}_${pn$1(c)}`,fn=(s,c,p=!0,l)=>{let h=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:h,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let d=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(s,d,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:s,flowName:c,flowId:h,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn);var dn$1=(s,c,p,l)=>{let{message:h}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
378
+ var Ut$2=Object.defineProperty;var St$1=(s,c)=>{for(var p in c)Ut$2(s,p,{get:c[p],enumerable:!0});};function Br$1(s){throw new Error("Node.js process "+s+" is not supported by JSPM core outside of Node.js")}var G$3=[],tr$1=!1,H$3,cr$2=-1;function kt$2(){!tr$1||!H$3||(tr$1=!1,H$3.length?G$3=H$3.concat(G$3):cr$2=-1,G$3.length&&Vr$1());}function Vr$1(){if(!tr$1){var s=setTimeout(kt$2,0);tr$1=!0;for(var c=G$3.length;c;){for(H$3=G$3,G$3=[];++cr$2<c;)H$3&&H$3[cr$2].run();cr$2=-1,c=G$3.length;}H$3=null,tr$1=!1,clearTimeout(s);}}function _t$1(s){var c=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)c[p-1]=arguments[p];G$3.push(new Gr$1(s,c)),G$3.length===1&&!tr$1&&setTimeout(Vr$1,0);}function Gr$1(s,c){this.fun=s,this.array=c;}Gr$1.prototype.run=function(){this.fun.apply(null,this.array);};var Pt$1="browser",Rt$1="x64",bt$1="browser",Nt$1={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},vt$1=["/usr/bin/node"],Mt$1=[],Ct$3="v16.8.0",Lt$2={},Dt$2=function(s,c){console.warn((c?c+": ":"")+s);},$t$2=function(s){Br$1("binding");},Ft$2=function(s){return 0},Ot$2=function(){return "/"},Vt$1=function(s){},Gt$3={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};function M$7(){}var Yt$2=M$7,Kt$2=[];function jt$3(s){Br$1("_linkedBinding");}var Ht$2={},Wt$2=!1,qt$2={};function Xt$3(s){Br$1("dlopen");}function Jt$3(){return []}function zt$2(){return []}var Qt$1=M$7,Zt$2=M$7,Tr$2=function(){return {}},re$3=Tr$2,te$3=Tr$2,ee$2=M$7,ne$5=M$7,ie$5=M$7,oe$4={};function se$3(s,c){if(!s)throw new Error(c||"assertion error")}var ue$2={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},ae$2=M$7,ce$2=M$7;function pe$3(){return !1}var le$2=M$7,fe$4=M$7,he$2=M$7,de$2=M$7,me$3=M$7,we$3=void 0,ge$4=void 0,ye$3=void 0,Ee$2=M$7,Ie$1=2,Be$3=1,Te$2="/bin/usr/node",Ae$2=9229,xe$2="node",Ue$3=[],Se$3=M$7,K$7={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K$7.now===void 0&&(yr$2=Date.now(),K$7.timing&&K$7.timing.navigationStart&&(yr$2=K$7.timing.navigationStart),K$7.now=()=>Date.now()-yr$2);var yr$2;function ke$3(){return K$7.now()/1e3}var Er$1=1e9;function Ir$2(s){var c=Math.floor((Date.now()-K$7.now())*.001),p=K$7.now()*.001,l=Math.floor(p)+c,h=Math.floor(p%1*1e9);return s&&(l=l-s[0],h=h-s[1],h<0&&(l--,h+=Er$1)),[l,h]}Ir$2.bigint=function(s){var c=Ir$2(s);return typeof BigInt>"u"?c[0]*Er$1+c[1]:BigInt(c[0]*Er$1)+BigInt(c[1])};var _e$2=10,Pe$3={},Re$4=0;function j$7(){return T$6}var be$3=j$7,Ne$1=j$7,ve$2=j$7,Me$1=j$7,Ce$3=j$7,Le$1=M$7,De$3=j$7,$e$3=j$7;function Fe$3(s){return []}var T$6={version:Ct$3,versions:Lt$2,arch:Rt$1,platform:bt$1,release:Gt$3,_rawDebug:Yt$2,moduleLoadList:Kt$2,binding:$t$2,_linkedBinding:jt$3,_events:Pe$3,_eventsCount:Re$4,_maxListeners:_e$2,on:j$7,addListener:be$3,once:Ne$1,off:ve$2,removeListener:Me$1,removeAllListeners:Ce$3,emit:Le$1,prependListener:De$3,prependOnceListener:$e$3,listeners:Fe$3,domain:Ht$2,_exiting:Wt$2,config:qt$2,dlopen:Xt$3,uptime:ke$3,_getActiveRequests:Jt$3,_getActiveHandles:zt$2,reallyExit:Qt$1,_kill:Zt$2,cpuUsage:Tr$2,resourceUsage:re$3,memoryUsage:te$3,kill:ee$2,exit:ne$5,openStdin:ie$5,allowedNodeEnvironmentFlags:oe$4,assert:se$3,features:ue$2,_fatalExceptions:ae$2,setUncaughtExceptionCaptureCallback:ce$2,hasUncaughtExceptionCaptureCallback:pe$3,emitWarning:Dt$2,nextTick:_t$1,_tickCallback:le$2,_debugProcess:fe$4,_debugEnd:he$2,_startProfilerIdleNotifier:de$2,_stopProfilerIdleNotifier:me$3,stdout:we$3,stdin:ye$3,stderr:ge$4,abort:Ee$2,umask:Ft$2,chdir:Vt$1,cwd:Ot$2,env:Nt$1,title:Pt$1,argv:vt$1,execArgv:Mt$1,pid:Ie$1,ppid:Be$3,execPath:Te$2,debugPort:Ae$2,hrtime:Ir$2,argv0:xe$2,_preload_modules:Ue$3,setSourceMapsEnabled:Se$3};var nr$1={},Yr$1=!1;function Oe$2(){if(Yr$1)return nr$1;Yr$1=!0,nr$1.byteLength=E,nr$1.toByteArray=C,nr$1.fromByteArray=_;for(var s=[],c=[],p=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,w=l.length;h<w;++h)s[h]=l[h],c[l.charCodeAt(h)]=h;c[45]=62,c[95]=63;function o(f){var d=f.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");g===-1&&(g=d);var A=g===d?0:4-g%4;return [g,A]}function E(f){var d=o(f),g=d[0],A=d[1];return (g+A)*3/4-A}function b(f,d,g){return (d+g)*3/4-g}function C(f){var d,g=o(f),A=g[0],v=g[1],P=new p(b(f,A,v)),D=0,F=v>0?A-4:A,L;for(L=0;L<F;L+=4)d=c[f.charCodeAt(L)]<<18|c[f.charCodeAt(L+1)]<<12|c[f.charCodeAt(L+2)]<<6|c[f.charCodeAt(L+3)],P[D++]=d>>16&255,P[D++]=d>>8&255,P[D++]=d&255;return v===2&&(d=c[f.charCodeAt(L)]<<2|c[f.charCodeAt(L+1)]>>4,P[D++]=d&255),v===1&&(d=c[f.charCodeAt(L)]<<10|c[f.charCodeAt(L+1)]<<4|c[f.charCodeAt(L+2)]>>2,P[D++]=d>>8&255,P[D++]=d&255),P}function B(f){return s[f>>18&63]+s[f>>12&63]+s[f>>6&63]+s[f&63]}function k(f,d,g){for(var A,v=[],P=d;P<g;P+=3)A=(f[P]<<16&16711680)+(f[P+1]<<8&65280)+(f[P+2]&255),v.push(B(A));return v.join("")}function _(f){for(var d,g=f.length,A=g%3,v=[],P=16383,D=0,F=g-A;D<F;D+=P)v.push(k(f,D,D+P>F?F:D+P));return A===1?(d=f[g-1],v.push(s[d>>2]+s[d<<4&63]+"==")):A===2&&(d=(f[g-2]<<8)+f[g-1],v.push(s[d>>10]+s[d>>4&63]+s[d<<2&63]+"=")),v.join("")}return nr$1}var pr$1={},Kr$2=!1;function Ve$1(){if(Kr$2)return pr$1;Kr$2=!0;return pr$1.read=function(s,c,p,l,h){var w,o,E=h*8-l-1,b=(1<<E)-1,C=b>>1,B=-7,k=p?h-1:0,_=p?-1:1,f=s[c+k];for(k+=_,w=f&(1<<-B)-1,f>>=-B,B+=E;B>0;w=w*256+s[c+k],k+=_,B-=8);for(o=w&(1<<-B)-1,w>>=-B,B+=l;B>0;o=o*256+s[c+k],k+=_,B-=8);if(w===0)w=1-C;else {if(w===b)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,l),w=w-C;}return (f?-1:1)*o*Math.pow(2,w-l)},pr$1.write=function(s,c,p,l,h,w){var o,E,b,C=w*8-h-1,B=(1<<C)-1,k=B>>1,_=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:w-1,d=l?1:-1,g=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(E=isNaN(c)?1:0,o=B):(o=Math.floor(Math.log(c)/Math.LN2),c*(b=Math.pow(2,-o))<1&&(o--,b*=2),o+k>=1?c+=_/b:c+=_*Math.pow(2,1-k),c*b>=2&&(o++,b/=2),o+k>=B?(E=0,o=B):o+k>=1?(E=(c*b-1)*Math.pow(2,h),o=o+k):(E=c*Math.pow(2,k-1)*Math.pow(2,h),o=0));h>=8;s[p+f]=E&255,f+=d,E/=256,h-=8);for(o=o<<h|E,C+=h;C>0;s[p+f]=o&255,f+=d,o/=256,C-=8);s[p+f-d]|=g*128;},pr$1}var W$3={},jr$1=!1;function Ge$2(){if(jr$1)return W$3;jr$1=!0;let s=Oe$2(),c=Ve$1(),p=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W$3.Buffer=o,W$3.SlowBuffer=v,W$3.INSPECT_MAX_BYTES=50;let l=2147483647;W$3.kMaxLength=l,o.TYPED_ARRAY_SUPPORT=h(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function h(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return !1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function w(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(e)}return E(e,r,t)}o.poolSize=8192;function E(e,r,t){if(typeof e=="string")return k(e,r);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return d(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=g(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return E(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(e){if(typeof e!="number")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 C(e,r,t){return b(e),e<=0?w(e):r!==void 0?typeof t=="string"?w(e).fill(r,t):w(e).fill(r):w(e)}o.alloc=function(e,r,t){return C(e,r,t)};function B(e){return b(e),w(e<0?0:A(e)|0)}o.allocUnsafe=function(e){return B(e)},o.allocUnsafeSlow=function(e){return B(e)};function k(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=P(e,r)|0,n=w(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function _(e){let r=e.length<0?0:A(e.length)|0,t=w(r);for(let n=0;n<r;n+=1)t[n]=e[n]&255;return t}function f(e){if(O(e,Uint8Array)){let r=new Uint8Array(e);return d(r.buffer,r.byteOffset,r.byteLength)}return _(e)}function d(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return r===void 0&&t===void 0?n=new Uint8Array(e):t===void 0?n=new Uint8Array(e,r):n=new Uint8Array(e,r,t),Object.setPrototypeOf(n,o.prototype),n}function g(e){if(o.isBuffer(e)){let r=A(e.length)|0,t=w(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||gr(e.length)?w(0):_(e);if(e.type==="Buffer"&&Array.isArray(e.data))return _(e.data)}function A(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return e|0}function v(e){return +e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),O(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,a=Math.min(n,i);u<a;++u)if(r[u]!==t[u]){n=r[u],i=t[u];break}return n<i?-1:i<n?1:0},o.isEncoding=function(r){switch(String(r).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}},o.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<r.length;++n)t+=r[n].length;let i=o.allocUnsafe(t),u=0;for(n=0;n<r.length;++n){let a=r[n];if(O(a,Uint8Array))u+a.length>i.length?(o.isBuffer(a)||(a=o.from(a)),a.copy(i,u)):Uint8Array.prototype.set.call(i,a,u);else if(o.isBuffer(a))a.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=a.length;}return i};function P(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return wr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Or(e).length;default:if(i)return n?-1:wr(e).length;r=(""+r).toLowerCase(),i=!0;}}o.byteLength=P;function D(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return "";for(e||(e="utf8");;)switch(e){case"hex":return wt(this,r,t);case"utf8":case"utf-8":return br(this,r,t);case"ascii":return dt(this,r,t);case"latin1":case"binary":return mt(this,r,t);case"base64":return ft(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0;}}o.prototype._isBuffer=!0;function F(e,r,t){let n=e[r];e[r]=e[t],e[t]=n;}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)F(this,t,t+1);return this},o.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)F(this,t,t+3),F(this,t+1,t+2);return this},o.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)F(this,t,t+7),F(this,t+1,t+6),F(this,t+2,t+5),F(this,t+3,t+4);return this},o.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?br(this,0,r):D.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(r){if(!o.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0},o.prototype.inspect=function(){let r="",t=W$3.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"},p&&(o.prototype[p]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,u){if(O(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let a=u-i,m=n-t,x=Math.min(a,m),I=this.slice(i,u),U=r.slice(t,n);for(let y=0;y<x;++y)if(I[y]!==U[y]){a=I[y],m=U[y];break}return a<m?-1:m<a?1:0};function L(e,r,t,n,i){if(e.length===0)return -1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,gr(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return -1;t=e.length-1;}else if(t<0)if(i)t=0;else return -1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:Rr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Rr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function Rr(e,r,t,n,i){let u=1,a=e.length,m=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return -1;u=2,a/=2,m/=2,t/=2;}function x(U,y){return u===1?U[y]:U.readUInt16BE(y*u)}let I;if(i){let U=-1;for(I=t;I<a;I++)if(x(e,I)===x(r,U===-1?0:I-U)){if(U===-1&&(U=I),I-U+1===m)return U*u}else U!==-1&&(I-=I-U),U=-1;}else for(t+m>a&&(t=a-m),I=t;I>=0;I--){let U=!0;for(let y=0;y<m;y++)if(x(e,I+y)!==x(r,y)){U=!1;break}if(U)return I}return -1}o.prototype.includes=function(r,t,n){return this.indexOf(r,t,n)!==-1},o.prototype.indexOf=function(r,t,n){return L(this,r,t,n,!0)},o.prototype.lastIndexOf=function(r,t,n){return L(this,r,t,n,!1)};function ut(e,r,t,n){t=Number(t)||0;let i=e.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let u=r.length;n>u/2&&(n=u/2);let a;for(a=0;a<n;++a){let m=parseInt(r.substr(a*2,2),16);if(gr(m))return a;e[t+a]=m;}return a}function at(e,r,t,n){return ar(wr(r,e.length-t),e,t,n)}function ct(e,r,t,n){return ar(Bt(r),e,t,n)}function pt(e,r,t,n){return ar(Or(r),e,t,n)}function lt(e,r,t,n){return ar(Tt(r,e.length-t),e,t,n)}o.prototype.write=function(r,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return ut(this,r,t,n);case"utf8":case"utf-8":return at(this,r,t,n);case"ascii":case"latin1":case"binary":return ct(this,r,t,n);case"base64":return pt(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,r,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0;}},o.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(e,r,t){return r===0&&t===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(r,t))}function br(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i<t;){let u=e[i],a=null,m=u>239?4:u>223?3:u>191?2:1;if(i+m<=t){let x,I,U,y;switch(m){case 1:u<128&&(a=u);break;case 2:x=e[i+1],(x&192)===128&&(y=(u&31)<<6|x&63,y>127&&(a=y));break;case 3:x=e[i+1],I=e[i+2],(x&192)===128&&(I&192)===128&&(y=(u&15)<<12|(x&63)<<6|I&63,y>2047&&(y<55296||y>57343)&&(a=y));break;case 4:x=e[i+1],I=e[i+2],U=e[i+3],(x&192)===128&&(I&192)===128&&(U&192)===128&&(y=(u&15)<<18|(x&63)<<12|(I&63)<<6|U&63,y>65535&&y<1114112&&(a=y));}}a===null?(a=65533,m=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=m;}return ht(n)}let Nr=4096;function ht(e){let r=e.length;if(r<=Nr)return String.fromCharCode.apply(String,e);let t="",n=0;for(;n<r;)t+=String.fromCharCode.apply(String,e.slice(n,n+=Nr));return t}function dt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]&127);return n}function mt(e,r,t){let n="";t=Math.min(e.length,t);for(let i=r;i<t;++i)n+=String.fromCharCode(e[i]);return n}function wt(e,r,t){let n=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>n)&&(t=n);let i="";for(let u=r;u<t;++u)i+=At[e[u]];return i}function gt(e,r,t){let n=e.slice(r,t),i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}o.prototype.slice=function(r,t){let n=this.length;r=~~r,t=t===void 0?n:~~t,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<r&&(t=r);let i=this.subarray(r,t);return Object.setPrototypeOf(i,o.prototype),i};function N(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||N(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))}),o.prototype.readBigUInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return (BigInt(i)<<BigInt(32))+BigInt(u)}),o.prototype.readIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=this[r],u=1,a=0;for(;++a<t&&(u*=256);)i+=this[r+a]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||N(r,t,this.length);let i=t,u=1,a=this[r+--i];for(;i>0&&(u*=256);)a+=this[r+--i]*u;return u*=128,a>=u&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(r,t){return r=r>>>0,t||N(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||N(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||N(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return (BigInt(i)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)}),o.prototype.readBigInt64BE=Y(function(r){r=r>>>0,rr(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&er(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return (BigInt(i)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n)}),o.prototype.readFloatLE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||N(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||N(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<u)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=1,a=0;for(this[t]=r&255;++a<n&&(u*=256);)this[t+a]=r/u&255;return t+n},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let m=Math.pow(2,8*n)-1;$(this,r,t,n,m,0);}let u=n-1,a=1;for(this[t+u]=r&255;--u>=0&&(a*=256);)this[t+u]=r/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function vr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,a=a>>8,e[t++]=a,t}function Mr(e,r,t,n,i){Fr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let a=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=a,a=a>>8,e[t+2]=a,a=a>>8,e[t+1]=a,a=a>>8,e[t]=a,t+8}o.prototype.writeBigUInt64LE=Y(function(r,t=0){return vr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Y(function(r,t=0){return Mr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=0,a=1,m=0;for(this[t]=r&255;++u<n&&(a*=256);)r<0&&m===0&&this[t+u-1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let x=Math.pow(2,8*n-1);$(this,r,t,n,x-1,-x);}let u=n-1,a=1,m=0;for(this[t+u]=r&255;--u>=0&&(a*=256);)r<0&&m===0&&this[t+u+1]!==0&&(m=1),this[t+u]=(r/a>>0)-m&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=Y(function(r,t=0){return vr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Y(function(r,t=0){return Mr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Cr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Lr(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Lr(this,r,t,!1,n)};function Dr(e,r,t,n,i){return r=+r,t=t>>>0,i||Cr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return Dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return Dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);let u=i-n;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(r,this.subarray(n,i),t),u},o.prototype.fill=function(r,t,n,i){if(typeof r=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(r.length===1){let a=r.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(r=a);}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u<n;++u)this[u]=r;else {let a=o.isBuffer(r)?r:o.from(r,i),m=a.length;if(m===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=a[u%m];}return this};let Z={};function mr(e,r,t){Z[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,delete this.name;}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0});}toString(){return `${this.name} [${e}]: ${this.message}`}};}mr("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),mr("ERR_INVALID_ARG_TYPE",function(e,r){return `The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError),mr("ERR_OUT_OF_RANGE",function(e,r,t){let n=`The value of "${e}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$r(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$r(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function $r(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return `${e.slice(0,t)}${r}`}function yt(e,r,t){rr(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&er(r,e.length-(t+1));}function Fr(e,r,t,n,i,u){if(e>t||e<r){let a=typeof r=="bigint"?"n":"",m;throw r===0||r===BigInt(0)?m=`>= 0${a} and < 2${a} ** ${(u+1)*8}${a}`:m=`>= -(2${a} ** ${(u+1)*8-1}${a}) and < 2 ** ${(u+1)*8-1}${a}`,new Z.ERR_OUT_OF_RANGE("value",m,e)}yt(n,i,u);}function rr(e,r){if(typeof e!="number")throw new Z.ERR_INVALID_ARG_TYPE(r,"number",e)}function er(e,r,t){throw Math.floor(e)!==e?(rr(e,t),new Z.ERR_OUT_OF_RANGE("offset","an integer",e)):r<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",`>= ${0} and <= ${r}`,e)}let Et=/[^+/0-9A-Za-z-_]/g;function It(e){if(e=e.split("=")[0],e=e.trim().replace(Et,""),e.length<2)return "";for(;e.length%4!==0;)e=e+"=";return e}function wr(e,r){r=r||1/0;let t,n=e.length,i=null,u=[];for(let a=0;a<n;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(a+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536;}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t);}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128);}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128);}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128);}else throw new Error("Invalid code point")}return u}function Bt(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Tt(e,r){let t,n,i,u=[];for(let a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function Or(e){return s.toByteArray(It(e))}function ar(e,r,t,n){let i;for(i=0;i<n&&!(i+t>=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function O(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function gr(e){return e!==e}let At=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i];}return r}();function Y(e){return typeof BigInt>"u"?xt:e}function xt(){throw new Error("BigInt not supported")}return W$3}var q$6=Ge$2();var S$8=q$6.Buffer;var Ur$2={};St$1(Ur$2,{deleteItem:()=>He$2,getItem:()=>fr$1,setItem:()=>or$2});var ir$1=()=>typeof window>"u",lr$2=()=>!ir$1();var Ye$2="__IMX-",Ar$2=()=>lr$2()&&window.localStorage,Ke$1=s=>{if(s!==null)try{return JSON.parse(s)}catch{return s}},je$2=s=>typeof s=="string"?s:JSON.stringify(s),xr$2=s=>`${Ye$2}${s}`;function fr$1(s){if(Ar$2())return Ke$1(window.localStorage.getItem(xr$2(s)))}var or$2=(s,c)=>Ar$2()?(window.localStorage.setItem(xr$2(s),je$2(c)),!0):!1,He$2=s=>Ar$2()?(window.localStorage.removeItem(xr$2(s)),!0):!1;var Sr$2=0,Hr$1=s=>{let c=parseInt(s,10)*1e3,p=new Date(c),l=new Date;return Sr$2=p.getTime()-l.getTime(),Sr$2},Wr=()=>{let s=new Date().getTime()+Sr$2;return new Date(s).toISOString()};var sr$1=(E=>(E.RUNTIME_ID="rid",E.PASSPORT_CLIENT_ID="passportClientId",E.ENVIRONMENT="env",E.PUBLISHABLE_API_KEY="pak",E.IDENTITY="uid",E.DOMAIN="domain",E.SDK_VERSION="sdkVersion",E))(sr$1||{});var We$5="https://api.immutable.com",qe$1=s=>{if(typeof S$8<"u")return S$8.from(s,"utf-8").toString("base64");if(typeof btoa=="function")return btoa(unescape(encodeURIComponent(s)));throw new Error("Base64 encoding not supported in this environment")};async function hr$2(s,c){let p=JSON.stringify(c),l={payload:qe$1(p)},h=await fetch(`${We$5}${s}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!h.ok){let w=await h.text().catch(()=>"");throw new Error(`Request failed (${h.status}): ${w||h.statusText}`)}return h.json()}var X$4,J$4,Xe$4=()=>{X$4=fr$1("metrics-events")||[],J$4=fr$1("metrics-runtime")||{};};Xe$4();var V$5=(s,c)=>{J$4={...J$4,[s]:c},or$2("metrics-runtime",J$4);},ur$1=s=>{if(J$4[s]!==void 0)return J$4[s]},qr$1=()=>J$4,Xr=()=>X$4,Jr$1=s=>{X$4.push(s),or$2("metrics-events",X$4);},zr$2=s=>{X$4=X$4.slice(s),or$2("metrics-events",X$4);},dr$1=s=>{let c=[];return Object.entries(s).forEach(([p,l])=>{(typeof p=="string"||typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&c.push([p,l.toString()]);}),c};var kr$1="2.12.4-alpha.12",Je$3=()=>ir$1()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ze$2=()=>{if(ir$1())return "";let s;try{window.self!==window.top&&(s=Je$3());}catch{}return s||(s=window.location.hostname),s},Qe$3=()=>{if(V$5("sdkVersion",kr$1),ir$1())return {browser:"nodejs",sdkVersion:kr$1};let s=ze$2();return s&&V$5("domain",s),{sdkVersion:kr$1,browser:window.navigator.userAgent,domain:s,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},_r$2=!1,Qr$1=()=>_r$2,Zr=async()=>{_r$2=!0;try{let s=dr$1(Qe$3()),c=ur$1("rid"),p=ur$1("uid"),h=await hr$2("/v1/sdk/initialise",{version:1,data:{runtimeDetails:s,runtimeId:c,uId:p}}),{runtimeId:w,sTime:o}=h;V$5("rid",w),Hr$1(o);}catch{_r$2=!1;}};function R$3(s,c){return (...p)=>{try{let l=s(...p);return l instanceof Promise?l.catch(()=>c):l}catch{return c}}}function Ze$4(){return lr$2()||typeof T$6>"u"?!1:T$6.env.JEST_WORKER_ID!==void 0}var rt$1=R$3(Ze$4,!1);var et$1="imtbl__metrics",tn$1=5e3,en$1=1e3,z$8=(s,c)=>getGlobalisedValue_1(et$1,s,c),nt$2=(s,c)=>{let p=memorise(c,{lruOptions:{ttl:tn$1,max:en$1}});return getGlobalisedValue_1(et$1,s,p)};var nn=5e3,on=(s,c,p)=>{let l={event:`${s}.${c}`,time:Wr(),...p&&{properties:dr$1(p)}};Jr$1(l);},Q$6=R$3(nt$2("track",on)),sn=async()=>{if(Qr$1()===!1){await Zr();return}let s=Xr();if(s.length===0)return;let c=s.length,p=qr$1();await hr$2("/v1/sdk/metrics",{version:1,data:{events:s,details:p}})instanceof Error||zr$2(c);},un=R$3(sn),ot$1=async()=>{await un(),setTimeout(ot$1,nn);},it$1=!1,an=()=>{it$1||(it$1=!0,ot$1());};rt$1()||R$3(z$8("startFlushing",an))();var Pr$2=(s,c,p,l)=>Q$6(s,c,{...l||{},duration:Math.round(p)});var st$2=()=>{let s=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return `${s()}${s()}-${s()}-${s()}-${s()}-${s()}${s()}${s()}`};var cn=(...s)=>{if(!s.some(l=>!!l))return {};let p={};return s.forEach(l=>{l&&(p={...p,...l});}),p},pn$1=s=>s.replace(/[^a-zA-Z0-9\s\-_]/g,""),ln=(s,c)=>`${s}_${pn$1(c)}`,fn=(s,c,p=!0,l)=>{let h=st$2(),w=Date.now(),o=0,E=0,b={},C=(..._)=>cn(b,..._,{flowId:h,flowName:c});b=C(l);let B=_=>{_&&(b=C(_));},k=(_,f)=>{let d=ln(c,_),g=0,A=performance.now();o>0&&(g=A-E);let v=C(f,{flowEventName:_,flowStep:o});Pr$2(s,d,g,v),o++,E=A;};return p&&k("Start"),{details:{moduleName:s,flowName:c,flowId:h,flowStartTime:w},addEvent:R$3(k),addFlowProperties:R$3(B)}},hn=R$3(fn);var dn$1=(s,c,p,l)=>{let{message:h}=p,w=p.stack||"",{cause:o}=p;o instanceof Error&&(w=`${w}
379
379
  Cause: ${o.message}
380
380
  ${o.stack}`),Q$6(s,`trackError_${c}`,{...l||{},errorMessage:h,errorStack:w,isTrackError:!0});},mn$1=R$3(dn$1);var En$1=s=>{V$5("env",s);},In$1=R$3(z$8("setEnvironment",En$1)),Bn=s=>{V$5("passportClientId",s);};R$3(z$8("setPassportClientId",Bn));var An=s=>{V$5("pak",s);};R$3(z$8("setPublishableApiKey",An));R$3(z$8("getDetail",ur$1));
381
381
 
@@ -69830,7 +69830,7 @@ function snapshot(proxyObject, handlePromise) {
69830
69830
 
69831
69831
  const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$4={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$2={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$2.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$2.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$2.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$2.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$2.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$4.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$2=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$2,userSessionId:"",events:[],connectedWalletId:void 0}),R$1={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$3=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$8={state:c$3,subscribe(e){return subscribe(c$3,()=>e(c$3))},setChains(e){c$3.chains=e;},setWalletConnectUri(e){c$3.walletConnectUri=e;},setIsCustomDesktop(e){c$3.isCustomDesktop=e;},setIsCustomMobile(e){c$3.isCustomMobile=e;},setIsDataLoaded(e){c$3.isDataLoaded=e;},setIsUiLoaded(e){c$3.isUiLoaded=e;},setIsAuth(e){c$3.isAuth=e;}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$7={state:W$1,subscribe(e){return subscribe(W$1,()=>e(W$1))},setConfig(e){var t,s;R$1.initialize(),p$8.setChains(e.chains),p$8.setIsAuth(Boolean(e.enableAuthMode)),p$8.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$8.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$2.setModalVersionInStorage(),Object.assign(W$1,e);}};var V$3=Object.defineProperty,D$4=Object.getOwnPropertySymbols,H$1=Object.prototype.hasOwnProperty,B$3=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$3=(e,t)=>{for(var s in t||(t={}))H$1.call(t,s)&&M$4(e,s,t[s]);if(D$4)for(var s of D$4(t))B$3.call(t,s)&&M$4(e,s,t[s]);return e};const L$6="https://explorer-api.walletconnect.com",E$7="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$3({sdkType:E$7,sdkVersion:O$5},t),n=new URL(e,L$6);return n.searchParams.append("projectId",y$7.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$4={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$6}/w3m/v1/getWalletImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$6}/w3m/v1/getAssetImage/${e}?projectId=${y$7.state.projectId}&sdkType=${E$7}&sdkVersion=${O$5}`}};var z$6=Object.defineProperty,j$5=Object.getOwnPropertySymbols,J$1=Object.prototype.hasOwnProperty,q$3=Object.prototype.propertyIsEnumerable,k$3=(e,t,s)=>t in e?z$6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))J$1.call(t,s)&&k$3(e,s,t[s]);if(j$5)for(var s of j$5(t))q$3.call(t,s)&&k$3(e,s,t[s]);return e};const N$3=a$2.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$2={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$7.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$2.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$4.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$8.state,i=s?.join(","),l=a$2.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$2.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$4.getMobileListings(v):await m$4.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$7.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$2.isArray(s)&&(t.excludedIds=s.join(",")),a$2.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$8.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$4.getMobileListings(t):await m$4.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$4.getWalletImageUrl(e)},getAssetImageUrl(e){return m$4.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$8.state;if(a$2.removeWalletConnectDeepLink(),p$8.setWalletConnectUri(e?.uri),p$8.setChains(e?.chains),T$4.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$8.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$1=Object.defineProperty,$$1=Object.getOwnPropertySymbols,Q$4=Object.prototype.hasOwnProperty,X$2=Object.prototype.propertyIsEnumerable,S$5=(e,t,s)=>t in e?G$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$1=(e,t)=>{for(var s in t||(t={}))Q$4.call(t,s)&&S$5(e,s,t[s]);if($$1)for(var s of $$1(t))X$2.call(t,s)&&S$5(e,s,t[s]);return e};function Z$2(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$5=proxy({themeMode:Z$2()?"dark":"light"}),ne$3={state:C$5,subscribe(e){return subscribe(C$5,()=>e(C$5))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$5.themeMode=t),s&&(C$5.themeVariables=Y$1({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$3={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
69832
69832
 
69833
- let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-DdNwyx7W.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$8.setIsUiLoaded(!0);}}};
69833
+ let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$3.setThemeConfig,ne$3.setThemeConfig(e),y$7.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-BcRQ91Gw.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$8.setIsUiLoaded(!0);}}};
69834
69834
 
69835
69835
  var index$1 = /*#__PURE__*/Object.freeze({
69836
69836
  __proto__: null,
@@ -86165,7 +86165,7 @@ var Analytics = /** @class */ (function (_super) {
86165
86165
  return __generator(this, function (_b) {
86166
86166
  switch (_b.label) {
86167
86167
  case 0: return [4 /*yield*/, import(
86168
- /* webpackChunkName: "auto-track" */ './auto-track-CsORzcYV.js')];
86168
+ /* webpackChunkName: "auto-track" */ './auto-track-ySzxNDM2.js')];
86169
86169
  case 1:
86170
86170
  autotrack = _b.sent();
86171
86171
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86184,7 +86184,7 @@ var Analytics = /** @class */ (function (_super) {
86184
86184
  return __generator(this, function (_b) {
86185
86185
  switch (_b.label) {
86186
86186
  case 0: return [4 /*yield*/, import(
86187
- /* webpackChunkName: "auto-track" */ './auto-track-CsORzcYV.js')];
86187
+ /* webpackChunkName: "auto-track" */ './auto-track-ySzxNDM2.js')];
86188
86188
  case 1:
86189
86189
  autotrack = _b.sent();
86190
86190
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86203,7 +86203,7 @@ var Analytics = /** @class */ (function (_super) {
86203
86203
  return __generator(this, function (_b) {
86204
86204
  switch (_b.label) {
86205
86205
  case 0: return [4 /*yield*/, import(
86206
- /* webpackChunkName: "auto-track" */ './auto-track-CsORzcYV.js')];
86206
+ /* webpackChunkName: "auto-track" */ './auto-track-ySzxNDM2.js')];
86207
86207
  case 1:
86208
86208
  autotrack = _b.sent();
86209
86209
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86222,7 +86222,7 @@ var Analytics = /** @class */ (function (_super) {
86222
86222
  return __generator(this, function (_b) {
86223
86223
  switch (_b.label) {
86224
86224
  case 0: return [4 /*yield*/, import(
86225
- /* webpackChunkName: "auto-track" */ './auto-track-CsORzcYV.js')];
86225
+ /* webpackChunkName: "auto-track" */ './auto-track-ySzxNDM2.js')];
86226
86226
  case 1:
86227
86227
  autotrack = _b.sent();
86228
86228
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -86372,7 +86372,7 @@ var Analytics = /** @class */ (function (_super) {
86372
86372
  return [2 /*return*/, []];
86373
86373
  }
86374
86374
  return [4 /*yield*/, import(
86375
- /* webpackChunkName: "queryString" */ './index-B3cybAj0.js')];
86375
+ /* webpackChunkName: "queryString" */ './index-B4ADsNff.js')];
86376
86376
  case 1:
86377
86377
  queryString = (_a.sent()).queryString;
86378
86378
  return [2 /*return*/, queryString(this, query)];
@@ -89076,7 +89076,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89076
89076
  case 0:
89077
89077
  if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
89078
89078
  return [4 /*yield*/, import(
89079
- /* webpackChunkName: "tsub-middleware" */ './index-CB-lrum4.js').then(function (mod) {
89079
+ /* webpackChunkName: "tsub-middleware" */ './index-BwWbdUw5.js').then(function (mod) {
89080
89080
  return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
89081
89081
  })];
89082
89082
  case 1:
@@ -89089,7 +89089,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89089
89089
  tsubMiddleware = _d;
89090
89090
  if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
89091
89091
  return [4 /*yield*/, import(
89092
- /* webpackChunkName: "ajs-destination" */ './index-DVSRrHsp.js').then(function (mod) {
89092
+ /* webpackChunkName: "ajs-destination" */ './index-X2OiM-uo.js').then(function (mod) {
89093
89093
  return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
89094
89094
  })];
89095
89095
  case 4:
@@ -89102,7 +89102,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89102
89102
  legacyDestinations = _e;
89103
89103
  if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
89104
89104
  return [4 /*yield*/, import(
89105
- /* webpackChunkName: "legacyVideos" */ './index-DPa3dq0S.js').then(function (mod) {
89105
+ /* webpackChunkName: "legacyVideos" */ './index-CAt_0XpZ.js').then(function (mod) {
89106
89106
  return mod.loadLegacyVideoPlugins(analytics);
89107
89107
  })];
89108
89108
  case 7:
@@ -89111,7 +89111,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89111
89111
  case 8:
89112
89112
  if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
89113
89113
  return [4 /*yield*/, import(
89114
- /* webpackChunkName: "schemaFilter" */ './index-CD7LN6wV.js').then(function (mod) {
89114
+ /* webpackChunkName: "schemaFilter" */ './index-DCTqRmbL.js').then(function (mod) {
89115
89115
  var _a;
89116
89116
  return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
89117
89117
  })];
@@ -89150,7 +89150,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
89150
89150
  return enabled;
89151
89151
  })) return [3 /*break*/, 17];
89152
89152
  return [4 /*yield*/, import(
89153
- /* webpackChunkName: "remoteMiddleware" */ './index-llKYBGLg.js').then(function (_a) {
89153
+ /* webpackChunkName: "remoteMiddleware" */ './index-CeA7BcPD.js').then(function (_a) {
89154
89154
  var remoteMiddlewares = _a.remoteMiddlewares;
89155
89155
  return __awaiter$5(_this, void 0, void 0, function () {
89156
89156
  var middleware, promises;
@@ -172806,7 +172806,7 @@ const useProvidersContext = () => {
172806
172806
  return context;
172807
172807
  };
172808
172808
 
172809
- const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-BTw-MgKV.js'));
172809
+ const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-IIhpFq9J.js'));
172810
172810
  class AddTokens extends Base$3 {
172811
172811
  eventTopic = ro$1.IMTBL_ADD_TOKENS_WIDGET_EVENT;
172812
172812
  getValidatedProperties({ config, }) {
@@ -172850,7 +172850,7 @@ class AddTokens extends Base$3 {
172850
172850
  }
172851
172851
  }
172852
172852
 
172853
- const BridgeWidget = React.lazy(() => import('./BridgeWidget-BmyB7kkc.js').then(function (n) { return n.a; }));
172853
+ const BridgeWidget = React.lazy(() => import('./BridgeWidget-1dufZuyI.js').then(function (n) { return n.a; }));
172854
172854
  class Bridge extends Base$3 {
172855
172855
  eventTopic = ro$1.IMTBL_BRIDGE_WIDGET_EVENT;
172856
172856
  getValidatedProperties({ config }) {
@@ -172993,7 +172993,7 @@ const commerceFlows = [
172993
172993
  Ao$1.TRANSFER,
172994
172994
  ];
172995
172995
 
172996
- const CommerceWidget = React.lazy(() => import('./CommerceWidget-B5CCY-bN.js'));
172996
+ const CommerceWidget = React.lazy(() => import('./CommerceWidget-iim0-_g4.js'));
172997
172997
  class CommerceWidgetRoot extends Base$3 {
172998
172998
  eventTopic = ro$1.IMTBL_COMMERCE_WIDGET_EVENT;
172999
172999
  getValidatedProperties({ config, }) {
@@ -175246,7 +175246,7 @@ const orchestrationEvents = {
175246
175246
  sendRequestAddTokensEvent,
175247
175247
  };
175248
175248
 
175249
- const OnRampWidget = React.lazy(() => import('./OnRampWidget-B6fkShR5.js'));
175249
+ const OnRampWidget = React.lazy(() => import('./OnRampWidget-CSjMTokD.js'));
175250
175250
  class OnRamp extends Base$3 {
175251
175251
  eventTopic = ro$1.IMTBL_ONRAMP_WIDGET_EVENT;
175252
175252
  getValidatedProperties({ config }) {
@@ -175385,7 +175385,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
175385
175385
  eventTarget.dispatchEvent(event);
175386
175386
  };
175387
175387
 
175388
- const SaleWidget = React.lazy(() => import('./SaleWidget-BKXfv2e4.js'));
175388
+ const SaleWidget = React.lazy(() => import('./SaleWidget-Cnp-M1OT.js'));
175389
175389
  class Sale extends Base$3 {
175390
175390
  eventTopic = ro$1.IMTBL_SALE_WIDGET_EVENT;
175391
175391
  // TODO: add specific validation logic for the sale items
@@ -175536,7 +175536,7 @@ const sendSwapRejectedEvent = (eventTarget, reason) => {
175536
175536
  eventTarget.dispatchEvent(rejectedEvent);
175537
175537
  };
175538
175538
 
175539
- const SwapWidget = React.lazy(() => import('./SwapWidget-BDieDJgN.js').then(function (n) { return n.b; }));
175539
+ const SwapWidget = React.lazy(() => import('./SwapWidget-BJOj5FR7.js').then(function (n) { return n.b; }));
175540
175540
  class Swap extends Base$3 {
175541
175541
  eventTopic = ro$1.IMTBL_SWAP_WIDGET_EVENT;
175542
175542
  getValidatedProperties({ config }) {
@@ -175643,7 +175643,7 @@ function sendDisconnectWalletEvent(eventTarget) {
175643
175643
  eventTarget.dispatchEvent(disconnectWalletEvent);
175644
175644
  }
175645
175645
 
175646
- const WalletWidget = React.lazy(() => import('./WalletWidget-gAXq6I8a.js'));
175646
+ const WalletWidget = React.lazy(() => import('./WalletWidget-Ksbzq25A.js'));
175647
175647
  class Wallet extends Base$3 {
175648
175648
  eventTopic = ro$1.IMTBL_WALLET_WIDGET_EVENT;
175649
175649
  getValidatedProperties({ config }) {
@@ -1,4 +1,4 @@
1
- import { ec as __assign } from './index-BTKL8wRG.js';
1
+ import { ec as __assign } from './index-CepXwf2Y.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function disabledActionDestinations(plan, settings) {
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator, e7 as loadScript, e8 as getNextIntegrationsURL, e9 as unloadScript, ea as __spreadArray, eb as isOffline, ec as __assign, ed as ContextCancelation, ee as applyDestinationMiddleware, ef as dist, eg as isServer, eh as mergedOptions, ei as isPlainObject, ej as pWhile, ek as PriorityQueue, el as PersistedPriorityQueue, em as attempt, en as isOnline, eo as Context } from './index-BTKL8wRG.js';
1
+ import { e5 as __awaiter, e6 as __generator, e7 as loadScript, e8 as getNextIntegrationsURL, e9 as unloadScript, ea as __spreadArray, eb as isOffline, ec as __assign, ed as ContextCancelation, ee as applyDestinationMiddleware, ef as dist, eg as isServer, eh as mergedOptions, ei as isPlainObject, ej as pWhile, ek as PriorityQueue, el as PersistedPriorityQueue, em as attempt, en as isOnline, eo as Context } from './index-CepXwf2Y.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function normalizeName(name) {
@@ -1 +1 @@
1
- export { er as WidgetsFactory } from './index-BTKL8wRG.js';
1
+ export { er as WidgetsFactory } from './index-CepXwf2Y.js';
@@ -1,4 +1,4 @@
1
- import { ay as getDefaultExportFromCjs } from './index-BTKL8wRG.js';
1
+ import { ay as getDefaultExportFromCjs } from './index-CepXwf2Y.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
- import { b as reactExports, dW as useBrowserLayoutEffect } from './index-BTKL8wRG.js';
1
+ import { b as reactExports, dW as useBrowserLayoutEffect } from './index-CepXwf2Y.js';
2
2
 
3
3
  // Inspired by https://usehooks-ts.com/react-hook/use-interval
4
4
  function useInterval(callback, delay) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imtbl/checkout-widgets",
3
- "version": "2.12.4-alpha.11",
3
+ "version": "2.12.4-alpha.12",
4
4
  "browserslist": {
5
5
  "production": [
6
6
  ">0.2%",
@@ -18,12 +18,12 @@
18
18
  "@biom3/design-tokens": "^0.4.5",
19
19
  "@biom3/react": "^0.29.4",
20
20
  "@emotion/react": "^11.11.3",
21
- "@imtbl/bridge-sdk": "2.12.4-alpha.11",
22
- "@imtbl/checkout-sdk": "2.12.4-alpha.11",
23
- "@imtbl/config": "2.12.4-alpha.11",
24
- "@imtbl/cryptofiat": "2.12.4-alpha.11",
25
- "@imtbl/dex-sdk": "2.12.4-alpha.11",
26
- "@imtbl/passport": "2.12.4-alpha.11",
21
+ "@imtbl/bridge-sdk": "2.12.4-alpha.12",
22
+ "@imtbl/checkout-sdk": "2.12.4-alpha.12",
23
+ "@imtbl/config": "2.12.4-alpha.12",
24
+ "@imtbl/cryptofiat": "2.12.4-alpha.12",
25
+ "@imtbl/dex-sdk": "2.12.4-alpha.12",
26
+ "@imtbl/passport": "2.12.4-alpha.12",
27
27
  "@imtbl/react-analytics": "0.3.4-alpha",
28
28
  "@rive-app/react-canvas-lite": "^4.9.0",
29
29
  "@walletconnect/ethereum-provider": "^2.11.1",